1 2017-07-04 Release Manager
5 2017-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
11 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
14 2017-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
16 Backport from mainline
17 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
21 32-bit, since indexed is not valid for DImode.
22 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
23 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
24 (define_peephole2 for Altivec d-form load): Add 32-bit support.
25 (define_peephole2 for Altivec d-form store): Likewise.
27 2017-06-27 Segher Boessenkool <segher@kernel.crashing.org>
31 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
32 PR rtl-optimization/73650
33 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
34 it is not a simple move.
36 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
39 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
40 read from, for big endian.
42 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
43 PR rtl-optimization/60818
44 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
45 a compare of comparisons with the thing compared if this results
46 in a different machine mode.
48 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
50 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
51 for quad_address_p for TImode, instead of just not indexed_address.
53 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
54 PR rtl-optimization/80429
55 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
56 are only used in debug insns.
58 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
60 * real.c (do_compare): Give decimal_do_compare preference over
61 comparing just the signs.
63 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
65 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
66 splitter result in the canonical way.
68 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
70 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
71 gen_add3_insn did not fail.
72 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
73 r0, construct that number in a temporary reg and add that reg to r0.
74 If asked to put the result in r0 as well, fail.
76 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
78 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
79 a call, force the call to not be a tail call.
81 2017-06-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
83 Backport from mainline
84 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
86 * gcc/config/arm/arm-builtins.c (arm_init_builtins): Rename
87 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
88 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
90 2017-06-22 Richard Biener <rguenther@suse.de>
92 Backport from mainline
93 2017-02-17 Richard Biener <rguenther@suse.de>
95 PR tree-optimization/79552
96 * tree-ssa-structalias.c (visit_loadstore): Properly verify
99 2016-04-18 Richard Biener <rguenther@suse.de>
101 PR tree-optimization/43434
102 * tree-ssa-structalias.c (struct vls_data): New.
103 (visit_loadstore): Handle all pointer-based accesses.
104 (compute_dependence_clique): Compute a bitmap of restrict tags
105 assigned bases and pass it to visit_loadstore.
107 2017-06-22 Jakub Jelinek <jakub@redhat.com>
109 Backported from mainline
110 2017-06-21 Jakub Jelinek <jakub@redhat.com>
113 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
114 with ctors/dtors if GOVD_SHARED is set.
116 2017-06-22 Martin Liska <mliska@suse.cz>
118 Backport from mainline
119 2017-05-31 Martin Liska <mliska@suse.cz>
122 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
124 2017-06-22 Martin Liska <mliska@suse.cz>
126 Backport from mainline
127 2017-05-30 Martin Liska <mliska@suse.cz>
130 * auto-profile.c (get_function_decl_from_block): Fix
133 2017-06-22 Martin Liska <mliska@suse.cz>
135 Backport from mainline
136 2017-05-26 Martin Liska <mliska@suse.cz>
139 * params.def: Bound partial-inlining-entry-probability param.
141 2017-06-22 Martin Liska <mliska@suse.cz>
143 Backport from mainline
144 2017-05-16 Martin Liska <mliska@suse.cz>
148 * ipa-devirt.c (warn_types_mismatch): Fix typo.
149 (odr_types_equivalent_p): Likewise.
151 2017-06-22 Martin Liska <mliska@suse.cz>
153 Backport from mainline
154 2017-05-15 Martin Liska <mliska@suse.cz>
157 * gcc.c (process_command): Do not allow empty argument of -o option.
159 2017-06-22 Martin Liska <mliska@suse.cz>
161 Backport from mainline
162 2017-05-02 Martin Liska <mliska@suse.cz>
164 * doc/gcov.texi: Add missing preposition.
165 * gcov.c (function_info::function_info): Properly fill up
166 all member variables.
168 2017-06-22 Martin Liska <mliska@suse.cz>
170 Backport from mainline
171 2017-05-02 Martin Liska <mliska@suse.cz>
174 * common.opt: Fix typo.
175 * doc/invoke.texi: Likewise.
177 2017-06-22 Martin Liska <mliska@suse.cz>
179 Backport from mainline
180 2017-04-28 Martin Liska <mliska@suse.cz>
182 * doc/gcov.texi: Enhance documentation of gcov.
184 2017-06-22 Martin Liska <mliska@suse.cz>
186 Backport from mainline
187 2017-04-28 Martin Liska <mliska@suse.cz>
189 * doc/gcov.texi: Sort options in alphabetic order.
190 * doc/gcov-dump.texi: Likewise.
191 * doc/gcov-tool.texi: Likewise.
192 * gcov.c (print_usage): Likewise.
193 * gcov-dump.c (print_usage): Likewise.
194 * gcov-tool.c (print_merge_usage_message): Likewise.
195 (print_rewrite_usage_message): Likewise.
196 (print_overlap_usage_message): Likewise.
198 2017-06-22 Martin Liska <mliska@suse.cz>
200 Backport from mainline
201 2017-04-28 Martin Liska <mliska@suse.cz>
203 PR gcov-profile/53915
204 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
206 2017-06-22 Martin Liska <mliska@suse.cz>
208 Backport from mainline
209 2017-04-28 Martin Liska <mliska@suse.cz>
212 * coverage.c (coverage_remove_note_file): New function.
213 * coverage.h: Declare the function.
214 * toplev.c (finalize): Clean if an error has been seen.
216 2017-06-22 Martin Liska <mliska@suse.cz>
218 Backport from mainline
219 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
222 * ipa-visibility.c (non_local_p): Fix typos.
223 (localize_node): When localizing symbol in same comdat group,
224 dissolve the group only when we know external symbols are going
226 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
228 2017-06-22 Martin Liska <mliska@suse.cz>
230 Backport from mainline
231 2017-01-17 Nathan Sidwell <nathan@acm.org>
233 * ipa-visibility.c (localize_node): New function, broken out of ...
234 (function_and_variable_visibility): ... here. Call it.
236 2017-06-22 Martin Liska <mliska@suse.cz>
238 Backport from mainline
239 2017-01-06 Nathan Sidwell <nathan@acm.org>
241 * ipa-visibility.c (function_and_variable_visibility): Reformat
242 comments and long lines. Remove extrneous if.
243 * symtab.c (symtab_node::make_decl_local): Fix code format.
244 (symtab_node::set_section_for_node): Fix comment typo.
246 2017-06-22 Martin Liska <mliska@suse.cz>
248 Backport from mainline
249 2016-10-20 Martin Liska <mliska@suse.cz>
252 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
253 comparison with STMT_UID_NOT_IN_RANGE.
254 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
257 2017-06-22 Jakub Jelinek <jakub@redhat.com>
259 Backported from mainline
260 2017-05-22 Jakub Jelinek <jakub@redhat.com>
263 * omp-low.c (finish_taskreg_remap): New function.
264 (finish_taskreg_scan): If unit size of ctx->record_type
265 is non-constant, unshare the size expression and replace
266 decls in it with possible outer var refs.
269 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
270 GOVD_SHARED rather than GOVD_PRIVATE with it.
271 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
272 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
275 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
276 as last argument to build_outer_var_ref for pointer bases of array
279 2017-06-22 Richard Biener <rguenther@suse.de>
281 Backport from mainline
282 2017-04-20 Richard Biener <rguenther@suse.de>
284 PR tree-optimization/80453
285 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
286 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
288 (vn_phi_eq): Pass them down.
289 (vn_phi_lookup): Record them.
290 (vn_phi_insert): Likewise.
292 2017-04-07 Richard Biener <rguenther@suse.de>
295 * tree.c (get_unwidened): Also handle ! for_type case for
297 * convert.c (do_narrow): Split out from ...
298 (convert_to_integer_1): ... here. Do not pass final truncation
299 type to get_unwidened for TRUNC_DIV_EXPR.
301 2017-04-04 Richard Biener <rguenther@suse.de>
304 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
305 arithmetic done for the negate or the plus. Simplify.
306 (A - (-B) -> A + B): Likewise.
307 * fold-const.c (split_tree): Make sure to not negate pointers.
309 2017-06-22 Richard Biener <rguenther@suse.de>
311 Backport from mainline
312 2017-01-30 Richard Biener <rguenther@suse.de>
314 PR tree-optimization/79256
315 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
316 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
318 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
320 2017-01-25 Richard Biener <rguenther@suse.de>
322 PR tree-optimization/69264
323 * target.def (vector_alignment_reachable): Improve documentation.
324 * doc/tm.texi: Regenerate.
325 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
327 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
328 earlier changes with respect to TYPE_USER_ALIGN.
329 (vector_alignment_reachable_p): Likewise. Improve dumping.
331 2017-02-09 Richard Biener <rguenther@suse.de>
333 PR tree-optimization/69823
334 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
335 Properly enumerate all BBs in the region. Use auto_vec.
337 2017-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
339 Back port from mainline
340 2017-05-19 Michael Meissner <meissner@linux.vnet.ibm.com>
343 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Prefer
344 VSX registers over GPRs, particularly on ISA 2.07 which does not
345 have the MTVSRDD instruction.
347 Back port from mainline
348 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
351 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
354 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
355 (define_peephole2 for Altivec d-form load): Add peepholes to catch
356 cases where the register allocator uses a move and an offsettable
357 memory operation to/from a FPR register on ISA 2.06/2.07.
358 (define_peephole2 for Altivec d-form store): Likewise.
360 Back port from mainline
361 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
364 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
365 are now unused after splitting mov{sf,sd}_hardfloat.
382 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
383 For movsf, order stores so the VSX stores occur before the GPR
384 store which encourages the register allocator to use a traditional
385 FPR instead of a GPR. For movsd, order the stores so that the GPR
386 store comes before the VSX stores to allow the power6 to work.
387 This is due to the power6 not having a 32-bit integer store
388 instruction from a FPR.
389 (movsf_hardfloat): Likewise.
390 (movsd_hardfloat): Likewise.
392 2017-06-21 Jeff Law <law@redhat.com>
394 * config/darwin-driver.c (darwin_driver_init): Const-correctness
395 fixes for first_period and second_period variables.
397 2017-06-19 James Greenhalgh <james.greenhalgh@arm.com>
399 Backport from mainline
400 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
403 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
404 if given a non-constant argument for an intrinsic which requires a
407 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
409 PR rtl-optimization/80474
410 * reorg.c (update_block): Do not ignore instructions in a delay slot.
412 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
414 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
416 2017-06-09 David S. Miller <davem@davemloft.net>
419 * config/sparc/sparc.c (sparc_flat_expand_epilogue): Don't
420 emit frame blockage here.
421 (sparc_expand_epilogue): Do it here.
422 * config/sparc/sparc.md (return expander): Emit frame blockage
425 2017-06-06 David S. Miller <davem@davemloft.net>
428 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
429 blockage if function uses alloca.
431 2017-06-06 Toma Tabacu <toma.tabacu@imgtec.com>
433 Backported from mainline
434 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
436 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
439 2017-06-01 Jakub Jelinek <jakub@redhat.com>
441 Backported from mainline
442 2016-08-19 Jakub Jelinek <jakub@redhat.com>
444 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
445 _rdseed64_step): Uglify argument names and/or local variable names
447 * config/i386/rtmintrin.h (_xabort): Likewise.
448 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
449 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
450 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
451 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
452 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
453 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
454 _mm_maskz_ternarylogic_epi32): Likewise.
455 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
456 __lwpins32, __lwpins64): Likewise.
457 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
458 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
459 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
460 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
461 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
462 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
463 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
464 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
465 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
466 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
467 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
468 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
469 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
470 _mm256_mask_i64gather_epi32): Likewise.
471 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
472 * config/i386/ia32intrin.h (__writeeflags): Likewise.
473 * config/i386/pkuintrin.h (_wrpkru): Likewise.
474 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
475 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
476 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
477 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
478 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
479 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
480 _mm512_mask_prefetch_i64scatter_ps): Likewise.
481 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
482 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
483 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
484 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
485 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
486 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
487 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
488 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
490 2017-05-30 Max Filippov <jcmvbkbc@gmail.com>
492 Backport from mainline
493 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
495 * config/xtensa/xtensa.c (xtensa_emit_call): Use
496 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
497 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
500 2017-05-30 Max Filippov <jcmvbkbc@gmail.com>
502 Backport from mainline
503 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
505 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
506 overhead loop start between a call and its CALL_ARG_LOCATION
509 2017-05-30 Max Filippov <jcmvbkbc@gmail.com>
511 Backport from mainline
512 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
514 * config/xtensa/xtensa-protos.h
515 (xtensa_use_return_instruction_p): New prototype.
516 * config/xtensa/xtensa.c (xtensa_current_frame_size,
517 xtensa_callee_save_size): Remove.
518 (struct machine_function): Add new fields: current_frame_size,
519 callee_save_size, frame_laid_out and epilogue_done.
520 (compute_frame_size, xtensa_expand_prologue,
521 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
522 cfun->machine->callee_save_size and xtensa_current_frame_size
523 with cfun->machine->current_frame_size.
524 (compute_frame_size): Update cfun->machine->frame_laid_out and
525 don't update frame layout after reload completion.
526 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
527 instead of zeroing xtensa_current_frame_size.
528 (xtensa_use_return_instruction_p): New function.
529 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
531 (INITIAL_ELIMINATION_OFFSET): Use return value of
532 compute_frame_size instead of xtensa_current_frame_size value.
533 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
534 function xtensa_use_return_instruction_p instead of inline code.
536 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
538 * doc/install.texi (Options specification): Move entry of
539 --enable-sjlj-exceptions.
541 2017-05-26 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
543 Backported from mainline
544 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
546 * config/sparc/sparc.md (length): Return the correct value for -mflat
547 sibcalls to match output_sibcall.
549 2017-05-26 Martin Liska <mliska@suse.cz>
551 Backport from mainline
552 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
555 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
557 2017-05-26 Martin Liska <mliska@suse.cz>
559 Backport from mainline
560 2017-04-19 Richard Biener <rguenther@suse.de>
563 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
564 when needed by AutoPGO.
566 2017-05-26 Martin Liska <mliska@suse.cz>
568 Backport from mainline
569 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
572 * doc/lto.texi: Remove an extra 'that'.
574 2017-05-26 Martin Liska <mliska@suse.cz>
576 Backport from mainline
577 2017-04-18 Martin Liska <mliska@suse.cz>
579 PR gcov-profile/78783
580 * gcov-tool.c (gcov_output_files): Validate that destination
581 file is either removed by the tool or by a user.
583 2017-05-26 Martin Liska <mliska@suse.cz>
585 Backport from mainline
586 2017-04-13 Martin Liska <mliska@suse.cz>
588 PR gcov-profile/80413
589 * gcov-io.c (gcov_write_string): Copy to buffer just when
590 allocated size is greater than zero.
592 2017-05-26 Martin Liska <mliska@suse.cz>
594 Backport from mainline
595 2017-04-11 Martin Liska <mliska@suse.cz>
598 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
599 * ipa-split.c (split_function): Create a local comdat symbol
600 if caller is in a comdat group.
602 2017-05-26 Martin Liska <mliska@suse.cz>
604 Backport from mainline
605 2017-04-11 Martin Liska <mliska@suse.cz>
608 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
611 2017-05-26 Martin Liska <mliska@suse.cz>
613 Backport from mainline
614 2017-04-11 Martin Liska <mliska@suse.cz>
617 * ubsan.c (instrument_object_size): Do not instrument register
620 2017-05-26 Martin Liska <mliska@suse.cz>
622 Backport from mainline
623 2017-04-10 Martin Liska <mliska@suse.cz>
625 PR gcov-profile/80224
626 * gcov.c (print_usage): Fix usage string.
627 (get_gcov_intermediate_filename): Remove.
628 (output_gcov_file): Use both for normal and intermediate format.
629 (generate_results): Do not initialize special file for
632 2017-05-26 Martin Liska <mliska@suse.cz>
634 Backport from mainline
635 2017-03-28 Richard Biener <rguenther@suse.de>
638 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
639 without arguments, generate default definition of a SSA name.
641 2017-05-26 Martin Liska <mliska@suse.cz>
643 Backport from mainline
644 2017-03-28 Martin Liska <mliska@suse.cz>
647 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
648 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
650 2017-05-23 Sheldon Lobo <sheldon.lobo@oracle.com>
652 Backport from mainline
653 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
655 * config/sparc/sparc.c (sparc_option_override): Set function
656 alignment for -mcpu=niagara7 to 64 to match the I$ line.
657 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
659 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
661 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
663 2017-05-19 Uros Bizjak <ubizjak@gmail.com>
665 Backport from mainline
666 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
669 * config/i386/mmx.md (*mov<mode>_internal): Enable
670 alternatives 11, 12, 13 and 14 also for 32bit targets.
671 Remove alternatives 15, 16, 17 and 18.
672 * config/i386/sse.md (vec_concatv2di): Change
673 alternative (!x, *y) to (x, ?!*Yn).
675 2017-05-15 Richard Biener <rguenther@suse.de>
679 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
680 TYPE_REF_CAN_ALIAS_ALL references.
681 * fold-const.c (fold_indirect_ref_1): Likewise.
683 2017-05-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
685 Backport from mainline
686 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
688 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
689 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
690 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
691 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
692 VF=2 that require versioning.
694 2017-05-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
696 Backport from mainline
697 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
699 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
700 built-ins for vec_xl and vec_xst with short and char pointer
703 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
706 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
707 handle calling assemble_external ourself.
710 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
711 modes with zero size. Enhance comment.
713 2017-05-10 Richard Biener <rguenther@suse.de>
715 Backport from mainline
716 2017-03-17 Richard Biener <rguenther@suse.de>
719 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
720 Properly verify the LHS before the RHS possibly claims to be
722 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
725 2017-03-21 Brad Spengler <spender@grsecurity.net>
728 * plugin.c (htab_hash_plugin): New function.
729 (add_new_plugin): Use it and adjust.
730 (parse_plugin_arg_opt): Adjust.
731 (init_one_plugin): Likewise.
733 2017-03-20 Richard Biener <rguenther@suse.de>
735 PR tree-optimization/80113
736 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
737 allocate extra SSA name for PHI def.
738 (add_close_phis_to_outer_loops): Likewise.
739 (add_close_phis_to_merge_points): Likewise.
740 (copy_loop_close_phi_args): Likewise.
741 (copy_cond_phi_nodes): Likewise.
743 2017-03-21 Richard Biener <rguenther@suse.de>
745 PR tree-optimization/80122
746 * tree-inline.c (copy_bb): Do not expans va-arg packs or
747 va_arg_pack_len when the inlined call stmt requires pack
749 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
751 2017-03-24 Richard Biener <rguenther@suse.de>
753 PR tree-optimization/80167
754 * graphite-isl-ast-to-gimple.c
755 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
757 (translate_isl_ast_to_gimple::get_rename): Likewise.
759 2017-03-27 Richard Biener <rguenther@suse.de>
761 PR tree-optimization/80170
762 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
763 sure DR/SCEV didnt fold in constants we do not see when looking
764 at the reference base alignment.
766 2017-03-27 Richard Biener <rguenther@suse.de>
769 * gimple-fold.c (fold_ctor_reference): Properly guard against
770 NULL return value from canonicalize_constructor_val.
772 2017-05-09 Richard Biener <rguenther@suse.de>
774 Backport from mainline
775 2017-03-28 Richard Biener <rguenther@suse.de>
778 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
779 TYPE_REF_CAN_ALIAS_ALL references.
780 * fold-const.c (fold_indirect_ref_1): Likewise.
782 2017-04-06 Richard Biener <rguenther@suse.de>
784 PR tree-optimization/80262
785 * tree-sra.c (build_ref_for_offset): Preserve address-space
787 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
788 Drop useless address-space information on MEM_REF offsets.
790 2017-04-03 Richard Biener <rguenther@suse.de>
792 PR tree-optimization/80275
793 * fold-const.c (split_address_to_core_and_offset): Handle
796 2017-04-06 Richard Biener <rguenther@suse.de>
798 PR tree-optimization/80334
799 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
800 preserve alignment of accesses.
802 2017-04-10 Richard Biener <rguenther@suse.de>
805 * fold-const.c (fold_binary_loc): Look at unstripped ops when
806 looking for NEGATE_EXPR in -A / -B to A / B folding.
808 2017-04-25 Richard Biener <rguenther@suse.de>
810 PR tree-optimization/80492
811 * alias.c (compare_base_decls): Handle registers with asm
812 specification conservatively.
814 2017-04-27 Richard Biener <rguenther@suse.de>
817 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
818 being in loop-closed SSA form conservatively.
819 (chrec_fold_multiply_poly_poly): Likewise.
821 2017-05-09 Jakub Jelinek <jakub@redhat.com>
824 2016-06-14 Richard Biener <rguenther@suse.de>
828 * expr.h (get_bit_range): Declare.
829 * expr.c (get_bit_range): Export.
830 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
831 word_mode again to constrain the bitfield access.
833 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
836 * fold-const.c (optimize_bit_field_compare): Don't try to use
837 word_mode unconditionally for reading the bit field, look at
838 DECL_BIT_FIELD_REPRESENTATIVE instead.
840 2017-05-05 Jakub Jelinek <jakub@redhat.com>
842 Backported from mainline
843 2017-04-25 Jakub Jelinek <jakub@redhat.com>
845 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
848 PR rtl-optimization/80501
849 * combine.c (make_compound_operation_int): Set subreg_code to SET
850 even for AND with mask of the sign bit of mode.
852 2017-04-12 Jakub Jelinek <jakub@redhat.com>
855 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
856 first argument to type.
858 2017-04-11 Jakub Jelinek <jakub@redhat.com>
860 PR rtl-optimization/80385
861 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
862 (not (neg X)) into (plus X -1) for complex or non-integral modes.
865 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
866 if they have any depend clauses.
868 2017-04-04 Jakub Jelinek <jakub@redhat.com>
869 Richard Biener <rguenther@suse.de>
872 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
873 captures used multiple times, except for the last use.
874 * generic-match-head.c: Include gimplify.h.
876 2017-04-04 Jakub Jelinek <jakub@redhat.com>
879 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
880 int mode, convert_modes it to mode as unsigned, otherwise use
881 lowpart_subreg to mode rather than SImode.
882 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
883 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
884 Use DImode instead of SImode for the shift count operand.
885 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
888 2017-04-13 Jakub Jelinek <jakub@redhat.com>
891 * dwarf2out.c (decls_for_scope): Ignore declarations of
892 current_function_decl in BLOCK_NONLOCALIZED_VARS.
894 2017-03-31 Jakub Jelinek <jakub@redhat.com>
897 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
898 a FUNCTION_DECL, pass it as decl instead of origin to
902 * cselib.c (cselib_hasher::equal): Pass 0 to rtx_equal_for_cselib_1.
903 (rtx_equal_for_cselib_1): Add depth argument. If depth
904 is 128, don't look up VALUE locs and punt. Increment
905 depth in recursive calls when walking VALUE locs.
907 2017-03-27 Jakub Jelinek <jakub@redhat.com>
910 * asan.c (instrument_derefs): Copy over last operand from
911 original COMPONENT_REF to the new COMPONENT_REF with
912 DECL_BIT_FIELD_REPRESENTATIVE.
913 * ubsan.c (instrument_object_size): Likewise.
915 2017-03-24 Jakub Jelinek <jakub@redhat.com>
917 PR rtl-optimization/80112
918 * loop-doloop.c (doloop_condition_get): Don't check condition
919 if cmp isn't SET with IF_THEN_ELSE src.
921 2017-03-22 Jakub Jelinek <jakub@redhat.com>
924 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
925 TREE_READONLY on result if writing it more than once.
927 2017-03-09 Jakub Jelinek <jakub@redhat.com>
930 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
931 BUILT_IN_SYNC*, determine the access type from the size suffix and
932 always build a MEM_REF with that type. Handle forgotten
933 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
936 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
937 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
938 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
939 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
940 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
941 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
942 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
943 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
944 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
945 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
946 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
947 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
948 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
949 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
950 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
951 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
952 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
953 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
954 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
955 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
956 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
957 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
958 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
959 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
960 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
961 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
962 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
963 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
964 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
965 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
966 definitions outside of __OPTIMIZE__ guarded section.
969 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
970 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
971 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
972 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
975 2017-03-08 Jakub Jelinek <jakub@redhat.com>
978 * gimplify.c (gimplify_omp_for): Replace index var in outer
979 taskloop statement with an artificial variable and add
980 OMP_CLAUSE_PRIVATE clause for it.
982 2017-03-07 Jakub Jelinek <jakub@redhat.com>
984 PR rtl-optimization/79901
985 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
987 (*avx512f_<code><mode>3<mask_name>): ... this.
988 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
989 iterator instead of VI8_AVX2_AVX512BW.
991 PR rtl-optimization/79901
992 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
993 min/max expander, expand it using expand_vec_cond_expr.
995 2017-03-03 Jakub Jelinek <jakub@redhat.com>
998 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
999 is a memory operand, increase num_memory.
1000 (ix86_expand_args_builtin): Likewise.
1002 2017-03-01 Jakub Jelinek <jakub@redhat.com>
1005 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
1006 attempt to use its first operand as BIT_FIELD_REF base.
1008 2017-02-28 Jakub Jelinek <jakub@redhat.com>
1011 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
1012 gcc_unreachable with output_operand_lossage.
1014 2017-02-25 Jakub Jelinek <jakub@redhat.com>
1017 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
1018 FMA_EXPR like tcc_binary or tcc_unary.
1020 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1023 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
1024 on temporarily removed DEBUG_INSNs.
1027 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
1028 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
1029 * config/rs6000/rs6000.c: Include except.h.
1030 (rs6000_expand_split_stack_prologue): Call
1031 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
1033 2017-02-20 Jakub Jelinek <jakub@redhat.com>
1036 * config/i386/i386.c (ix86_expand_builtin): Handle
1037 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
1038 ix86_builtins_isa[fcode].isa as a requirement of those
1039 flags and any other flag in the bitmask.
1040 (ix86_init_mmx_sse_builtins): Use 0 instead of
1041 ~OPTION_MASK_ISA_64BIT as mask.
1042 * config/i386/i386-builtin.def (bdesc_special_args,
1043 bdesc_args): Likewise.
1045 2017-02-18 Jakub Jelinek <jakub@redhat.com>
1048 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
1049 instead of gcc_assert for K, r and R code checks. Formatting fixes.
1051 2017-05-05 Marek Polacek <polacek@redhat.com>
1052 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1053 Jakub Jelinek <jakub@redhat.com>
1056 * config/arm/arm.c: Include gimple.h.
1057 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
1058 returns negative, increment ncrn if it returned non-zero.
1059 (arm_needs_doubleword_align): Return int instead of bool,
1060 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
1061 members, but if there is any such non-FIELD_DECL
1062 > PARM_BOUNDARY aligned decl, return -1 instead of false.
1063 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
1064 returns negative, increment nregs if it returned non-zero.
1065 (arm_setup_incoming_varargs): Likewise.
1066 (arm_function_arg_boundary): Emit -Wpsabi note if
1067 arm_needs_doubleword_align returns negative, return
1068 DOUBLEWORD_ALIGNMENT if it returned non-zero.
1070 2017-05-03 Uros Bizjak <ubizjak@gmail.com>
1072 Backport from mainline
1073 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
1076 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
1077 __get_cpuid_max returns 0.
1078 (__get_cpuid_count): Ditto.
1080 2017-04-21 Eric Botcazou <ebotcazou@adacore.com>
1082 Backport from mainline
1083 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
1084 Jakub Jelinek <jakub@redhat.com>
1086 PR tree-optimization/80426
1087 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
1088 operation on symbolic operands, also compute the overflow for the
1089 invariant part when the operation degenerates into a negation.
1091 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
1093 Backport from 2017-04-19 trunk r246997.
1096 * config/avr/avr.c (tree.h): Include it.
1097 (cgraph.h): Include it.
1098 (avr_encode_section_info): Don't warn for uninitialized progmem
1099 variable if it's just an alias.
1101 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
1103 Backport from 2017-04-18 trunk r246966.
1106 * config/avr/avr.c (intl.h): Include it.
1107 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
1109 2017-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1111 Backport from mainline
1112 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1116 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
1117 CONST0_RTX (mode) rather than const0_rtx where appropriate.
1118 (rs6000_expand_binop_builtin): Likewise.
1119 (rs6000_expand_ternop_builtin): Likewise; also add missing
1120 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
1121 vshasigma built-ins.
1122 * doc/extend.texi: Document that vec_xxpermdi's third argument
1125 2017-04-11 Pat Haugen <pthaugen@us.ibm.com>
1127 Backport from mainline
1128 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
1130 * rs6000/rs6000.c (vec_load_pendulum): Rename...
1131 (vec_pairing): ...to this.
1132 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
1133 (rs6000_sched_init): Adjust for name change.
1134 (struct rs6000_sched_context): Likewise.
1135 (rs6000_init_sched_context): Likewise.
1136 (rs6000_set_sched_context): Likewise.
1138 2017-04-11 Martin Jambor <mjambor@suse.cz>
1140 Backport from mainline
1141 2017-03-30 Martin Jambor <mjambor@suse.cz>
1144 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
1145 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
1146 it reflects the signature changes performed at the callee side.
1147 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
1148 to cgraph_build_function_type_skip_args.
1149 (build_function_decl_skip_args): Adjust call to the above function.
1151 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
1153 Backport from mainline
1154 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
1156 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
1157 Add comment for WCHAR_T.
1159 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
1161 Backport from mainline
1162 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
1164 * config/aarch64/aarch64-freebsd.h: Define WCHAR_T.
1166 2017-04-07 Eric Botcazou <ebotcazou@adacore.com>
1168 Backport from mainline
1169 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
1172 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
1173 ptr_mode with Pmode throughout.
1174 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
1175 into probe_stack_range and use DImode.
1177 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
1179 Backport from mainline
1180 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
1182 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
1184 * config/arm/arm.c (arm_default_short_enums): Use
1185 ARM_DEFAULT_SHORT_ENUMS.
1186 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
1188 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
1190 Backport from mainline
1191 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
1194 * config/i386/i386.c (ix86_expand_builtin)
1195 <case IX86_BUILTIN_KORTEST{C,Z}16>: Determine insn operand
1196 mode from insn data. Convert operands to insn operand mode.
1197 Copy operands that don't satisfy insn predicate to a register.
1199 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
1202 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
1203 not defined for x86_64 target. Add -mmmx target option when __SSE2__
1205 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
1208 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
1211 * config/arm/arm-protos.h (FL_LPAE): Define macro.
1212 (FL_FOR_ARCH7VE): Add FL_LPAE.
1213 (arm_arch_lpae): Declare extern.
1214 * config/arm/arm.c (arm_arch_lpae): Declare.
1215 (arm_option_override): Define arm_arch_lpae.
1216 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
1219 2017-04-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1221 Back port from the trunk
1222 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1225 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
1228 2017-03-31 Richard Sandiford <richard.sandiford@arm.com>
1230 PR tree-optimization/80218
1231 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
1232 Update block frequencies and counts.
1234 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
1236 Backport from mainline
1237 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
1240 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
1241 (dfp_diex_<mode>): Update mode of operand 1.
1242 * doc/extend.texi (dxex, dxexq): Document change to return type.
1243 (diex, diexq): Document change to argument type.
1245 2017-03-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1247 Back port from trunk
1248 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1251 * doc/md.texi (Constraints): Document wA constraint.
1252 * config/rs6000/constraints.md (wA): New.
1253 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
1254 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
1255 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
1256 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
1258 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
1261 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
1262 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
1263 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
1265 2017-03-29 Richard Biener <rguenther@suse.de>
1267 Backport from mainline
1268 2017-03-28 Richard Biener <rguenther@suse.de>
1270 PR tree-optimization/78644
1271 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
1272 of a simplification result we may not use it at all.
1274 2017-03-27 Richard Biener <rguenther@suse.de>
1276 PR tree-optimization/80181
1277 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
1279 2017-03-28 Marek Polacek <polacek@redhat.com>
1281 Backport from mainline
1282 2017-03-28 Marek Polacek <polacek@redhat.com>
1285 * fold-const.c (fold_comparison): Use protected_set_expr_location
1286 instead of SET_EXPR_LOCATION.
1288 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1290 Back port from trunk
1291 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1294 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
1295 HImode and SImode with zero extend to DImode to one insn.
1296 (bswap<mode>2_extenddi): Likewise.
1297 (bswapsi2_extenddi): Likewise.
1298 (bswaphi2_extendsi): Likewise.
1299 (bswaphi2): Combine bswap HImode and SImode into one insn.
1300 Separate memory insns from swapping register.
1301 (bswapsi2): Likewise.
1302 (bswap<mode>2): Likewise.
1303 (bswaphi2_internal): Delete, no longer used.
1304 (bswapsi2_internal): Likewise.
1305 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
1306 store, and gpr<-gpr swap insns.
1307 (bswap<mode>2_store): Likewise.
1308 (bswaphi2_reg): Register only splitter, combine with the splitter.
1309 (bswaphi2 splitter): Likewise.
1310 (bswapsi2_reg): Likewise.
1311 (bswapsi2 splitter): Likewise.
1312 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
1313 the insns into load, store, and register/register insns.
1314 (bswapdi2_ldbrx): Likewise.
1315 (bswapdi2_load): Likewise.
1316 (bswapdi2_store): Likewise.
1317 (bswapdi2_reg): Likewise.
1319 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
1322 * config/i386/i386.c (ix86_expand_builtin)
1323 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
1324 flags reg setting and flags reg using instructions.
1325 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
1326 clobbering instructions to zero extend op2.
1328 2017-03-22 Martin Liska <mliska@suse.cz>
1330 Backport from mainline
1331 2017-03-14 Martin Liska <mliska@suse.cz>
1334 * multiple_target.c (expand_target_clones): Drop local.local
1335 flag for default implementation.
1337 2017-03-22 Martin Liska <mliska@suse.cz>
1339 Backport from mainline
1340 2017-02-22 Martin Liska <mliska@suse.cz>
1343 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
1344 * data-streamer-out.c (streamer_write_gcov_count_stream):
1346 * value-prof.c (stream_out_histogram_value): Make assert more
1347 precise based on type of counter.
1349 2017-03-22 Martin Liska <mliska@suse.cz>
1351 Backport from mainline
1352 2017-02-03 Martin Liska <mliska@suse.cz>
1355 * multiple_target.c (create_dispatcher_calls): Redirect edge
1356 from a caller of a dispatcher.
1357 (expand_target_clones): Make the clones local.
1358 (ipa_target_clone): Do both target clones and resolvers.
1359 (ipa_dispatcher_calls): Remove the pass.
1360 (pass_dispatcher_calls::gate): Likewise.
1361 (make_pass_dispatcher_calls): Likewise.
1362 * passes.def (pass_target_clone): Put as very first IPA early
1365 2017-03-22 Martin Liska <mliska@suse.cz>
1367 Backport from mainline
1368 2017-03-22 Martin Liska <mliska@suse.cz>
1371 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
1372 error message instead of an ICE.
1374 2017-03-22 Martin Liska <mliska@suse.cz>
1376 Backport from mainline
1377 2017-03-21 Martin Liska <mliska@suse.cz>
1379 PR gcov-profile/80081
1380 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
1381 * doc/gcc.texi: Include gcov-dump stuff.
1382 * doc/gcov-dump.texi: New file.
1384 2017-03-22 Martin Liska <mliska@suse.cz>
1386 Backport from mainline
1387 2017-03-20 Martin Liska <mliska@suse.cz>
1390 * tree-chkp.c (chkp_build_returned_bound): Do not build
1391 returned bounds for a LHS that's not a BOUNDED_P type.
1393 2017-03-22 Martin Liska <mliska@suse.cz>
1395 Backport from mainline
1396 2017-03-20 Martin Liska <mliska@suse.cz>
1400 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
1401 COMPLEX_CST and VECTOR_CST.
1403 2017-03-22 Martin Liska <mliska@suse.cz>
1405 Backport from mainline
1406 2017-03-14 Martin Liska <mliska@suse.cz>
1409 * doc/invoke.texi (-Wchkp): Document the option.
1411 2017-03-22 Martin Liska <mliska@suse.cz>
1413 Backport from mainline
1414 2017-03-14 Martin Liska <mliska@suse.cz>
1417 * multiple_target.c (create_dispatcher_calls): Check that
1418 a target can create a function dispatcher.
1420 2017-03-22 Martin Liska <mliska@suse.cz>
1422 Backport from mainline
1423 2017-03-13 Martin Liska <mliska@suse.cz>
1426 * ipa-pure-const.c (warn_function_noreturn): If the declarations
1427 is a CHKP clone, use original declaration.
1429 2017-03-22 Martin Liska <mliska@suse.cz>
1431 Backport from mainline
1432 2017-03-10 Martin Liska <mliska@suse.cz>
1436 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
1437 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
1440 2017-03-22 Martin Liska <mliska@suse.cz>
1442 Backport from mainline
1443 2017-03-09 Martin Liska <mliska@suse.cz>
1445 PR tree-optimization/79631
1446 * tree-chkp-opt.c (chkp_is_constant_addr): Call
1447 tree_int_cst_sign_bit just for INTEGER constants.
1449 2017-03-22 Martin Liska <mliska@suse.cz>
1451 Backport from mainline
1452 2017-03-09 Martin Liska <mliska@suse.cz>
1456 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
1459 2017-03-22 Martin Liska <mliska@suse.cz>
1461 Backport from mainline
1462 2017-03-09 Martin Liska <mliska@suse.cz>
1465 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
1466 (chkp_find_bounds_1): Remove gcc_unreachable.
1468 2017-03-22 Martin Liska <mliska@suse.cz>
1470 Backport from mainline
1471 2017-03-03 Jan Hubicka <jh@suse.cz>
1474 * ipa-devirt.c (maybe_record_node): Properly handle
1475 __cxa_pure_virtual visibility.
1477 2017-03-22 Martin Liska <mliska@suse.cz>
1479 Backport from mainline
1480 2017-03-03 Martin Liska <mliska@suse.cz>
1482 PR tree-optimization/79803
1483 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
1485 (pass_loop_prefetch::execute): Disabled optimization if an
1486 assumption about L1 cache size is not met.
1488 2017-03-22 Martin Liska <mliska@suse.cz>
1490 Backport from mainline
1491 2017-03-03 Martin Liska <mliska@suse.cz>
1493 PR rtl-optimization/79574
1494 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
1495 (hash_scan_set): Likewise.
1496 (dump_hash_table): Likewise.
1497 (hoist_code): Likewise.
1499 2017-03-22 Martin Liska <mliska@suse.cz>
1501 Backport from mainline
1502 2017-02-17 Martin Liska <mliska@suse.cz>
1504 PR rtl-optimization/79574
1505 * gcse.c (want_to_gcse_p): Prevent integer overflow.
1507 2017-03-22 Martin Liska <mliska@suse.cz>
1509 Backport from mainline
1510 2017-02-17 Martin Liska <mliska@suse.cz>
1512 PR rtl-optimization/79577
1513 * params.def (selsched-max-sched-times): Increase minimum to 1.
1515 2017-03-22 Martin Liska <mliska@suse.cz>
1517 Backport from mainline
1518 2016-06-13 Martin Liska <mliska@suse.cz>
1521 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
1522 w/ -fsanitize=bounds.
1524 2017-03-21 Pat Haugen <pthaugen@us.ibm.com>
1526 Backport from mainline:
1527 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
1530 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
1531 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
1533 2017-03-21 Tamar Christina <tamar.christina@arm.com>
1535 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
1536 Change ins into fmov.
1538 2017-03-19 Dominique d'Humieres <dominiq@lps.ens.fr>
1541 * config/i386/cpuid.h: Fix another undefined behavior.
1543 2017-03-17 Tom de Vries <tom@codesourcery.com>
1545 backport from trunk:
1546 2017-03-17 Tom de Vries <tom@codesourcery.com>
1548 * gcov-dump.c (print_usage): Print bug_report_url.
1550 2017-03-16 Richard Biener <rguenther@suse.de>
1552 Backport from mainline
1553 2017-02-28 Richard Biener <rguenther@suse.de>
1555 PR tree-optimization/79732
1556 * tree-inline.c (expand_call_inline): Handle anonymous
1557 SSA lhs properly when inlining a function without return
1560 2017-03-15 Matthias Klose <doko@ubuntu.com>
1562 Backport from mainline
1563 2017-03-14 Martin Liska <mliska@suse.cz>
1565 * Makefile.in: Install gcov-dump.
1567 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
1570 * config/i386/i386.c (ix86_vector_duplicate_value): Create
1571 subreg of inner mode for values already in registers.
1573 2017-03-14 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1575 Backport from mainline
1576 2017-02-28 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1579 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
1580 udiv rather than div since input pattern is unsigned.
1582 2017-03-14 Richard Biener <rguenther@suse.de>
1584 Backport from mainline
1585 2016-05-02 Jakub Jelinek <jakub@redhat.com>
1589 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
1590 char/short arguments promoted to int because of promote_prototypes.
1592 2017-03-09 Richard Biener <rguenther@suse.de>
1594 PR tree-optimization/79977
1595 * graphite-scop-detection.c (scop_detection::merge_sese):
1596 Handle the case of extra exits to blocks dominating the entry.
1598 2017-03-09 Richard Biener <rguenther@suse.de>
1601 * gimple-expr.c (useless_type_conversion_p): Preserve
1602 TYPE_SATURATING for fixed-point types.
1604 2017-02-22 Richard Biener <rguenther@suse.de>
1606 PR tree-optimization/79666
1607 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
1608 to not symbolically negate if that may introduce undefined
1611 2017-02-17 Richard Biener <rguenther@suse.de>
1614 * params.def (max-ssa-name-query-depth): Limit to 10.
1616 2017-03-07 Uros Bizjak <ubizjak@gmail.com>
1618 Backport from mainline
1619 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
1621 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
1622 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
1624 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
1627 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
1630 2017-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1632 Back port from trunk
1633 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1636 * config/rs6000/predicates.md (current_file_function_operand): Do
1637 not allow self calls to be local if the function is replaceable.
1639 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
1642 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
1644 2017-03-01 Pat Haugen <pthaugen@us.ibm.com>
1646 Backport from mainline:
1647 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
1650 * rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD for
1651 arithmetic shift of unsigned V2DI.
1653 2017-03-01 Martin Jambor <mjambor@suse.cz>
1655 Backport from mainline
1656 2017-02-21 Martin Jambor <mjambor@suse.cz>
1659 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
1662 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
1665 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
1666 condition on optimize for the leaf function test.
1668 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1670 Backport from mainline
1671 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1674 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1675 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
1676 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
1677 generator for vsx_xxpermdi_<mode>_be.
1678 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
1679 force big-endian semantics.
1680 (vsx_xxpermdi_<mode>_be): New define_expand with same
1681 implementation as previous version of vsx_xxpermdi_<mode>.
1683 2017-02-20 Marek Polacek <polacek@redhat.com>
1685 Backport from mainline
1686 2017-02-20 Marek Polacek <polacek@redhat.com>
1689 * gimplify.c (gimplify_expr): Handle unused *&&L;.
1692 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
1694 2017-02-20 Marek Polacek <polacek@redhat.com>
1696 Backport from mainline
1697 2017-02-17 Marek Polacek <polacek@redhat.com>
1700 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
1701 (fold_negate_expr): New wrapper.
1703 2017-02-17 Carl Love <cel@us.ibm.com>
1705 Backport from mainline commit r245460 on 2017-02-14
1708 * config/rs6000/rs6000.c: Add case statement entry to make the xvcvuxdsp
1709 built-in argument unsigned.
1710 * config/rs6000/vsx.md: Fix the source and return operand types so they
1711 match the instruction definitions from the ISA document. Fix typo
1712 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
1715 2017-01-17 Julia Koval <julia.koval@intel.com>
1718 * config/i386/avx512fintrin.h
1719 (_mm512_i32gather_ps): Change __addr type to void const*.
1720 (_mm512_mask_i32gather_ps): Ditto.
1721 (_mm512_i32gather_pd): Ditto.
1722 (_mm512_mask_i32gather_pd): Ditto.
1723 (_mm512_i64gather_ps): Ditto.
1724 (_mm512_mask_i64gather_ps): Ditto.
1725 (_mm512_i64gather_pd): Ditto.
1726 (_mm512_mask_i64gather_pd): Ditto.
1727 (_mm512_i32gather_epi32): Ditto.
1728 (_mm512_mask_i32gather_epi32): Ditto.
1729 (_mm512_i32gather_epi64): Ditto.
1730 (_mm512_mask_i32gather_epi64): Ditto.
1731 (_mm512_i64gather_epi32): Ditto.
1732 (_mm512_mask_i64gather_epi32): Ditto.
1733 (_mm512_i64gather_epi64): Ditto.
1734 (_mm512_mask_i64gather_epi64): Ditto.
1735 (_mm512_i32scatter_ps): Change __addr type to void*.
1736 (_mm512_mask_i32scatter_ps): Ditto.
1737 (_mm512_i32scatter_pd): Ditto.
1738 (_mm512_mask_i32scatter_pd): Ditto.
1739 (_mm512_i64scatter_ps): Ditto.
1740 (_mm512_mask_i64scatter_ps): Ditto.
1741 (_mm512_i64scatter_pd): Ditto.
1742 (_mm512_mask_i64scatter_pd): Ditto.
1743 (_mm512_i32scatter_epi32): Ditto.
1744 (_mm512_mask_i32scatter_epi32): Ditto.
1745 (_mm512_i32scatter_epi64): Ditto.
1746 (_mm512_mask_i32scatter_epi64): Ditto.
1747 (_mm512_i64scatter_epi32): Ditto.
1748 (_mm512_mask_i64scatter_epi32): Ditto.
1749 (_mm512_i64scatter_epi64): Ditto.
1750 (_mm512_mask_i64scatter_epi64): Ditto.
1751 * config/i386/avx512pfintrin.h
1752 (_mm512_mask_prefetch_i32gather_pd): Change addr type to void const*.
1753 (_mm512_mask_prefetch_i32gather_ps): Ditto.
1754 (_mm512_mask_prefetch_i64gather_pd): Ditto.
1755 (_mm512_mask_prefetch_i64gather_ps): Ditto.
1756 (_mm512_prefetch_i32scatter_pd): Change addr type to void*.
1757 (_mm512_prefetch_i32scatter_ps): Ditto.
1758 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
1759 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
1760 (_mm512_prefetch_i64scatter_pd): Ditto.
1761 (_mm512_prefetch_i64scatter_ps): Ditto.
1762 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
1763 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
1764 * config/i386/avx512vlintrin.h
1765 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
1766 (_mm_mmask_i32gather_ps): Ditto.
1767 (_mm256_mmask_i32gather_pd): Ditto.
1768 (_mm_mmask_i32gather_pd): Ditto.
1769 (_mm256_mmask_i64gather_ps): Ditto.
1770 (_mm_mmask_i64gather_ps): Ditto.
1771 (_mm256_mmask_i64gather_pd): Ditto.
1772 (_mm_mmask_i64gather_pd): Ditto.
1773 (_mm256_mmask_i32gather_epi32): Ditto.
1774 (_mm_mmask_i32gather_epi32): Ditto.
1775 (_mm256_mmask_i32gather_epi64): Ditto.
1776 (_mm_mmask_i32gather_epi64): Ditto.
1777 (_mm256_mmask_i64gather_epi32): Ditto.
1778 (_mm_mmask_i64gather_epi32): Ditto.
1779 (_mm256_mmask_i64gather_epi64): Ditto.
1780 (_mm_mmask_i64gather_epi64): Ditto.
1781 (_mm256_i32scatter_ps): Change __addr type to void*.
1782 (_mm256_mask_i32scatter_ps): Ditto.
1783 (_mm_i32scatter_ps): Ditto.
1784 (_mm_mask_i32scatter_ps): Ditto.
1785 (_mm256_i32scatter_pd): Ditto.
1786 (_mm256_mask_i32scatter_pd): Ditto.
1787 (_mm_i32scatter_pd): Ditto.
1788 (_mm_mask_i32scatter_pd): Ditto.
1789 (_mm256_i64scatter_ps): Ditto.
1790 (_mm256_mask_i64scatter_ps): Ditto.
1791 (_mm_i64scatter_ps): Ditto.
1792 (_mm_mask_i64scatter_ps): Ditto.
1793 (_mm256_i64scatter_pd): Ditto.
1794 (_mm256_mask_i64scatter_pd): Ditto.
1795 (_mm_i64scatter_pd): Ditto.
1796 (_mm_mask_i64scatter_pd): Ditto.
1797 (_mm256_i32scatter_epi32): Ditto.
1798 (_mm256_mask_i32scatter_epi32): Ditto.
1799 (_mm_i32scatter_epi32): Ditto.
1800 (_mm_mask_i32scatter_epi32): Ditto.
1801 (_mm256_i32scatter_epi64): Ditto.
1802 (_mm256_mask_i32scatter_epi64): Ditto.
1803 (_mm_i32scatter_epi64): Ditto.
1804 (_mm_mask_i32scatter_epi64): Ditto.
1805 (_mm256_i64scatter_epi32): Ditto.
1806 (_mm256_mask_i64scatter_epi32): Ditto.
1807 (_mm_i64scatter_epi32): Ditto.
1808 (_mm_mask_i64scatter_epi32): Ditto.
1809 (_mm256_i64scatter_epi64): Ditto.
1810 (_mm256_mask_i64scatter_epi64): Ditto.
1811 (_mm_i64scatter_epi64): Ditto.
1812 (_mm_mask_i64scatter_epi64): Ditto.
1813 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
1814 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
1815 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
1816 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
1817 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
1818 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
1819 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
1820 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
1821 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
1822 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
1823 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
1824 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
1825 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
1826 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
1827 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
1828 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
1829 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
1830 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
1831 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
1832 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
1833 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
1834 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
1835 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
1836 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
1837 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
1838 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
1839 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
1840 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
1841 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
1842 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
1843 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
1844 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
1845 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
1846 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
1847 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
1848 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
1849 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
1850 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
1851 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
1852 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
1853 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
1854 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
1855 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
1856 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
1857 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
1858 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
1859 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
1860 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
1861 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
1862 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
1863 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
1864 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
1865 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
1866 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
1867 definitions accordingly.
1869 2017-02-16 Jakub Jelinek <jakub@redhat.com>
1871 Backported from mainline
1872 2017-02-09 Marek Polacek <polacek@redhat.com>
1875 * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
1876 instead of c_parser_skip_until_found.
1878 2017-02-15 Jakub Jelinek <jakub@redhat.com>
1880 Backported from mainline
1881 2017-02-10 Jakub Jelinek <jakub@redhat.com>
1883 PR tree-optimization/79411
1884 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
1885 stmt operands are SSA_NAMEs used in abnormal phis.
1886 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
1889 2017-02-09 Jakub Jelinek <jakub@redhat.com>
1892 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
1893 "omp declare target link" attribute unless is_global_var.
1894 * omp-low.c (find_link_var_op): Likewise.
1896 2017-02-07 Jakub Jelinek <jakub@redhat.com>
1897 Richard Biener <rguenther@suse.de>
1900 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
1901 type from int to size_t.
1902 * ira-costs.c (struct_costs_size): Change type from int to size_t.
1904 2017-02-04 Jakub Jelinek <jakub@redhat.com>
1906 PR tree-optimization/79338
1907 * tree-parloops.c (gather_scalar_reductions): Don't call
1908 vect_analyze_loop_form for loop->inner before destroying loop's
1911 2017-02-02 Jakub Jelinek <jakub@redhat.com>
1914 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
1915 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
1916 conditions on a single line.
1918 2017-01-31 Jakub Jelinek <jakub@redhat.com>
1920 PR tree-optimization/79267
1921 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
1922 if should_remove_lhs_p is true.
1924 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
1925 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1928 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
1931 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
1934 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
1936 2017-02-14 Martin Liska <mliska@suse.cz>
1938 Backport from mainline
1939 2017-02-13 Martin Liska <mliska@suse.cz>
1942 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
1944 2017-02-13 Gerald Pfeifer <gerald@pfeifer.com>
1946 Backport from mainline
1947 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
1949 * config/i386/x86-64.h: Append --32 to the assembler options when
1950 -m16 is used on non-glibc systems as well.
1952 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
1954 PR translation/79397
1955 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
1958 2017-02-08 Richard Biener <rguenther@suse.de>
1960 Backport from mainline
1961 2017-02-08 Richard Biener <rguenther@suse.de>
1963 PR tree-optimization/71824
1964 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1965 Check all loops contained in the merged region.
1967 2017-02-01 Richard Biener <rguenther@suse.de>
1969 PR tree-optimization/71824
1970 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1971 Verify the loops are valid in the merged SESE region.
1972 (scop_detection::can_represent_loop_1): Check analyzing the
1973 evolution of the number of iterations in the region succeeds.
1975 2017-01-31 Richard Biener <rguenther@suse.de>
1977 PR tree-optimization/77318
1978 * graphite-sese-to-poly.c (extract_affine): Fix assert.
1979 (create_pw_aff_from_tree): Take loop parameter.
1980 (add_condition_to_pbb): Pass loop of the condition to
1981 create_pw_aff_from_tree.
1983 2017-02-06 Dominique d'Humieres <dominiq@lps.ens.fr>
1986 * config/i386/cpuid.h: Fix undefined behavior.
1988 2017-02-03 Carl Love <cel@us.ibm.com>
1990 Backport of two commits from mainline, r244943 and r244904,
1991 dated 017-01-26 and 2017-01-25 respectively
1993 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
1994 of entries for ALTIVEC_BUILTIN_VEC_PACKS. Remove bogus entries
1995 for P8V_BUILTIN_VEC_VGBBD.
1997 2017-02-03 Walter Lee <walt@tilera.com>
1999 Backport from mainline
2000 2017-02-03 Walter Lee <walt@tilera.com>
2003 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
2004 after initial stackframe link reg save.
2005 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
2007 2017-02-03 Maxim Ostapenko <m.ostapenko@samsung.com>
2010 * asan.c (asan_add_global): Force has_dynamic_init to zero in LTO mode.
2012 2017-01-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2014 Backport from mainline
2015 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2018 * config/rs6000/altivec.h (vec_xl): Revise #define.
2019 (vec_xst): Likewise.
2021 2017-01-26 Eric Botcazou <ebotcazou@adacore.com>
2023 Backport from mainline
2024 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
2026 * expr.c (store_field): In the bitfield case, fetch the return value
2027 from the registers before applying a single big-endian adjustment.
2028 Always do a final load for a BLKmode value not larger than a word.
2030 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
2032 * expr.c (store_field): In the bitfield case, if the value comes from
2033 a function call and is of an aggregate type returned in registers, do
2034 not modify the field mode; extract the value in all cases if the mode
2035 is BLKmode and the size is not larger than a word.
2037 2017-01-26 Richard Biener <rguenther@suse.de>
2039 * tree-vrp.c (vrp_visit_assignment_or_call): Use set_defs_to_varying.
2041 Backport from mainline
2042 2016-01-10 Richard Biener <rguenther@suse.de>
2044 PR tree-optimization/79034
2045 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
2046 Propagate out degenerate PHIs in the joiner.
2048 2016-12-13 Richard Biener <rguenther@suse.de>
2051 * tree.c (cst_and_fits_in_hwi): Look if the actual value fits.
2052 * tree-object-size.c (compute_builtin_object_size): Use
2054 * tree-data-ref.c (initialize_matrix_A): Remove excess assert.
2056 2017-01-26 Richard Biener <rguenther@suse.de>
2058 Backport from mainline
2059 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
2061 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2063 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
2066 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
2067 for long calls with APCS frame and VFP.
2069 2017-01-24 Uros Bizjak <ubizjak@gmail.com>
2073 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
2075 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
2077 2017-01-23 Martin Liska <mliska@suse.cz>
2079 Backport from mainline
2080 2017-01-20 Martin Liska <mliska@suse.cz>
2083 * tree-profile.c (init_ic_make_global_vars): Do not call
2085 (gimple_init_gcov_profiler): Likewise.
2087 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
2089 Backport from mainline
2090 2016-12-29 Gerald Pfeifer <gerald@pfeifer.com>
2092 * doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses
2094 * doc/passes.texi (Cilk Plus Transformation): Ditto.
2095 * doc/generic.texi (Statements for C++): Ditto, and use @uref.
2097 2017-01-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2099 Backport from mainline
2100 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2102 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
2103 UNSPEC_VSX__XXSPLTD to require special splat handling.
2105 2017-01-20 Wilco Dijkstra <wdijkstr@arm.com>
2107 Backport from mainline
2109 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
2110 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
2111 (EH_RETURN_HANDLER_RTX): New define.
2112 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
2113 Force frame pointer in EH return functions.
2114 (aarch64_expand_epilogue): Add barrier for eh_return.
2115 (aarch64_final_eh_return_addr): Remove.
2116 (aarch64_eh_return_handler_rtx): New function.
2117 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
2119 (aarch64_eh_return_handler_rtx): New prototype.
2121 2017-01-20 Richard Earnshaw <rearnsha@arm.com>
2123 Backported from mainline
2124 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
2126 PR rtl-optimization/79121
2127 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
2128 of the inner type when shifting an extended value.
2130 2017-01-20 Martin Liska <mliska@suse.cz>
2132 Backport from mainline
2133 2017-01-13 Martin Liska <mliska@suse.cz>
2136 * function.c (set_cfun): Add new argument force.
2137 * function.h (set_cfun): Likewise.
2138 * ipa-inline-transform.c (inline_call): Use the function when
2139 strict alising from is dropped for function we inline to.
2141 2017-01-20 Martin Liska <mliska@suse.cz>
2143 Backport from mainline
2144 2017-01-17 Martin Liska <mliska@suse.cz>
2147 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
2148 assumption and add comment.
2150 2017-01-19 Richard Biener <rguenther@suse.de>
2152 PR tree-optimization/72488
2153 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
2154 sure to restore SSA info.
2156 2017-01-17 Jakub Jelinek <jakub@redhat.com>
2159 * dwarf2out.c (field_byte_offset): Restore the
2160 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
2161 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
2162 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
2165 2017-01-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
2167 Backport from mainline
2168 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2170 PR rtl-optimization/78617
2171 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
2172 registers, also setting hard registers mapped to pseudo registers.
2174 2017-01-13 Christophe Lyon <christophe.lyon@linaro.org>
2176 Backport from mainline r244320.
2177 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
2180 * config/arm/arm.c (legitimize_pic_address): Handle reference to
2182 (arm_assemble_integer): Likewise.
2184 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2186 Backport from mainline
2187 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2190 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
2191 element-reversing loads and stores as not swappable.
2193 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
2195 * config/i386/i386.c (memory_address_length): Increase len
2196 only when rip_relative_addr_p returns false.
2198 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
2200 Backport from mainline
2201 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
2204 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
2206 (input_varpool_node): Unpack dynamically_initialized bit.
2207 * lto-streamer.h (LTO_minor_version): Bump version.
2209 2017-01-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2211 Backport from mainline
2212 2016-12-30 Michael Meissner <meissner@linux.vnet.ibm.com>
2215 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
2216 assertions. Add support for doing the signbit if the IEEE 128-bit
2217 floating point value is in a GPR.
2218 * config/rs6000/rs6000.md (Fsignbit): Delete.
2219 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
2220 Update the length attribute if the value is in a GPR.
2221 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
2222 the sign or zero extension instruction, since the value is always
2224 (signbit<mode>2_dm2): Delete using <Fsignbit>.
2226 2017-01-10 Martin Liska <mliska@suse.cz>
2228 Backport from mainline
2229 2017-01-09 Martin Liska <mliska@suse.cz>
2232 * gcc.c (driver_handle_option): Handle OPT_E and set
2234 (lookup_compiler): Do not show error message with have_E.
2236 2017-01-10 Martin Liska <mliska@suse.cz>
2238 Backport from mainline
2239 2017-01-05 Martin Liska <mliska@suse.cz>
2242 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
2245 2017-01-10 Thomas Schwinge <thomas@codesourcery.com>
2247 PR tree-optimization/78024
2248 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags.
2250 Backport trunk r239086:
2251 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
2253 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
2254 size to DImode boundary.
2255 (nvptx_propagate): Likewise.
2257 2017-01-10 Chung-Ju Wu <jasonwucj@gmail.com>
2259 Backport from mainline
2260 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
2263 * config/nds32/nds32.md (casesi): Don't access the operands array
2266 2017-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2268 Backport from mainline
2269 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
2271 * config.gcc: Add aarch64-*-freebsd* support.
2272 * config.host: Likewise.
2273 * config/aarch64/aarch64-freebsd.h: New file.
2274 * config/aarch64/t-aarch64-freebsd: Ditto.
2276 2017-01-09 Bill Seurer <seurer@linux.vnet.ibm.com>
2278 Backport from mainline
2279 2016-12-21 Bill Seurer <seurer@linux.vnet.ibm.com>
2282 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2283 -fasynchronous-unwind-tables option when -fsanitize=address is
2286 2017-01-09 Andreas Tobler <andreast@gcc.gnu.org>
2288 Backport from mainline
2289 2016-09-19 Richard Biener <rguenther@suse.de>
2291 * dwarf2out.c (dwarf2out_late_global_decl): When being during the
2292 early debug phase do not add locations but only const value
2295 Backport from mainline
2296 2016-10-20 Richard Biener <rguenther@suse.de>
2298 * cgraphunit.c (analyze_functions): Set node->definition to
2299 false to signal symbol removal to debug_hooks->late_global_decl.
2301 2017-01-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2303 Backport from mainline
2304 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2306 PR rtl-optimization/78255
2307 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
2308 NO_FUNCTION_CSE is true.
2310 2017-01-06 Wilco Dijkstra <wdijkstr@arm.com>
2312 Backport from mainline
2313 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
2316 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
2317 Remove partial overlap check for shift by 1.
2318 (ashldi3_neon): Likewise.
2320 2017-01-05 Kelvin Nilsen <kelvin@gcc.gnu.org>
2322 Backport from mainline
2323 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
2325 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
2326 comments to explain why certain error messages make mention of
2327 undocumented options.
2328 (rs6000_invalid_builtin): Change error messages to replace mention
2329 of undocumented options with mention of the -mcpu=power9 option
2330 that enables those undocumented options.
2331 * config/rs6000/rs6000.h: Add macro definition of MASK_FLOAT128
2332 and change the macro definition of RS6000_BTM_FLOAT128 to correct
2333 an error that was discovered during the development of this patch.
2334 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
2335 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
2336 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
2337 descriptions of built-in functions so that they depend on
2338 -mcpu=power9 instead of on the corresponding undocumented flags.
2339 * doc/invoke.texi (Option Summary): Remove all mention of newly
2341 (IBM RS/6000 and PowerPC Options): Likewise.
2342 * doc/md.texi (Constraints for Particuliar Machines): Remove all
2343 mention of newly undocumented flags.
2345 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2347 Backport from mainline
2348 2016-12-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2350 * varasm.c (build_constant_desc): Use the alignment of the var
2351 decl instead of the original expression.
2353 2017-01-04 Richard Biener <rguenther@suse.de>
2355 Backport from mainline
2356 2016-05-11 Richard Biener <rguenther@suse.de>
2358 PR tree-optimization/71055
2359 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
2360 sth with precision not equal to access size verify we don't chop
2363 2017-01-03 Martin Liska <mliska@suse.cz>
2365 Backport from mainline
2366 2016-12-21 Jakub Jelinek <jakub@redhat.com>
2367 Martin Liska <mliska@suse.cz>
2370 * gcc.c (driver::build_option_suggestions): Do not add
2371 -fsanitize=all as a suggestion candidate.
2373 2017-01-03 Martin Liska <mliska@suse.cz>
2375 Backport from mainline
2376 2016-12-22 Martin Liska <mliska@suse.cz>
2378 PR tree-optimization/78886
2379 * tree-ssa-strlen.c (handle_builtin_malloc): Return when LHS
2382 2017-01-03 Martin Liska <mliska@suse.cz>
2384 Backport from mainline
2385 2016-12-13 Martin Liska <mliska@suse.cz>
2387 PR tree-optimization/78428
2388 * expr.c (store_constructor_field): Add new arguments to the
2390 (store_constructor): Set up bitregion_end and add
2391 gcc_unreachable to fields that have either non-constant size
2394 2016-12-27 Jakub Jelinek <jakub@redhat.com>
2396 PR translation/78922
2397 * config/i386/stringop.opt: Remove.
2399 2016-12-21 Jakub Jelinek <jakub@redhat.com>
2401 Backported from mainline
2402 2016-12-13 Jakub Jelinek <jakub@redhat.com>
2405 * ipa-pure-const.c (cdtor_p): Return true for
2406 DECL_STATIC_{CON,DE}STRUCTOR even when it is
2407 DECL_LOOPING_CONST_OR_PURE_P.
2409 2016-12-21 Jakub Jelinek <jakub@redhat.com>
2411 * BASE-VER: Set to 6.3.1.
2413 2016-12-21 Release Manager
2415 * GCC 6.3.0 released.
2417 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
2420 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_CLZS
2421 and IX86_BUILTIN_CTZS.
2422 (bdesc_args): Add __builtin_clzs and __builtin_ctzs.
2423 (ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
2425 2016-12-14 Wilco Dijkstra <wdijkstr@arm.com>
2426 Jakub Jelinek <jakub@redhat.com>
2429 * config/aarch64/aarch64.c (aarch64_classify_symbol): Merge large
2430 model checks into switch.
2432 2016-12-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2434 Backport from mainline
2435 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2437 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
2439 2016-12-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2441 Backport from mainline
2442 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2444 PR tree-optimization/77673
2445 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
2446 (init_symbolic_number): Initialize src field from src parameter.
2447 (perform_symbolic_merge): Select most dominated statement as the
2448 source statement. Set src field of resulting n structure from the
2449 input src with the lowest address.
2450 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
2451 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
2452 of load from src field rather than insertion statement. Cancel
2453 optimization if statement analyzed is not dominated by the insertion
2455 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
2456 dominance information.
2458 2016-12-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2460 Backport from mainline
2461 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
2464 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
2465 V2DImode elements are SUBREG's convert the result into DImode
2466 rather than failing in emit_move_insn.
2468 2016-12-13 Iain Sandoe <iain@codesourcery.com>
2470 Backport from mainline
2471 2016-12-11 Iain Sandoe <iain@codesourcery.com>
2473 PR rtl-optimization/71496
2474 * config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
2475 copyable. (load_macho_picbase_di, reload_macho_picbase_si,
2476 reload_macho_picbase_di): Likewise.
2478 2016-12-12 Bernd Schmidt <bschmidt@redhat.com>
2480 Backport from mainline
2481 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
2483 PR rtl-optimization/77309
2484 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
2485 don't assume an equality comparison for plain COMPARE.
2486 (simplify_comparison): Pass a more accurate code to
2487 make_compound_operation.
2489 2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2491 Backport from mainline
2492 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
2495 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
2496 in save register mask if it is needed.
2498 2016-12-11 Iain Sandoe <iain@codesourcery.com>
2500 Backport from mainline
2501 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2502 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2505 * config.in: Regenerate
2506 * config/darwin-driver.c (darwin_driver_init): Emit a version string
2508 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
2509 * config/darwin.opt(asm_macosx_version_min): New.
2510 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
2511 * configure: Regenerate
2512 * configure.ac: Check for mmacosx-version-min handling.
2514 2016-12-11 Iain Sandoe <iain@codesourcery.com>
2516 Backport from mainline
2517 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2520 * config/i386/i386.c (ix86_code_end): Note that we emitted code
2521 where the function might otherwise appear empty for picbase thunks.
2522 (ix86_output_function_epilogue): If we find a zero-sized function
2523 assume that reaching it is UB and trap. If we find a trailing label
2525 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
2526 find a zero-sized function assume that reaching it is UB and trap.
2527 If we find a trailing label, append a nop.
2529 2016-12-11 Iain Sandoe <iain@codesourcery.com>
2531 Backport from mainline
2532 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2535 * config/darwin-sections.def (picbase_thunk_section): New.
2536 * config/darwin.c (darwin_init_sections): Set up picbase thunk
2537 section. (darwin_rodata_section, darwin_objc2_section,
2538 machopic_select_section, darwin_asm_declare_constant_name,
2539 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
2540 coalesced with newer linkers.
2541 (darwin_override_options): Decide on usage of coalesed sections
2542 on the basis of the target linker version.
2543 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
2544 * config/darwin.opt (mtarget-linker): New.
2545 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
2546 a coalesced section, instead use a thunks section.
2548 Backport from mainline
2549 2016-11-28 Iain Sandoe <iain@codesourcery.com>
2552 * configure.ac (with_ld64): Use portable method to extract the
2553 major part of the version number.
2554 * configure: Regenerated.
2556 Backport from mainline
2557 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2560 * configure.ac (with-ld64): New var, set for Darwin, set on
2561 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
2562 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New,
2564 * config/darwin10.h(DEF_LD64): Update for this target version.
2565 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic
2566 test. (DEF_LD64): Update for this target version.
2567 * configure: Regenerated.
2568 * config.in: Regenerated.
2570 Backport from mainline
2571 2016-11-27 Iain Sandoe <iain@codesourcery.com>
2574 * config/darwin.c (imachopic_indirection_name): Make data
2575 section indirections linker-visible.
2576 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
2577 constant labels linker-visible.
2579 2016-12-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
2581 Backport from mainline
2582 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
2585 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
2586 being live in the function and lr needing to be saved. Distinguish
2587 between already saved pushable registers and registers to push.
2588 Check for LR being an available pushable register.
2590 2016-12-09 Nathan Sidwell <nathan@acm.org>
2593 * convert.c (convert_to_integer_1): Maybe fold conversions to
2594 integral types with fewer bits than its mode.
2596 2016-12-09 Richard Biener <rguenther@suse.de>
2598 Backport from mainline
2599 2016-11-09 Richard Biener <rguenther@suse.de>
2601 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2602 Look at the DR_BASE_ADDRESS object for forcing alignment.
2604 2016-11-07 Richard Biener <rguenther@suse.de>
2606 PR tree-optimization/78189
2607 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
2608 alignment computation.
2610 2016-12-09 Richard Biener <rguenther@suse.de>
2612 Backport from mainline
2613 2016-11-28 Richard Biener <rguenther@suse.de>
2615 PR tree-optimization/78542
2616 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
2619 2016-11-23 Richard Biener <rguenther@suse.de>
2621 PR tree-optimization/78482
2622 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
2623 (remove_forwarder_block_with_phi): When merging with a loop
2624 header creates a new latch reset number of iteration information
2627 2016-11-23 Richard Biener <rguenther@suse.de>
2630 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
2631 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
2633 2016-11-11 Richard Biener <rguenther@suse.de>
2635 PR tree-optimization/71575
2636 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
2639 2016-11-07 Richard Biener <rguenther@suse.de>
2641 PR tree-optimization/78224
2642 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
2643 Split the fallthru edge in case its successor may have PHIs.
2645 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
2646 Richard Biener <rguenther@suse.de>
2650 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
2652 2016-09-20 Richard Biener <rguenther@suse.de>
2654 PR tree-optimization/77646
2655 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
2658 2016-12-07 Segher Boessenkool <segher@kernel.crashing.org>
2660 Backport from mainline
2661 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
2664 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
2665 return early if !optional_tbtab.
2667 2016-12-07 Jakub Jelinek <jakub@redhat.com>
2669 Backported from mainline
2670 2016-11-28 Jakub Jelinek <jakub@redhat.com>
2673 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
2674 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
2675 note has been removed.
2676 * postreload.c (reload_combine_recognize_pattern): If
2677 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
2679 PR rtl-optimization/78546
2680 * simplify-rtx.c (neg_const_int): When negating most negative
2681 number in mode wider than HOST_BITS_PER_WIDE_INT, use
2682 simplify_const_unary_operation to produce CONST_DOUBLE or
2684 (simplify_plus_minus): Hanlde the case where neg_const_int
2685 doesn't return a CONST_INT.
2688 * tree-nested.c (convert_local_reference_stmt): After adding
2689 shared (FRAME.NN) clause to omp parallel, task or target,
2690 add it also to all outer omp parallel, task or target constructs.
2692 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2695 * omp-low.c (build_outer_var_ref): Change lastprivate argument
2696 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
2697 on worksharing constructs, treat it like clauses on simd construct.
2699 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
2700 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
2701 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
2702 of true as last argument to build_outer_var_ref.
2704 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2707 * expmed.c (expand_divmod): Use wide_int for computation of
2708 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
2709 Use size <= HOST_BITS_PER_WIDE_INT instead of
2710 HOST_BITS_PER_WIDE_INT >= size.
2712 2016-11-21 Jakub Jelinek <jakub@redhat.com>
2715 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
2716 for tmp simd array if DECL_NAME (parm) is NULL.
2718 2016-11-18 Jakub Jelinek <jakub@redhat.com>
2721 * multiple_target.c (get_attr_len): Start with argnum and increment
2722 argnum on every arg. Use strchr in a loop instead of counting commas
2724 (get_attr_str): Increment argnum for every comma in the string.
2725 (separate_attrs): Use for instead of while loop, simplify.
2726 (expand_target_clones): Rename defenition argument to definition.
2727 Free attrs and attr_str even when diagnosing errors. Temporarily
2728 change input_location around targetm.target_option.valid_attribute_p
2729 calls. Don't emit warning or errors if that function fails.
2731 2016-11-16 Jakub Jelinek <jakub@redhat.com>
2733 PR rtl-optimization/78378
2734 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
2735 inner only if pos is 0. Fix up formatting.
2738 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
2739 that loop->header == body_bb if broken_loop.
2741 2016-11-07 Jakub Jelinek <jakub@redhat.com>
2744 * dse.c (dse_step5): Call scan_reads even if just
2745 insn_info->frame_read. Improve and fix dump file messages.
2748 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
2749 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
2751 2016-11-04 Jakub Jelinek <jakub@redhat.com>
2754 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
2755 doesn't have rtl set.
2757 2016-10-29 Jakub Jelinek <jakub@redhat.com>
2759 PR rtl-optimization/77919
2760 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
2761 into memory if both modes are complex and their inner modes have the
2762 same precision. If the two modes are different complex modes, convert
2763 each part separately and generate a new CONCAT.
2765 2016-10-28 Jakub Jelinek <jakub@redhat.com>
2767 PR rtl-optimization/77919
2768 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
2769 MEM if mode1 is not a complex mode.
2771 2016-10-27 Jakub Jelinek <jakub@redhat.com>
2774 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
2777 2016-10-26 Jakub Jelinek <jakub@redhat.com>
2778 Martin Liska <mliska@suse.cz>
2781 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
2782 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
2783 on outer context if any.
2785 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2788 * ubsan.c (ubsan_ids): New GTY(()) array.
2789 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
2790 instead of static local counters.
2792 2016-09-22 Jakub Jelinek <jakub@redhat.com>
2795 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
2796 for all IFN_GOMP_SIMD_* internal fns, not just for
2797 IFN_GOMP_SIMD_ORDERED_*.
2799 2016-09-20 Jakub Jelinek <jakub@redhat.com>
2802 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
2803 cast to void * if the cast is from some other pointer type.
2805 2016-09-19 Jakub Jelinek <jakub@redhat.com>
2806 Jan Hubicka <jh@suse.cz>
2809 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
2810 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
2811 Call ultimate_alias_target just once, not up to 4 times.
2813 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
2815 Backport from mainline
2816 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
2818 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
2819 general register with general register or ARM constant into SP
2822 2016-12-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2824 Backport from mainline
2825 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2826 Stefan Freudenberger <stefan@reservoir.com>
2828 PR tree-optimization/78646
2829 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
2830 addition used for the memory base expression should have the type
2833 2016-12-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2835 Backport from mainline
2836 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2837 Michael Meissner <meissner@linux.vnet.ibm.com>
2840 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
2841 reg+reg addressing for TImode.
2842 (rs6000_legitimate_address_p): Only allow register indirect
2843 addressing for TImode, even without TARGET_QUAD_MEMORY.
2845 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2847 Backport from mainline
2848 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2850 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
2851 (CCVHUANY): Remove modes.
2852 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
2854 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
2855 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
2857 (s390_branch_condition_mask): Adjust to use the new cc consumer
2858 modes. The new modes allow for proper reversal in the middle-end.
2859 (s390_expand_vec_compare_cc): Determine the proper cc producer and
2860 consumer modes for a comparison.
2861 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
2862 throughout the file.
2863 * config/s390/vx-builtins.md: Likewise.
2865 2016-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2867 Backport from mainline
2868 2016-12-01 Alan Modra <amodra@gmail.com>
2870 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
2871 look inside UNSPEC_VSX_XXSPLTW vec.
2873 2016-12-01 Michael Meissner <meissner@linux.vnet.ibm.com>
2875 Back port from trunk
2876 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
2879 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
2880 the appropriate checks for SFmode/DFmode load/stores in GPR
2882 (fusion_addis_mem_combo_store): Likewise.
2883 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
2884 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
2885 d-form instructions for traditional Altivec registers.
2886 (emit_fusion_p9_load): Likewise.
2887 (emit_fusion_p9_store): Likewise.
2888 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
2889 early clobber from scratch register. Do not match if the register
2890 being stored is the scratch register.
2891 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
2892 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
2893 instructions for traditional Altivec registers.
2894 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
2895 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2896 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
2898 2016-12-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2900 Backport from mainline
2901 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2905 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2906 (new_temp_expr_table): Initialise reg_vars_cnt.
2907 (free_temp_expr_table): Release reg_vars_cnt.
2908 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2910 (find_replaceable_in_bb): Use the above to record register variable
2911 write occurrences and cancel replacement across them.
2913 2016-11-29 Kaz Kojima <kkojima@gcc.gnu.org>
2915 Backported from mainline
2916 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
2919 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
2920 instead of force_reg.
2921 (sh_expand_setmem): Likewise.
2923 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2926 * tree.h (wi::fits_to_boolean_p): New predicate.
2927 (wi::fits_to_tree_p): Use it for boolean types.
2928 * tree.c (int_fits_type_p): Likewise.
2930 2016-11-24 Martin Liska <mliska@suse.cz>
2932 Backported from mainline
2933 2016-11-22 Martin Liska <mliska@suse.cz>
2936 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
2937 (sem_function::get_hash): Use the new field.
2938 (sem_function::parse): Remove an argument from ctor.
2939 (sem_variable::parse): Likewise.
2940 (sem_variable::get_hash): Use the new field.
2941 (sem_item_optimizer::read_section): Use new ctor and set hash.
2942 * ipa-icf.h: _hash is removed from sem_item::sem_item,
2943 sem_variable::sem_variable, sem_function::sem_function.
2945 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2947 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
2948 (kxnor<mode>): Return "#" for alternative 0.
2950 2016-11-23 Richard Biener <rguenther@suse.de>
2952 Backport from mainline
2953 2016-11-23 Richard Biener <rguenther@suse.de>
2956 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
2959 2016-11-17 Richard Biener <rguenther@suse.de>
2962 * fold-const.c (negate_expr_p): Fix multiplication case.
2964 2016-11-16 Richard Biener <rguenther@suse.de>
2967 * gimplify.c (gimplify_function_tree): Do not instrument
2968 GNU extern inline functions.
2970 2016-11-07 Richard Biener <rguenther@suse.de>
2972 PR tree-optimization/78228
2973 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
2976 2016-11-04 Richard Biener <rguenther@suse.de>
2979 * loop-invariant.c (find_exits): Record entering inner
2980 loops as possibly exiting to handle infinite sub-loops.
2981 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
2982 (fill_always_executed_in_1): Honor infinite child loops.
2984 2016-10-06 Richard Biener <rguenther@suse.de>
2986 PR tree-optimization/77855
2987 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
2988 instead of removing the current item while iterating over the set
2991 2016-11-22 Walter Lee <walt@tilera.com>
2993 Backport from mainline
2994 2016-11-22 Walter Lee <walt@tilera.com>
2996 * config/tilegx/tilegx.md (trap): New pattern.
2997 * config/tilepro/tilepro.md (trap): Likewise.
2999 2016-11-22 Walter Lee <walt@tilera.com>
3001 Backport from mainline
3002 2016-11-22 Walter Lee <walt@tilera.com>
3004 * config/tilegx/tilegx.md (*zero_extract): Use
3005 define_insn_and_split instead of define_insn; Handle pos + size >
3007 (*sign_extract): Likewise.
3009 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3011 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3014 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3016 Backport from mainline
3017 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3020 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
3021 aarch64_simd_shift_imm_<mode> predicate for operand 1.
3022 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
3023 to restrict them to an appropriate range and add FAIL check if the
3024 region they specify is out of range. Delete useless constraint
3026 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
3027 2 and 3 to restrict their range and add pattern predicate.
3029 2016-11-18 Walter Lee <walt@tilera.com>
3031 Backport from mainline
3032 2016-11-18 Walter Lee <walt@tilera.com>
3034 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
3035 end-of-bundle marker for consecutive barriers.
3037 2016-11-18 Walter Lee <walt@tilera.com>
3039 Backport from mainline
3040 2016-11-18 Walter Lee <walt@tilera.com>
3042 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
3044 2016-11-15 Matthias Klose <doko@ubuntu.com>
3046 * doc/install.texi: Move the 'Overriding configure test results'
3047 subsub section to the 'Cross-Compiler-Specific Options' sub section.
3049 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
3051 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
3052 original function needs a static chain.
3054 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
3057 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
3058 when calculating operand 2.
3059 (rotate to rotatex zext splitter): Ditto.
3061 2016-11-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
3064 * config/s390/s390.md ("extzv", "*extzv<mode>_zEC12")
3065 ("*extzv<mode>_z10"): Check validity of zero_extend arguments.
3067 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
3070 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
3071 operand 0 as earlyclobber.
3072 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
3074 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
3077 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
3079 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
3080 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
3082 2016-11-06 Jack Howarth <howarth.at.gcc@gmail.com>
3085 * incpath.c: (remove_dup(): Also silently ignore EPERM.
3087 2016-11-07 Richard Biener <rguenther@suse.de>
3090 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
3093 2016-11-03 Martin Liska <mliska@suse.cz>
3095 Backport from mainline
3096 2016-08-12 Martin Liska <mliska@suse.cz>
3097 Adam Fineman <afineman@afineman.com>
3099 * gcov.c (process_file): Create .gcov file when .gcda
3102 2016-11-03 Richard Biener <rguenther@suse.de>
3104 Backport from mainline
3105 2016-09-29 Richard Biener <rguenther@suse.de>
3107 PR tree-optimization/77768
3108 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
3109 with stores to a place we know has a constant value.
3110 * tree-vrp.c (set_defs_to_varying): New helper avoiding
3111 writing to vr_const_varying.
3112 (vrp_initialize): Call it.
3113 (vrp_visit_stmt): Likewise.
3114 (evrp_dom_walker::before_dom_children): Likewise.
3115 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3116 Handle stores to readonly memory when removing redundant stores.
3118 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
3120 Backport from mainline
3121 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
3123 * explow.c (validize_mem): Do not modify the argument in-place.
3125 2016-11-02 Will Schmidt <will_schmidt@vnet.ibm.com>
3128 2016-10-26 Will Schmidt <will_schmidt@vnet.ibm.com>
3131 * gimplify.c (gimplify_init_constructor): Move emit of constructor
3132 assignment to earlier in the if/else logic.
3134 2016-11-02 Richard Biener <rguenther@suse.de>
3136 Backport from mainline
3137 2016-11-02 Richard Biener <rguenther@suse.de>
3139 PR tree-optimization/78047
3140 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
3141 fake field at offset zero conservatively regarding to may_have_pointers.
3143 2016-10-07 Richard Biener <rguenther@suse.de>
3145 PR tree-optimization/77879
3146 * tree-ssa-structalias.c (handle_const_call): Properly handle
3148 (handle_pure_call): Likewise.
3150 2016-10-06 Richard Biener <rguenther@suse.de>
3152 PR tree-optimization/77839
3153 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
3156 2016-09-27 Richard Biener <rguenther@suse.de>
3158 PR tree-optimization/77745
3159 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3160 When removing redundant stores make sure to check compatibility
3161 of the TBAA state for downstream accesses.
3162 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
3163 value-numbering virtual operands for store matches.
3165 2016-09-21 Richard Biener <rguenther@suse.de>
3167 PR tree-optimization/77648
3168 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
3170 (make_transitive_closure_constraints): Adjust comment.
3171 (make_any_offset_constraints): New function.
3172 (handle_rhs_call): Make sure to first expand a pointer to all
3173 subfields before transitively closing it.
3174 (handle_const_call): Likewise. Properly expand returned
3176 (handle_pure_call): Likewise.
3178 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
3181 * config/pa/pa.md: Add new shift/add patterns to handle
3182 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
3184 2016-11-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3186 Backport from mainline
3187 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3189 PR rtl-optimization/78038
3190 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
3191 be deduced to set REG through the RTL structure.
3192 (make_defs_and_copies_lists): Return false on a failing get_defs call.
3194 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
3196 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
3197 (MALLOC_ABI_ALIGNMENT): Define.
3199 2016-10-28 Richard Biener <rguenther@suse.de>
3203 * fold-const.c (make_bit_field_ref): Only adjust alias set
3204 when the original alias set was zero.
3206 2016-10-26 Uros Bizjak <ubizjak@gmail.com>
3208 Backport from mainline
3209 2016-10-21 Jakub Jelinek <jakub@redhat.com>
3212 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
3213 and tree-ssanames.h.
3214 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
3215 with INTEGER_CST argument.
3216 (ix86_gimple_fold_builtin): New function.
3217 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
3219 Backport from mainline
3220 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
3223 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
3224 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
3225 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
3226 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
3227 __builtin_ia32_lzcnt_u16.
3228 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
3229 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
3230 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
3231 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
3232 (bmi_tzcnt_<mode>): New expander.
3233 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
3234 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
3235 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
3236 (lzcnt_<mode>): New expander.
3237 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
3238 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
3239 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
3240 (UINT64_FTYPE_UINT64): New.
3241 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
3242 (__builtin_ia32_lzcnt_u16): New description.
3243 (__builtin_ia32_lzcnt_u32): Ditto.
3244 (__builtin_ia32_lzcnt_u64): Ditto.
3245 (__builtin_ctzs): Remove description.
3246 (__builtin_ia32_tzcnt_u16): New description.
3247 (__builtin_ia32_tzcnt_u32): Ditto.
3248 (__builtin_ia32_tzcnt_u64): Ditto.
3249 * config/i386/i386.c (ix86_expand_args_builtin): Handle
3250 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
3252 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
3254 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
3255 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
3257 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
3259 Backport from mainline
3260 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3262 PR tree-optimization/77550
3263 * tree-vect-stmts.c (create_array_ref): Change parameters.
3264 (get_group_alias_ptr_type): New function.
3265 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
3267 2016-10-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3269 Backport from mainline
3270 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3272 PR tree-optimization/77916
3273 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
3274 Don't allow a MINUS_EXPR for pointer arithmetic for either known
3276 (record_increment): Increments of -1 for unknown strides just use
3277 a multiply initializer like other negative values.
3278 (analyze_increments): Remove stopgap solution for -1 increment
3279 applied to pointer arithmetic.
3280 (insert_initializers): Requirement of initializer for -1 should be
3281 based on pointer-typedness of the candidate basis.
3283 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
3285 * config/sparc/sparc.md (cpu_feature): Minor tweak.
3286 (enabled): Likewise.
3287 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
3288 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
3289 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
3290 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
3291 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
3292 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
3294 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
3296 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
3297 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
3299 2016-10-19 Uros Bizjak <ubizjak@gmail.com>
3302 * config/i386/i386.c (legitimize_tls_address)
3303 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
3304 convert dest to Pmode if different than Pmode.
3306 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
3308 Backport from mainline
3309 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
3311 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
3314 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3316 Backport from mainline
3317 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3319 PR tree-optimization/77937
3320 * gimple-ssa-strength-reduction.c (analyze_increments): Use
3321 POINTER_TYPE_P on the candidate type to determine whether
3322 candidates in this chain require pointer arithmetic.
3324 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3326 PR tree-optimization/77937
3327 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
3328 to infinite when we have a pointer with an increment of -1.
3330 2016-10-17 Martin Liska <mliska@suse.cz>
3332 Backported from mainline
3333 2016-10-13 Martin Liska <mliska@suse.cz>
3335 PR tree-optimization/77943
3336 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
3337 a different EH landing pads.
3339 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
3342 Backport from mainline
3343 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
3345 * tree.h (build_complex_type): Add second parameter with default.
3346 * tree.c (build_complex_type): Add NAMED second parameter and adjust
3347 recursive call. Create a TYPE_DECL only if NAMED is true.
3348 (build_common_tree_nodes): Pass true in calls to build_complex_type.
3350 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
3352 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
3353 constants in CONST_VECTORs.
3355 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
3357 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
3358 register as destination of bmask.
3359 (vector_init_bshuffle): Likewise.
3360 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3361 (bmaskdi_vis): Enable only in 64-bit mode.
3363 2016-10-13 Andrew Senkevich <andrew.senkevich@intel.com>
3366 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3367 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
3368 (ix86_handle_option): Deleted handle of OPT_mpcommit.
3369 * config.gcc: Deleted pcommitintrin.h
3370 * config/i386/pcommitintrin.h: Deleted file.
3371 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
3372 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
3374 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
3376 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
3377 (PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
3378 (ix86_option_override_internal): Deleted handle of option.
3379 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
3380 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
3381 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
3382 (pcommit): Deleted instruction.
3383 * config/i386/i386.opt: Mention -mpcommit deprecation.
3384 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
3386 2016-10-13 Tom de Vries <tom@codesourcery.com>
3389 2016-10-11 Tom de Vries <tom@codesourcery.com>
3391 backport from trunk:
3392 2016-10-11 Tom de Vries <tom@codesourcery.com>
3395 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
3398 2016-10-11 Tom de Vries <tom@codesourcery.com>
3400 backport from trunk:
3401 2016-10-11 Tom de Vries <tom@codesourcery.com>
3404 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
3407 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
3409 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
3411 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
3414 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
3415 Remove wrong assert.
3416 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
3417 Use <round_constraint> as operand 1 constraint.
3419 2016-10-06 James Clarke <jrtc27@jrtc27.com>
3420 Eric Botcazou <ebotcazou@adacore.com>
3423 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
3424 (classify_registers): Don't set it
3425 (function_arg_slotno): Don't initialize and test it. Tidy up.
3427 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
3429 Backport from mainline
3430 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
3432 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
3433 ext_level before calling CPUID with 0x80000008.
3435 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
3438 * config/i386/cpuid.h (__get_cpuid_count): New.
3439 (__get_cpuid): Rename __level to __leaf.
3441 2016-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
3443 Back port from trunk
3445 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3448 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
3449 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
3450 instructions when you want to invert the test.
3451 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
3452 correct order for XXSEL.
3453 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
3454 for using XSCMP{EQ,GT,GE}DP.
3456 2016-09-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3457 Alan Modra <amodra@gmail.com>
3459 Backport from mainline
3460 2016-07-01 Alan Modra <amodra@gmail.com>
3462 PR rtl-optimization/71709
3463 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
3464 being set, not referenced.
3466 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
3468 Backport from mainline
3469 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
3471 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
3474 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
3476 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
3477 * configure: Regenerate.
3479 2016-09-27 Richard Biener <rguenther@suse.de>
3481 Backport from mainline
3482 2016-09-01 Richard Biener <rguenther@suse.de>
3485 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
3486 check whether the result fits the desired result type.
3488 2016-09-19 Richard Biener <rguenther@suse.de>
3490 PR tree-optimization/77514
3491 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3492 search for folded stmt.
3494 2016-09-15 Richard Biener <rguenther@suse.de>
3496 PR tree-optimization/77514
3497 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3498 only forced_stmts sequence.
3500 2016-09-15 Richard Biener <rguenther@suse.de>
3503 * fold-const.c (split_tree): Do not split constant ~X.
3505 2016-09-19 Richard Biener <rguenther@suse.de>
3508 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3509 proper niter to bound the loops.
3511 2016-09-22 Richard Biener <rguenther@suse.de>
3514 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3517 2016-09-25 Uros Bizjak <ubizjak@gmail.com>
3519 Backport from mainline
3520 2016-09-21 Richard Biener <rguenther@suse.de>
3521 Jakub Jelinek <jakub@redhat.com>
3523 PR tree-optimization/77621
3524 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3525 group at non-vectorizable stmts.
3527 Backport from mainline
3528 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
3531 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
3532 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
3533 (ix86_add_stmt_cost): Penalize DFmode vector operations
3534 for !TARGET_VECTORIZE_DOUBLE.
3536 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3538 Backport from 2016-09-22 trunk r240388.
3540 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3541 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3543 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3545 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
3547 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
3549 Backport from 2016-09-21 trunk r240306.
3552 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
3553 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
3555 2016-09-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
3557 Backport from mainline
3558 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
3560 * lra-constraints.c (match_reload): Pass information about other
3561 output operands. Create new unique register value if matching input
3562 operand shares same register value as output operand being considered.
3563 (curr_insn_transform): Record output operands already processed.
3565 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
3567 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3568 parameters for functions taking long long arguments.
3570 2016-09-16 David Edelsohn <dje.gcc@gmail.com>
3572 Backported from mainline
3573 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
3576 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3578 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3579 Eric Botcazou <ebotcazou@adacore.com>
3582 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3583 through into expand_addsub_overflow after expand_neg_overflow.
3585 2016-09-16 Jakub Jelinek <jakub@redhat.com>
3587 Backported from mainline
3588 2016-09-14 Jakub Jelinek <jakub@redhat.com>
3591 * tsan.c: Include target.h.
3592 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
3593 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
3594 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
3595 BUILT_IN_ATOMIC_TEST_AND_SET entries.
3596 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
3598 2016-09-08 Jakub Jelinek <jakub@redhat.com>
3601 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
3602 OMP_CLAUSE_SAFELEN_EXPR.
3604 2016-09-06 Jakub Jelinek <jakub@redhat.com>
3607 * config/i386/i386.c (ix86_expand_builtin): For builtin with
3608 unsupported or unknown ISA, use expand_call.
3610 2016-09-06 Uros Bizjak <ubizjak@gmail.com>
3612 Backport from mainline
3613 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
3615 PR rtl-optimization/77452
3616 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
3617 inner-mode reference to a CONST_VECTOR constant in the constant pool.
3619 2016-09-01 Jakub Jelinek <jakub@redhat.com>
3621 Backported from mainline
3622 2016-08-30 Jakub Jelinek <jakub@redhat.com>
3624 PR tree-optimization/72866
3625 * tree-vect-patterns.c (search_type_for_mask): Turn into
3626 a small wrapper, move all code to ...
3627 (search_type_for_mask_1): ... this new function. Add caching
3628 and adjust recursive calls.
3631 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
3632 instead of lookup_type_die (type_main_variant (type)) even for array
3636 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
3637 constant pool reference return x instead of c.
3639 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3641 * config/i386/t-i386 (i386-c.o): Don't depend on
3642 i386-builtin-types.inc.
3643 (i386.o): Depend on i386-builtin-types.inc.
3645 2016-08-17 Jakub Jelinek <jakub@redhat.com>
3648 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
3649 turning a call into __builtin_unreachable-like noreturn call, adjust
3650 gimple_call_set_fntype.
3651 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
3652 gimple_call_fntype has void return type.
3654 2016-08-16 Jakub Jelinek <jakub@redhat.com>
3657 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before inlining,
3658 add cgraph edge for the added __builtin_unreachable call.
3660 2016-09-01 Gerald Pfeifer <gerald@pfeifer.com>
3662 * doc/extend.texi (SPU Built-in Functions): Remove stale
3663 references to material formerly at IBM and Sony.
3665 2016-09-01 Matthew Wahab <matthew.wahab@arm.com>
3668 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
3669 Use const_vec_duplicate to check for duplicated elements.
3671 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
3673 * config/i386/i386.c (ix86_option_override_internal): Also disable the
3674 STV pass if -mstackrealign is enabled.
3676 2016-08-31 Patrick Palka <ppalka@gcc.gnu.org>
3678 Backport from mainline
3679 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
3681 PR tree-optimization/71077
3682 PR tree-optimization/68542
3683 * fold-const.c (fold_relational_const): Fix folding of
3684 VECTOR_CST comparisons that have a scalar boolean result type.
3686 2016-08-31 Gerald Pfeifer <gerald@pfeifer.com>
3688 * doc/install.texi (Binaries): www.opencsw.org now uses https.
3690 2016-08-31 Jakub Sejdak <jakub.sejdak@phoesys.com>
3692 * config.gcc: Add support for arm*-*-phoenix* targets.
3693 * config/arm/t-phoenix: New.
3694 * config/phoenix.h: New.
3696 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
3699 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
3700 template for intel asm dialect.
3701 (vec_set_hi_<mode><mask_name>): Ditto.
3703 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
3705 * Makefile.in (gcov-iov.h): Add dummy recipe.
3707 2016-08-28 Uros Bizjak <ubizjak@gmail.com>
3709 Backport from mainline
3710 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3712 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3713 for targets amdfam10 and barcelona.
3715 Backport from mainline
3716 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
3719 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3720 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3721 non-SSE2 athlons only, otherwise prefer SSE prefetches.
3723 Backport from mainline
3724 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
3727 * config/i386/i386.c (ix86_option_override_internal): Remove
3728 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3729 Enable SSE prefetch also for TARGET_PREFETCHWT1.
3730 Do not try to enable TARGET_PRFCHW ISA flag here.
3731 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3732 Rewrite expander function body.
3733 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3735 2016-08-28 Tom de Vries <tom@codesourcery.com>
3737 backport from trunk:
3738 2016-08-28 Tom de Vries <tom@codesourcery.com>
3741 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
3742 'sysv_abi va_list' attribute.
3743 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
3744 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
3747 2016-08-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3749 Backport from mainline
3750 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3753 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
3754 (vsx_store_<mode>): Likewise.
3756 2016-08-24 Richard Biener <rguenther@suse.de>
3758 Backport from mainline
3759 2016-08-17 Richard Biener <rguenther@suse.de>
3761 PR tree-optimization/76490
3762 * tree-vrp.c (update_value_range): Preserve overflow infinities
3763 when intersecting with ranges from get_range_info.
3764 (operand_less_p): Handle overflow infinities correctly.
3765 (value_range_constant_singleton): Use vrp_operand_equal_p
3766 to handle overflow max/min correctly.
3767 (vrp_valueize): Likewise.
3768 (union_ranges): Likewise.
3769 (intersect_ranges): Likewise.
3771 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
3773 * config/arm/t-rtems: Add vfp multilib.
3775 2016-08-23 Richard Biener <rguenther@suse.de>
3777 Backport from mainline
3778 2016-08-16 Richard Biener <rguenther@suse.de>
3780 PR tree-optimization/76783
3781 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
3782 BB visited flags at start.
3784 2016-08-12 Richard Biener <rguenther@suse.de>
3786 PR tree-optimization/72851
3787 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
3788 worklists to use bitmaps indexed in execution order.
3789 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
3790 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
3791 (cfg_blocks): Make a bitmap.
3792 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
3794 (cfg_blocks_empty_p): Adjust.
3795 (cfg_blocks_add): Likewise.
3796 (cfg_blocks_get): Likewise.
3797 (add_ssa_edge): Likewise.
3798 (add_control_edge): Likewise.
3799 (simulate_stmt): Likewise.
3800 (process_ssa_edge_worklist): Likewise.
3801 (simulate_block): Likewise.
3802 (ssa_prop_init): Compute PRE order and stmt UIDs.
3803 (ssa_prop_fini): Adjust.
3804 (ssa_propagate): Adjust.
3806 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
3808 Backport from mainline
3809 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
3812 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
3813 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
3814 for !flag_finite_math_only or flag_signed_zeros.
3815 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
3816 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
3817 depend on flag_finite_math_only.
3818 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
3820 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
3821 (*ieee_smin<mode>3): Ditto.
3822 (*ieee_smax<mode>3): Ditto.
3823 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
3824 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
3826 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
3827 depend on flag_finite_math_only.
3828 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
3829 (*mmx_<code>v2sf3): Remove.
3830 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
3831 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
3832 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
3834 2016-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3836 Backport from mainline
3837 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3840 * expr.c (store_constructor): Mask sign-extended bits when widening
3841 sub-word constructor element at the start of a word.
3843 2016-08-22 Richard Biener <rguenther@suse.de>
3845 * BASE-VER: Set to 6.2.1.
3847 2016-08-22 Release Manager
3849 * GCC 6.2.0 released.
3851 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3853 Backport from mainline
3854 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3857 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
3858 enclosing parallel construct for reduction variables on OpenACC loop
3861 2016-08-18 Oleg Endo <olegendo@gcc.gnu.org>
3863 Backport from mainline
3864 2016-06-17 DJ Delorie <dj@redhat.com>
3867 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
3868 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
3869 (umulqihi3_virt): Likewise.
3870 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
3871 (umulqihi3_real): Likewise.
3873 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
3875 * doc/install.texi (*-*-solaris2*): Adjust latest change.
3877 2016-08-15 Martin Liska <mliska@suse.cz>
3879 Backported from mainline
3880 2016-08-15 Martin Liska <mliska@suse.cz>
3883 * gcc.c (do_spec_1): Call save_string with the right size.
3885 2016-08-15 Jakub Jelinek <jakub@redhat.com>
3888 * dwarf2out.c (string_types): New variable.
3889 (gen_array_type_die): Change early_dwarf handling of
3890 DW_AT_string_length, create DW_OP_call4 referencing the
3891 length var temporarily. Handle parameters that are pointers
3893 (adjust_string_types): New function.
3894 (gen_subprogram_die): Temporarily set string_types to local var,
3895 call adjust_string_types if needed.
3896 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
3898 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
3900 2016-08-15 Richard Biener <rguenther@suse.de>
3902 PR tree-optimization/73434
3903 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
3904 TBAA info on the base when forwarding a non-invariant address.
3906 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
3908 * doc/install.texi (*-*-solaris2*): Fix version number and document
3909 requirement on GNU make for building libjava with the Solaris linker.
3911 2016-08-15 Martin Liska <mliska@suse.cz>
3912 Jakub Jelinek <jakub@redhat.com>
3914 PR tree-optimization/72824
3915 * tree-loop-distribution.c (const_with_all_bytes_same)
3916 <case VECTOR_CST>: Fix a typo.
3918 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
3920 Backport from mainline
3921 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
3924 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
3925 Renamed from _mm512_undefined_si512.
3926 (_mm_undefined_si512): New definition.
3928 Backport from mainline:
3929 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
3931 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
3932 unused variable __O.
3934 Backport from mainline:
3935 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
3938 * config/i386/i386.md (*movtf_internal): Use
3939 lra_in_progress || reload_completed instead of !can_create_pseudo_p
3940 in the insn constraint.
3941 (*movxf_internal): Ditto.
3942 (*movdf_internal): Ditto.
3943 (*movsf_internal): Ditto.
3945 2016-08-12 Jakub Jelinek <jakub@redhat.com>
3948 * ubsan.c (instrument_si_overflow): Pass true instead of false
3950 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
3951 of bbs. Return TODO_cleanup_cfg if any returned true.
3953 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3955 Backport from mainline
3956 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
3958 PR tree-optimization/71083
3959 * tree-predcom.c (ref_at_iteration): Correctly align the
3962 2016-08-12 James Greenhalgh <james.greenhalgh@arm.com
3964 Backport from mainline
3965 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
3968 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
3969 (aarch64_fp16_ptr_type_node): Likewise.
3970 * config/aarch64/aarch64-simd-builtins.c
3971 (aarch64_fp16_ptr_type_node): Define.
3972 (aarch64_init_fp16_types): New, refactored out of...
3973 (aarch64_init_builtins): ...here, update to call
3974 aarch64_init_fp16_types.
3975 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
3977 (aapcs_vfp_sub_candidate): Likewise.
3979 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3981 Backport from mainline
3982 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3984 * config/s390/s390-builtin-types.def: Add INT128 types.
3985 * config/s390/s390-builtins.def: Add INT128 variants for the add
3986 sub low-level builtins dealing with TImode.
3987 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
3988 via subreg when expanding a builtin.
3989 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
3990 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
3992 * config/s390/vecintrin.h: Adjust builtin names accordingly.
3993 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
3994 ("vec_addc<mode>", "vec_addc_u128"): Merge to
3995 "vacc<bhfgq>_<mode>".
3996 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
3997 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
3998 ("vec_subc<mode>", "vec_subc_u128"): Merge to
3999 "vscbi<bhfgq>_<mode>".
4000 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4001 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4003 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4005 Backport from mainline
4006 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4008 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4009 and s390_vlgv* builtins as element selector.
4011 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4013 Backport from mainline
4014 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4016 * config/s390/s390.c (s390_expand_vec_init): Force initializer
4017 element to register if it doesn't match general_operand.
4019 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4021 Backport from mainline
4022 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4024 * config/s390/vecintrin.h: Fix file description in comment.
4026 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4028 Backport from mainline
4029 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4031 * config/s390/s390-builtin-types.def: Change builtin type naming
4032 scheme to match builtin-types.def.
4034 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4036 Backport from mainline
4037 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4040 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
4041 being an offsettable address.
4043 2016-08-10 Jakub Jelinek <jakub@redhat.com>
4045 Backported from mainline
4046 2016-08-09 Jakub Jelinek <jakub@redhat.com>
4048 PR tree-optimization/72824
4049 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
4050 real_zerop is not negative.
4052 2016-08-09 Martin Jambor <mjambor@suse.cz>
4055 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
4056 if instance is a MEM_REF.
4058 2016-08-09 Richard Biener <rguenther@suse.de>
4060 Backport from mainline
4061 2016-08-09 Richard Biener <rguenther@suse.de>
4064 * ipa-prop.c (ipa_modify_formal_parameters): Build
4065 parameter types with natural alignment also for the
4068 2016-07-15 Richard Biener <rguenther@suse.de>
4070 PR tree-optimization/71881
4071 * tree-loop-distribution.c (destroy_loop): Remove blocks in
4072 reverse DOM order to make debug temp generation happy.
4074 2016-08-09 Alan Modra <amodra@gmail.com>
4077 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
4078 alternatives. Put loads first, then stores, and reg/reg moves
4079 within same class later. Delete attr length.
4081 2016-08-09 Alan Modra <amodra@gmail.com>
4084 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
4085 (mem_operand_ds_form): New predicate.
4086 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
4087 * config/rs6000/constraints.md (wY): New constraint.
4088 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
4089 (extendsfdf2_fpr): Replace o constraint with wY.
4091 2016-08-08 Georg-Johann Lay <avr@gjlay.de>
4093 Backport from 2016-07-29 trunk r238863.
4095 PR rtl-optimization/71976
4096 * combine.c (get_last_value): Return 0 if the argument for which
4097 the function is called has a wider mode than the recorded value.
4099 2016-08-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4102 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4105 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
4106 __float128 support when we don't have hardware support, so that
4107 the IEEE built-in functions like isgreater, first call __unordkf3
4108 to make sure neither operand is a NaN, and if both operands are
4109 ordered, do the normal comparison.
4111 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
4114 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
4115 Cast builtin function result to __mmask16 instead of __mmask8.
4116 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4117 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
4118 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4120 2016-08-03 Georg-Johann Lay <avr@gjlay.de>
4123 * common/config/avr/avr-common.c (avr_option_optimization_table)
4124 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
4126 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
4128 Backport from 2016-08-01 trunk r238948.
4131 * config/avr/avr.md (length) [branch]: Correct insn length
4132 attribute for forward branches.
4134 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
4136 Backport from 2016-06-16 trunk r237536.
4137 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4140 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
4141 progmem_swtable_section.
4142 (progmem_swtable_section): Remove.
4143 (avr_asm_function_rodata_section): Remove.
4144 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
4145 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
4147 2016-07-29 Marek Polacek <polacek@redhat.com>
4149 Backport from mainline
4150 2016-07-29 Marek Polacek <polacek@redhat.com>
4153 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
4154 (altivec_expand_st_builtin): Likewise.
4155 * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
4156 (ix86_expand_round_builtin): Likewise.
4158 2016-07-27 Segher Boessenkool <segher@kernel.crashing.org>
4161 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
4162 when to emit a ".machine" pseudo-op.
4164 2016-07-26 Alan Modra <amodra@gmail.com>
4167 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
4170 2016-07-21 Jakub Jelinek <jakub@redhat.com>
4173 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
4174 before builtin_decl_implicit.
4176 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
4178 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
4180 Improving concepts performance and diagnostics.
4181 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
4182 for constraint satisfaction and subsumption.
4183 * timevar.h (auto_timevar): New constructor that matches the push/pop
4184 pattern of usage in pt.c.
4186 2016-07-20 John David Anglin <danglin@gcc.gnu.org>
4188 Backport from mainline
4189 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
4191 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
4192 register parameters. Remove code to initialize argument pointer
4193 on TARGET_64BIT. Optimize call to _mcount when it can be reached
4194 using a pc-relative branch. Cleanup conditional code.
4195 * config/pa/pa.md (call_mcount): New expander.
4196 (call_mcount_nonpic): New insn.
4197 (call_mcount_pic): New insn and split.
4198 (call_mcount_pic_post_reload): New insn.
4199 (call_mcount_64bit): New insn and split.
4200 (call_mcount_64bit_post_reload): New insn.
4202 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4204 Backport from mainline
4205 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4207 * config/s390/s390.c (s390_encode_section_info): Remove mode size
4210 2016-07-20 Martin Jambor <mjambor@suse.cz>
4213 * trans-decl.c (gfc_generate_function_code): Use get_create rather
4214 than create to get a call graph node.
4216 2016-07-19 Jakub Jelinek <jakub@redhat.com>
4218 PR rtl-optimization/71916
4219 * cfgrtl.c (contains_no_active_insn_p): Return false also for
4220 bb which have a single succ fake edge.
4222 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
4225 * dwarf2out.c (gen_subprogram_die): Only call
4226 gen_unspecified_parameters_die while dumping early dwarf.
4228 2016-07-19 Jakub Jelinek <jakub@redhat.com>
4231 * gimple-fold.c (fold_builtin_memory_op): Use
4232 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
4234 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4236 Back port from mainline
4237 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4240 * config/rs6000/rs6000.c (rs6000_function_value): Fix
4241 unintentional System V.4 structure return breakage for structures
4242 with a single floating point element.
4244 2016-07-18 Martin Liska <mliska@suse.cz>
4246 Backported from mainline
4247 2016-07-12 Martin Liska <mliska@suse.cz>
4249 PR rtl-optimization/71634
4250 * ira-build.c (mark_loops_for_removal): Properly iterate
4253 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4255 Backport from mainline
4256 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4258 * config/s390/s390.c (s390_encode_section_info): Always set
4259 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
4262 2016-07-15 Alan Modra <amodra@gmail.com>
4265 2016-07-11 Alan Modra <amodra@gmail.com>
4266 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
4267 (ctr<mode>): Add unspec.
4268 (ctr<mode>_internal*): Likewise.
4270 2016-07-14 Alan Modra <amodra@gmail.com>
4273 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
4274 with p9_vector override before power9-dform override.
4276 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
4278 Backport from mainline r238086.
4279 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
4282 * ipa-inline-analysis.c (compute_inline_parameters): Set
4283 local.can_change_signature to false for intrumentation
4286 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4287 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4289 Backport from mainline
4290 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4291 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4293 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
4295 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
4296 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
4297 (SIGNBIT): New mode iterator.
4298 (Fsignbit): New mode attribute.
4299 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
4300 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
4301 when direct moves are available.
4302 (signbit<mode>2_dm): New define_insn_and_split).
4303 (signbit<mode>2_dm2): New define_insn.
4305 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4307 Backport from mainline
4308 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4311 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
4312 The xxperm and xxpermr instructions require that the 2nd input
4313 operand overlap with the output operand, and not the 1st.
4314 (altivec_vperm_v8hiv16qi): Likewise.
4315 (altivec_vperm_<mode>_uns_internal): Likewise.
4316 (altivec_vpermr_<mode>_internal): Likewise.
4317 (vperm_v8hiv4si): Likewise.
4318 (vperm_v16qiv8hi): Likewise.
4320 2016-07-12 Segher Boessenkool <segher@kernel.crashing.org>
4322 Backport from mainline
4323 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
4327 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
4328 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
4331 2016-07-11 Jakub Jelinek <jakub@redhat.com>
4334 * omp-low.c (expand_omp_target): Gimplify device.
4336 PR tree-optimization/71823
4337 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
4338 to get vec_oprnds2 from op2.
4340 2016-07-11 Yuri Rumyantsev <ysrumyan@gmail.com>
4342 Backport from mainline r238055.
4343 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
4345 PR tree-optimization/71518
4346 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
4347 misalign also for outer loops with negative step.
4349 2016-07-08 Martin Liska <mliska@suse.cz>
4351 Backported from mainline
4352 2016-07-08 Martin Liska <mliska@suse.cz>
4355 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
4356 folding produces SAVE_EXPRs, thus return false for the type.
4358 2016-07-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
4360 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): Remove
4361 redundant and erroneous definition of this macro accidentally
4362 inserted during backporting.
4363 (BU_P9_64BIT_MISC_0): Likewise.
4364 (BU_P9_MISC_0): Likewise.
4366 2016-07-08 Jiong Wang <jiong.wang@arm.com>
4368 Back port from the trunk
4369 2016-07-08 Jiong Wang <jiong.wang@arm.com>
4371 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
4376 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
4377 __builtin_aarch64_fmaxv2sf.
4378 (vmaxnmq_f32): Likewise.
4379 (vmaxnmq_f64): Likewise.
4380 (vminnm_f32): Likewise.
4381 (vminnmq_f32): Likewise.
4382 (vminnmq_f64): Likewise.
4384 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4386 Back port from trunk
4387 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
4390 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
4391 enable -mfloat128-hardware by default.
4392 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
4393 that IEEE 128-bit hardware support needs.
4394 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4395 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
4396 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
4397 floating point requires.
4398 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4399 -mfloat128 and -mfloat128-hardware changes.
4401 2016-07-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
4403 Backport from mainline r237912
4404 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
4406 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
4407 Exchange the order of the second and third operands in the vpermr
4408 instruction tmeplate.
4410 2016-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
4412 Back port from the trunk
4413 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
4416 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
4417 the insns, use an insn form that does not adjust the offset on
4418 little endian systems.
4420 2016-07-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
4422 Backport from mainline r237885
4423 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4425 * config/rs6000/altivec.md (darn_32): Change the condition to
4426 TARGET_P9_MISC instead of TARGET_MODULO.
4427 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
4428 condition expression.
4429 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
4430 condition expression.
4431 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
4432 (DFP_TEST): New code iterator.
4433 (dfptstsfi_<code>_mode>): New define_expand.
4434 (*dfp_sgnfcnc_<mode>): New define_insn.
4435 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
4436 definition next to BU_P9_MISC_1 definition and change the MASK
4437 value to RS6000_BTM_P9_MISC.
4438 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
4439 (BU_P9_64BIT_MISC_0): Likewise.
4440 (BU_P9_DFP_MISC_0): New macro definition.
4441 (BU_P9_DFP_MISC_1): New macro definition.
4442 (BU_P9_DFP_MISC_2): New macro definition.
4443 (BU_P9_DFP_OVERLOAD_1): New macro definition.
4444 (BU_P9_DFP_OVERLOAD_2): New macro definition.
4445 (BU_P9_DFP_OVERLOAD_3): New macro definition.
4446 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
4447 (TSTSFI_LT_TD): Likewise.
4448 (TSTSFI_EQ_DD): Likewise.
4449 (TSTSFI_EQ_TD): Likewise.
4450 (TSTSFI_GT_DD): Likewise.
4451 (TSTSFI_GT_TD): Likewise.
4452 (TSTSFI_OV_DD): Likewise.
4453 (TSTSFI_OV_TD): Likewise.
4454 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
4455 (TSTSFI_LT_DD): Likewise.
4456 (TSTSFI_LT_TD): Likewise.
4457 (TSTSFI_EQ): Likewise.
4458 (TSTSFI_EQ_DD): Likewise.
4459 (TSTSFI_EQ_TD): Likewise.
4460 (TSTSFI_GT): Likewise.
4461 (TSTSFI_GT_DD): Likewise.
4462 (TSTSFI_GT_TD): Likewise.
4463 (TSTSFI_OV): Likewise.
4464 (TSTSFI_OV_DD): Likewise.
4465 (TSTSFI_OV_TD): Likewise.
4466 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4467 overloaded test significance functions.
4468 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4469 OPTION_MASK_P9_MISC into the representation of this mask.
4470 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
4472 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
4473 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
4475 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
4476 argument is a 6-bit unsigned literal value if the icode argument
4477 represents a DFP test significance built-in call.
4478 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
4479 flag used independently and in combination with the
4480 RS6000_BTM_64BIT flag.
4481 (rs6000_opt_masks): Add entry for power9-misc command-line option.
4482 (rs6000_builtin_mask_names): Add entry for power9-misc
4483 command-line option.
4484 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
4485 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
4486 RS6000_BTM_P9_MISC macros.
4487 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
4488 option and change the description of the -mpower9-vector option to
4489 enable only vector instructions, removing its erroneously claimed
4490 support for scalar instructions.
4491 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4492 the ISA 3.0 digital floating point test significance built-in
4495 2016-07-07 Richard Biener <rguenther@suse.de>
4497 Backport from mainline
4498 2016-06-13 Richard Biener <rguenther@suse.de>
4501 * fold-const.c (fold_unary_loc): Preserve alignment when
4502 folding a VIEW_CONVERT_EXPR into a MEM_REF.
4504 2016-07-07 Richard Biener <rguenther@suse.de>
4506 Backport from mainline
4507 2016-05-25 Richard Biener <rguenther@suse.de>
4509 PR tree-optimization/71264
4510 * tree-vect-stmts.c (vect_init_vector): Properly deal with
4513 2016-06-07 Richard Biener <rguenther@suse.de>
4516 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
4519 2016-06-14 Richard Biener <rguenther@suse.de>
4521 PR tree-optimization/71521
4522 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
4523 division int_const_binop against zero divisor.
4525 2016-06-08 Richard Biener <rguenther@suse.de>
4527 PR tree-optimization/71452
4528 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
4529 type used for the SSA rewrite has enough precision to cover
4530 the dynamic type of the location.
4532 2016-06-14 Richard Biener <rguenther@suse.de>
4534 PR tree-optimization/71522
4535 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
4536 copying into float copying.
4538 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4540 Backport from mainline
4541 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4544 * config/avr/avr.c (avr_asm_select_section): Strip off
4545 SECTION_DECLARED from flags when calling get_section.
4547 2016-07-05 Pat Haugen <pthaugen@us.ibm.com>
4549 Backport from mainline
4550 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
4552 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
4553 ('size' attribute): Add '128'.
4555 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
4556 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
4557 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
4558 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
4559 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
4560 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
4561 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
4562 *trunc<mode>df2_odd): Set size attribute to '128'.
4563 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
4564 * config/rs6000/power6.md (power6-fp): Include dfp type.
4565 * config/rs6000/power7.md (power7-fp): Likewise.
4566 * config/rs6000/power8.md (power8-fp): Likewise.
4567 * config/rs6000/power9.md: New file.
4568 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
4569 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
4570 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
4572 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
4573 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
4574 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
4575 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
4576 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
4577 dfp_dscri_<mode>): Change type attribute to dfp.
4578 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
4579 attribute to vecsimple.
4580 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
4581 and prefetch streams.
4582 (rs6000_option_override_internal): Remove temporary code setting
4583 tuning to power8. Don't set rs6000_sched_groups for power9.
4584 (last_scheduled_insn): Change to rtx_insn *.
4585 (divide_cnt, vec_load_pendulum): New variables.
4586 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
4587 (rs6000_issue_rate): Set issue rate for Power9.
4588 (is_power9_pairable_vec_type): New.
4589 (power9_sched_reorder2): New.
4590 (rs6000_sched_reorder2): Call new function for Power9 specific
4592 (insn_must_be_first_in_group): Remove Power9.
4593 (insn_must_be_last_in_group): Likewise.
4594 (force_new_group): Likewise.
4595 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
4596 Initialize divide_cnt/vec_load_pendulum.
4597 (_rs6000_sched_context, rs6000_init_sched_context,
4598 rs6000_set_sched_context): Handle context save/restore of new
4601 2016-07-05 Pat Haugen <pthaugen@us.ibm.com>
4603 Backport from mainline
4604 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
4606 * config/rs6000/rs6000.md ('type' attribute): Add
4607 veclogical,veccmpfx,vecexts,vecmove insn types.
4608 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
4609 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
4610 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
4611 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
4612 *nabs<mode>2_hw): Change type to vecmove.
4613 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
4614 *boolcc<mode>3_internal, *eqv<mode>3_internal,
4615 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
4616 *ieee_128bit_vsx_abs<mode>2_internal,
4617 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
4618 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
4619 *ieee128_mtvsrd_32bit): Change type to veclogical.
4620 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
4621 *movdi_internal32, *movdi_internal64): Update insn types.
4622 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
4623 vsx_extract_<mode>): Change type to veclogical.
4624 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
4625 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
4626 *vsx_sign_extend_si_v2di): Change type to vecexts.
4627 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
4629 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
4630 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
4631 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
4632 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
4633 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
4634 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
4635 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
4636 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
4637 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
4638 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
4639 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
4640 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
4641 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
4642 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
4643 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
4644 (ppc7450-vecsimple): Add veclogical, vecmove.
4645 (ppc7450-veccmp): Add veccmpfx.
4646 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
4648 (ppc8540_vector_compare): Add veccmpfx.
4649 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
4650 * config/rs6000/cell.md (cell-fp): Add fpsimple.
4651 (cell-vecsimple): Add veclogical, vecmove.
4652 (cell-veccmp): Add veccmpfx.
4653 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
4654 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
4656 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
4657 * config/rs6000/power4.md (power4-fp): Add fpsimple.
4658 (power4-vecsimple): Add veclogical, vecmove.
4659 (power4-veccmp): Add veccmpfx.
4660 * config/rs6000/power5.md (power5-fp): Add fpsimple.
4661 * config/rs6000/power6.md (power6-fp): Add fpsimple.
4662 (power6-vecsimple): Add veclogical, vecmove.
4663 (power6-veccmp): Add veccmpfx.
4664 * config/rs6000/power7.md (power7-fp): Add fpsimple.
4665 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
4666 * config/rs6000/power8.md (power8-fp): Add fpsimple.
4667 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
4668 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
4669 * config/rs6000/titan.md (titan_fp): Add fpsimple.
4670 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
4672 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
4674 2016-07-05 Kelvin Nilsen <kelvin@gcc.gnu.org>
4676 Backport from mainline r237391
4677 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
4679 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
4680 RS6000_BTM_MODULO flag into the set of flags that are considered
4681 to be part of the common configuration.
4683 2016-07-04 Jakub Jelinek <jakub@redhat.com>
4686 * tree.c (attribute_value_equal): Use get_attribute_name instead of
4687 directly using TREE_PURPOSE.
4689 2016-07-04 Segher Boessenkool <segher@kernel.crashing.org>
4691 Backport from mainline
4692 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
4695 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
4696 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
4698 2016-07-02 Jakub Jelinek <jakub@redhat.com>
4700 Backported from mainline
4701 2016-06-28 Jakub Jelinek <jakub@redhat.com>
4704 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
4705 a constant, force its SUBREG_REG into memory or register instead
4708 2016-06-20 Jakub Jelinek <jakub@redhat.com>
4711 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
4712 returned values and add UN*/LTGT/*ORDERED cases with values matching
4713 D operand modifier on vcmp for AVX.
4715 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
4717 Backport from trunk r237659
4718 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
4720 * config/rs6000/rs6000.h: Add conditional preprocessing directives
4721 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
4724 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
4727 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
4730 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4731 OPTION_MASK_P9_DFORM_VECTOR.
4732 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
4733 disable -mpower9-dform-vector when using reload.
4734 (quad_address_p): Remove 'gpr_p' argument and all associated code.
4735 New 'strict' argument. Update all callers. Add strict addressing
4737 (rs6000_legitimate_offset_address_p): Remove call to
4738 virtual_stack_registers_memory_p.
4739 (rs6000_legitimize_reload_address): Add quad address support.
4740 (rs6000_legitimate_address_p): Move call to quad_address_p above
4741 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
4742 to account for new strict usage.
4743 (rs6000_output_move_128bit): Adjust quad_address_p args to account
4744 for new strict usage.
4745 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
4747 2016-07-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4749 Backport from mainline
4750 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4752 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
4753 (BU_FLOAT128_1): Likewise.
4755 (COPYSIGNQ): Likewise.
4756 (RS6000_BUILTIN_NANQ): Likewise.
4757 (RS6000_BUILTIN_NANSQ): Likewise.
4758 (RS6000_BUILTIN_INFQ): Likewise.
4759 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
4760 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
4761 (TARGET_FOLD_BUILTIN): New #define.
4762 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
4763 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
4764 (rs6000_fold_builtin): New target hook implementation, handling
4765 folding of 128-bit NaNs and infinities.
4766 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
4767 entries are filled in to avoid problems during bootstrap
4768 self-test; define builtins for 128-bit NaNs and infinities.
4769 (rs6000_opt_mask): Add entry for float128.
4770 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
4771 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
4772 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
4773 (const_str_type_node): New #define.
4774 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
4775 to a define_expand that dispatches to either copysign<mode>3_soft
4776 or copysign<mode>3_hard.
4777 (copysign<mode>3_hard): Rename from copysign<mode>3.
4778 (copysign<mode>3_soft): New define_insn.
4779 * doc/extend.texi: Document new builtins.
4781 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
4784 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
4787 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
4790 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
4792 Backport from trunk r236992
4793 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
4795 * config/rs6000/altivec.h (vec_slv): New macro.
4796 (vec_srv): New macro.
4797 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
4798 (UNSPEC_VSRV): New value.
4801 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
4802 (vsrv): New builtin definition.
4803 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
4804 define argument types for new builtin.
4805 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
4807 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
4810 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
4812 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
4815 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
4817 Backport from trunk r237390
4818 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
4820 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
4821 difference unsigned.
4822 (vec_absdb): New macro for vector absolute difference unsigned
4824 (vec_absdh): New macro for vector absolute difference unsigned
4826 (vec_absdw): New macro for vector absolute difference unsigned word.
4827 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
4828 (vadu<mode>3): New insn.
4829 (*p9_vadu<mode>3): New insn.
4830 * config/rs6000/rs6000-builtin.def (vadub): New built-in
4832 (vaduh): New built-in definition.
4833 (vaduw): New built-in definition.
4834 (vadu): New overloaded built-in definition.
4835 (vadub): New overloaded built-in definition.
4836 (vaduh): New overloaded built-in definition.
4837 (vaduw): New overloaded built-in definition.
4838 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4839 overloaded vector absolute difference unsigned functions.
4840 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4841 the ISA 3.0 vector absolute difference unsigned built-in functions.
4843 2016-06-30 David Malcolm <dmalcolm@redhat.com>
4845 Backport from trunk r237880.
4846 2016-06-30 David Malcolm <dmalcolm@redhat.com>
4849 * gcc.c (driver::build_option_suggestions): Pass "option" to
4850 add_misspelling_candidates.
4851 * opts-common.c (add_misspelling_candidates): Add "option" param;
4852 use it to avoid adding negated forms for options marked with
4854 * opts.h (add_misspelling_candidates): Add "option" param.
4856 2016-06-30 Jakub Jelinek <jakub@redhat.com>
4859 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
4860 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
4861 first when permuting bitwise operation with rotate. Cast
4862 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
4864 2016-06-30 Martin Liska <mliska@suse.cz>
4866 Parting backport from mainline
4867 2016-06-29 Martin Liska <mliska@suse.cz>
4869 * ipa-inline-transform.c (inline_call): Remove unnecessary call
4870 of build_optimization_node.
4872 2016-06-29 Eric Botcazou <ebotcazou@adacore.com>
4874 Backport from mainline
4875 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
4877 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
4879 2016-06-27 Michael Meissner <meissner@linux.vnet.ibm.com>
4881 Back port from trunk
4882 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4884 * stor-layout.c (layout_type): Move setting complex MODE to
4885 layout_type, instead of setting it ahead of time by the caller.
4887 Back port from trunk
4888 2016-05-11 Alan Modra <amodra@gmail.com>
4890 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
4891 abi_v4_pass_in_fpr): New functions.
4892 (rs6000_function_arg_boundary): Exclude complex IBM long double
4893 from 64-bit alignment when ABI_V4.
4894 (rs6000_function_arg, rs6000_function_arg_advance_1,
4895 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
4897 Back port from trunk
4898 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
4900 * machmode.h (mode_complex): Add support to give the complex mode
4902 (GET_MODE_COMPLEX_MODE): Likewise.
4903 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
4904 stored by build_complex_type and gfc_build_complex_type instead of
4905 trying to figure out the appropriate mode based on the size. Raise
4906 an assertion error, if the type was not set.
4907 * genmodes.c (struct mode_data): Add field for the complex type of
4909 (blank_mode): Likewise.
4910 (make_complex_modes): Remember the complex mode created in the
4912 (emit_mode_complex): Write out the mode_complex array to map a
4913 type mode to the complex version.
4914 (emit_insn_modes_c): Likewise.
4915 * tree.c (build_complex_type): Set the complex type to use before
4916 calling layout_type.
4917 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
4918 support for __float128 complex datatypes.
4919 (rs6000_hard_regno_mode_ok): Likewise.
4920 (rs6000_setup_reg_addr_masks): Likewise.
4921 (rs6000_complex_function_value): Likewise.
4922 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
4923 __float128 and __ibm128 complex.
4924 (FLOAT128_IBM_P): Likewise.
4925 (ALTIVEC_ARG_MAX_RETURN): Likewise.
4926 * doc/extend.texi (Additional Floating Types): Document that
4927 -mfloat128 must be used to enable __float128. Document complex
4928 __float128 and __ibm128 support.
4930 2016-06-24 Jakub Jelinek <jakub@redhat.com>
4932 PR tree-optimization/71647
4933 * omp-low.c (lower_rec_input_clauses): Convert
4934 omp_clause_aligned_alignment (c) to size_type_node for the
4935 last argument of __builtin_assume_aligned.
4937 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
4939 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
4941 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
4943 Backport from 2016-06-21 trunk r237639.
4946 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
4947 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
4948 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
4950 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
4953 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
4954 constant addresses if can_create_pseudo_p.
4956 2016-06-21 Jakub Jelinek <jakub@redhat.com>
4958 PR tree-optimization/71588
4959 * tree-ssa-strlen.c (valid_builtin_call): New function.
4960 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
4963 Backported from mainline
4964 2016-06-20 Jakub Jelinek <jakub@redhat.com>
4967 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
4968 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
4969 for conversion of scalar user var to complex type and use the
4970 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
4973 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4975 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
4976 with base of reference to struct.
4978 2016-06-20 Ilya Enkovich <ilya.enkovich@intel.com>
4980 Backport from mainline r237484.
4981 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
4984 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
4985 DECL_CONTEXT for copied arguments.
4987 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
4988 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4990 Backport from 2016-06-20 trunk r237589, r236558.
4993 * config/avr/avr.md (movqi): Handle loading subreg:qi (const,
4994 symbol_ref,label_ref).
4996 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4999 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
5000 (setcc + and peephole2): Likewise.
5002 2016-06-15 Andreas Tobler <andreast@gcc.gnu.org>
5004 Backported from mainline
5005 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
5007 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
5008 FreeBSD 11 and above.
5010 2016-06-15 Ilya Verbin <ilya.verbin@intel.com>
5012 Backport from mainline
5013 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5015 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
5017 2016-06-14 Jakub Jelinek <jakub@redhat.com>
5019 Backported from mainline
5020 2016-06-10 Jakub Jelinek <jakub@redhat.com>
5023 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
5024 without LABEL_DECL, set *handled_ops_p to false instead of true.
5026 2016-06-08 Jakub Jelinek <jakub@redhat.com>
5027 Richard Biener <rguenther@suse.de>
5030 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
5031 the same as DECL_P (base0) for indirect_base0. Use equality_code
5032 in one further place.
5034 2016-06-04 Jakub Jelinek <jakub@redhat.com>
5036 PR tree-optimization/71405
5037 * tree-ssa.c (execute_update_addresses_taken): For clobber with
5038 incompatible type, build a new clobber with the right type instead
5039 of building a VIEW_CONVERT_EXPR around it.
5041 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
5043 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
5044 update shared_lookup_references only once after changing operands.
5046 2016-06-13 Richard Biener <rguenther@suse.de>
5048 PR tree-optimization/71505
5049 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
5050 assert match comment.
5052 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5054 Backport from mainline
5055 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5058 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
5061 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5064 Backport from trunk r237291:
5065 * tree-nested.c (convert_nonlocal_omp_clauses)
5066 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
5067 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
5068 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
5070 Backport from trunk r237291:
5071 * gimplify.c (gimplify_adjust_omp_clauses): Discard
5073 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
5075 Backport from trunk r237290:
5076 * omp-low.c (scan_sharing_clauses): Don't expect
5079 Backport trunk r235964:
5080 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
5082 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
5083 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
5086 2016-06-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5088 Back port from trunk
5089 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5091 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
5092 alternatives, eliminating preferred register class. Add support
5093 for the MTVSRDD instruction in ISA 3.0.
5094 (vsx_splat_v4si_internal): Use splat_input_operand instead of
5095 reg_or_indexed_operand.
5096 (vsx_splat_v4sf_internal): Likewise.
5098 Back port from trunk
5099 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5102 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
5103 for loading up all 0's or all 1's.
5105 Back port from trunk
5106 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5109 * config/rs6000/constraints.md (wE constraint): New constraint
5110 for a vector constant that can be loaded with XXSPLTIB.
5111 (wM constraint): New constraint for a vector constant of a 1's.
5112 (wS constraint): New constraint for a vector constant that can be
5113 loaded with XXSPLTIB and a vector sign extend instruction.
5114 * config/rs6000/predicates.md (xxspltib_constant_split): New
5115 predicates for wE/wS constraints.
5116 (xxspltib_constant_nosplit): Likewise.
5117 (easy_vector_constant): Add support for constants that can be
5118 loaded via XXSPLTIB.
5119 (splat_input_operand): Add support for ISA 3.0 word splat operations.
5120 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
5121 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
5122 instruction and possibly with a sign extension.
5123 (output_vec_const_move): Add support for XXSPLTIB. If we are
5124 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
5125 instead of XXLXOR/XXLORC.
5126 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
5128 (rs6000_legitimize_reload_address): Likewise.
5129 (rs6000_output_move_128bit): Use output_vec_const_move to emit
5131 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
5132 combine VSX_M and VSX_M2 into one iterator.
5134 (VSINT_84): New iterators for loading constants with XXSPLTIB.
5135 (VSINT_842): Likewise.
5136 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
5137 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
5138 XXSPLTIB instruction.
5139 (xxspltib_<mode>_nosplit): Likewise.
5140 (xxspltib_<mode>_split): New insn to load up constants with
5141 XXSPLTIB and a sign extend instruction.
5142 (vsx_mov<mode>): Replace single move that handled all vector types
5143 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
5144 moves (when -mvsx-timode is in effect) into the main vector
5145 moves. Eliminate separate moves for <VSr> <VSa>, where the
5146 preferred register class (<VSr>) is listed first, and the
5147 secondary register class (<VSa>) is listed second with a '?' to
5148 discourage use. Prefer loading 0/-1 in any VSX register for ISA
5149 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
5150 that if the register was involved in a slow operation, the
5151 clear/set operation does not wait for the slow operation to
5152 finish. Adjust the length attributes for 32-bit mode. Use
5153 rs6000_output_move_128bit and drop the use of the string
5154 instructions for 32-bit movti when -mvsx-timode is in effect. Use
5155 spacing so that the alternatives and attributes don't generate
5156 long lines, and put things in columns, so that it is easier to
5157 match up the operands and attributes with the insn alternatives.
5158 (vsx_mov<mode>_64bit): Likewise.
5159 (vsx_mov<mode>_32bit): Likewise.
5160 (vsx_movti_64bit): Fold movti into normal vector moves.
5161 (vsx_movti_32bit): Likewise.
5162 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
5164 (vsx_splat_v4si_internal): Likewise.
5165 (vsx_splat_v4sf_internal): Likewise.
5166 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
5167 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
5168 extend vector elements.
5169 (vsx_sign_extend_hi_<mode>): Likewise.
5170 (vsx_sign_extend_si_v2di): Likewise.
5171 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
5173 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
5174 constraints. Add trailing period to wL documentation.
5176 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
5178 Backport from mainline
5179 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
5181 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
5182 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
5184 2016-06-08 Eric Botcazou <ebotcazou@adacore.com>
5186 Backport from mainline
5187 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
5189 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
5190 Include the M7 SPARC DFA scheduler.
5191 New attribute v3pipe.
5192 Annotate insns with v3pipe where appropriate.
5193 Define cpu_feature vis4.
5194 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
5195 Add (V8QI "8") to vbits.
5196 Add insns {add,sub}v8qi3
5197 Add insns ss{add,sub}v8qi3
5198 Add insns us{add,sub}{v8qi,v4hi}3
5199 Add insns {min,max}{v8qi,v4hi,v2si}3
5200 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
5201 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
5202 * config/sparc/niagara4.md: Add a comment explaining the
5203 discrepancy between the documented latenty numbers and the
5205 * config/sparc/niagara7.md: New file.
5206 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
5207 supports SPARC5 and VIS 4.0 instructions.
5208 * configure: Regenerate.
5209 * config.in: Likewise.
5210 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
5211 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
5212 TARGET_CPU_niagara7.
5213 (ASM_CPU64_DEFAULT_SPEC): Likewise.
5214 (CPP_CPU_SPEC): Handle niagara7.
5215 (ASM_CPU_SPEC): Likewise.
5216 * config/sparc/sparc-opts.h (processor_type): Add
5218 (mvis4): New option.
5219 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
5220 (AS_NIAGARA7_FLAG): Define.
5221 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
5222 (CPP_CPU64_DEFAULT_SPEC): Likewise.
5223 (CPP_CPU_SPEC): Handle niagara7.
5224 (ASM_CPU_SPEC): Likewise.
5225 * config/sparc/sparc.c (niagara7_costs): Define.
5226 (sparc_option_override): Handle niagara7 and adjust cache-related
5227 parameters with better values for niagara cpus. Also support VIS4.
5228 (sparc32_initialize_trampoline): Likewise.
5229 (sparc_use_sched_lookahead): Likewise.
5230 (sparc_issue_rate): Likewise.
5231 (sparc_register_move_cost): Likewise.
5232 (dump_target_flag_bits): Support VIS4.
5233 (sparc_vis_init_builtins): Likewise.
5234 (sparc_builtins): Likewise.
5235 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
5237 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
5239 * config/sparc/sparc.opt (sparc_processor_type): New value
5241 * config/sparc/visintrin.h (__attribute__): Prototypes for the
5243 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
5245 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
5248 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
5250 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
5252 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
5254 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
5255 cpu_32, cpu_64, tune_32 and tune_64.
5256 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
5258 2016-06-08 Ilya Verbin <ilya.verbin@intel.com>
5260 Backport from mainline
5261 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
5263 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
5264 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
5265 * config/i386/i386.c (enum ix86_builtins): Add
5266 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
5267 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
5268 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
5269 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
5270 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
5271 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
5272 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
5273 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
5274 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
5275 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
5276 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
5277 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
5278 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
5279 __builtin_ia32_cvtps2dq512_mask.
5280 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
5281 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
5282 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
5283 * config/i386/sse.md
5284 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
5286 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
5287 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
5289 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
5290 (avx512f_vec_pack_sfix_v8df): New define_expand.
5291 (avx512f_roundpd512): Rename to ...
5292 (avx512f_round<castmode>512): ... this. Change iterator.
5293 (avx512f_roundps512_sfix): New define_expand.
5294 (round<mode>2_sfix): Change iterator.
5296 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
5298 Backport from mainline
5299 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
5301 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
5304 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
5307 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
5308 Copy op1 RTX to avoid invalid sharing.
5309 (ix86_expand_vector_move_misalign): Ditto.
5311 2016-06-06 Jakub Jelinek <jakub@redhat.com>
5313 PR tree-optimization/71259
5314 * tree-vect-slp.c (vect_get_constant_vectors): For
5315 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
5316 one for constant op, and use COND_EXPR for non-constant.
5318 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5321 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5324 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
5326 2016-06-05 Uros Bizjak <ubizjak@gmail.com>
5328 Backport from mainline
5329 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
5330 Jocelyn Mayer <l_indien@magic.fr>
5333 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
5334 detect processor family for signature_CENTAUR_ebx.
5335 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
5336 signature_CENTAUR_ebx.
5337 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
5338 <default>: Pass x86-64 for has_longmode.
5340 2016-06-03 Jakub Jelinek <jakub@redhat.com>
5343 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
5344 to noreturn e->callee->decl that has void return type and void
5345 arguments, adjust gimple_call_fntype and remove lhs even if it had
5346 previously addressable type.
5348 2016-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5350 Back port from trunk
5351 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5353 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
5354 for ISA 3.0 min/max support.
5355 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
5356 conditional move support.
5357 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
5358 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
5360 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
5361 conditional moves where the comparison type is different from move
5363 (fp_minmax): New code iterator for smin/smax.
5364 (minmax): New code attributes for min/max.
5365 (SMINMAX): Likewise.
5366 (smax<mode>3): Combine min, max insns into one insn using the
5367 fp_minmax code iterator. Add support for ISA 3.0 min/max
5368 instructions that don't need -ffast-math.
5369 (s<minmax><mode>3): Likewise.
5370 (smax<mode>3_vsx): Likewise.
5371 (smin<mode>3): Likewise.
5372 (s<minmax><mode>3_vsx): Likewise.
5373 (smin<mode>3_vsx): Likewise.
5374 (pre-VSX min/max splitters): Likewise.
5375 (s<minmax><mode>3_fpr): Likewise.
5376 (movsfcc): Rewrite floating point conditional moves to combine
5377 SFmode/DFmode into a single insn.
5378 (mov<mode>cc): Likewise.
5379 (movdfcc): Likewise.
5380 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
5381 SFDF2 iterators to handle all combinations.
5382 (fseldfsf4): Likewise.
5383 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
5384 (fseldfdf4): Likewise.
5385 (fselsfdf4): Likewise.
5386 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
5387 comparison instructions that set a 0/-1 mask, and use it for
5388 floating point conditional move via XXSEL.
5389 (fpmask<mode>): Likewise.
5390 (xxsel<mode>): Likewise.
5391 * config/rs6000/predicates.md (min_max_operator): Delete, no
5393 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
5394 instructions that generate a 0/-1 mask for use with XXSEL.
5395 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
5396 say whether floating point min/max is available, either through
5397 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
5398 (TARGET_MINMAX_DF): Likewise.
5400 Back port from trunk
5401 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5403 * config/rs6000/predicate.md (all_ones_constant): New predicate
5404 for vector constant with all 1's set.
5406 2016-06-02 Kelvin Nilsen <kelvin@gcc.gnu.org>
5408 Back port from trunk
5409 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
5411 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
5412 (UNSPEC_DARN_32): New unspec constant.
5413 (UNSPEC_DARN_RAW): New unspec constant.
5414 (darn_32): New instruction.
5415 (darn_raw): New instruction.
5416 (darn): New instruction.
5417 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
5418 support and documentation for this macro.
5419 (BU_P9_MISC_1): New macro definition.
5420 (BU_P9_64BIT_MISC_0): New macro definition.
5421 (BU_P9_MISC_0): New macro definition.
5422 (darn_32): New builtin definition.
5423 (darn_raw): New builtin definition.
5424 (darn): New builtin definition.
5425 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
5426 RS6000_BUILTIN_0 directives to surround each occurrence of
5427 #include "rs6000-builtin.def".
5428 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
5429 RS6000_BTM_64BIT flags to the returned mask, depending on
5431 (def_builtin): Correct an error in the assignments made to the
5432 debugging variable attr_string.
5433 (rs6000_expand_builtin): Add support for no-operand built-in
5435 (builtin_function_type): Remove fatal_error assertion that is no
5437 (rs6000_common_init_builtins): Add support for no-operand built-in
5439 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
5441 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
5443 (RS6000_BTM_64BIT): New macro definition.
5444 * doc/extend.texi: Document __builtin_darn (void),
5445 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
5448 2016-06-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5450 Back port from trunk
5451 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5454 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
5455 ISA 3.0 xxperm fusion alternative.
5456 (altivec_vperm_v8hiv16qi): Likewise.
5457 (altivec_vperm_<mode>_uns_internal): Likewise.
5458 (vperm_v8hiv4si): Likewise.
5459 (vperm_v16qiv8hi): Likewise.
5461 Back port from trunk
5462 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5463 Kelvin Nilsen <kelvin@gcc.gnu.org>
5465 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
5466 vpermr/xxpermr on ISA 3.0.
5467 (altivec_expand_vec_perm_le): Likewise.
5468 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
5469 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
5472 Back port from trunk
5473 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5475 * config/rs6000/altivec.md (VParity): New mode iterator for vector
5476 parity built-in functions.
5477 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
5479 (p9v_parity<mode>2): Likewise.
5480 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
5482 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
5483 (parity<mode>2): ISA 3.0 expander for vector parity.
5484 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
5486 (BU_P9_64BIT_MISC_0): Likewise.
5487 (BU_P9_MISC_0): Likewise.
5488 (BU_P9V_AV_1): Likewise.
5489 (BU_P9V_AV_2): Likewise.
5490 (BU_P9V_AV_3): Likewise.
5491 (BU_P9V_AV_P): Likewise.
5492 (BU_P9V_VSX_1): Likewise.
5493 (BU_P9V_OVERLOAD_1): Likewise.
5494 (BU_P9V_OVERLOAD_2): Likewise.
5495 (BU_P9V_OVERLOAD_3): Likewise.
5496 (VCTZB): Add vector count trailing zeros support.
5500 (VPRTYBD): Add vector parity support.
5501 (VPRTYBQ): Likewise.
5502 (VPRTYBW): Likewise.
5503 (VCTZ): Add overloaded vector count trailing zeros support.
5504 (VPRTYB): Add overloaded vector parity support.
5505 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5506 overloaded vector count trailing zeros and parity instructions.
5507 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
5508 vector parity support.
5509 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
5510 trailing zeros support.
5511 (vec_cntlz): Likewise.
5512 (vec_vctzb): Likewise.
5513 (vec_vctzd): Likewise.
5514 (vec_vctzh): Likewise.
5515 (vec_vctzw): Likewise.
5516 (vec_vprtyb): Add ISA 3.0 vector parity support.
5517 (vec_vprtybd): Likewise.
5518 (vec_vprtybw): Likewise.
5519 (vec_vprtybq): Likewise.
5520 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5521 the ISA 3.0 vector count trailing zeros and vector parity built-in
5524 Back port from trunk
5525 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
5527 * config/rs6000/altivec.md (VNEG iterator): New iterator for
5528 VNEGW/VNEGD instructions.
5529 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
5530 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
5531 support for ISA 3.0 VNEGW/VNEGD instructions.
5533 Back port from trunk
5534 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5536 * config/rs6000/predicates.md (quad_memory_operand): Move most of
5537 the code into quad_address_p and call it to share code with
5538 vsx_quad_dform_memory_operand.
5539 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
5541 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
5542 bit instead of being a separate word. Split -mpower9-dform into
5543 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5544 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
5545 for the register class supporting 128-bit quad word memory offsets.
5546 (mode_supports_vsx_dform_quad): Helper function to return if the
5547 register class uses quad word memory offsets.
5548 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
5549 (rs6000_debug_reg_global): Always print if we are using LRA or not.
5550 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
5551 instructions are enabled, set up the appropriate addr_masks for
5553 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
5554 -mpower9-dform-scalar, instead of -mpower9-dform.
5555 (rs6000_option_override_internal): Split -mpower9-dform into two
5556 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
5557 -mpower9-dform switch sets or clears both. If we are not using
5558 the LRA register allocator, do not enable -mpower9-dform-vector by
5559 default. If we are using LRA, enable -mpower9-dform-vector and
5560 -mvsx-timode if it is appropriate. Issue a warning if either
5561 -mpower9-dform-vector or -mvsx-timode are explicitly used without
5563 (quad_address_offset_p): New helper function to return if the
5564 offset is legal for quad word memory instructions.
5565 (quad_address_p): New function to determin if GPR or vector
5566 register quad word memory addresses are legal.
5567 (mem_operand_gpr): Validate quad word address offsets.
5568 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
5569 d-form (register + offset) instructions.
5570 (offsettable_ok_by_alignment): Likewise.
5571 (rs6000_legitimate_offset_address_p): Likewise.
5572 (legitimate_lo_sum_address_p): Likewise.
5573 (rs6000_legitimize_address): Likewise.
5574 (rs6000_legitimize_reload_address): Add more debug statements for
5576 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
5577 d-form instructions.
5578 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
5579 d-form instructions. Distinguish different cases in debug
5580 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
5581 d-form instructions.
5582 (rs6000_preferred_reload_class): Likewise.
5583 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
5584 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
5585 of the ISA 2.06 indexed memory instructions.
5586 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
5587 use them to save/restore the saved vector registers instead of
5588 using Altivec instructions.
5589 (rs6000_emit_epilogue): Likewise.
5590 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
5591 (rs6000_opt_masks): Split -mpower9-dform into
5592 -mpower9-dform-scalar and -mpower9-dform-vector.
5593 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
5595 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
5596 ISA 3.0 vector indexed memory instructions, and fold the code into
5597 the normal mov<mode> patterns.
5598 (p9_vecstore_<mode>): Likewise.
5599 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
5601 (vsx_movti_64bit): Likewise.
5602 (vsx_movti_32bit): Likewise.
5603 * config/rs6000/constraints.md (wO constraint): New constraint for
5604 ISA 3.0 vector d-form support.
5605 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
5606 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
5607 include -mpower9-dform-vector until we switch over to LRA.
5608 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
5609 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
5610 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
5611 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
5612 for -mpower9-dform and -mlra.
5613 * doc/md.texi (wO constraint): Document wO constraint.
5615 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5617 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
5618 the factor for live Phi nodes.
5620 2016-06-01 Jakub Jelinek <jakub@redhat.com>
5623 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
5624 around creation of the temporary.
5626 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
5628 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
5629 into account live statements for mask producers.
5631 2016-05-31 Richard Biener <rguenther@suse.de>
5633 Backport from mainline
5634 2016-05-11 Richard Biener <rguenther@suse.de>
5637 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
5638 (dwarf2out_finish): Move retry_incomplete_types call ...
5639 (dwarf2out_early_finish): ... here.
5641 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5644 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
5645 NULL_TREE early if NEON is not available. Remove now redundant check
5646 in ARM_CHECK_BUILTIN_MODE.
5648 2016-05-31 Tom de Vries <tom@codesourcery.com>
5651 2016-05-31 Tom de Vries <tom@codesourcery.com>
5653 PR tree-optimization/69068
5654 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
5655 phis with more than two args.
5657 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
5659 Backport from mainline
5660 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
5662 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
5663 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
5666 2016-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5668 Backport from mainline
5669 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5671 * config/rs6000/altivec.h: Change definitions of vec_xl and
5673 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
5674 (LD_ELEMREV_V2DI): New.
5675 (LD_ELEMREV_V4SF): New.
5676 (LD_ELEMREV_V4SI): New.
5677 (LD_ELEMREV_V8HI): New.
5678 (LD_ELEMREV_V16QI): New.
5679 (ST_ELEMREV_V2DF): New.
5680 (ST_ELEMREV_V2DI): New.
5681 (ST_ELEMREV_V4SF): New.
5682 (ST_ELEMREV_V4SI): New.
5683 (ST_ELEMREV_V8HI): New.
5684 (ST_ELEMREV_V16QI): New.
5687 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5688 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
5689 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
5690 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
5691 (altivec_expand_builtin): Add handling for
5692 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
5693 (rs6000_invalid_builtin): Add error-checking for
5694 RS6000_BTM_P9_VECTOR.
5695 (altivec_init_builtins): Define builtins used to implement vec_xl
5697 (rs6000_builtin_mask_names): Define power9-vector.
5698 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
5699 (RS6000_BTM_P9_VECTOR): Define.
5700 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
5701 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
5702 (vsx_ld_elemrev_v2df): Likewise.
5703 (vsx_ld_elemrev_v4sf): Likewise.
5704 (vsx_ld_elemrev_v4si): Likewise.
5705 (vsx_ld_elemrev_v8hi): Likewise.
5706 (vsx_ld_elemrev_v16qi): Likewise.
5707 (vsx_st_elemrev_v2df): Likewise.
5708 (vsx_st_elemrev_v2di): Likewise.
5709 (vsx_st_elemrev_v4sf): Likewise.
5710 (vsx_st_elemrev_v4si): Likewise.
5711 (vsx_st_elemrev_v8hi): Likewise.
5712 (vsx_st_elemrev_v16qi): Likewise.
5713 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
5716 2016-05-30 Richard Biener <rguenther@suse.de>
5718 Backport from mainline
5719 2016-05-11 Richard Biener <rguenther@suse.de>
5722 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
5723 if the langhook insists on it.
5724 * fold-const.c (make_bit_field_ref): Add arg for the original
5725 reference and preserve its alias-set.
5726 (decode_field_reference): Take exp by reference and adjust it
5727 to the original memory reference.
5728 (optimize_bit_field_compare): Adjust callers.
5729 (fold_truth_andor_1): Likewise.
5731 2016-05-13 Jakub Jelinek <jakub@redhat.com>
5734 * fold-const.c (fold_checksum_tree): Allow modification
5735 of TYPE_ALIAS_SET during folding.
5737 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
5739 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
5740 (visium_expand_copysign): Use gen_int_mode directly.
5741 (visium_compute_frame_size): Minor tweaks.
5743 2016-05-30 Tom de Vries <tom@codesourcery.com>
5746 2016-05-30 Tom de Vries <tom@codesourcery.com>
5748 PR tree-optimization/69067
5749 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
5751 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
5753 * config/visium/visium-protos.h (split_double_move): Rename into...
5754 (visium_split_double_move): ...this.
5755 (visium_split_double_add): Declare.
5756 * config/visium/visium.c (split_double_move): Rename into...
5757 (visium_split_double_move): ...this.
5758 (visium_split_double_add): New function.
5759 (visium_expand_copysign): Renumber operands for consistency.
5760 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
5761 (DFmode move splitter): Likewise.
5762 (*addi3_insn): Split by means of visium_split_double_add.
5763 (*adddi3_insn_flags): Delete.
5764 (*plus_plus_sltu<subst_arith>): New insn.
5765 (*subdi3_insn): Split by means of visium_split_double_add.
5766 (subdi3_insn_flags): Delete.
5767 (*minus_minus_sltu<subst_arith>): New insn.
5768 (*negdi2_insn): Split by means of visium_split_double_add.
5769 (*negdi2_insn_flags): Delete.
5771 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
5773 Backport from mainline r236810.
5774 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
5777 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
5780 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
5782 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
5783 redundant test and bail out if the type of the new operand is not
5784 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
5786 2016-05-24 Martin Sebor <msebor@redhat.com>
5789 * tree.h (complete_or_array_type_p): New inline function.
5791 2016-05-24 Jakub Jelinek <jakub@redhat.com>
5793 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
5794 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
5795 rather than X86_TUNE_AVOID_4BYTE_PREFIXES. Use SSE_REGS instead
5796 of ALL_SSE_REGS. Return SSE_REGS also when TARGET_AVX.
5798 2016-05-24 Jakub Jelinek <jakub@redhat.com>
5801 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5802 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5803 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
5804 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
5805 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
5807 2016-05-23 Martin Jambor <mjambor@suse.cz>
5809 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
5810 default block if a PHI node in the original one would be resized.
5812 2016-05-23 Martin Jambor <mjambor@suse.cz>
5814 PR tree-optimization/70884
5815 * tree-sra.c (initialize_constant_pool_replacements): Do not check
5816 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
5817 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
5818 of constant pool data as a reason for scalarization.
5820 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
5822 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
5823 for naked functions.
5824 (thumb1_expand_prologue): Likewise.
5826 2016-05-20 Jakub Jelinek <jakub@redhat.com>
5829 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
5830 calls if the LHS is variable length or has addressable type.
5831 If targets[0]->decl is a noreturn call with void return type and
5832 zero arguments, adjust fntype and remove lhs in that case.
5834 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
5836 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
5837 force pending loads from memory.
5839 2016-05-19 Marek Polacek <polacek@redhat.com>
5841 Backport from mainline
5842 2016-05-19 Marek Polacek <polacek@redhat.com>
5844 PR tree-optimization/71031
5845 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
5846 condition and adjust the code a bit.
5848 2016-05-19 Martin Jambor <mjambor@suse.cz>
5851 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
5852 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
5854 2016-05-19 Martin Jambor <mjambor@suse.cz>
5857 * ipa-inline.h (condition): New field size.
5858 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
5859 for comaprison and store it into the new condition.
5860 (evaluate_conditions_for_known_args): Use condition size to check
5861 access sizes for all but CHANGED conditions.
5862 (unmodified_parm_1): New parameter size_p, store access size into it.
5863 (unmodified_parm): Likewise.
5864 (unmodified_parm_or_parm_agg_item): Likewise.
5865 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
5866 (set_cond_stmt_execution_predicate): Extract access sizes and store
5868 (set_switch_stmt_execution_predicate): Likewise.
5869 (will_be_nonconstant_expr_predicate): Likewise.
5870 (will_be_nonconstant_predicate): Likewise.
5871 (inline_read_section): Stream condition size.
5872 (inline_write_summary): Likewise.
5873 * lto-streamer.h (LTO_minor_version): Bump.
5875 2016-05-18 Martin Liska <mliska@suse.cz>
5877 Backport from mainline
5878 2016-05-18 Martin Liska <mliska@suse.cz>
5881 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
5884 2016-05-18 Jakub Jelinek <jakub@redhat.com>
5887 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
5888 lhs if it has TREE_ADDRESSABLE type.
5890 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
5893 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
5894 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
5896 2016-05-17 Thomas Schwinge <thomas@codesourcery.com>
5898 Backport trunk r235748:
5900 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
5901 (nvptx_function_value): Assert non-NULL cfun.
5903 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5905 Backport from mainline
5906 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5909 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
5911 2016-05-16 Martin Jambor <mjambor@suse.cz>
5913 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
5914 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
5916 2016-05-16 Martin Jambor <mjambor@suse.cz>
5919 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
5920 the outlined kernel function.
5922 2016-05-16 James Norris <jnorris@codesourcery.com>
5924 Backport from mainline r236098.
5925 2016-05-10 James Norris <jnorris@codesourcery.com>
5928 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
5929 if offloading is enabled and -fopenacc or -fopenmp is specified.
5930 (CRTOFFLOADEND): Likewise.
5931 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
5932 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
5934 2016-05-16 Alan Modra <amodra@gmail.com>
5937 2016-05-10 Alan Modra <amodra@gmail.com>
5939 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
5940 regrename modifying insns saving lr before __morestack call.
5941 * config/rs6000/rs6000.md (split_stack_return): Similarly for
5942 insns restoring lr after __morestack call.
5944 2016-05-13 Richard Biener <rguenther@suse.de>
5946 Backport from mainline
5947 2016-04-27 Richard Biener <rguenther@suse.de>
5950 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
5951 aggregate_value_p to determine if a function result is
5952 returned by reference.
5954 2016-05-06 Richard Biener <rguenther@suse.de>
5957 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
5959 2016-05-06 Richard Biener <rguenther@suse.de>
5962 * fold-const.c (split_tree): Always convert to the original type
5965 2016-05-12 Martin Liska <mliska@suse.cz>
5967 Backport from mainline
5968 2016-05-10 Martin Liska <mliska@suse.cz>
5970 * tree-inline.c (remap_dependence_clique): Do not remap
5971 debugging statements.
5973 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
5975 Backport from mainline r236171.
5976 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
5978 PR tree-optimization/71006
5979 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
5980 consider COND_EXPR as a mask producer.
5982 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5984 Backport from mainline
5985 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5988 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
5989 when popping the PC and within an interrupt handler routine.
5990 Add missing tab to output of "ldmfd".
5991 (output_return_instruction): Output LDMFD with SP update rather
5992 than POP when returning from interrupt handler.
5994 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
5996 Backport from mainline r236088.
5997 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
6000 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
6001 calls with type casted fndecl.
6003 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
6005 Backport from mainline r236086.
6006 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
6008 PR tree-optimization/70876
6009 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
6010 * gcc/calls.c (initialize_argument_information): Bind bounds
6011 with corresponding args passed by reference.
6013 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6015 Backport from mainline
6016 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6019 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
6020 code for a zero scale factor.
6021 (vsx_xvcvdpuxds_scale): Likewise.
6023 2016-05-10 Jakub Jelinek <jakub@redhat.com>
6025 Backported from mainline
6026 2016-05-03 Jakub Jelinek <jakub@redhat.com>
6028 PR tree-optimization/70916
6029 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
6030 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
6032 2016-05-10 Yuri Rumyantsev <ysrumyan@gmail.com>
6034 Backport from mainline r235962.
6035 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
6038 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
6039 loop latch destination.
6041 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6043 Backport from mainline
6044 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6046 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
6047 ("*fixuns_truncdfdi2_z13")
6048 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
6049 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
6050 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
6052 2016-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
6054 Backport from mainline
6055 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
6057 * config/rtems.h (LIB_SPEC): Add -latomic.
6059 2016-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
6061 Backport from mainline
6062 2016-04-27 Joel Sherrill <joel@rtems.org>
6064 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
6065 xilink.ld and flags not relevant to RTEMS.
6067 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
6069 * config/i386/i386.md (absneg splitters with general regs): Use
6070 general_reg_operand predicate.
6071 (btsq peephole2): Use x86_64_immediate_operand to check if new
6072 value is suitable for immediate operand. Generate emitted insn
6073 using RTL expressions.
6074 (btcq peephole2): Ditto.
6075 (btrq peephole2): Ditto. Generate correct immediate operand
6078 2016-05-07 Tom de Vries <tom@codesourcery.com>
6081 2016-05-07 Tom de Vries <tom@codesourcery.com>
6083 PR tree-optimization/70956
6084 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
6087 2016-05-06 Marek Polacek <polacek@redhat.com>
6089 Backported from mainline
6090 2016-05-06 Marek Polacek <polacek@redhat.com>
6093 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
6095 2016-05-06 Marek Polacek <polacek@redhat.com>
6097 Backported from mainline
6098 2016-04-29 Marek Polacek <polacek@redhat.com>
6099 Jakub Jelinek <jakub@redhat.com>
6102 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
6103 TARGET_EXPR_SLOT as a base.
6105 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
6107 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
6109 (compute_samebase_partition_bases): Fix typo.
6111 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
6113 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
6114 occurence with frame_offset_ ones.
6116 2016-04-28 Jakub Jelinek <jakub@redhat.com>
6119 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
6120 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
6121 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
6122 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
6123 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
6125 2016-04-28 Eric Botcazou <ebotcazou@adacore.com>
6127 Backport from mainline
6128 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
6131 * stor-layout.h (internal_reference_types): Delete.
6132 * stor-layout.c (reference_types_internal): Likewise.
6133 (internal_reference_types): Likewise.
6134 (layout_type) <REFERENCE_TYPE>: Adjust.
6136 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6138 Backport from mainline
6139 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6141 * config/rs6000/rs6000-builtin.def: Correct pasto error for
6142 stxvd2x and stxvw4x built-in functions.
6144 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
6146 Backported from mainline
6147 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
6150 * config/i386/predicates.md (call_insn_operand): Replace
6151 sibcall_memory_operand with memory_operand.
6153 2016-04-27 Richard Biener <rguenther@suse.de>
6156 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
6157 function cummulating used_from_other_partition, externally_visible
6158 and force_output from aliases.
6159 (refered_from_nonlocal_var): Likewise.
6160 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
6161 node flags properly.
6163 2016-04-27 Jakub Jelinek <jakub@redhat.com>
6165 Backported from mainline
6166 2016-04-23 Jakub Jelinek <jakub@redhat.com>
6169 * cfgexpand.c (expand_stack_vars): Fix typo.
6171 2016-04-19 Jakub Jelinek <jakub@redhat.com>
6174 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
6175 implicitly linear or lastprivate iterator on the outer context.
6177 2016-04-27 Kirill Yukhin <kirill.yukhin@intel.com>
6180 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
6181 Extract AVX-512BW constraint from AVX.
6183 2016-04-27 Jakub Jelinek <jakub@redhat.com>
6185 * BASE-VER: Set to 6.1.1.
6187 2016-04-27 Release Manager
6189 * GCC 6.1.0 released.
6191 2016-04-25 Richard Biener <rguenther@suse.de>
6193 PR tree-optimization/70780
6194 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
6196 (compute_antic): Mark blocks with abnormal preds as visited as
6197 they have a final empty antic-in solution already.
6199 2016-04-22 H.J. Lu <hongjiu.lu@intel.com>
6201 Backport from mainline
6202 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
6204 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
6206 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
6208 * system.h (list, map, set, vector): Include conditionally.
6209 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
6210 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
6211 * ipa-icf.c (INCLUDE_LIST): Define.
6212 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
6213 * config/sh/sh.c (INCLUDE_VECTOR): Define.
6214 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
6215 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
6216 * cp/logic.cc (INCLUDE_LIST): Define.
6217 * fortran/trans-common.c (INCLUDE_MAP): Define.
6219 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
6221 * auto-profile.c: Remove <string.h> include.
6222 * ipa-icf-gimple.c: Remove <list> include.
6223 * diagnostic.c: Remove <new> include.
6224 * genmatch.c: Likewise.
6225 * pretty-print.c: Likewise.
6226 * toplev.c: Likewise
6227 * c/c-objc-common.c: Likewise.
6228 * cp/error.c: Likewise.
6229 * fortran/error.c: Likewise.
6231 2016-04-21 Richard Biener <rguenther@suse.de>
6234 * fold-const.c (fold_comparison): Return properly typed
6237 2016-04-20 Andrew Pinski <apinski@cavium.com>
6238 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6241 * config/aarch64/aarch64.md (sibcall): Force call
6242 address to be DImode for ILP32.
6243 (sibcall_value): Likewise.
6245 2016-04-20 Marek Polacek <polacek@redhat.com>
6247 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
6250 2016-04-20 Marek Polacek <polacek@redhat.com>
6252 PR tree-optimization/70725
6253 * tree-if-conv.c (is_false_predicate): New function.
6254 (predicate_mem_writes): Use it.
6256 2016-04-20 Richard Biener <rguenther@suse.de>
6258 PR tree-optimization/70726
6259 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
6260 shift amounts from a pattern stmt operand.
6262 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6265 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
6266 stack_restore_from_fpr pattern when restoring r15.
6267 (s390_optimize_prologue): Strip away the memory barrier in the
6268 parallel when trying to get rid of restore insns.
6269 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
6270 definition for loading the stack pointer from an FPR. Compared to
6271 the normal move insn this pattern includes a full memory barrier.
6273 2016-04-19 Richard Biener <rguenther@suse.de>
6275 PR tree-optimization/70724
6276 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
6277 restoring out from ...
6278 (free_scc_vn): ... here.
6279 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
6280 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
6282 (pass_fre::execute): Restore SSA info.
6284 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6286 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
6288 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
6290 Mention Solaris 11 packaging changes.
6291 Update gas and gld requirements.
6292 Remove reference to pre-Solaris 10 bug.
6293 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
6295 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
6298 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
6301 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
6302 armv8.1-a and armv8.1-a+crc.
6304 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
6306 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
6307 unless compiling with at least GCC-4.8.
6309 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6312 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
6313 Fix mode size check.
6315 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6317 * BASE-VER: Set to 6.0.1.
6318 * DEV-PHASE: Set to prerelease.
6320 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
6322 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
6324 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6326 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
6327 architecture revisions.
6329 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
6331 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
6332 * config/i386/i386.c (ix86_using_red_zone): No longer static.
6333 * config/i386/i386.md (stack decrement to push peepholes): Guard
6334 with !x86_using_red_zone ().
6336 2016-04-15 Jakub Jelinek <jakub@redhat.com>
6339 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
6340 to dump_generic_node.
6341 (NIY): Pass also flags to do_niy.
6343 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
6345 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
6346 (simd_clone_vector_of_formal_parm_types)
6347 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
6348 (simd_clone_mangle, simd_clone_create)
6349 (simd_clone_adjust_return_type, create_tmp_simd_array)
6350 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
6351 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
6352 (ipa_simd_modify_function_body, simd_clone_linear_addend)
6353 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
6354 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
6355 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
6357 * omp-simd-clone.c: ... this new file.
6358 (simd_clone_vector_of_formal_parm_types): Make it static.
6359 * Makefile.in (OBJS): Add omp-simd-clone.o.
6361 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
6364 * config/i386/sse.md: Use proper memory operand
6368 2016-04-15 Richard Biener <rguenther@suse.de>
6369 Alan Modra <amodra@gmail.com>
6371 PR tree-optimization/70130
6372 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
6373 when alignment stays not the same and no not use the realign
6376 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6379 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
6380 direct move handlers for KFmode. Change TFmode handlers test from
6381 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
6383 2016-04-14 Jakub Jelinek <jakub@redhat.com>
6386 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
6387 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
6388 (inlined_polymorphic_ctor_dtor_block_p): Use it.
6389 * tree-ssa-live.c (remove_unused_scope_block_p): When
6390 in_ctor_dtor_block, avoid discarding not just BLOCKs with
6391 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
6392 block_ultimate_origin is FUNCTION_DECL.
6393 (remove_unused_locals): If current_function_decl is
6394 polymorphic_ctor_dtor_p, pass initial true to
6395 remove_unused_scope_block_p' is_ctor_dtor_block.
6397 2016-04-14 Martin Sebor <msebor@redhat.com>
6402 * doc/extend.texi (Variable Length): Revert.
6404 2016-04-14 Marek Polacek <polacek@redhat.com>
6405 Jan Hubicka <hubicka@ucw.cz>
6408 * tree.c (verify_type): Disable the canonical type of main variant
6411 2016-04-14 Jason Merrill <jason@redhat.com>
6413 * cfgexpand.c, expr.c: Revert previous change.
6415 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
6418 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
6419 when building a mem ref for the incoming reduction variable.
6421 2016-04-14 Richard Biener <rguenther@suse.de>
6423 PR tree-optimization/70614
6424 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
6425 loop if the evolution dropped to chrec_dont_know.
6426 (interpret_condition_phi): Likewise.
6428 2016-04-14 Richard Biener <rguenther@suse.de>
6430 PR tree-optimization/70623
6431 * tree-ssa-pre.c (changed_blocks): Make global ...
6432 (compute_antic): ... local here. Move and fix worklist
6433 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
6434 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
6435 worklist handling, dump when ANTIC_IN changed.
6436 (compute_partial_antic_aux): Remove worklist handling.
6437 (init_pre): Do not compute post dominators. Add a comment about
6438 the CFG order chosen.
6439 (fini_pre): Do not free post dominators.
6441 2016-04-13 Martin Sebor <msebor@redhat.com>
6446 * doc/extend.texi (Variable Length): Document C++ specifics.
6448 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6451 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
6452 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
6453 eh edges have been purged.
6456 * tree-sra.c (create_access_replacement,
6457 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
6459 * tree-pretty-print.c (dump_fancy_name): New function.
6460 (dump_decl_name, dump_generic_node): Use it.
6462 2016-04-13 Jason Merrill <jason@redhat.com>
6464 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
6465 * expr.c (expand_expr_real_1): Likewise.
6467 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
6469 * config/i386/i386.md (kunpckhi): Swap operands.
6470 (kunpcksi): Likewise.
6471 (kunpckdi): Likewise.
6472 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
6473 (vec_pack_trunc_<mode>): Likewise.
6475 2016-04-13 Jakub Jelinek <jakub@redhat.com>
6478 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
6481 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
6482 gimplification turns some element into non-constant.
6485 * rtl.h (convert_memory_address_addr_space_1): New prototype.
6486 * explow.c (convert_memory_address_addr_space_1): No longer static,
6487 add NO_EMIT argument and don't call convert_modes if true, pass
6488 it down recursively, remove break after return.
6489 (convert_memory_address_addr_space): Adjust caller.
6490 * simplify-rtx.c (simplify_unary_operation_1): Call
6491 convert_memory_address_addr_space_1 instead of convert_memory_address,
6492 if it returns NULL, don't simplify.
6494 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
6497 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
6499 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6501 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6502 Bump the upper SIMDLEN limits, so that if the return type or
6503 characteristic type if the return type is void can be passed in
6504 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
6507 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6510 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
6511 Do not use "=" constraint on an input constraint.
6512 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
6513 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
6514 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
6515 generates (neg (abs ...)) instead of (abs ...).
6517 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6519 PR rtl-optimization/70596
6520 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
6521 just invalidate LRA data and reset them. Adjust dump wording.
6523 2016-04-12 Martin Liska <mliska@suse.cz>
6526 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6528 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
6530 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
6531 max_loop_iterations_int.
6532 (tree_unswitch_outer_loop): Likewise.
6533 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
6534 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
6536 2016-04-12 Tom de Vries <tom@codesourcery.com>
6538 PR tree-optimization/68756
6539 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
6540 instead of new_name.
6542 2016-04-12 Jakub Jelinek <jakub@redhat.com>
6544 PR tree-optimization/70602
6545 * tree-sra.c (generate_subtree_copies): Don't write anything into
6546 constant pool decls.
6548 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
6549 regardless whether there are depend clauses or not.
6551 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6554 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
6555 target attribute and pragma from changing the -mfloat128
6556 and -mfloat128-hardware options.
6558 * doc/extend.texi (Additional Floating Types): Document PowerPC
6559 __float128 restrictions.
6561 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6564 * config/aarch64/driver-aarch64.c
6565 (aarch64_get_extension_string_for_isa_flags): New.
6566 (arch_extension): Rename to...
6567 (aarch64_arch_extension): ...This.
6568 (ext_to_feat_string): Rename to...
6569 (aarch64_extensions): ...This.
6570 (aarch64_core_data): Keep track of architecture extension flags.
6571 (cpu_data): Rename to...
6572 (aarch64_cpu_data): ...This.
6573 (aarch64_arch_driver_info): Keep track of architecture extension
6575 (get_arch_name_from_id): Rename to...
6576 (get_arch_from_id): ...This, change return type.
6577 (host_detect_local_cpu): Update and reformat for renames, handle
6578 extensions through common infrastructure.
6580 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6583 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
6584 track of a canonical flag name.
6585 (all_extensions): Likewise.
6586 (arch_to_arch_name): Also track extension flags enabled by the arch.
6587 (all_architectures): Likewise.
6588 (aarch64_parse_extension): Move to here.
6589 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
6591 (aarch64_rewrite_selected_cpu): Update for above change.
6592 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
6593 are handled, such that the single explicit value enabled by an
6594 extension is kept seperate from the implicit values it also enables.
6595 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
6597 (aarch64_parse_extension): New.
6598 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
6599 here to config/aarch64/aarch64-protos.h.
6600 (aarch64_parse_extension): Move from here to
6601 common/config/aarch64/aarch64-common.c.
6602 (aarch64_option_print): Update.
6603 (aarch64_declare_function_name): Likewise.
6604 (aarch64_start_file): Likewise.
6605 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
6606 the canonical flag for extensions.
6607 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
6610 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6612 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
6615 2016-04-09 Tom de Vries <tom@codesourcery.com>
6617 PR tree-optimization/68953
6618 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
6619 first to last subscript.
6621 2016-04-09 Jakub Jelinek <jakub@redhat.com>
6623 PR tree-optimization/70586
6624 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
6627 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
6631 PR tree-optimization/70373
6635 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
6636 clauses for acc parallel reductions as necessary. Error on those
6638 * omp-low.c (scan_sharing_clauses): Don't install variables which
6639 are used in acc parallel reductions.
6640 (lower_rec_input_clauses): Remove dead code.
6641 (lower_oacc_reductions): Add support for reference reductions.
6642 (lower_reduction_clauses): Remove dead code.
6643 (lower_omp_target): Don't remap variables appearing in acc parallel
6645 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
6647 2016-04-08 Jakub Jelinek <jakub@redhat.com>
6650 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
6651 with multiple SSA_NAME defs, force the outputs other than first
6652 to be live before calling live_track_process_def on each output.
6654 PR rtl-optimization/70574
6655 * fwprop.c (forward_propagate_and_simplify): Don't add
6656 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
6657 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
6658 paradoxical subregs within *loc.
6660 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
6662 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
6663 -ftree-parallelize-loops={0,1}.
6664 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
6665 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
6666 * config/ia64/hpux.h (LIB_SPEC): Likewise.
6667 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6668 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6670 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
6673 * asan.c (instrument_derefs): If we get unknown location, extract it
6675 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
6677 2016-04-08 Tom de Vries <tom@codesourcery.com>
6679 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
6680 implicit firstprivate clause.
6682 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6685 * config/arm/thumb2.md (tst + branch-> lsls + branch
6686 peephole below *orsi_not_shiftsi_si): Require that condition
6687 register is dead after the peephole.
6688 (second peephole after the above): Likewise.
6690 2016-04-08 Alan Modra <amodra@gmail.com>
6693 * builtins.c (fold_builtin_classify): For IBM extended precision,
6694 look at just the high-order double to test for NaN.
6695 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
6696 test just the high double for Inf but both doubles for subnormal
6699 2016-04-07 Jakub Jelinek <jakub@redhat.com>
6701 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
6702 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
6703 node->simdclone->mask_mode != VOIDmode masks.
6704 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
6705 earlier, use it instead of node->simdclone.
6706 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6707 Set clonei->mask_mode.
6709 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
6712 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
6713 Pass it through to cp_parser_already_scoped_statement.
6714 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
6715 it through to cp_parser_statement.
6716 (cp_parser_statement): Pass IF_P through to
6717 cp_parser_iteration_statement.
6718 (cp_parser_pragma): Adjust call to
6719 cp_parser_iteration_statement.
6721 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
6724 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
6725 resolve a future -Wparentheses warning.
6726 * omp-low.c (scan_sharing_clauses): Likewise.
6727 * tree-parloops.c (eliminate_local_variables): Likewise.
6729 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
6731 PR rtl-optimization/70398
6732 * lra-constraints.c (process_address_1): Check zero scale and code
6733 for reloading with zero scale.
6735 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
6737 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
6738 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
6740 2016-04-06 Jakub Jelinek <jakub@redhat.com>
6742 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6743 Add support for AVX512F clones, include them by default for
6744 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
6745 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
6749 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
6750 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
6751 firstprivate clauses.
6752 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
6753 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
6754 (lower_omp_target): Set TREE_NO_WARNING for
6755 non-addressable possibly uninitialized vars which are copied into
6756 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
6758 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
6760 * config/pa/predicates.md (integer_store_memory_operand): Accept
6761 REG+D operands with a large offset when reload_in_progress is true.
6762 (floating_point_store_memory_operand): Likewise.
6764 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6767 * match.pd (nested int casts): Limit to GIMPLE.
6769 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
6772 * ipa-devirt.c (maybe_record_node): Fix comment; use
6773 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
6775 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6777 PR rtl-optimization/70542
6778 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
6779 if there are any uses other than insn or debug insns.
6781 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
6782 Jakub Jelinek <jakub@redhat.com>
6784 PR tree-optimization/70509
6785 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
6786 Shift HOST_WIDE_INT_1U instead of 1.
6788 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
6790 PR tree-optimization/70509
6791 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
6792 of the vector base type for index.
6794 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
6797 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
6799 2016-04-05 Richard Biener <rguenther@suse.de>
6801 PR tree-optimization/70526
6802 * tree-sra.c (build_ref_for_offset): Use prev_base to
6803 extract the alias pointer type.
6805 2016-04-05 Richard Biener <rguenther@suse.de>
6807 * dse.c (struct store_info): Remove alias_set member.
6808 (struct read_info_type): Likewise.
6809 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
6810 spill_deleted, clear_alias_set_lookup): Remove.
6811 (get_group_info): Remove dead base == NULL_RTX case.
6812 (dse_step0): Remove initialization of removed variables.
6813 (delete_dead_store_insn): Reomve alias set dumping.
6814 (free_read_records): Remove alias_set handling.
6815 (canon_address): Remove alias_set_out parameter.
6816 (record_store): Remove spill_alias_set, it's always zero.
6817 (check_mem_read_rtx): Likewise.
6818 (dse_step2): Rename from ...
6819 (dse_step2_nospill): ... this. Adjust.
6820 (scan_stores): Rename from ...
6821 (scan_stores_nospill): ... this.
6822 (scan_reads): Rename from ...
6823 (scan_reads_nospill): ... this.
6824 (scan_stores_spill, scan_reads_spill): Remove.
6825 (dse_step3_scan): Remove for_spills argument which is always false.
6826 (dse_step3): Likewise.
6827 (dse_step5): Rename from ...
6828 (dse_step5_nospill): ... this. Remove alias_set handling.
6829 (rest_of_handle_dse): Adjust.
6831 2016-04-05 Jakub Jelinek <jakub@redhat.com>
6834 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
6835 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
6836 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
6837 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
6839 2016-04-05 Richard Biener <rguenther@suse.de>
6842 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
6843 non-register type temporaries into SSA.
6845 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
6848 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
6849 calls when sanitizing.
6850 (possible_polymorphic_call_target_p): Fix formatting.
6852 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6853 Jakub Jelinek <jakub@redhat.com>
6856 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
6857 to ensure a call statement is compatible with a built-in's
6859 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
6862 2016-04-04 Richard Biener <rguenther@suse.de>
6864 PR rtl-optimization/70484
6865 * rtl.h (canon_output_dependence): Declare.
6866 * alias.c (canon_output_dependence): New function.
6867 * dse.c (record_store): Use canon_output_dependence rather
6868 than canon_true_dependence.
6870 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
6873 * cgraph.h (symtab_node::copy_visibility_from): New function.
6874 * symtab.c (symtab_node::copy_visibility_from): New function.
6875 * ipa-visibility.c (optimize_weakref): New function.
6876 (function_and_variable_visibility): Use it.
6878 2016-04-04 Martin Liska <mliska@suse.cz>
6881 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
6882 value that is really in range handled by SBR instruction.
6883 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
6884 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
6885 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
6887 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
6891 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
6892 set, but not for SP_REG operands.
6894 2016-04-02 Martin Sebor <msebor@redhat.com>
6897 * fold-const.c (maybe_nonzero_address): New function.
6898 (fold_comparison): Call it. Fold equality and relational
6899 expressions involving null pointers.
6900 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
6902 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
6904 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
6905 the "Y" constraint (scalar FP 0.0 immediate).
6907 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
6908 Add the "const_double" to the list of operand constraints.
6910 2016-04-01 Jakub Jelinek <jakub@redhat.com>
6912 PR rtl-optimization/70467
6913 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
6914 If low word of the last operand is 0, just emit addition/subtraction
6917 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6920 * config/s390/s390.c (s390_expand_insv): Check for everything
6921 constant instead of just VOIDmode stuff.
6923 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6926 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
6928 2016-04-01 Nathan Sidwell <nathan@acm.org>
6930 * tree.def (TRY_CATCH_EXPR): Correct documentation.
6932 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
6934 PR rtl-optimization/70461
6935 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
6938 2016-03-31 Martin Liska <mliska@suse.cz>
6941 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
6942 a tree value or an immediate integer value to a buffer
6943 that is eventually copied to a BRIG section.
6944 (emit_immediate_operand): Call the function here.
6945 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
6946 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
6947 of class' fields that are removed.
6948 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
6949 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
6950 m_brig_repr_size fields.
6952 2016-03-31 Martin Liska <mliska@suse.cz>
6955 * hsa-gen.c (hsa_function_representation::update_dominance): New
6957 (convert_addr_to_flat_segment): Likewise.
6958 (gen_hsa_memory_set): New alignment argument.
6959 (gen_hsa_ctor_assignment): Likewise.
6960 (gen_hsa_insns_for_single_assignment): Provide alignment
6961 to gen_hsa_ctor_assignment.
6962 (gen_hsa_insns_for_direct_call): Add new argument.
6963 (expand_lhs_of_string_op): New function.
6964 (expand_string_operation_builtin): Likewise.
6965 (expand_memory_copy): New function.
6966 (expand_memory_set): New function.
6967 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
6968 (convert_switch_statements): Change signature.
6969 (generate_hsa): Use a return value of the function.
6970 (pass_gen_hsail::execute): Do not call
6971 convert_switch_statements here.
6972 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
6973 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
6974 (hsa_function_representation::update_dominance): New function.
6976 2016-03-31 Martin Liska <mliska@suse.cz>
6979 * hsa-brig.c (emit_directive_variable): Emit alignment
6980 according to hsa_symbol::m_align.
6981 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
6982 (dump_hsa_symbol): Dump alignment of HSA symbols.
6983 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
6984 (gen_hsa_addr_with_align): New function.
6985 (hsa_bitmemref_alignment): Use newly added function.
6986 (gen_hsa_insns_for_load): Likewise.
6987 (gen_hsa_insns_for_store): Likewise.
6988 (gen_hsa_memory_copy): New argument added.
6989 (gen_hsa_insns_for_single_assignment): Respect
6990 alignment for assignments processed via gen_hsa_memory_copy.
6991 (gen_hsa_insns_for_direct_call): Likewise.
6992 (gen_hsa_insns_for_return): Likewise.
6993 (gen_function_def_parameters): Set default alignment.
6994 * hsa.c (hsa_object_alignment): New function.
6995 (hsa_byte_alignment): Pasted function.
6996 * hsa.h (hsa_symbol::m_align): New field.
6998 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7000 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
7001 scratch field for goto case.
7003 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
7005 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
7007 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
7010 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
7011 (scalar_chain::convert_insn): Call convert_op for reg
7012 moves to handle undefined registers.
7014 2016-03-31 Nathan Sidwell <nathan@acm.org>
7017 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
7018 Assert we don't want to move backwards.
7020 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
7023 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
7025 2016-03-31 Jakub Jelinek <jakub@redhat.com>
7027 PR rtl-optimization/70460
7028 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
7029 with operand from REG_LABEL_OPERAND, instead substitute
7030 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
7031 Don't do anything for REG_NON_LOCAL_GOTO jumps.
7033 2016-03-31 Martin Liska <mliska@suse.cz>
7035 * passes.c (execute_one_pass): Do not call
7036 todo_after for a discarded function.
7038 2016-03-31 Bin Cheng <bin.cheng@arm.com>
7040 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
7041 (no_cost, infinite_cost): Initialize the new field.
7042 (get_computation_cost_at): Record setup cost.
7043 (determine_use_iv_cost_address): Skip cost computation for sub
7044 uses if we can estimate it without losing accuracy.
7046 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
7048 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
7050 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7051 max_loop_iterations_int.
7052 (tree_unswitch_outer_loop): Likewise.
7053 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
7054 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7056 2016-03-30 Richard Biener <rguenther@suse.de>
7059 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
7061 2016-03-30 Jakub Jelinek <jakub@redhat.com>
7064 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
7065 in gen_blendm expander.
7067 2016-03-30 Nick Clifton <nickc@redhat.com>
7070 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
7071 case where we are already provided with an SImode SUBREG.
7073 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
7076 * config/i386/i386.c (ix86_expand_epilogue): Properly check
7077 conflict between DRAP register and __builtin_eh_return.
7079 2016-03-30 Michael Matz <matz@suse.de>
7080 Richard Biener <rguenther@suse.de>
7083 * ipa-polymorphic-call.c (struct type_change_info): Change
7084 speculative to an unsigned allowing to limit the work we do.
7085 (csftc_abort_walking_p): New inline function..
7086 (check_stmt_for_type_change): Limit the number of may-defs
7087 skipped for speculative devirtualization to
7088 max-speculative-devirt-maydefs.
7089 * params.def (max-speculative-devirt-maydefs): New param.
7090 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
7092 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
7095 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
7098 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
7100 PR tree-optimization/59124
7101 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
7102 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
7104 2016-03-29 Jeff Law <law@redhat.com>
7106 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
7108 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7110 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
7113 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
7115 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
7116 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
7117 gcrt0.o if linking dynamically.
7119 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7122 * ipa-devirt.c (methods_equal_p): New function.
7123 (compare_virtual_tables): Use it.
7124 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
7125 * cgraphclones.c (clone_function_name_1): Use
7126 symbol_table::symbol_suffix_separator.
7127 * coverage.c (build_var): Likewise.
7128 * symtab.c (symbol_table::symbol_suffix_separator): New.
7130 2016-03-29 Jakub Jelinek <jakub@redhat.com>
7132 PR rtl-optimization/70429
7133 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
7134 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
7135 mode != result_mode.
7138 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
7140 PR tree-optimization/70405
7141 * ssa-iterators.h (num_imm_uses): Add missing braces.
7143 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
7145 PR rtl-optimization/68695
7146 * ira-color.c (allocno_copy_cost_saving): New.
7147 (improve_allocation): Use it.
7149 2016-03-29 Richard Henderson <rth@redhat.com>
7152 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
7154 2016-03-29 Richard Biener <rguenther@suse.de>
7157 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
7158 use alignment returned by get_pointer_alignment_1 if it is
7159 bigger than BITS_PER_UNIT.
7160 * builtins.c (get_pointer_alignment_1): Do not return true
7161 for alignment extracted from SSA info.
7163 2016-03-28 James Bowman <james.bowman@ftdichip.com>
7165 * config/ft32/ft32.opt (mnodiv): New.
7166 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
7167 * doc/invoke.texi (FT32 Options -mnodiv): New.
7169 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
7172 * config/i386/i386.md (define_split, andn): Fix modes.
7174 2016-03-26 Richard Biener <rguenther@suse.de>
7175 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7178 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
7180 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
7181 as 2nd argument to cl_optimization_restore().
7183 2016-03-25 Richard Henderson <rth@redhat.com>
7186 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
7187 * config/aarch64/aarch64-protos.h: Declare it.
7188 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
7190 2016-03-25 Alan Modra <amodra@gmail.com>
7193 * config/rs6000/constraints.md (j): Simplify.
7194 * config/rs6000/predicates.md (easy_fp_constant): Exclude
7196 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
7197 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
7198 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
7199 in all constraint alternatives.
7200 (movtd_64bit_nodm): Delete "j" constraint alternative.
7202 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7204 * tree-ssa-propagate.c: Enhance docs for
7205 SSA_PROP_NOT_INTERESTING.
7207 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
7209 * doc/extend.texi: Fix typo in documentation to pure attribute.
7211 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
7214 * config/pa/pa.md (bswapdi2): Use a scratch register.
7216 2016-03-24 Richard Henderson <rth@redhat.com>
7219 * fold-const.c (extract_muldiv_1): Correct test for multiplication
7222 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
7224 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
7225 using ix86_expand_binary_operator instead of gen_andsi3.
7227 2016-03-24 Richard Biener <rguenther@suse.de>
7229 PR tree-optimization/70396
7230 * tree-vect-stmts.c (vectorizable_comparison): Use
7231 get_vectype_for_scalar_type.
7233 2016-03-24 Richard Biener <rguenther@suse.de>
7236 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
7237 with register bases.
7239 2016-03-24 Richard Biener <rguenther@suse.de>
7241 PR tree-optimization/70372
7242 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
7243 build_all_ones_cst to also handle vector types correctly.
7245 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7248 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
7251 2016-03-23 Marek Polacek <polacek@redhat.com>
7254 * doc/invoke.texi: Document -Wignored-attributes.
7256 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7258 PR tree-optimization/69042
7259 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
7260 parameter from 30 to 40.
7262 2016-03-23 Bin Cheng <bin.cheng@arm.com>
7264 PR tree-optimization/69042
7265 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
7266 for use with constant offset stripped in base.
7268 2016-03-23 Richard Biener <rguenther@suse.de>
7271 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
7272 mode compatibility check.
7273 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7275 2016-03-23 Jeff Law <law@redhat.com>
7277 PR tree-optimization/64058
7278 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
7280 (struct ssa_conflicts): Move up earlier in the file.
7281 (conflicts_, var_map_): New static variables.
7282 (initialize_conflict_count): New function to initialize the
7283 CONFLICT_COUNT field for each conflict pair.
7284 (compare_pairs): Lazily initialize the conflict count and use it
7285 as the first tie-breaker.
7286 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
7287 and wipe conflicts_ and map_ around the call to qsort. Remove
7288 special case for 2 coalesce pairs.
7289 * bitmap.c (bitmap_count_unique_bits): New function.
7290 (bitmap_count_bits_in_word): New function, extracted from
7292 (bitmap_count_bits): Use bitmap_count_bits_in_word.
7293 * bitmap.h (bitmap_count_unique_bits): Declare it.
7295 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
7298 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
7299 transparent alias chain for decl assembler name.
7300 * config/sol2.c (solaris_assemble_visibility): Likewise.
7302 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7304 * config/arm/arm1020e.md (1020call_op): Reduce reservation
7306 (v10_fdivs): Likewise.
7307 (v10_fdivd): Likewise.
7309 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7312 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
7313 to not call fclose twice on file.
7315 2016-03-23 Jakub Jelinek <jakub@redhat.com>
7317 PR tree-optimization/70354
7318 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
7319 oprnd0 is wider than oprnd1 and there is a cast from the wider
7320 type to oprnd1, mask it with the mask of the narrower type.
7323 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
7324 Optimize TARGET_STV splitters, if high or low word of last argument
7327 2016-03-22 Jeff Law <law@redhat.com>
7330 tree-ssa-threadbackward.c
7331 (fsm_find_control_statement_thread_paths): Correctly distinguish
7332 between old style jump threads vs FSM jump threads.
7334 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
7337 * config/i386/i386.c (scalar_chain::convert_op): Support
7338 uninitialized register usage case.
7340 2016-03-22 Richard Biener <rguenther@suse.de>
7343 * genmatch.c (gen_transform): Adjust last parameter to a three-state
7345 (capture::gen_transform): ... to change behavior when substituting
7346 a condition into cond or not-cond expr context.
7347 (dt_simplify::gen_1): Adjust.
7348 * gimple-match-head.c: Include gimplify.h for unshare_expr.
7349 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
7350 last change and instead change to
7351 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
7352 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7354 2016-03-22 Anthony Green <green@moxielogic.com>
7356 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
7357 issue for moxiebox targets.
7358 (CC1PLUS_SPEC): Ditto.
7360 2016-03-22 Richard Biener <rguenther@suse.de>
7363 * fold-const.c (extract_muldiv_1): Properly perform multiplication
7366 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7368 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
7370 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
7373 * config/i386/i386.c (def_builtin): Handle
7374 OPTION_MASK_ISA_AVX512VL to be and-ed with other
7376 (const struct builtin_description bdesc_special_args[]):
7377 Remove duplicate ISA bits.
7379 2016-03-22 Jakub Jelinek <jakub@redhat.com>
7382 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
7383 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
7384 in a way that works also for AVX512BW.
7387 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
7388 instead of source if operands[1] is xmm16 and above and
7389 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
7390 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
7393 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
7394 on assign if (*from_p) is a comparison, set it to
7395 TREE_NO_WARNING (*from_p).
7397 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7400 * lra.c (restore_scratches): Ignore deleted insns.
7402 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
7403 Jakub Jelinek <jakub@redhat.com>
7405 PR tree-optimization/70317
7406 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
7409 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
7412 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
7413 of ix86_expand_move.
7415 (movti): Use general_operand for operand 1 predicate.
7417 2016-03-21 Martin Liska <mliska@suse.cz>
7419 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
7421 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
7423 2016-03-21 Martin Liska <mliska@suse.cz>
7426 * ipa-icf.c (sem_function::parse): Skip static
7427 constructors and destructors.
7429 2016-03-21 Jakub Jelinek <jakub@redhat.com>
7432 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
7433 function-like macro, peek following token(s) if it is followed
7434 by CPP_OPEN_PAREN token with optional padding in between, and
7435 if not, don't treat it like a macro.
7437 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
7438 Alexander Monakov <amonakov@ispras.ru>
7440 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
7441 for the stabs debug format.
7443 2016-03-21 Richard Biener <rguenther@suse.de>
7445 PR tree-optimization/70310
7446 * tree-vect-generic.c (expand_vector_condition): Fold the built
7449 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
7452 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
7453 Block third alternative for AVX-512VL target,
7455 2016-03-21 Martin Liska <mliska@suse.cz>
7458 * hsa-brig.c (emit_function_directives): Mark unemitted
7459 global variables for emission.
7460 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
7461 (get_symbol_for_decl): Likewise.
7462 * hsa.h (struct hsa_symbol): New flag.
7464 2016-03-21 Richard Biener <rguenther@suse.de>
7466 PR tree-optimization/70288
7467 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
7468 we do not estimate unsimplified all-constant conditionals or
7469 switches as optimized away.
7471 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
7473 PR rtl-optimization/69102
7474 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
7475 when we have a readonly dependency context.
7477 2016-03-18 Jeff Law <law@redhat.com>
7479 PR rtl-optimization/70263
7480 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
7481 (update_equiv_regs): When trying to move a store to after the insn
7482 that sets the source of the store, make sure the store occurs after
7483 the insn that sets the source of the store. When successful note
7484 the REG_EQUIV note created in the dump file.
7486 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
7487 Bernd Schmidt <bschmidt@redhat.com>
7489 * doc/extend.texi: Document more potential problems with basic asms.
7491 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
7493 PR rtl-optimization/70278
7494 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
7497 2016-03-18 Jason Merrill <jason@redhat.com>
7499 * calls.c (load_register_parameters): Fix zero size sibcall logic.
7501 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
7503 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
7504 values to 128b regs.
7506 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7508 PR tree-optimization/70252
7509 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
7510 boolean vector has a proper number of elements.
7511 (supportable_narrowing_operation): Likewise.
7513 2016-03-18 Tom de Vries <tom@codesourcery.com>
7516 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
7518 2016-03-18 Jakub Jelinek <jakub@redhat.com>
7520 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
7521 instead of replace_rtx for DEBUG_INSNs.
7523 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7525 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
7526 load type reservations.
7528 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
7531 * config/pa/constraints.md: Revert 2015-02-13 change. Use
7532 define_constraint for "Q" and "T" constraints.
7534 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
7536 Tweak the pipeline model for Exynos M1
7538 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
7541 2016-03-17 David Malcolm <dmalcolm@redhat.com>
7544 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
7545 where one or both locations aren't within a line_map.
7547 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
7550 * opts.c (finish_options): Don't set flag_pie to the default if
7551 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
7554 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
7556 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
7557 true as ALL_REGS argument to replace_rtx.
7559 2016-03-17 Richard Biener <rguenther@suse.de>
7562 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
7565 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7568 * rtl.h (replace_rtx): Add ALL_REGS argument.
7569 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
7570 equality and assert mode is the same, instead of just rtx pointer
7572 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
7573 true as ALL_REGS argument to replace_rtx.
7575 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
7577 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
7578 for boolean vector with vector mode only.
7579 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
7581 2016-03-17 Nick Clifton <nickc@redhat.com>
7584 * config/rx/rx.c (rx_print_integer): Print negative constants in
7587 2016-03-17 Jakub Jelinek <jakub@redhat.com>
7590 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
7592 2016-03-16 Richard Henderson <rth@redhat.com>
7593 Richard Biener <rguenth@suse.de>
7598 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
7599 first operand as is_gimple_condexpr.
7604 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
7605 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
7606 Do not gimplify the result.
7607 (do_unop): Adjust call to tree_vec_extract.
7608 (do_binop): Likewise.
7609 (do_compare): Likewise.
7610 (do_plus_minus): Likewise.
7611 (do_negate): Likewise.
7612 (expand_vector_condition): Likewise.
7613 (do_cond): Likewise.
7615 2016-03-16 Richard Henderson <rth@redhat.com>
7618 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
7619 (aarch64_classify_address): Use it.
7620 (aarch64_legitimize_address): Force all subexpressions of PLUS
7621 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
7623 2016-03-16 Jakub Jelinek <jakub@redhat.com>
7624 Richard Biener <rguenth@suse.de>
7627 * rtlanal.c (replace_rtx): For REG, if from is a REG,
7628 return to even if only REGNO is equal, and assert
7631 2016-03-11 Jeff Law <law@redhat.com>
7633 PR rtl-optimization/70224
7634 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
7636 2016-03-16 Richard Henderson <rth@redhat.com>
7639 * function.h (struct function): Add has_forced_label_in_static.
7640 * gimplify.c (force_labels_r): Set it.
7641 * lto-streamer-in.c (input_struct_function_base): Read it.
7642 * lto-streamer-out.c (output_struct_function_base): Write it.
7643 * tree-inline.c (has_label_address_in_static_1): Remove.
7644 (copy_forbidden): Remove fndecl parameter; test
7645 has_forced_label_in_static.
7646 (inline_forbidden_p): Update call to copy_forbidden.
7647 (tree_versionable_function_p): Likewise.
7648 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
7649 (chkp_versioning): Likewise.
7650 * tree-inline.h (copy_forbidden): Update decl.
7652 2016-03-16 Marek Polacek <polacek@redhat.com>
7655 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
7656 function being thunked if the result type doesn't have fixed size.
7657 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
7658 doesn't have fixed size.
7660 2016-03-16 Bin Cheng <bin.cheng@arm.com>
7662 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
7663 reporting malformed loop nest.
7665 2016-03-16 Tom de Vries <tom@codesourcery.com>
7668 * ipa-devirt.c (possible_polymorphic_call_targets): Move
7669 nodes.length () == 1 test to before first nodes[0] access.
7671 2016-03-16 Tom de Vries <tom@codesourcery.com>
7673 PR tree-optimization/68715
7674 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
7677 2016-03-16 Tom de Vries <tom@codesourcery.com>
7679 PR tree-optimization/68809
7680 * graphite-scop-detection.c (same_close_phi_node): Test if result types
7683 2016-03-16 Carlos O'Donell <carlos@redhat.com>
7684 Sandra Loosemore <sandra@codesourcery.com>
7686 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
7687 on leaf attribute. Mention ELF interposition problems.
7689 2016-03-16 Alan Modra <amodra@gmail.com>
7691 PR rtl-optimization/69195
7692 PR rtl-optimization/47992
7693 * ira.c (indirect_jump_optimize): Ignore artificial defs.
7696 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
7699 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
7701 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7703 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
7705 2016-03-15 Jakub Jelinek <jakub@redhat.com>
7707 PR rtl-optimization/70222
7708 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
7709 optimization if mode is different from result_mode, queue up masking
7710 of the result in outer_op. Formatting fix.
7713 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
7716 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7718 PR rtl-optimization/69032
7719 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
7720 looping backwards over basic block insns.
7722 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7725 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
7726 to non-speculative when propagating trap bits.
7728 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7730 PR rtl-optimization/63384
7731 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
7734 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
7737 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
7738 factored out from ...
7739 (sched_analyze_insn): ... here.
7740 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
7741 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
7742 get_implicit_reg_pending_clobbers in it.
7743 (setup_id_reg_sets): Use setup_id_implicit_regs.
7744 (deps_init_id): Ditto.
7746 2016-03-15 Tom de Vries <tom@codesourcery.com>
7749 * cgraph.c (cgraph_node::get_body): Save, reset and restore
7751 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
7752 execute_function_dump.
7753 (execute_one_pass): Don't dump function if it will be dumped after ipa
7756 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
7758 * genrecog.c (match_pattern_2): If pred is NULL don't call
7759 safe_predicate_mode on it.
7761 2016-03-14 Jakub Jelinek <jakub@redhat.com>
7764 * lra-constraints.c (delete_move_and_clobber): Change assertion
7765 to also allow dregno == 0.
7767 2016-03-14 Richard Henderson <rth@redhat.com>
7770 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
7771 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
7772 (reassociate_bb): Use optimize_vec_cond_expr; avoid
7773 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
7776 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
7779 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
7781 (lra_create_live_ranges_1): initialize hard register biggest_mode to
7783 * lra-constraints.c (split_reg): For hard regs, try to find the
7784 biggest single-register mode used in the function.
7786 2016-03-14 Richard Biener <rguenther@suse.de>
7788 PR tree-optimization/56365
7789 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
7790 constants to compare against.
7792 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
7795 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7796 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
7797 (define_split for the GPR case): Use int_reg_operand instead of
7798 gpc_reg_operand for the output.
7800 2016-03-14 Tom de Vries <tom@codesourcery.com>
7802 PR tree-optimization/70045
7803 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
7804 create_empty_if_region_on_edge argument.
7806 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
7808 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
7809 (STACK_CHECK_PROTECT): Likewise.
7810 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7811 (STACK_CHECK_PROTECT): Likewise.
7812 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
7813 (STACK_CHECK_PROTECT): Likewise.
7814 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
7815 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
7816 (STACK_CHECK_PROTECT): Likewise.
7818 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
7820 PR rtl-optimization/69307
7821 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
7822 registers in modes that span more than one register.
7824 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
7827 * lra-constraints.c (delete_move_and_clobber): New.
7828 (remove_inheritance_pseudos): Use it.
7830 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
7833 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
7834 the libcall is LCT_THROW.
7835 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
7836 for the checking routine.
7838 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7841 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
7842 optimization if we have direct move.
7843 (roundu32<mode>2_fprs): Likewise.
7845 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
7848 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
7850 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
7851 Arguments swapped. All callers changed. Take reg_renumber into
7852 account, and Calculate and compare register ranges for hard regs.
7854 2016-03-11 Jeff Law <law@redhat.com>
7856 PR tree-optimization/70190
7857 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7858 Handle cases where we can not extract the taken edge, even though we
7859 found a constant value.
7861 PR tree-optimization/64058
7862 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
7863 (num_coalesce_pairs): Move up earlier in file.
7864 (find_coalesce_pair): Initialize the INDEX field for each pair
7866 (compare_pairs): No longer sort on the elements in each pair.
7867 Instead break ties with the index of the coalesce pair.
7869 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7872 * config/aarch64/aarch64-protos.h
7873 (aarch64_save_restore_target_globals): New prototype.
7874 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
7875 Call the above when popping pragma.
7876 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
7878 (aarch64_set_current_function): Rewrite using the above.
7880 2016-03-11 Jakub Jelinek <jakub@redhat.com>
7882 PR tree-optimization/70177
7883 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
7884 (extract_ops_from_tree): ... this. In the 2 argument
7885 overload remove _1 suffix.
7886 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
7887 (extract_ops_from_tree): ... this.
7888 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
7890 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7891 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
7892 extract_ops_from_tree instead of 2 operand one.
7894 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
7896 PR tree-optimization/70013
7897 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
7898 for constant-pool entries.
7900 2016-03-11 Jakub Jelinek <jakub@redhat.com>
7902 PR rtl-optimization/70174
7903 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
7904 followed by gen_lowpart on force_reg instead of just gen_lowpart.
7906 PR tree-optimization/70169
7907 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
7908 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
7911 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
7912 Jakub Jelinek <jakub@redhat.com>
7915 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
7916 of uninitialized values.
7918 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7920 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
7922 ("*trunctddd2"): New pattern definition.
7923 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
7926 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7928 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
7929 definitions for BFP and DFP rounding modes.
7930 ("fixuns_truncdddi2", "fixuns_trunctddi2")
7931 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
7932 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
7933 ("fix_trunctf<mode>2"): Use the new constants instead of magic
7936 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7938 * config/s390/constraints.md: Adjust comment.
7939 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
7940 s390_decompose_addrstyle_without_index.
7941 * config/s390/predicates.md (shift_count_or_setmem_operand):
7942 Rename to setmem_operand.
7943 * config/s390/s390-protos.h
7944 (s390_decompose_shift_count): Rename to
7945 s390_decompose_addrstyle_without_index.
7946 * config/s390/s390.c (s390_decompose_shift_count)
7947 (s390_mem_constraint, print_shift_count_operand)
7948 (print_operand_address, print_operand): Rename
7949 s390_decompose_shift_count to
7950 s390_decompose_addrstyle_without_index and rename
7951 print_shift_count_operand to print_addrstyle_operand troughout the
7953 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
7954 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
7955 Rename shift_count_or_setmem_operand to setmem_operand.
7956 * config/s390/vx-builtins.md ("vec_insert<mode>")
7957 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
7960 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7963 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
7964 Handle overlapping retval and newval.
7966 2016-03-10 Nick Clifton <nickc@redhat.com>
7969 * config/aarch64/aarch64.c
7970 (aarch64_override_options_after_change_1): When forcing
7971 flag_omit_frame_pointer to be true, use a special value that can
7972 be detected if this function is called again, thus preventing
7973 flag_omit_leaf_frame_pointer from being forced to be false.
7975 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7977 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
7978 Set x_flag_omit_leaf_frame_pointer when handling
7979 -momit-leaf-frame-pointer.
7981 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7984 * cgraph.c (cgraph_node::dump): Dump split_part and
7985 indirect_call_target.
7986 * cgraph.h (cgraph_node): Add indirect_call_target flag.
7987 * ipa.c (has_addr_references_p): Cleanup.
7988 (is_indirect_call_target_p): New.
7989 (walk_polymorphic_call_targets): Do not mark virtuals that may be
7990 called indirectly as local.
7991 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
7993 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
7996 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
7997 on cxa_pure_virtual.
7999 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8002 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
8004 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
8007 * tree.c (need_assembler_name_p): Only record main variant type names.
8009 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8012 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
8013 Always define to 0 or 1.
8014 (TARGET_FIX_ERR_A53_843419): New macro.
8015 * config/aarch64/aarch64-elf-raw.h
8016 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
8017 * config/aarch64/aarch64-linux.h: Likewise.
8018 * config/aarch64/aarch64.c
8019 (aarch64_override_options_after_change_1): Do not default
8020 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
8022 (aarch64_attributes): Handle fix-cortex-a53-843419.
8023 (aarch64_can_inline_p): Likewise.
8024 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
8026 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
8027 Jakub Jelinek <jakub@redhat.com>
8029 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
8030 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
8031 DECL_COMMONS if flag_unconstrained_commons is set.
8032 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8033 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
8034 (funconstrained-commons): Document.
8036 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
8038 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
8039 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
8041 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
8043 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
8044 has a proper number of elements.
8046 2016-03-10 Alan Modra <amodra@gmail.com>
8048 PR rtl-optimization/69195
8049 PR rtl-optimization/47992
8050 * ira.c (recorded_label_ref): Delete.
8051 (update_equiv_regs): Return void.
8052 (indirect_jump_optimize): New function.
8053 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
8054 before regstat_compute_ri. Don't rebuild_jump_labels here.
8055 Delete update_regstat.
8057 2016-03-10 Richard Biener <rguenther@suse.de>
8059 PR tree-optimization/70128
8060 * tree-ssa-structalias.c (set_uids_in_ptset): Set
8061 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
8063 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8065 PR tree-optimization/70152
8066 * tree-sra.c (replace_removed_params_ssa_names): Copy over
8067 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
8070 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
8071 instead of gen_sse2_loadlpd.
8072 * config/i386/sse.md (*vec_concatv2df): Rename to...
8073 (vec_concatv2df): ... this.
8075 PR tree-optimization/70127
8076 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
8078 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8082 * diagnostic-show-locus.c (compatible_locations_p): New function.
8083 (layout::layout): Sanitize ranges using compatible_locations_p.
8085 2016-03-09 David Malcolm <dmalcolm@redhat.com>
8089 * diagnostic-show-locus.c (layout_range::layout_range): Replace
8090 location_range param with three const expanded_locations * and a
8092 (layout::layout): Replace call to
8093 rich_location::lazily_expand_location with get_expanded_location.
8094 Extract the range and perform location expansion here, passing
8095 the results to the layout_range ctor.
8096 * diagnostic.c (source_range::debug): Delete.
8097 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
8098 of rich_location::get_expanded_location.
8099 * gcc-rich-location.c (get_range_for_expr): Delete.
8100 (gcc_rich_location::add_expr): Reimplement to avoid the
8101 rich_location::add_range overload that took a location_range,
8102 passing a location_t instead.
8104 2016-03-09 Richard Biener <rguenther@suse.de>
8105 Jakub Jelinek <jakub@redhat.com>
8107 PR tree-optimization/70138
8108 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
8109 Also skip vect_double_reduction_def.
8111 2016-03-09 Jakub Jelinek <jakub@redhat.com>
8114 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
8115 if the operand is "m".
8117 2016-03-09 Nathan Sidwell <nathan@acm.org>
8119 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
8121 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8123 * config/i386/i386.c (processor_target_table): Fix cost table
8124 intialization order for znver1.
8126 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8128 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
8129 - becuase -> because.
8130 * ipa-reference.c (ignore_module_statics): Likewise.
8131 * cgraph.c (cgraph_node::get_body): Likewise.
8132 * ipa-inline.c (early_inliner): Likewise.
8133 * ipa-devirt.c (types_same_for_odr): Likewise.
8134 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
8135 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
8137 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8139 * tree-ssa-math-opts.c: Fix typo in comment.
8141 2016-03-08 Jakub Jelinek <jakub@redhat.com>
8144 * config/i386/i386.c (scalar_chain::make_vector_copies,
8145 scalar_chain::convert_reg): Call end_sequence in between
8146 get_insns and emit_conversion_insns rather than after both
8149 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
8152 * config/i386/i386.h (machine_function): Add
8153 pc_thunk_call_expanded flag.
8154 (ix86_pc_thunk_call_expanded): New define.
8155 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
8156 (*set_got): Rename insn pattern from set_got.
8157 (*set_got_labelled): Rename inst pattern from set_got_labelled.
8158 * config/i386/i386.c (ix86_compute_frame_layout): Use
8159 ix86_pc_thunk_call_expanded to prevent red-zone.
8161 2016-03-07 Martin Jambor <mjambor@suse.cz>
8163 * hsa.h (hsa_get_ctor_statements): Declare.
8164 (hsa_get_dtor_statements): Likewise.
8165 (hsa_get_kernel_dispatch_type): Likewise.
8166 * hsa.c (hsa_get_ctor_statements): New function.
8167 (hsa_get_dtor_statements): Likewise.
8168 (hsa_get_kernel_dispatch_type): Likewise.
8169 * hsa-brig.c (hsa_cdtor_statements): Removed.
8170 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
8171 hsa_get_dtor_statements.
8172 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
8173 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
8175 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
8177 * config/arm/arm-cores.def (cortex-r8): New.
8178 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
8179 * config/arm/arm-tune.md: Likewise.
8180 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
8182 2016-03-07 Martin Sebor <msebor@redhat.com>
8184 PR rtl-optimization/19705
8185 * doc/invoke.texi (Options That Control Optimization): Clarify
8186 -fno-branch-count-reg.
8188 2016-02-26 Richard Biener <rguenther@suse.de>
8189 Jeff Law <law@redhat.com>
8191 PR tree-optimization/69740
8192 * cfghooks.c (remove_edge): Request loop fixups if we delete
8193 an edge that might turn an irreducible loop into a natural
8195 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
8196 Move after definition of loops_state_clear.
8198 2016-03-07 Bin Cheng <bin.cheng@arm.com>
8200 PR rtl-optimization/69052
8201 * rtlanal.c (commutative_operand_precedence): Set higher precedence
8204 2016-03-07 Tom de Vries <tom@codesourcery.com>
8206 PR tree-optimization/70116
8207 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
8208 is_tm_ending stmts and ubsan/asan internal functions.
8209 (find_duplicate): Use it. Don't test is_tm_ending here.
8211 2016-03-07 Richard Biener <rguenther@suse.de>
8213 PR tree-optimization/70115
8214 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
8215 (propagate_constants_for_unrolling): Use replace_uses_by.
8217 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
8220 * omp-low.c (struct oacc_loop): Add ifns.
8221 (new_oacc_loop_raw): Initialize it.
8222 (finish_oacc_loop): Clear mask & flags if no ifns.
8223 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
8224 (oacc_loop_xform_loop): Add ifns arg & adjust.
8225 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
8227 2016-03-07 Richard Henderson <rth@redhat.com>
8230 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
8231 (insert_value_copy_on_edge): Likewise.
8233 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8235 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
8237 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8240 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
8242 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8244 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
8246 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8248 Fix sseimul type attribute.
8249 * config/i386/znver1.md
8250 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
8251 znver1_sseimul_avx256_load) : Fix the type attribute.
8252 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
8253 pipe usage and latency.
8255 2016-03-05 Jakub Jelinek <jakub@redhat.com>
8258 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
8259 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
8262 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8265 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
8267 PR rtl-optimization/69941
8268 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
8269 the reg share its mode.
8271 2016-03-04 Jeff Law <law@redhat.com>
8273 PR tree-optimization/69196
8274 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8275 If the both SSA_NAMEs are anonymous, then consider them unassociated
8276 and include the PHI in the statement count.
8278 2016-03-05 Tom de Vries <tom@codesourcery.com>
8280 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
8281 construct in oacc routine. Check for oacc region in oacc routine.
8283 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8286 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
8287 2016-02-22 changes, instead don't recurse if RECUR is already true.
8288 Don't change *dynamic_check if RECUR. Adjust recursive caller
8289 to pass true to the new argument.
8290 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
8293 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
8294 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
8296 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
8298 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
8300 PR rtl-optimization/57676
8301 * lra-assigns.c (lra_assign): Guard test for maximum iterations
8304 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
8306 * tree-vect-patterns.c (search_type_for_mask): Handle
8307 comparison of booleans.
8309 2016-03-04 Jakub Jelinek <jakub@redhat.com>
8311 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
8315 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
8316 all other ops that have dw_val_class_die_ref operands,
8317 and DW_OP_GNU_entry_value.
8319 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8321 PR rtl-optimization/69904
8322 * config/arm/arm.c (arm_cannot_copy_insn_p):
8323 Return true for load-exclusive instructions.
8325 2016-03-03 Jakub Jelinek <jakub@redhat.com>
8328 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
8329 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
8330 the pattern no matter if it is used just by non-pattern, pattern
8332 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
8333 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
8334 oprnd1 def_stmt is in pattern, don't look through it.
8336 2016-03-03 Marek Polacek <polacek@redhat.com>
8339 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
8341 2016-03-03 Martin Liska <mliska@suse.cz>
8343 PR tree-optimization/70043
8344 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
8345 previous statement if we see a debug statement.
8347 2016-03-03 Richard Biener <rguenther@suse.de>
8349 PR tree-optimization/55936
8350 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
8351 parameter and guard unsafe equivalence use.
8352 (vrp_evaluate_conditional_warnv_with_ops): Always use
8353 safe equivalences but not via the quadratic compare_names
8356 2016-03-03 Michael Collison <michael.collison@linaro.org>
8359 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
8360 for operand 1 to s_register_operand. Change predicate for operand
8361 2 to arm_not_immediate_operand.
8363 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
8365 * doc/tm.texi: Regenerated.
8367 2016-03-02 Richard Henderson <rth@redhat.com>
8370 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
8371 simplification when all args are positive non-fixed registers.
8373 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8375 * target.def (lra_p): Specify that new ports should use LRA.
8377 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8380 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
8381 gimplify_type_sizes the type they refer to.
8382 (omp_notice_variable): Handle reference vars to VLAs.
8383 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
8384 reference to VLA decls in the second pass instead of first pass.
8386 2016-03-02 Tom de Vries <tom@codesourcery.com>
8388 PR tree-optimization/68659
8389 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
8390 new_expr == NULL_TREE.
8391 (get_new_name): Handle ADDR_EXPR.
8393 2016-03-02 Bin Cheng <bin.cheng@arm.com>
8395 PR rtl-optimization/69052
8396 * loop-invariant.c (canonicalize_address): New function.
8397 (inv_can_prop_to_addr_use): Check validity of address expression
8398 which is canonicalized by above function.
8400 2016-03-02 Alan Modra <amodra@gmail.com>
8403 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
8406 2016-03-02 Jakub Jelinek <jakub@redhat.com>
8409 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
8410 (*movhi_internal): Put mask moves from and to memory separately
8411 from moves from/to GPRs.
8413 2016-03-02 Richard Biener <rguenther@suse.de>
8415 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
8416 GENERIC expressions in GIMPLE.
8418 2016-03-02 Richard Biener <rguenther@suse.de>
8420 * config/i386/i386.c (type_natural_mode): Fix typo.
8422 2016-03-02 Nick Clifton <nickc@redhat.com>
8424 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
8426 2016-03-02 Richard Biener <rguenther@suse.de>
8427 Uros Bizjak <ubizjak@gmail.com>
8430 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
8432 2016-03-02 Richard Biener <rguenther@suse.de>
8435 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
8437 2016-03-02 Marek Polacek <polacek@redhat.com>
8440 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
8441 "is promoted to" warning.
8443 2016-03-01 DJ Delorie <dj@redhat.com>
8445 * config.gcc: Deprecate mep-*.
8447 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
8450 * lra-constraints.c (regno_val_use_in): New.
8451 (match_reload): Use it instead of regno_use_in.
8453 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8455 PR rtl-optimization/70007
8456 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
8457 references present in REG_EQUAL notes attached to non-SET patterns.
8459 2016-03-01 Jeff Law <law@redhat.com>
8461 PR tree-optimization/69196
8462 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8463 Appropriately clamp the number of statements to copy when the
8464 thread path does not traverse a loop backedge.
8466 PR tree-optimization/69196
8467 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8468 Do count some PHIs in the thread path against the insn count. Decrease
8469 final statement count by one as the control statement in the last
8470 block will get removed. Remove special cased code for handling PHIs
8473 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
8476 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
8477 asm dialect alternatives to explicit GOTPCREL calls.
8479 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
8482 * ira.c (do_reload): Issue warning for generic stack checking here...
8483 * reload1.c (reload): ...instead of here and streamline it.
8485 2016-03-01 Nick Clifton <nickc@redhat.com>
8487 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
8489 2016-03-01 Richard Biener <rguenther@suse.de>
8491 PR tree-optimization/69983
8492 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
8493 types and fall back to operand_equal_p.
8495 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8498 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8500 * config/s390/constraints.md ("jm8"): New constraint.
8501 * config/s390/predicates.md ("const_int_8bitset_operand"): New
8503 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
8505 ("*setmem_long<setmem_and>"): New pattern.
8506 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
8508 ("*setmem_long_31z<setmem_and>"): New pattern.
8509 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
8510 New substitution rules with the required attributes.
8513 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8516 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8518 * gensupport.c (process_substs_on_one_elem): Split loop to
8519 complete mark_operands_used_in_match_dup on all expressions in the
8521 (adjust_operands_numbers): Inline into process_substs_on_one_elem
8522 and remove function.
8524 2016-03-01 Richard Biener <rguenther@suse.de>
8527 * fold-const.c (fold_indirect_ref_1): Fix range checking for
8528 vector BIT_FIELD_REF extract.
8530 2016-03-01 Richard Biener <rguenther@suse.de>
8532 PR tree-optimization/69994
8533 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
8535 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
8537 PR tree-optimization/69956
8538 * tree-vect-stmts.c (supportable_widening_operation): Support
8539 multi-step conversion of boolean vectors.
8540 (supportable_narrowing_operation): Likewise.
8542 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8544 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
8547 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8549 * config/s390/subst.md (DSI_VI): New mode iterator.
8550 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
8551 * config/s390/vector.md ("vec_set<mode>"): Move expander before
8552 the insn definition.
8553 ("*vec_set<mode>"): Change predicate and add alternative to
8554 support only either register or const_int operands as element
8556 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
8558 ("vec_extract<mode>"): New expander.
8559 ("*vec_extract<mode>"): New insn definition supporting reg and
8560 const_int element selectors.
8561 ("*vec_extract<mode>_plus"): New insn definition supporting
8562 reg+const_int element selectors.
8563 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
8564 following expander+insn definition.
8565 ("<vec_shifts_name><mode>3"): New expander.
8566 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
8568 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8570 * config/s390/s390.md ("*tabort_1"): Change predicate to
8571 nonmemory_operand. Add a second alternative to cover
8572 register as well as const int operands.
8573 ("*tabort_1_plus"): New pattern definition.
8575 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8577 * config/s390/s390.md ("*ashrdi3_cc_31")
8578 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
8579 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
8580 Merge insn definitions into ...
8581 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8582 New pattern definition.
8583 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
8584 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
8585 ("*ashr<mode>3_and"): Merge insn definitions into ...
8586 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
8587 New pattern definition.
8588 * config/s390/subst.md ("addr_style_op_cc_subst")
8589 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
8590 substitutions patterns plus attributes.
8591 Add ashiftrt to SUBST iterator.
8593 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8595 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
8596 op2 to nonmemory_operand.
8597 ("*<shift>di3_31", "*<shift>di3_31_and"):
8598 Merge into single pattern definition ...
8599 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
8600 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
8601 pattern definition ...
8602 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
8603 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
8606 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8608 * config/s390/predicates.md (const_int_6bitset_operand): New
8610 * config/s390/s390.md: Include subst.md.
8611 ("rotl<mode>3"): New expander.
8612 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
8614 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
8615 * config/s390/subst.md: New file.
8617 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8619 * config/s390/s390.md ("op_type", "atype", "length" attributes):
8620 Remove RRR type. It doesn't really exist.
8621 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
8623 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
8624 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
8625 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
8626 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
8627 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
8628 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
8629 `enabled' attribute.
8631 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8633 * gensupport.c (process_substs_on_one_elem): Split loop to
8634 complete mark_operands_used_in_match_dup on all expressions in the
8636 (adjust_operands_numbers): Inline into process_substs_on_one_elem
8637 and remove function.
8639 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
8642 * config/sparc/sparc.c (NWORDS_UP): Rename to...
8643 (CEIL_NWORDS): ...this. Use CEIL macro.
8644 (compute_fp_layout): Adjust to above renaming.
8645 (function_arg_union_value): Likewise.
8646 (sparc_arg_partial_bytes): Likewise.
8647 (sparc_function_arg_advance): Likewise.
8649 2016-02-29 Jeff Law <law@redhat.com>
8651 PR tree-optimization/70005
8652 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
8653 where an object with a boolean range is compared against a value
8656 PR tree-optimization/69999
8657 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
8658 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
8661 2016-02-29 Richard Biener <rguenther@suse.de>
8663 PR tree-optimization/69994
8664 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
8665 (get_unary_op): Look through nop conversions.
8666 (ops_equal_values_p): New function, look for equality diregarding
8668 (eliminate_plus_minus_pair): Use ops_equal_values_p
8669 (repropagate_negates): Do not use get_unary_op here.
8671 2016-02-29 Martin Liska <mliska@suse.cz>
8673 * system.h: Poison ENABLE_CHECKING macro.
8675 2016-02-29 Martin Liska <mliska@suse.cz>
8677 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
8678 is presented in dump flags.
8679 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
8680 (hsa_regalloc): Likewise.
8682 2016-02-19 Richard Biener <rguenther@suse.de>
8684 PR tree-optimization/69980
8685 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
8686 permutation of those we need to keep.
8688 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
8691 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
8692 (NWORDS_UP): ...this
8693 (init_cumulative_args): Minor tweaks.
8694 (sparc_promote_function_mode): Likewise.
8695 (scan_record_type): Delete.
8696 (traverse_record_type): New function template.
8697 (classify_data_t): New structure type.
8698 (classify_registers): New inline function.
8699 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
8700 exhausted. Instantiate traverse_record_type on classify_registers and
8701 deal with the case of a structure passed in slot #15 with no FP field
8703 (assign_data_t): New structure type.
8704 (compute_int_layout): New static function.
8705 (compute_fp_layout): Likewise.
8706 (count_registers): New inline function.
8707 (assign_int_registers): New static function.
8708 (assign_fp_registers): Likewise.
8709 (assign_registers): New inline function.
8710 (function_arg_record_value_1): Delete.
8711 (function_arg_record_value_2): Likewise.
8712 (function_arg_record_value_3): Likewise.
8713 (function_arg_record_value): Adjust to above changes. Instantiate
8714 traverse_record_type on count_registers to first count the number of
8715 registers to be used and then on assign_registers to assign them.
8716 (function_arg_union_value): Adjust to above renaming.
8717 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
8718 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
8719 case of a structure passed in slot #15
8720 (sparc_function_arg_advance): Likewise.
8721 (function_arg_padding): Minor tweak.
8723 2016-02-29 Richard Biener <rguenther@suse.de>
8725 PR tree-optimization/69720
8726 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
8727 the adjustment_def path for possibly vectorized defs.
8728 (vect_create_epilog_for_reduction): Handle vectorized initial
8731 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
8733 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
8735 2016-02-27 Jeff Law <law@redhat.com>
8738 2016-02-26 Richard Biener <rguenther@suse.de>
8739 Jeff Law <law@redhat.com>
8741 PR tree-optimization/69740
8742 * cfghooks.c (remove_edge): Request loop fixups if we delete
8743 an edge that might turn an irreducible loop into a natural
8746 2016-02-27 Jakub Jelinek <jakub@redhat.com>
8748 PR rtl-optimization/69896
8749 * tree-vect-generic.c (get_compute_type): Avoid single element
8752 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
8754 Rename the AArch64 tuning option and related functions to enable the
8755 Newton series for the reciprocal square root to reflect its
8756 approximative characteristic.
8758 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
8759 function to "aarch64_emit_approx_rsqrt".
8760 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
8761 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
8762 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
8763 (xgene1_tunings): Likewise.
8764 (use_rsqrt_p): Likewise.
8765 (aarch64_emit_swrsqrt): Use new function name.
8766 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
8767 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
8768 text explaining this option.
8769 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
8771 2016-02-26 Jakub Jelinek <jakub@redhat.com>
8774 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8775 complain about -mallow-movmisalign without -mvsx if
8776 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
8778 2016-02-26 Joel Sherrill <joel@rtems.org>
8780 * config.gcc: Add x86_64-*-rtems*.
8781 * gcc/config/i386/rtems-64.h: New file.
8783 2016-02-26 Joel Sherrill <joel@rtems.org>
8785 * config.gcc: Add aarch64-*-rtems*.
8786 * gcc/config/aarch64/rtems.h: New file.
8788 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
8791 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
8792 shift amount using %h. Add comment.
8794 2016-02-26 Richard Biener <rguenther@suse.de>
8795 Jeff Law <law@redhat.com>
8797 PR tree-optimization/69740
8798 * cfghooks.c (remove_edge): Request loop fixups if we delete
8799 an edge that might turn an irreducible loop into a natural
8802 2016-02-26 Martin Jambor <mjambor@suse.cz>
8805 * tree-sra.c (sra_modify_assign): Do not remove loads of
8806 uninitialized aggregates to SSA_NAMEs.
8808 2016-02-26 Richard Henderson <rth@redhat.com>
8811 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
8812 pseudo in case the target rtx matches the source of the left
8815 2016-02-26 Martin Jambor <mjambor@suse.cz>
8818 * hsa.h (hsa_type_packed_p): Declare.
8819 * hsa.c (hsa_type_packed_p): New function.
8820 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
8822 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
8823 * hsa-brig.c (emit_basic_insn): Likewise.
8825 2016-02-26 Martin Jambor <mjambor@suse.cz>
8828 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
8830 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
8832 2016-02-26 Martin Jambor <mjambor@suse.cz>
8834 * hsa.h (is_a_helper): New overload for hsa_op_immed for
8835 hsa_op_with_type operands.
8836 (hsa_unsigned_type_for_type): Declare.
8837 * hsa.c (hsa_unsigned_type_for_type): New function.
8838 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
8839 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
8840 the finalizer. Do not emit extra move.
8842 2016-02-26 Martin Jambor <mjambor@suse.cz>
8844 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
8845 atomic operations in private segment.
8847 2016-02-26 Martin Jambor <mjambor@suse.cz>
8849 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
8850 statements to wi->info. Also disallow omp simd constructs.
8851 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
8852 for not gridifying. Dump special string for omp_for.
8854 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8857 * config/aarch64/aarch64.c (aarch64_set_current_function):
8858 Save/restore target globals when switching to
8859 target_option_default_node.
8861 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8864 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
8865 Return 0 if !SHIFT_COUNT_TRUNCATED.
8867 2016-02-26 Jakub Jelinek <jakub@redhat.com>
8868 Eric Botcazou <ebotcazou@adacore.com>
8870 PR rtl-optimization/69891
8871 * dse.c (scan_insn): If we can't figure out memset arguments
8872 or they are non-constant, call clear_rhs_from_active_local_stores.
8874 2016-02-26 Martin Liska <mliska@suse.cz>
8876 * doc/extend.texi: Mention clog10, clog10f an clog10l
8877 in Builtins section.
8879 2016-02-26 Martin Liska <mliska@suse.cz>
8881 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
8883 (resolve_args_picking_1): Likewise.
8884 * dwarf2out.h (struct GTY): Likewise.
8886 2016-02-26 Martin Liska <mliska@suse.cz>
8888 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
8890 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
8892 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
8893 Martin Liska <mliska@suse.cz>
8895 * doc/install.texi: Mention --enable-valgrind-annotations.
8897 2016-02-26 Richard Biener <rguenther@suse.de>
8899 PR tree-optimization/69551
8900 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
8901 looking through aliases adjust DECL_PT_UID to refer to the
8902 ultimate alias target.
8904 2016-02-25 Martin Liska <mliska@suse.cz>
8907 * alloc-pool.c (after_memory_report): New variable.
8908 * alloc-pool.h (base_pool_allocator ::release): Do not use
8909 the infrastructure if after_memory_report.
8910 * toplev.c (toplev::main): Mark after memory report.
8912 2016-02-25 Richard Biener <rguenther@suse.de>
8914 PR tree-optimization/48795
8915 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
8917 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
8920 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
8921 offloading is enabled and -fopenacc or -fopenmp is specified.
8922 (CRTOFFLOADEND): Likewise.
8923 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
8924 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
8925 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
8926 (offload_objects_file_name): New static var.
8927 (tool_cleanup): Remove offload_objects_file_name file.
8928 (find_offloadbeginend): Replace with ...
8929 (find_crtoffloadtable): ... this.
8930 (run_gcc): Remove offload_argc and offload_argv.
8931 Get offload_objects_file_name from -foffload-objects=... option.
8932 Read names of object files with offload from this file, pass them to
8933 compile_images_for_offload_targets. Don't call find_offloadbeginend and
8934 don't pass offloadbegin and offloadend to the linker. Don't pass
8935 offload non-LTO files to the linker, because now they're not claimed.
8937 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
8940 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
8941 on builtin_unreachable.
8943 2016-02-25 Jakub Jelinek <jakub@redhat.com>
8945 PR rtl-optimization/69896
8946 * regcprop.c: Include cfgrtl.h.
8947 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
8948 than remembered mode, either delete it (if noop_move_p), or
8949 treat like copy_p but not noop_p instruction.
8951 2016-02-24 Jakub Jelinek <jakub@redhat.com>
8954 * dwarf2out.c (gen_variable_die): Work around buggy LTO
8955 - allow NULL decl for Fortran DW_TAG_common_block variables.
8957 2016-02-24 Jason Merrill <jason@redhat.com>
8959 * common.opt (flifetime-dse): Add -flifetime-dse=1.
8961 2016-02-24 Richard Biener <rguenther@suse.de>
8962 Jakub Jelinek <jakub@redhat.com>
8965 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
8966 conditionally executed ops to well-defined overflow behavior.
8968 2016-02-24 Jakub Jelinek <jakub@redhat.com>
8971 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
8974 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8976 PR rtl-optimization/69886
8977 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
8978 argument. Use it when checking validity of set instructions.
8979 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
8980 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
8982 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
8983 * store-motion.c (find_moveable_store): Update
8984 can_assign_to_reg_without_clobbers_p callsite.
8986 2016-02-24 Richard Biener <rguenther@suse.de>
8989 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
8991 (record_nonwrapping_iv): Do not fall back to the low/high bound
8992 for non-constant IV bases if the stmt is not always executed.
8994 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8996 * config/arm/arm-cores.def (cortex-a32): New entry.
8997 * config/arm/arm-tables.opt: Regenerate.
8998 * config/arm/arm-tune.md: Regenerate.
8999 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
9000 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
9001 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
9002 for -mcpu and -mtune.
9004 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9007 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
9008 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
9009 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
9010 (atomic_loaddi_1): Delete.
9011 (atomic_loaddi): Rewrite expander using the above changes.
9013 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9016 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
9019 2016-02-24 Jakub Jelinek <jakub@redhat.com>
9020 Richard Biener <rguenth@suse.de>
9023 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
9024 set_mem_attributes if tem is SSA_NAME which got expanded
9027 2016-02-24 Richard Biener <rguenther@suse.de>
9029 PR tree-optimization/69907
9030 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
9031 end of permutations for BB vectorization.
9033 2016-02-24 Christian Bruel <christian.bruel@st.com>
9035 * config/arm/arm-c.c (arm_option_override): Initialize
9036 target_option_current_node.
9037 * config/arm/arm.c (arm_pragma_target_parse): Replace
9038 build_target_option_node call by target_option_current_node.
9039 Set target_option_current_node.
9042 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
9045 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
9046 define_insn_and_split to define_insn.
9047 (zero_extendqi<mode>2_dot2): Same.
9048 (extendqi<mode>2_dot): Same.
9049 (extendqi<mode>2_dot2): Same.
9051 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9053 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
9054 and add bypass for AES{D,E} and AESMC pairs.
9055 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
9058 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
9060 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
9061 series for reciprocal square root in Exynos M1.
9063 2016-02-23 Martin Sebor <msebor@redhat.com>
9066 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
9067 __builtin_alloca_with_align.
9069 2016-02-23 Richard Henderson <rth@redhat.com>
9071 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
9072 (ix86_register_pragmas): Remove __seg_tls.
9073 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
9074 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
9075 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
9076 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
9077 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
9078 * doc/extend.texi (__seg_tls): Remove item.
9080 2016-02-23 Richard Biener <rguenther@suse.de>
9082 * alloc-pool.h (struct allocation_object): Make id member
9083 conditional on CHECKING_P again.
9084 (get_instance): Adjust.
9085 (base_pool_allocator): Likewise.
9087 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
9089 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
9090 (parallelize_loops): In OpenACC kernels mode, set n_threads to
9092 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
9094 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
9096 2016-02-23 Richard Biener <rguenther@suse.de>
9098 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
9099 * bitmap.h (struct bitmap_usage): Likewise.
9100 (bitmap_move): Declare.
9101 * bitmap.c (register_overhead): Take size_t argument.
9102 (bitmap_move): New function.
9103 * df-problems.c (df_rd_transfer_function): Use bitmap_move
9104 to properly account overhead.
9105 * tree.c (free_node): Use tree_size.
9107 2016-02-23 Jakub Jelinek <jakub@redhat.com>
9110 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
9111 when inverting comparison.
9114 * common.opt (Wunreachable-code): Add Warning flag.
9116 2016-02-23 Mark Wielaard <mjw@redhat.com>
9117 Jakub Jelinek <jakub@redhat.com>
9120 * cgraphunit.c (check_global_declaration): Check main_input_filename
9121 and DECL_SOURCE_FILE are not NULL.
9123 2016-02-23 Martin Jambor <mjambor@suse.cz>
9125 PR tree-optimization/69666
9126 * tree-sra.c (sra_modify_assign): Do not attempt to create
9127 default_def replacements for unscalarizable regions.
9129 2016-02-20 Mark Wielaard <mjw@redhat.com>
9132 * cgraphunit.c (check_global_declaration): Check level of
9133 warn_unused_const_variable and main_input_filename.
9134 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
9135 (-Wunused-variable): For C implies -Wunused-const-variable=1.
9136 (-Wunused-const-variable): Explain levels 1 and 2.
9138 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9141 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
9142 identical arguments. Formatting and spelling fixes.
9145 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
9150 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
9151 and m68k-devices.def.
9152 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
9153 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
9155 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
9157 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
9158 and HImode registers.
9160 2016-02-22 Richard Biener <rguenther@suse.de>
9162 PR tree-optimization/69882
9163 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
9164 preserve permutations present because of gaps.
9165 (vect_supported_load_permutation_p): Always continue checking
9166 permutations after vect_attempt_slp_rearrange_stmts.
9168 2016-02-22 Bin Cheng <bin.cheng@arm.com>
9170 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
9171 min_profitable_estimate, rather than min_profitable_iters.
9173 2016-02-22 Jakub Jelinek <jakub@redhat.com>
9176 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
9177 SImode for last match_operand.
9179 2016-02-22 Martin Liska <mliska@suse.cz>
9181 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
9182 return bitsize - 1 as the return value.
9184 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
9188 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
9189 Handle negative shift counts.
9190 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
9191 force_reg on the shift constant.
9192 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
9193 (lshrsi3_d): Handle negative shift counts.
9195 2016-02-22 Richard Biener <rguenther@suse.de>
9196 Tom de Vries <tom@codesourcery.com>
9198 * graph.c: Include dumpfile.h.
9199 (print_graph_cfg): Split into three overloads.
9200 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
9202 2016-02-22 Tom de Vries <tom@codesourcery.com>
9204 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
9207 2016-02-22 Richard Biener <rguenther@suse.de>
9210 * ipa-inline-transform.c (inline_call): When not updating
9211 overall summaries adjust self size by the growth estimate.
9212 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
9213 hash-set, do not update overall summaries here. Renamed from ...
9214 (inline_to_all_callers): ... this which is now wrapping the
9215 above and performing delayed overall summary update.
9216 (early_inline_small_functions): Delay updating of the overall
9219 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
9221 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
9224 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9227 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
9228 :%* in %:gt() argument.
9229 (greater_than_spec_func): Adjust for expecting only numbers,
9230 if there are more than two numbers, compare the last two.
9232 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
9234 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
9235 -Wnarrowing with -std.
9237 2016-02-19 Jakub Jelinek <jakub@redhat.com>
9240 * expr.c (store_field): Don't use bit-field path if exp is
9241 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
9242 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
9243 and the assignment can be performed by bitwise copy. Formatting
9247 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
9248 call copy_reg_eh_region_note_forward on before and/or after sequences
9249 and remove note from insn if it no longer can throw.
9252 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
9255 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9257 * config/s390/vector.md: Add missing commutative operand markers
9258 to the patterns which qualify for one.
9259 * config/s390/vx-builtins.md: Likewise.
9261 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9263 * config/s390/vector.md (VI, VI_QHS): Add single element vector
9264 types to mode iterators.
9265 (vec_double): ... and mode attribute.
9266 * config/s390/vx-builtins.md (non_vec_int): Likewise.
9268 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9270 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
9271 Change the predicate of op2 from nonimmediate to general and let
9272 reload fix it if necessary.
9274 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9276 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
9278 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9280 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
9283 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9285 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
9286 * config/s390/s390.c (s390_expand_vec_movstr): New function.
9287 * config/s390/s390.md ("movstr<P:mode>"): Call
9288 s390_expand_vec_movstr.
9290 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9292 * config/s390/s390.md: Add missing output modifier for operand 1
9293 to print it as address properly.
9295 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9297 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
9298 * config/s390/2964.md: New file.
9299 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
9300 of insn grouping attributes depending on the CPU level.
9301 (s390_get_unit_mask): New function.
9302 (s390_sched_score): Remove the OOO from the scheduling macros.
9303 Add loop to calculate a score for the instruction mix.
9304 (s390_sched_reorder): Likewise plus improve debug output.
9305 (s390_sched_variable_issue): Rename macros as above. Calculate
9306 the unit distances after actually scheduling an insn. Improve
9308 (s390_sched_init): Clear last_scheduled_unit_distance array.
9309 * config/s390/s390.md: Include 2964.md.
9311 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9314 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
9315 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
9316 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
9317 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
9318 *avx512f_<code>v8div16qi2_mask_1): New insns.
9320 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9323 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
9326 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
9327 earlyclobber from target. Use wF constraint for fused memory
9329 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
9331 2016-02-18 Jakub Jelinek <jakub@redhat.com>
9332 Martin Liska <mliska@suse.cz>
9335 * cfgexpand.c (asan_sanitize_stack_p): New function.
9336 (partition_stack_vars): Use the function.
9337 (expand_stack_vars): Likewise.
9338 (defer_stack_allocation): Likewise.
9339 (expand_used_vars): Likewise.
9341 2016-02-18 Richard Biener <rguenther@suse.de>
9344 * fold-const.c (operand_equal_p): Properly compare offsets for
9345 IMAGPART_EXPR and ARRAY_REF.
9347 2016-02-18 Nick Clifton <nickc@redhat.com>
9351 * config/arm/arm.c (arm_option_override_internal): Disable
9352 interworking if the target does not support thumb instructions.
9353 (arm_reload_in_hi): Handle the case where a register to register
9354 move needs reloading because there is no simple pattern to handle
9356 (arm_reload_out_hi): Likewise.
9358 2016-02-18 Richard Biener <rguenther@suse.de>
9361 * match.pd: Don't use fold_binary or fold_unary for folding
9364 2016-02-17 Jakub Jelinek <jakub@redhat.com>
9367 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
9368 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
9369 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
9370 warn on gimple_no_warning_p statements.
9372 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
9374 * doc/extend.texi (C++ Attributes): Correct description of
9375 warn_unused type attribute.
9377 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9379 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
9380 correct instruction.
9382 2016-02-17 Richard Biener <rguenther@suse.de>
9384 PR rtl-optimization/69609
9385 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
9386 (find_traces_1_round): When ending a trace update cached priority
9388 (bb_to_key): Use cached priority when available.
9389 (copy_bb): Initialize cached priority.
9390 (reorder_basic_blocks_software_trace_cache): Likewise.
9392 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9395 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
9397 (aarch64_comparison_operator): Break overly long line into two.
9398 (aarch64_comparison_operation): Likewise.
9399 * config/aarch64/aarch64.md (cstorecc4): Use
9400 aarch64_comparison_operator_mode instead of
9401 aarch64_comparison_operator.
9402 (cstore<mode>4): Likewise.
9403 (aarch64_cstore<mode>): Likewise.
9404 (*cstoresi_insn_uxtw): Likewise.
9405 (cstore<mode>_neg): Likewise.
9406 (*cstoresi_neg_uxtw): Likewise.
9408 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9411 * config/arm/predicates.md (arm_comparison_operator_mode):
9413 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
9414 instead of arm_comparison_operator.
9415 (*mov_negscc): Likewise.
9416 (*mov_notscc): Likewise.
9417 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
9418 (*thumb2_mov_negscc): Likewise.
9419 (*thumb2_mov_negscc_strict_it): Likewise.
9420 (*thumb2_mov_notscc): Likewise.
9421 (*thumb2_mov_notscc_strict_it): Likewise.
9423 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
9425 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
9428 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
9430 * config/visium/visium.c (machine_libfunc_index): New enum.
9431 (machine_libfuncs): New structure.
9432 (visium_libfuncs): New static variable.
9433 (TARGET_INIT_LIBFUNCS): Define to...
9434 (visium_init_libfuncs): ...this. New function.
9435 (expand_block_move_4): Use the appropriate libfunc.
9436 (expand_block_move_2): Likewise.
9437 (expand_block_move_1): Likewise.
9438 (expand_block_set_4): Likewise.
9439 (expand_block_set_2): Likewise.
9440 (expand_block_set_1): Likewise.
9441 (visium_trampoline_init): Likewise.
9443 2016-02-17 Nick Clifton <nickc@redhat.com>
9445 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
9446 TI's devices.csv file as of March 2016.
9448 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
9451 * opts-global.c (handle_common_deferred_options): Introduce and
9452 initialize two global variables to remember command-line options
9453 specifying a stack-limiting register.
9454 * opts.h: Add extern declarations of the two new global variables.
9455 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
9456 variable based on the values of the two new global variables.
9458 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9461 * common.opt (Wnonnull-compare): New warning.
9462 * doc/invoke.texi (-Wnonnull): Remove text about comparison
9463 of arguments against NULL.
9464 (-Wnonnull-compare): Document.
9465 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
9466 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
9467 * passes.def (pass_warn_nonnull_compare): Add.
9468 * gimple-ssa-nonnull-compare.c: New file.
9470 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9472 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
9473 AARCH64_EXTRA_TUNE_RECIP_SQRT.
9475 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9477 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
9478 reciprocal sqrt for -mlow-precision-recip-sqrt.
9480 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9481 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9483 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
9484 always use lane loads to construct non-constant vectors.
9486 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
9488 * config/aarch64/aarch64.md
9489 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
9490 constraints for operand 3.
9491 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
9493 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9494 Richard Biener <rguenther@suse.de>
9496 PR tree-optimization/69820
9497 * tree-vect-patterns.c (type_conversion_p): Return false if
9498 *orig_type is unsigned single precision or boolean.
9499 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
9502 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9504 PR rtl-optimization/69764
9505 PR rtl-optimization/69771
9506 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
9507 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
9509 2016-02-16 Richard Biener <rguenther@suse.de>
9511 PR tree-optimization/69776
9512 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
9514 (indirect_refs_may_alias_p): Likewise.
9515 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
9516 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
9517 according to tbaa_p.
9518 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
9519 (optimize_stmt): For redundant store discovery do not allow tbaa.
9521 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
9523 PR tree-optimization/69714
9524 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
9525 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
9527 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
9529 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
9530 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
9531 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
9532 * config/arc/arc.c (arc_init): Check FPU options.
9533 (get_arc_condition_code): Handle new CC_FPU* modes.
9534 (arc_select_cc_mode): Likewise.
9535 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
9536 register pair only. Allow access for ARCv2 accumulator.
9537 (gen_compare_reg): Whenever we have FPU support use FPU compare
9539 (arc_reorg): Don't generate brcc insns when FPU compare
9540 instructions are involved.
9541 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
9542 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
9543 floating point emulation.
9544 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
9545 (REVERSE_CONDITION): Add new CC_FPU* modes.
9546 (TARGET_FP_SP_BASE): Define.
9547 (TARGET_FP_DP_BASE): Likewise.
9548 (TARGET_FP_SP_FUSED): Likewise.
9549 (TARGET_FP_DP_FUSED): Likewise.
9550 (TARGET_FP_SP_CONV): Likewise.
9551 (TARGET_FP_DP_CONV): Likewise.
9552 (TARGET_FP_SP_SQRT): Likewise.
9553 (TARGET_FP_DP_SQRT): Likewise.
9554 (TARGET_FP_DP_AX): Likewise.
9555 * config/arc/arc.md (ARCV2_ACC): New constant.
9556 (type): New fpu type attribute.
9557 (SDF): Conditional iterator.
9558 (cstore<mode>, cbranch<mode>): Change expand condition.
9559 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
9560 handles FPU/FPX cases as well.
9561 * config/arc/arc.opt (mfpu): New option.
9562 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
9564 (adddf3, muldf3, subdf3): Removed.
9565 * config/arc/predicates.md (proper_comparison_operator): Recognize
9567 * config/arc/fpu.md: New file.
9568 * doc/invoke.texi (ARC Options): Document mfpu option.
9570 2016-02-16 Richard Biener <rguenther@suse.de>
9572 PR rtl-optimization/69291
9573 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
9574 noce_operand_ok check.
9576 2016-02-16 Tom de Vries <tom@codesourcery.com>
9579 * omp-low.c (simd_clone_create): Remove call to
9580 symtab->call_cgraph_insertion_hooks.
9582 2016-02-16 Jakub Jelinek <jakub@redhat.com>
9584 PR tree-optimization/69802
9585 * tree-ssa-reassoc.c (update_range_test): If op is
9586 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
9587 op == 1 test of precision 1 integral op, otherwise handle
9588 that case as op itself. Fix up formatting.
9589 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
9592 2016-02-16 Richard Biener <rguenther@suse.de>
9594 PR tree-optimization/69586
9595 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
9596 types for conversion sources.
9598 2016-02-16 Richard Biener <rguenther@suse.de>
9601 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
9602 mask OEP_ADDRESS_OF.
9604 2016-02-16 Alan Modra <amodra@gmail.com>
9607 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
9608 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
9609 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
9611 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
9612 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
9613 (p8_fmrgow_<mode>): Likewise.
9614 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
9616 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
9617 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
9618 to use movdi_internal64. Remove op0_di.
9619 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
9621 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
9623 Add support for the FCCMP insn types
9625 * config/aarch64/aarch64.md (fccmp): Change insn type.
9627 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
9628 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
9629 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
9630 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
9631 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
9632 * config/arm/types.md (fccmps): Add new insn type.
9635 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
9637 * alias.c (get_alias_set): Fix a typo in comment.
9639 2016-02-15 Richard Biener <rguenther@suse.de>
9641 PR tree-optimization/69595
9642 * match.pd: Complete range test simplification to true.
9644 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
9646 PR rtl-optimization/69648
9647 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
9648 pic_offset_table_rtx.
9650 PR rtl-optimization/69752
9651 * ira.c (update_equiv_regs): When looking for more than a single SET,
9652 also take other side effects into account.
9654 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
9656 * config/s390/s390.c (s390_function_profiler): Add a new sequence
9657 for z900+ CPUs in 31-bit mode.
9659 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
9661 * common/config/s390/s390-common.c (s390_supports_split_stack):
9663 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
9664 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
9665 * config/s390/s390.c (struct machine_function): New field
9666 split_stack_varargs_pointer.
9667 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
9668 in s390_emit_prologue.
9669 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
9671 (morestack_ref): New global.
9672 (SPLIT_STACK_AVAILABLE): New macro.
9673 (s390_expand_split_stack_prologue): New function.
9674 (s390_live_on_entry): New function.
9675 (s390_va_start): Use split-stack vararg pointer if appropriate.
9676 (s390_asm_file_end): Emit the split-stack note sections.
9677 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
9678 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
9679 (UNSPECV_SPLIT_STACK_CALL): New unspec.
9680 (UNSPECV_SPLIT_STACK_DATA): New unspec.
9681 (split_stack_prologue): New expand.
9682 (split_stack_space_check): New expand.
9683 (split_stack_data): New insn.
9684 (split_stack_call): New expand.
9685 (split_stack_call_*): New insn.
9686 (split_stack_cond_call): New expand.
9687 (split_stack_cond_call_*): New insn.
9689 2016-02-15 Richard Biener <rguenther@suse.de>
9691 PR tree-optimization/69783
9692 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
9693 Add trivially correct cases.
9695 2016-02-15 Tom de Vries <tom@codesourcery.com>
9698 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
9700 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
9702 2016-02-15 Richard Biener <rguenther@suse.de>
9704 PR tree-optimization/69776
9705 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
9706 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
9707 indicate whether we can use TBAA to disambiguate against stores.
9708 Use alias-set zero if not.
9709 (visit_reference_op_store): Do not use TBAA when looking up
9711 * tree-ssa-pre.c (compute_avail): Use TBAA here.
9712 (eliminate_dom_walker::before_dom_children): But not when looking
9713 up redundant stores.
9715 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
9717 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
9719 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9721 * config/i386/znver1.md
9722 (znver1_pop, znver1_pop_mem,
9723 znver1_load_imov_double_store,
9724 znver1_load_imov_direct_store,
9725 znver1_load_imov_direct_load,
9726 znver1_load_imov_double_load): Add new.
9727 (znver1_insn, znver1_insn_load): Add icmov type.
9729 znver1_sseavx_fma_load,
9731 znver1_avx256_fma_load): Fix pipe usage.
9733 2016-02-14 Alan Modra <amodra@gmail.com>
9736 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
9737 with an invalid hard reg, reload just the reg not the entire
9738 pre/post-inc/dec address expression.
9740 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
9743 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
9744 fixed R1_REG scratch reg.
9745 (sibcall_value_pcrel_fdpic): Likewise.
9747 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
9751 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
9753 2016-02-12 Walter Lee <walt@tilera.com>
9755 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
9756 * config/tilegx/t-tilegx: Likewise.
9758 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9761 * diagnostic-show-locus.c (struct line_span): New struct.
9762 (layout::get_first_line): Delete.
9763 (layout::get_last_line): Delete.
9764 (layout::get_num_line_spans): New member function.
9765 (layout::get_line_span): Likewise.
9766 (layout::print_heading_for_line_span_index_p): Likewise.
9767 (layout::get_expanded_location): Likewise.
9768 (layout::calculate_line_spans): Likewise.
9769 (layout::m_first_line): Delete.
9770 (layout::m_last_line): Delete.
9771 (layout::m_line_spans): New field.
9772 (layout::layout): Update comment. Replace m_first_line and
9773 m_last_line with m_line_spans, replacing their initialization
9774 with a call to calculate_line_spans.
9775 (diagnostic_show_locus): When printing source lines and
9776 annotations, rather than looping over a single span
9777 of lines, instead loop over each line_span within
9778 the layout, with an inner loop over the lines within them.
9779 Call the context's start_span callback when changing line spans.
9780 * diagnostic.c (diagnostic_initialize): Initialize start_span.
9781 (diagnostic_build_prefix): Break out the building of the location
9782 part of the string into...
9783 (diagnostic_get_location_text): ...this new function, rewriting
9784 it from nested ternary expressions to a sequence of "if"
9786 (default_diagnostic_start_span_fn): New function.
9787 * diagnostic.h (diagnostic_start_span_fn): New typedef.
9788 (diagnostic_context::start_span): New field.
9789 (default_diagnostic_start_span_fn): New prototype.
9791 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9794 * gcc.c (driver::finalize): Fix cleanup of "specs".
9796 2016-02-12 David Malcolm <dmalcolm@redhat.com>
9800 * gcc.c (driver::driver): Initialize m_option_suggestions.
9801 (driver::~driver): Clean up m_option_suggestions.
9802 (suggest_option): Convert to...
9803 (driver::suggest_option): ...this, and split out into
9804 driver::build_option_suggestions and find_closest_string.
9805 (driver::build_option_suggestions): New function, from
9806 first half of suggest_option. Special-case
9807 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
9808 the sanitizer_opts array. For options of enum types, add the
9809 various enum values to the candidate strings.
9810 (driver::handle_unrecognized_options): Remove "const".
9811 * gcc.h (driver::handle_unrecognized_options): Likewise.
9812 (driver::build_option_suggestions): New decl.
9813 (driver::suggest_option): New decl.
9814 (driver::m_option_suggestions): New field.
9815 * opts-common.c (add_misspelling_candidates): New function.
9816 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
9817 and make non-static.
9818 * opts.h (sanitizer_opts): New array decl.
9819 (add_misspelling_candidates): New function decl.
9820 * spellcheck.c (find_closest_string): New function.
9821 * spellcheck.h (find_closest_string): New function decl.
9823 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9825 PR rtl-optimization/69764
9826 PR rtl-optimization/69771
9827 * optabs.c (expand_binop_directly): For shift_optab_p, force
9828 convert_modes with VOIDmode if xop1 has VOIDmode.
9830 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
9833 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
9834 to correctly determine instrumentation thunks.
9836 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9839 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
9840 type by reference, force lhs on the call.
9843 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
9844 Compute retval and retbnd early in all cases if split_part_return_p
9845 and return_bb is not EXIT. Remove all clobber stmts and reset
9846 all debug stmts that refer to SSA_NAMEs defined in split part,
9847 except if it is retval, in that case replace the old retval with the
9848 lhs of the call to the split part.
9850 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9853 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9856 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9857 whose result is used in PHI.
9858 (maybe_optimize_range_tests): Likewise.
9859 (final_range_test_p): Likweise.
9861 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9864 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
9865 whose result is used in PHI.
9866 (maybe_optimize_range_tests): Likewise.
9867 (final_range_test_p): Likweise.
9869 2016-02-12 Jakub Jelinek <jakub@redhat.com>
9871 * cgraph.c: Spelling fixes - behaviour -> behavior and
9872 neighbour -> neighbor.
9873 * target.def: Likewise.
9874 * sel-sched.c: Likewise.
9875 * config/mips/mips.c: Likewise.
9876 * config/arc/arc.md: Likewise.
9877 * config/arm/cortex-a57.md: Likewise.
9878 * config/arm/arm.c: Likewise.
9879 * config/arm/neon.md: Likewise.
9880 * config/arm/arm-c.c: Likewise.
9881 * config/vms/vms-c.c: Likewise.
9882 * config/s390/s390.c: Likewise.
9883 * config/i386/znver1.md: Likewise.
9884 * config/i386/i386.c: Likewise.
9885 * config/ia64/hpux-unix2003.h: Likewise.
9886 * config/msp430/msp430.md: Likewise.
9887 * config/rx/rx.c: Likewise.
9888 * config/rx/rx.md: Likewise.
9889 * config/aarch64/aarch64-simd.md: Likewise.
9890 * config/aarch64/aarch64.c: Likewise.
9891 * config/nvptx/nvptx.c: Likewise.
9892 * config/bfin/bfin.c: Likewise.
9893 * config/cris/cris.opt: Likewise.
9894 * config/rs6000/rs6000.c: Likewise.
9895 * target.h: Likewise.
9896 * spellcheck.c: Likewise.
9897 * ira-build.c: Likewise.
9898 * tree-inline.c: Likewise.
9899 * builtins.c: Likewise.
9900 * lra-constraints.c: Likewise.
9901 * explow.c: Likewise.
9902 * hwint.h: Likewise.
9903 * targhooks.c: Likewise.
9904 * tree-vect-data-refs.c: Likewise.
9906 * doc/tm.texi: Likewise.
9907 * doc/extend.texi: Likewise.
9908 * doc/install.texi: Likewise.
9909 * doc/md.texi: Likewise.
9910 * tree-ssa-tail-merge.c: Likewise.
9911 * sched-int.h: Likewise.
9912 * match.pd: Likewise.
9913 * sched-ebb.c: Likewise.
9914 * target.def (omit_struct_return_reg): Likewise.
9915 * gimple-ssa-isolate-paths.c: Likewise.
9916 (find_implicit_erroneous_behaviour): Renamed to...
9917 (find_implicit_erroneous_behavior): ... this.
9918 (find_explicit_erroneous_behaviour): Renamed to...
9919 (find_explicit_erroneous_behavior): ... this.
9920 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
9922 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
9924 PR rtl-optimization/64682
9925 PR rtl-optimization/69567
9926 PR rtl-optimization/69737
9927 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
9928 in I2 as well, just lose it.
9930 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9932 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
9934 (aarch64_last_printed_tune_string): Likewise.
9935 (aarch64_declare_function_name): Only output .arch assembler
9936 directive if it will be different from the previously output
9937 directive. Same for .tune comment but only if -dA is set.
9938 (aarch64_start_file): New function.
9939 (TARGET_ASM_FILE_START): Define.
9941 2016-02-11 David Malcolm <dmalcolm@redhat.com>
9944 * Makefile.in (PLUGIN_HEADERS): Add params.list.
9946 2016-02-11 Jakub Jelinek <jakub@redhat.com>
9949 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
9950 -Wmaybe-uninitialized warning.
9952 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
9955 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
9957 2016-02-11 Richard Biener <rguenther@suse.de>
9959 PR rtl-optimization/69291
9960 * ifcvt.c (noce_try_store_flag_constants): Do not allow
9961 subexpressions affected by changing the result.
9963 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
9966 * lra-constraints.c (curr_insn_transform): Find in/out operands
9967 for secondary memory moves. Update dups.
9969 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
9971 PR tree-optimization/69652
9972 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
9973 to nested loop, did source re-formatting, skip debug statements,
9974 add check on statement with volatile operand, remove dead scalar
9977 2016-02-10 Jakub Jelinek <jakub@redhat.com>
9978 Patrick Palka <ppalka@gcc.gnu.org>
9982 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
9983 calls if the return type is TREE_ADDRESSABLE.
9984 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
9985 * ipa-split.c (split_function): Fix doubled "we" in comment.
9986 Use void return type for the split part even if
9987 !split_point->split_part_set_retval.
9989 2016-02-10 Bin Cheng <bin.cheng@arm.com>
9991 PR tree-optimization/68021
9992 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
9993 when computing the value of biv cand by itself.
9995 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
9997 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
9998 (cortexa57_tunings): Likewise.
9999 (cortexa72_tunings): Likewise.
10000 (arch_macro_fusion_pair_p): Add support for AES fusion.
10001 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
10002 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
10003 Allow virtual registers before reload so early scheduling works.
10004 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
10005 correct latency and pipeline.
10006 (cortex_a57_crypto_complex): Likewise.
10007 (cortex_a57_crypto_xor): Likewise.
10008 (define_bypass): Add AES bypass.
10010 2016-02-10 Richard Biener <rguenther@suse.de>
10012 PR tree-optimization/69726
10013 * passes.def: Add DCE pass before late uninit.
10014 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
10015 really fixup if-conversions job.
10017 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
10019 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
10020 (arm_cortex_a57_tune): Likewise.
10021 (aarch_macro_fusion_pair_p): Add support for AES fusion.
10022 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
10024 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
10026 * timevar.def (TV_PHASE_DBGINFO): Delete.
10027 (TV_PHASE_CHECK_DBGINFO): Likewise.
10028 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
10030 2016-02-10 Richard Biener <rguenther@suse.de>
10032 PR tree-optimization/69719
10033 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10034 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
10036 2016-02-09 Andrew Pinski <apinski@cavium.com>
10039 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
10040 get_vcond_mask_icode returns false.
10042 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
10045 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
10046 an ADDIS that adds a pointer to a large constant that sets the
10047 upper16 bits with a load operation.
10049 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10052 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
10054 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
10056 (vzipq_s16): Likewise.
10057 (vzipq_s32): Likewise.
10058 (vzipq_f32): Likewise.
10059 (vzipq_u8): Likewise.
10060 (vzipq_u16): Likewise.
10061 (vzipq_u32): Likewise.
10062 (vzipq_p8): Likewise.
10063 (vzipq_p16): Likewise.
10065 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
10068 * config/arm/arm.c (neon_endian_lane_map): New function.
10069 (neon_vector_pair_endian_lane_map): New function.
10070 (arm_evpc_neon_vuzp): Allow for big endian lane order.
10071 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
10073 (vuzpq_s16): Likewise.
10074 (vuzpq_s32): Likewise.
10075 (vuzpq_f32): Likewise.
10076 (vuzpq_u8): Likewise.
10077 (vuzpq_u16): Likewise.
10078 (vuzpq_u32): Likewise.
10079 (vuzpq_p8): Likewise.
10080 (vuzpq_p16): Likewise.
10082 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
10085 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
10088 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
10090 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
10091 truncate const_int operand 1 to QImode.
10093 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
10095 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
10096 corresponding to an abnormal edge.
10098 2016-02-09 Tom de Vries <tom@codesourcery.com>
10100 PR tree-optimization/69599
10101 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
10103 (find_func_aliases_for_builtin_call, find_func_clobbers)
10104 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
10107 2016-02-09 Richard Biener <rguenther@suse.de>
10109 PR tree-optimization/69715
10110 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
10111 LHS on calls as non-rewritable.
10113 2016-02-09 Tom de Vries <tom@codesourcery.com>
10116 * lto-wrapper.c (append_diag_options): New function.
10117 (compile_offload_image): Call append_diag_options.
10119 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
10122 * doc/extend.texi (Flag Output Operands): Correct sectioning.
10123 Minor copy-edit to fix verb tenses.
10125 2016-02-08 Jakub Jelinek <jakub@redhat.com>
10127 PR tree-optimization/69209
10128 * ipa-split.c (split_function): If split part is not
10129 returning retval, retval has gimple type but is not
10130 gimple value, force it into a SSA_NAME first.
10132 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
10134 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
10137 2016-02-08 Jason Merrill <jason@redhat.com>
10140 * convert.c (convert_to_integer_1): Check dofold on truncation
10142 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
10143 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
10144 Rename from *_nofold.
10145 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
10146 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
10148 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
10151 * tree.c (build_common_tree_nodes): Remove short_double argument.
10152 All callers changed.
10153 * tree.h (build_common_tree_nodes): Adjust declaration.
10154 * doc/invoke.texi (-fshort-double): Remove documentation.
10155 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
10156 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
10157 * lto-wrapper.c (merge_and_complain, append_compiler_options)
10158 (append_linker_options): Don't handle OPT_fshort_double.
10160 PR rtl-optimization/68730
10161 * lra-remat.c (insn_to_cand_activation): New static variable.
10162 (lra_remat): Allocate and free it.
10163 (create_cand): New arg activation. Initialize a field in
10164 insn_to_cand_activation if it is nonnull.
10165 (create_cands): Pass the activation insn to create_cand when making
10166 a candidate involving an output reload. Reorganize code a little.
10167 (do_remat): Keep track of active status of candidates in a separate
10170 2016-02-08 Richard Biener <rguenther@suse.de>
10172 PR tree-optimization/69719
10173 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
10174 Properly use absolute of the difference of the two offsets to
10175 compare or adjust the segment length.
10177 2016-02-08 Richard Biener <rguenther@suse.de>
10178 Jeff Law <law@redhat.com>
10181 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
10182 types for anonymous SSA names.
10184 2016-02-08 Richard Biener <rguenther@suse.de>
10186 PR rtl-optimization/69274
10187 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
10189 2016-02-08 Jeff Law <law@redhat.com>
10191 PR tree-optimization/65917
10192 * tree-ssa-dom.c (record_temporary_equivalences): Record both
10193 equivalences from if (x == y) style conditionals.
10194 (loop_depth_of_name): Remove.
10195 (record_equality): Remove loop depth check.
10196 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
10197 (const_and_copies::record_const_or_copy_raw): New member function.
10198 * tree-ssa-scopedtables.c
10199 (const_and_copies::record_const_or_copy_raw): New, factored out of
10200 (const_and_copies::record_const_or_copy): Call new member function.
10202 2016-02-05 Jeff Law <law@redhat.com>
10204 PR tree-optimization/68541
10205 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
10206 (count_stmts_in_block): New function.
10207 (poor_ifcvt_candidate_code): Likewise.
10208 (is_feasible_trace): Add some heuristics to determine when path
10209 splitting is profitable.
10210 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
10211 is a diamond with a single exit.
10213 2016-02-05 Martin Sebor <msebor@redhat.com>
10216 * doc/invoke.texi: Update -Wplacement-new to take an optional
10219 2016-02-06 Richard Henderson <rth@redhat.com>
10222 * tree.c (tree_nop_conversion_p): Do not strip casts into or
10223 out of non-standard address spaces.
10225 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10227 PR rtl-optimization/69691
10228 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
10230 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
10232 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
10233 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
10234 (*ieee128_mfvsrd_64bit): Likewise.
10235 (*ieee128_mfvsrd_32bit): Likewise.
10237 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
10241 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
10243 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
10244 instrumented_version.
10246 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
10248 * doc/invoke.texi (Optimize Options): In table of --param options
10249 rename second occurrence of tracer-min-branch-ratio to
10250 tracer-min-branch-probability, rename
10251 tracer-min-branch-ratio-feedback to
10252 tracer-min-branch-probability-feedback and clarify description,
10253 rename sched-spec-state-edge-prob-cutoff to
10254 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
10255 to selsched-insns-to-rename, rename lto-minpartition to
10256 lto-min-partition, delete reorder-blocks-duplicate and
10257 reorder-blocks-duplicate-feedback.
10259 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10261 * config/s390/s390.c (s390_register_info_set_ranges): Remove
10264 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
10266 * doc/extend.texi: S/390: Correct some typos.
10268 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10270 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
10272 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10275 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
10276 (s390_register_info_gprtofpr): Use new macros above.
10277 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
10279 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
10280 its name. Adjust restore and save gpr ranges.
10281 (s390_register_info_set_ranges): New function.
10282 (s390_register_info): Use new macros above. Call
10283 s390_register_info_set_ranges.
10284 (s390_optimize_register_info): Likewise.
10285 (s390_hard_regno_rename_ok): Use new macros.
10286 (s390_hard_regno_scratch_ok): Likewise.
10287 (s390_emit_epilogue): Likewise.
10288 (s390_can_use_return_insn): Likewise.
10289 (s390_optimize_prologue): Likewise.
10290 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
10292 2016-02-05 Jakub Jelinek <jakub@redhat.com>
10295 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
10297 (ix86_option_override_internal): Disable TARGET_STV even for
10298 -m{incoming,preferred}-stack-boundary=3.
10300 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10302 * config.gcc: Mark deprecated rtems targets as obsolete.
10304 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
10306 PR rtl-optimization/64682
10307 PR rtl-optimization/69567
10308 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
10309 before I2 only if the register is both used and set in I2.
10311 2016-02-04 DJ Delorie <dj@redhat.com>
10313 * config/msp430/msp430.c (msp430_start_function): Add function type.
10315 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10318 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
10320 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
10322 PR rtl-optimization/69577
10324 2015-10-29 Richard Henderson <rth@redhat.com>
10328 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
10329 sse check to the exact conditions of PR 67609.
10331 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
10334 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
10335 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
10336 not allowed into the traditional Altivec registers.
10337 (movtd_64bit_nodm): Likewise.
10338 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10340 2016-02-04 David Malcolm <dmalcolm@redhat.com>
10342 * config/aarch64/cortex-a57-fma-steering.c
10343 (aarch64_register_fma_steering): Remove "static" from arguments
10346 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
10349 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
10350 twice when complex.
10352 2016-02-04 Mike Frysinger <vapier@gentoo.org>
10354 * doc/invoke.texi: Delete -mno-fma4.
10356 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
10358 PR rtl-optimization/69577
10359 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
10360 (find_subregs_of_mode): Update accordingly. Iterate over partial
10363 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
10365 * config/arm/arm-protos.h (neon_reinterpret): Remove.
10366 * config/arm/arm.c (neon_reinterpret): Remove.
10367 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
10368 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
10369 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
10370 vreinterpretti): Remove.
10371 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
10372 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10373 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
10374 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
10375 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
10376 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
10377 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
10378 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
10379 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
10380 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
10381 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
10382 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
10383 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
10384 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
10385 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
10386 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
10387 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
10388 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
10389 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
10390 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
10391 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
10392 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
10393 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
10394 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
10395 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
10396 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
10397 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
10398 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
10399 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
10400 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
10401 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
10402 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
10403 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
10404 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
10405 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
10406 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
10407 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
10408 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
10409 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
10410 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
10411 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
10412 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
10413 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
10414 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
10415 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
10416 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
10417 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
10418 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
10419 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
10420 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
10421 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
10422 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
10423 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
10424 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
10425 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
10426 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
10427 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
10428 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
10429 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
10430 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
10431 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
10432 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
10433 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
10434 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
10435 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
10436 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
10437 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
10438 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
10439 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
10440 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
10441 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
10442 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
10443 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
10444 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
10445 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
10446 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
10447 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
10448 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
10449 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
10450 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
10451 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
10452 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
10453 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
10454 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
10455 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
10456 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
10457 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
10458 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
10459 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
10460 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
10461 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
10462 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
10463 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
10464 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
10465 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
10466 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
10467 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
10468 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
10469 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
10470 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
10471 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
10472 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
10473 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
10475 2016-02-04 Martin Liska <mliska@suse.cz>
10478 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
10479 that are gimple_store_p.
10480 (maybe_instrument_call): Likewise.
10482 2016-02-04 Bin Cheng <bin.cheng@arm.com>
10484 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
10485 register scaling out of memory reference and comment why.
10487 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10491 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
10492 folding the source of a SET.
10494 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10498 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
10499 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
10501 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
10505 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
10508 2016-02-04 Christian Bruel <christian.bruel@st.com>
10510 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
10511 * config/arm/arm.c (arm_set_current_function): Likewise.
10513 2016-02-04 Jakub Jelinek <jakub@redhat.com>
10514 Ilya Enkovich <enkovich.gnu@gmail.com>
10515 H.J. Lu <hongjiu.lu@intel.com>
10518 * config/i386/i386.c (convert_scalars_to_vector): Remove
10519 stack alignment fixes.
10520 (ix86_option_override_internal): Disable TARGET_STV if stack
10521 might not be aligned enough.
10522 (ix86_minimum_alignment): Assert that TARGET_STV is false.
10524 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
10526 * gcc/config/i386/x86-tune.def: Disable default prefetching
10529 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10530 Vladimir Makarov <vmakarov@redhat.com>
10533 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
10534 in validating fused toc addresses.
10536 2016-02-03 Jakub Jelinek <jakub@redhat.com>
10539 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
10540 range->m_caret fields if range->m_show_caret_p is false.
10543 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10544 Force oldval into register if it does not satisfy reg_or_short_operand
10545 predicate. Fix up formatting.
10547 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
10548 Alexandre Oliva <aoliva@redhat.com>
10551 * lra-constraints.c (simplify_operand_subreg): Check additionally
10552 address validity after potential reloading.
10553 (process_address_1): Check insns validity. In case of failure do
10556 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
10559 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
10562 2016-02-02 Jakub Jelinek <jakub@redhat.com>
10564 * wide-int.cc (canonize_uhwi): New function.
10565 (wi::divmod_internal): Use it.
10567 2016-02-02 James Norris <jnorris@codesourcery.com
10569 * gimplify.c (omp_notice_variable): Add usage check.
10571 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
10573 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
10574 like LE, GE, LT, GT when emitting relational operator.
10576 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10578 * ira-costs.c (find_costs_and_classes): Add extra argument.
10579 * target.def (ira_change_pseudo_allocno_class): Add parameter.
10580 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
10581 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
10582 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
10583 Add best_class parameter, and return it if not ALL_REGS.
10584 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
10586 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
10587 Update target hook.
10589 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
10591 * config/aarch64/aarch64.c
10592 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
10593 (aarch64_ira_change_pseudo_allocno_class): New function.
10595 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
10598 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
10600 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10602 * config/avr/avr.c (avr_option_override): Set
10603 PARAM_ALLOW_STORE_DATA_RACES to 1.
10605 2016-02-02 Richard Biener <rguenther@suse.de>
10607 PR tree-optimization/69595
10608 * match.pd: Add range test simplifications to true/false.
10610 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
10612 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
10613 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
10616 2016-02-02 Richard Biener <rguenther@suse.de>
10618 PR tree-optimization/69606
10619 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
10620 info on the result before moving a stmt.
10622 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
10624 PR middle-end/68542
10625 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
10626 branch with vector comparison.
10627 * config/i386/sse.md (VI48_AVX): New mode iterator.
10628 (define_expand "cbranch<mode>4): Add support for conditional branch
10629 with vector comparison.
10630 * tree-vect-loop.c (optimize_mask_stores): New function.
10631 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
10632 has_mask_store field of vect_info.
10633 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
10634 vectorized loops having masked stores after vec_info destroy.
10635 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
10636 correspondent macros.
10637 (optimize_mask_stores): Add prototype.
10639 2016-02-02 Alan Modra <amodra@gmail.com>
10642 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
10645 2016-02-02 Alan Modra <amodra@gmail.com>
10648 * config/rs6000/rs6000.c (need_toc_init): New var, set it
10649 whenever toc_label_name used.
10650 (rs6000_file_start): Don't set up toc section here,
10651 (rs6000_output_function_epilogue): do so here instead,
10652 (rs6000_xcoff_file_start): and here.
10653 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
10654 (load_toc_aix_di): Likewise.
10656 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10658 PR rtl-optimization/69592
10659 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
10660 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
10661 (num_sign_bit_copies_binary_arith_p): New inline function.
10662 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
10664 2016-02-01 Jeff Law <law@redhat.com>
10666 PR tree-optimization/69580
10667 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
10668 * tree-ssa-threadbackward.c
10669 (fsm_find_control_statement_thread_paths): Do not try to walk
10670 through large PHI nodes.
10672 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10674 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
10675 when count is incremented above limit, don't analyze further
10678 * omp-low.c (oacc_parse_default_dims): Avoid
10679 -Wsign-compare warning, make sure value fits into int
10680 rather than just unsigned int.
10682 2016-02-01 Bin Cheng <bin.cheng@arm.com>
10684 PR tree-optimization/67921
10685 * fold-const.c (split_tree): New parameters. Convert pointer
10686 type variable part to proper type before negating.
10687 (fold_binary_loc): Pass new arguments to split_tree.
10689 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
10691 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
10692 (nvptx_goacc_validate_dims): Extend to handle global defaults.
10693 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
10694 * doc/tm.texti: Rebuilt.
10695 * doc/invoke.texi (fopenacc-dim): Document.
10696 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
10697 (append_compiler_options): Likewise.
10698 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
10699 (oacc_parse_default_dims): New.
10700 (oacc_validate_dims): Add USED arg. Select non-unity default when
10702 (oacc_loop_fixed_partitions): Return mask of used partitions.
10703 (oacc_loop_auto_partitions): Emit dump info.
10704 (oacc_loop_partition): Return mask of used partitions.
10705 (execute_oacc_device_lower): Parse default dimension arg. Adjust
10706 loop partitioning and validation calls.
10708 2016-02-01 Richard Biener <rguenther@suse.de>
10710 PR middle-end/69556
10711 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
10713 2016-02-01 Richard Biener <rguenther@suse.de>
10715 PR tree-optimization/69574
10716 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
10717 of asserting return chrec_dont_know.
10719 2016-02-01 Martin Liska <mliska@suse.cz>
10721 * mem-stats-traits.h: Add copyright header.
10722 * mem-stats.h: Likewise.
10724 2016-02-01 Richard Biener <rguenther@suse.de>
10726 PR tree-optimization/69579
10727 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
10728 Do not propagate through abnormal PHI results.
10730 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
10732 * postreload.c (reload_cse_simplify): Remove dead code.
10734 2016-02-01 Jakub Jelinek <jakub@redhat.com>
10736 PR rtl-optimization/69570
10737 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
10738 if there is more than one set, not if there is a single set.
10740 2016-02-01 Richard Henderson <rth@redhat.com>
10743 * combine.c (make_compound_operation): When looking through a
10744 subreg, make sure to re-extend to the width of the outer mode.
10746 2016-01-30 Jakub Jelinek <jakub@redhat.com>
10748 PR tree-optimization/69546
10749 * wide-int.cc (wi::divmod_internal): For unsigned division
10750 where both operands fit into uhwi, if o1 is 1 and o0 has
10751 msb set, if divident_prec is larger than bits per hwi,
10752 clear another quotient word and return 2 instead of 1.
10753 Similarly for remainder with msb in HWI set, if dividend_prec
10754 is larger than bits per hwi.
10756 2016-01-29 Martin Jambor <mjambor@suse.cz>
10758 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
10759 Use short lowercase names.
10760 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
10761 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
10762 acq_rel one. Protect warning agains segfaults if
10763 get_memory_order_name returns NULL.
10764 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
10765 with release semantics. Do not warn if get_memory_order already did.
10766 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
10767 semantics. Fix check for relaxed or acquire semantics. Do not warn
10768 if get_memory_order already did.
10770 2016-01-29 Sebastian Pop <s.pop@samsung.com>
10772 * doc/install.texi: Document that isl-0.16 is supported.
10774 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
10777 * config/i386/constraints.md (Bm): Describe as special memory
10779 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
10780 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10781 * genpreds.c (struct constraint_data): Add is_special_memory.
10782 (have_special_memory_constraints, special_memory_start): New
10784 (special_memory_end): Ditto.
10785 (add_constraint): Add new arg is_special_memory. Add code to
10786 process its true value. Update have_special_memory_constraints.
10787 (process_define_constraint): Pass the new arg.
10788 (process_define_register_constraint): Ditto.
10789 (choose_enum_order): Process special memory.
10790 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
10791 function insn_extra_special_memory_constraint.
10792 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10793 * gensupport.c (process_rtx): Process
10794 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
10795 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
10796 * ira-lives.c (single_reg_class): Use
10797 insn_extra_special_memory_constraint.
10798 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
10799 * lra-constraints.c (process_alt_operands): Ditto.
10800 (curr_insn_transform): Use insn_extra_special_memory_constraint.
10801 * recog.c (asm_operand_ok, preprocess_constraints): Process
10803 * reload.c (find_reloads): Ditto.
10804 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
10805 * stmt.c (parse_input_constraint): Use
10806 insn_extra_special_memory_constraint.
10808 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
10811 * lra-splill.c (lra_final_code_change): Revert r229087 by
10812 removing all sub-registers.
10814 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
10817 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
10819 2016-01-29 Jakub Jelinek <jakub@redhat.com>
10822 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
10823 SSE1, copy target into the temporary reg first before recursing
10826 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
10828 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
10831 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
10833 * ginclude/stdarg.h: Test __cplusplus instead of
10834 __GXX_EXPERIMENTAL_CXX0X__.
10836 2016-01-29 Richard Biener <rguenther@suse.de>
10838 PR tree-optimization/69547
10839 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
10840 Do not mark clobbers necessary.
10841 (mark_all_reaching_defs_necessary_1): Likewise.
10843 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10845 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
10846 declaration name with %qs and print it in both error messages.
10847 Also fix indentation.
10849 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10852 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
10853 trailing blank line from error message.
10855 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
10858 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
10861 2016-01-29 Richard Biener <rguenther@suse.de>
10863 PR middle-end/69537
10864 * match.pd: Allow all integral types when simplifying a
10865 widening or sign-changing conversion.
10867 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10869 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
10870 back to setting codegen_error to fail codegen.
10872 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
10875 * config/i386/constraints.md (C): Only accept constant zero operand.
10876 (BC): New constraint.
10877 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
10878 instead of C constraint.
10879 * doc/md.texi (Machine Constraints): Update description
10882 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
10885 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
10887 2016-01-28 Jakub Jelinek <jakub@redhat.com>
10889 PR middle-end/69542
10890 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
10893 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
10895 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
10896 branches if using guessed profile.
10898 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
10900 * graphite-optimize-isl.c (optimize_isl): Fix dump.
10902 2016-01-28 Richard Henderson <rth@redhat.com>
10905 * config/aarch64/aarch64-modes.def (CC_Cmode): New
10906 * config/aarch64/aarch64-protos.h: Update.
10907 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
10908 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
10909 (aarch64_get_condition_code_1): Handle CC_Cmode.
10910 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
10911 (*add<mode>3_compareC_cconly_imm): New.
10912 (*add<mode>3_compareC_cconly): New.
10913 (*add<mode>3_compareC_imm): New.
10914 (add<mode>3_compareC): New.
10915 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
10916 to be first. Use aarch64_carry_operation.
10917 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
10918 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
10919 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
10920 (subti3): Use subdi3_compare1.
10921 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
10922 (sub<mode>3_compare1): New.
10923 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
10924 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
10925 (*subsi3_carryin_uxtw): Likewise.
10926 (*ngc<mode>, *ngcsi_uxtw): Likewise.
10927 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
10928 * config/aarch64/iterators.md (DWI): New.
10929 * config/aarch64/predicates.md (aarch64_carry_operation): New.
10930 (aarch64_borrow_operation): New.
10932 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
10934 * graphite-optimize-isl.c (optimize_isl): Print a different debug
10935 message when isl does not return a valid schedule.
10937 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10939 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
10940 Remove comments from class declarations: they are already in the code
10943 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10945 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
10947 (ternary_op_to_tree): Same.
10948 (unary_op_to_tree): Same.
10949 (nary_op_to_tree): Same.
10950 (gcc_expression_from_isl_expr_op): Same.
10951 (gcc_expression_from_isl_expression): Same.
10952 (graphite_create_new_loop): Same.
10953 (graphite_create_new_loop_guard): Same.
10954 (build_iv_mapping): Same.
10955 (graphite_create_new_guard): Same.
10956 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
10957 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
10959 2016-01-28 Sebastian Pop <s.pop@samsung.com>
10961 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
10962 instead of setting codegen_error to fail codegen.
10964 2016-01-28 Jason Merrill <jason@redhat.com>
10966 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
10968 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
10970 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
10971 Remove CONST_INT_P check in CCMP cost calculation.
10973 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
10975 * config/aarch64/aarch64.c (generic_vector_cost):
10976 Set vec_permute_cost.
10977 (cortexa57_vector_cost): Likewise.
10978 (exynosm1_vector_cost): Likewise.
10979 (xgene1_vector_cost): Likewise.
10980 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
10981 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
10982 Add vec_permute_cost entry.
10984 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
10986 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
10988 (add<mode>3_compare0): Likewise.
10989 (addsi3_compare0_uxtw): Likewise.
10990 (add<mode>3nr_compare0): Likewise.
10991 (compare_neg<mode>): Likewise.
10992 (<optab><mode>3): Likewise.
10994 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
10996 * tree-vect-stmts.c (vectorizable_comparison): Add
10997 NULL check for vectype.
10999 2016-01-28 Richard Biener <rguenther@suse.de>
11001 PR tree-optimization/69466
11002 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
11003 Account for PHIs we couldn't duplicate.
11005 2016-01-28 Martin Liska <mliska@suse.cz>
11008 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
11009 instead of ENABLE_VALGRIND_CHECKING.
11011 2016-01-27 Richard Henderson <rth@redhat.com>
11014 * lra-remat.c (subreg_regs): New.
11015 (dump_candidates_and_remat_bb_data): Dump it.
11016 (operand_to_remat): Reject if operand in subreg_regs.
11017 (set_bb_regs): Collect subreg_regs.
11018 (lra_remat): Init and free subreg_regs. Compute
11019 calculate_local_reg_remat_bb_data before create_cands.
11021 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
11024 * config/i386/i386.c (ix86_update_stack_boundary): Don't
11025 change stack_alignment_needed for __tls_get_addr call.
11027 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
11029 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
11031 2016-01-27 Jeff Law <law@redhat.com>
11033 PR tree-optimization/68398
11034 PR tree-optimization/69196
11035 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
11036 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
11037 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11038 Only count PHIs in the last block in the path. The others will
11039 const/copy propagate away. Add heuristic to allow more irreducible
11040 subloops to be created when it is likely profitable to do so.
11042 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11043 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
11044 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
11046 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11049 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
11050 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
11051 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
11052 * tree-streamer-in.c: Include asan.h.
11053 (streamer_get_builtin_tree): For builtins in sanitizer
11054 range call initialize_sanitizer_builtins and retry.
11056 2016-01-27 Ian Lance Taylor <iant@google.com>
11058 * common.opt (fkeep-gc-roots-live): New undocumented option.
11059 * tree-ssa-loop-ivopts.c (add_candidate_1): If
11060 -fkeep-gc-roots-live, skip pointers.
11061 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
11064 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
11067 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
11068 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
11070 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
11073 * configure.ac: NetBSD provides SSP in its C library.
11074 * configure: Updated.
11076 2016-01-27 Richard Biener <rguenther@suse.de>
11078 PR tree-optimization/69166
11079 * tree-vect-loop.c (vect_is_simple_reduction): Always check
11080 reduction code for commutativity / associativity.
11082 2016-01-27 Martin Jambor <mjambor@suse.cz>
11084 PR tree-optimization/69355
11085 * tree-sra.c (analyze_access_subtree): Correct hole detection when
11086 total_scalarization fails.
11088 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
11090 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
11093 2016-01-27 Christian Bruel <christian.bruel@st.com>
11096 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
11097 Move arm_reset_previous_fndecl and set_target_option_current_node in
11098 the conditional part. Call save_restore_target_globals.
11099 * config/arm/arm.c (arm_set_current_function):
11100 Refactor to better support #pragma target and attribute mix.
11101 Call save_restore_target_globals.
11102 * config/arm/arm-protos.h (save_restore_target_globals): New function.
11104 2016-01-27 Martin Liska <mliska@suse.cz>
11106 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
11107 reference for an HSA kernel and its host function.
11109 2016-01-27 Jakub Jelinek <jakub@redhat.com>
11111 PR tree-optimization/69399
11112 * wide-int.h (wi::lrshift): For larger precisions, only
11113 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
11115 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
11117 * config/arc/predicates.md (proper_comparison_operator): Reject
11118 constant-constant comparison.
11120 2016-01-26 Tom de Vries <tom@codesourcery.com>
11122 PR tree-optimization/69110
11123 * tree-data-ref.c (initialize_data_dependence_relation): Handle
11124 DR_NUM_DIMENSIONS == 0.
11126 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
11127 Sebastian Pop <s.pop@samsung.com>
11129 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
11130 isl_ast_op_cond and isl_ast_op_select.
11131 (gcc_expression_from_isl_expr_op): Same.
11133 2016-01-26 Jason Merrill <jason@redhat.com>
11136 * tree.c (recompute_constructor_flags): Split out from
11138 (verify_constructor_flags): New.
11139 * tree.h: Declare them.
11141 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
11143 PR rtl-optimization/69217
11144 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
11145 are no TYPE_FIELDS set for the record type.
11147 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11150 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
11151 toc_label_name unconditionally.
11152 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
11153 SYMBOL_REF string. Use toc_label_name instead of constructing
11155 (rs6000_elf_declare_function_name): Use toc_label_name instead of
11156 constructing LCTOC1.
11158 2016-01-26 Martin Sebor <msebor@redhat.com>
11161 * doc/extend.texi (Common Type Attributes): Move text that talks about
11162 attribute packed from attribute aligned to the section discussing
11163 the former attribute for clarity.
11165 2016-01-26 Richard Henderson <rth@redhat.com>
11167 PR middle-end/60908
11168 * trans-mem.c (tm_region_init): Mark entry block as visited.
11170 2016-01-26 David Malcolm <dmalcolm@redhat.com>
11173 * diagnostic-show-locus.c (layout::print_source_line): Replace
11174 call to pp_newline with call to layout::print_newline.
11175 (layout::print_annotation_line): Likewise.
11176 (layout::move_to_column): Likewise.
11177 (layout::print_any_fixits): After printing any fixits, print a
11178 trailing newline, if necessary.
11179 (layout::print_newline): New method, resetting any colorization
11181 (diagnostic_show_locus): Move the pp_newline to before the
11182 early bailout. Remove dummy block enclosing the layout instance.
11183 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
11184 of pp_newline_and_flush with pp_flush.
11185 (diagnostic_append_note): Delete use of pp_newline.
11186 (diagnostic_append_note_at_rich_loc): Delete.
11187 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
11188 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
11189 when newline characters are added to the buffer.
11191 2016-01-26 Michael Matz <matz@suse.de>
11193 * configure.ac (ac_cv_std_swap_in_utility): New test.
11194 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
11195 * configure: Regenerate.
11196 * config.in: Regenerate.
11198 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
11200 * config/arc/arc.md (cstoresi4): Force operand into register.
11201 (arcset<code>): Fix predicate.
11202 (arcsetltu): Likewise.
11203 (arcsetgeu): Likewise.
11204 (arcsethi): Likewise.
11205 (arcsetls): Likewise.
11207 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11209 PR tree-optimization/69483
11210 * gimple-fold.c (canonicalize_constructor_val): Return NULL
11211 if base has error_mark_node type.
11213 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
11216 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
11217 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
11219 (vget_lane_f16): Handle big-endian.
11220 (vgetq_lane_f16): Likewise.
11221 (vset_lane_f16): Likewise.
11222 (vsetq_lane_f16): Likewise.
11223 * config/arm/iterators.md (VQXMOV): Add V8HF.
11224 (VDQ): Add V4HF and V8HF.
11225 (V_reg): Handle V4HF and V8HF.
11226 (Is_float_mode): Likewise.
11227 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
11228 neon_vdup_nv8hf): New patterns.
11229 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
11230 Use VD_LANE iterator.
11231 (neon_vld1_dup<mode>): Use VQ2 iterator.
11233 2016-01-26 Nathan Sidwell <nathan@acm.org>
11235 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
11236 (set_oacc_fn_attrib): Add IS_KERNEL arg.
11237 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
11238 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
11239 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
11240 (oacc_validate_dims): Add LEVEL arg, don't return level.
11241 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
11242 oacc_validate_dims.
11243 (execute_oacc_device_lower): Adjust, add more dump output.
11244 * tree-ssa-loop.c (gate_oacc_kernels): Use
11245 oacc_fn_attrib_kernels_p.
11246 * tree-parloops.c (create_parallel_loop): Adjust
11247 set_oacc_fn_attrib call.
11249 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11252 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
11253 (append_compiler_options): Handle -fcilkplus.
11254 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
11256 2016-01-26 Nick Clifton <nickc@redhat.com>
11259 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
11260 been marked as DECL_ONE_ONLY but we do not the means to make it
11261 so, then do not allow it to bind locally.
11263 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11266 * opts.h (parse_sanitizer_options): New prototype.
11267 * opts.c (sanitizer_opts): New array.
11268 (parse_sanitizer_options): New function.
11269 (common_handle_option): Use parse_sanitizer_options.
11271 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
11274 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
11275 alignment adjustment to ...
11276 (ix86_update_stack_boundary): Here. Don't over-align stack for
11278 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
11279 if __tls_get_addr is called.
11281 2016-01-26 Christian Bruel <christian.bruel@st.com>
11283 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
11285 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
11287 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
11289 2016-01-26 Richard Biener <rguenther@suse.de>
11291 PR middle-end/69467
11292 * match.pd: Guard X * CST CMP 0 pattern with single_use.
11294 2016-01-26 Richard Biener <rguenther@suse.de>
11296 PR tree-optimization/69452
11297 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
11298 (move_computations_dom_walker::before_dom_children): Rename
11300 (move_computations_worker): This.
11301 (move_computations): Perform an RPO rather than a DOM walk.
11303 2016-01-26 Jakub Jelinek <jakub@redhat.com>
11306 * combine.c (combine_instructions): For REG_EQUAL note with
11307 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
11308 to the underlying register.
11309 * doc/rtl.texi (REG_EQUAL): Document the behavior of
11310 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
11312 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
11315 * config/aarch64/aarch64-builtins.c
11316 (aarch64_init_simd_builtin_types): Do not set structural
11317 equality to __Poly{8,16,64,128}_t types.
11319 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
11321 PR tree-optimization/69400
11322 * wide-int.cc (wi_pack): Take the precision as argument and
11323 perform canonicalization here rather than in the callers.
11324 Use the main loop to handle all full-width HWIs. Add a
11325 zero HWI if in_len isn't a full result.
11326 (wi::divmod_internal): Update accordingly.
11327 (wi::mul_internal): Likewise. Simplify.
11329 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11330 Sebastian Pop <s.pop@samsung.com>
11332 * graphite-poly.c (apply_poly_transforms): Simplify.
11333 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
11334 (print_isl_map): Same.
11335 (print_isl_union_map): Same.
11336 (print_isl_schedule): New.
11337 (debug_isl_schedule): New.
11338 * graphite-dependences.c (scop_get_reads): Do not call
11339 isl_union_map_add_map that is undocumented isl functionality.
11340 (scop_get_must_writes): Same.
11341 (scop_get_may_writes): Same.
11342 (scop_get_original_schedule): Remove.
11343 (scop_get_dependences): Do not call isl_union_map_compute_flow that
11344 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
11345 (compute_deps): Remove.
11346 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
11347 (debug_schedule_ast): New.
11348 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
11349 set_separate_option.
11350 (graphite_regenerate_ast_isl): Add dump.
11351 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
11352 from scop->transformed_schedule.
11353 (graphite_regenerate_ast_isl): Add more dump.
11354 * graphite-optimize-isl.c (optimize_isl): Set
11355 scop->transformed_schedule. Check whether schedules are equal.
11356 (apply_poly_transforms): Move here.
11357 * graphite-poly.c (apply_poly_transforms): ... from here.
11358 (free_poly_bb): Static.
11359 (free_scop): Static.
11360 (pbb_number_of_iterations_at_time): Remove.
11361 (print_isl_ast): New.
11362 (debug_isl_ast): New.
11363 (debug_scop_pbb): New.
11364 * graphite-scop-detection.c (print_edge): Move.
11365 (print_sese): Move.
11366 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
11367 (build_scop_scattering): Remove.
11368 (create_pw_aff_from_tree): Assert instead of bailing out.
11369 (add_condition_to_pbb): Remove unused code, do not fail.
11370 (add_conditions_to_domain): Same.
11371 (add_conditions_to_constraints): Remove.
11372 (build_scop_context): New.
11373 (add_iter_domain_dimension): New.
11374 (build_iteration_domains): Initialize pbb->iterators.
11375 Call add_conditions_to_domain.
11378 (index_outermost_in_loop): New.
11379 (index_pbb_in_loop): New.
11380 (outermost_pbb_in): New.
11381 (add_in_sequence): New.
11382 (add_outer_projection): New.
11383 (outer_projection_mupa): New.
11384 (add_loop_schedule): New.
11385 (build_schedule_pbb): New.
11386 (build_schedule_loop): New.
11387 (embed_in_surrounding_loops): New.
11388 (build_schedule_loop_nest): New.
11389 (build_original_schedule): New.
11390 (build_poly_scop): Call build_original_schedule.
11391 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
11392 (free_poly_dr): Remove.
11393 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
11394 (free_poly_bb): Remove.
11395 (debug_loop_vec): Remove.
11396 (print_isl_ast): Declare.
11397 (debug_isl_ast): Declare.
11398 (scop_do_interchange): Remove.
11399 (scop_do_strip_mine): Remove.
11400 (scop_do_block): Remove.
11401 (flatten_all_loops): Remove.
11402 (optimize_isl): Remove.
11403 (pbb_number_of_iterations_at_time): Remove.
11404 (debug_scop_pbb): Declare.
11405 (print_schedule_ast): Declare.
11406 (debug_schedule_ast): Declare.
11407 (struct scop): Remove schedule. Add original_schedule,
11408 transformed_schedule.
11409 (free_gimple_poly_bb): Remove.
11410 (print_generated_program): Remove.
11411 (debug_generated_program): Remove.
11412 (unify_scattering_dimensions): Remove.
11413 * sese.c (print_edge): ... here.
11414 (print_sese): ... here.
11415 (debug_edge): ... here.
11416 (debug_sese): ... here.
11417 * sese.h (print_edge): Declare.
11418 (print_sese): Declare.
11419 (dump_edge): Declare.
11420 (dump_sese): Declare.
11422 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
11423 Sebastian Pop <s.pop@samsung.com>
11425 * Makefile.in: Set ISLVER in site.exp.
11427 2016-01-25 Jakub Jelinek <jakub@redhat.com>
11429 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
11430 DECL_VALUE_EXPR of new_var even for the non-array case. Look
11431 through DECL_VALUE_EXPR for expansion.
11433 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11435 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
11436 the frame info after reload completed.
11438 2016-01-25 Jeff Law <law@redhat.com>
11440 PR tree-optimization/69196
11441 PR tree-optimization/68398
11442 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
11443 tree-ssa-threadupdate.c.
11444 (determine_bb_domination_status): Prototype
11445 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
11446 (determine_bb_domination_status): No longer static.
11447 (valid_jump_thread_path): Remove code to detect characteristics
11448 of the jump thread path not associated with correctness.
11449 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
11450 Correct test for thread path length. Count PHIs for real operands as
11451 statements that need to be copied. Do not count ASSERT_EXPRs.
11452 Look at all the blocks in the thread path. Compute and selectively
11453 filter thread paths based on threading through the latch, threading
11454 a multiway branch or crossing a multiway branch.
11456 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11458 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
11459 decl with __attribute__ ((unused)) annotation.
11461 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
11464 * tree-vect-stmts.c (vectorizable_condition): Check vectype
11465 of operands is compatible with a statement vectype.
11467 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
11469 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
11470 improve wording for mixed storage order support.
11472 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
11474 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
11475 (vcvt_u64_f64): Likewise.
11476 (vcvta_s64_f64): Likewise.
11477 (vcvta_u64_f64): Likewise.
11478 (vcvtm_s64_f64): Likewise.
11479 (vcvtm_u64_f64): Likewise.
11480 (vcvtn_s64_f64): Likewise.
11481 (vcvtn_u64_f64): Likewise.
11482 (vcvtp_s64_f64): Likewise.
11483 (vcvtp_u64_f64): Likewise.
11485 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
11487 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
11488 (arc_init): Check validity mll64 option.
11489 (arc_save_restore): Use double load/store instruction.
11490 (arc_expand_movmem): Likewise.
11491 (arc_split_move): Don't split if we have double load/store
11492 instructions. Returns a boolean.
11493 (arc_process_double_reg_moves): Change function to return boolean
11494 instead of a sequence of instructions.
11495 (arc_dwarf_register_span): New function.
11496 * config/arc/arc-protos.h (arc_split_move): Change prototype.
11497 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
11498 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
11499 (*movdf_insn): Likewise.
11500 * config/arc/arc.opt (mll64): New option.
11501 * config/arc/predicates.md (even_register_operand): New predicate.
11502 * doc/invoke.texi (ARC Options): Add mll64 documentation.
11504 2016-01-25 Richard Biener <rguenther@suse.de>
11507 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
11508 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
11510 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
11512 2016-01-25 Richard Biener <rguenther@suse.de>
11514 PR tree-optimization/69376
11515 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
11517 (VN_INFO_ANTI_RANGE_P): New inline.
11518 (VN_INFO_RANGE_TYPE): Likewise.
11519 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
11520 SSA_NAME_ANTI_RANGE_P.
11521 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
11522 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11523 Properly query VN_INFO_RANGE_TYPE.
11525 2016-01-25 Nick Clifton <nickc@redhat.com>
11528 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
11530 2016-01-23 Tom de Vries <tom@codesourcery.com>
11532 PR tree-optimization/69426
11533 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
11536 2016-01-23 Jakub Jelinek <jakub@redhat.com>
11538 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
11539 "the the" with "the" in the comments.
11540 * ipa-devirt.c (build_type_inheritance_graph,
11541 update_type_inheritance_graph): Likewise.
11542 * tree.c (build_function_type_list_1): Likewise.
11543 * cfgloopmanip.c (scale_loop_profile): Likewise.
11544 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
11545 * gimple-ssa-split-paths.c
11546 (find_block_to_duplicate_for_splitting_paths): Likewise.
11547 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
11548 * expr.c (convert_move): Likewise.
11549 * var-tracking.c (vt_stack_adjustments): Likewise.
11550 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
11551 * tree-vrp.c (test_for_singularity): Likewise.
11553 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
11554 directly instead of building a temporary tree.
11557 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
11558 remove <algorithm> include.
11560 2016-01-22 Jakub Jelinek <jakub@redhat.com>
11563 * config/i386/i386.c: Include dojump.h.
11564 (expand_small_movmem_or_setmem,
11565 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
11567 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
11568 if dynamic_check != -1.
11570 2016-01-21 Jeff Law <law@redhat.com>
11572 PR middle-end/69347
11573 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
11574 record_temporary_equivalences. Rewritten to avoid unnecessary calls
11575 into dominated_by_p.
11576 (cprop_into_successor_phis): Avoid unnecessary tests.
11578 2016-01-22 Richard Henderson <rth@redhat.com>
11581 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
11582 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
11584 2016-01-22 Michael Matz <matz@suse.de>
11586 * system.h (string, algorithm): Include only conditionally.
11587 (new): Include always under C++.
11588 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
11589 * final.c (toplevel): Ditto.
11590 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
11591 * genconditions.c (write_header): Make gencondmd.c define
11593 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
11595 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
11596 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
11598 2016-01-22 Christian Bruel <christian.bruel@st.com>
11601 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
11603 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11606 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
11607 define_insn_and_split. Ensure operands[1] and operands[0] do not
11608 get assigned the same register.
11610 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11612 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
11614 2016-01-22 Christian Bruel <christian.bruel@st.com>
11616 * config/arm/arm-c.c (arm_pragma_target_parse):
11617 Remove warn_builtin_macro_redefined overwrite.
11619 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
11621 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
11622 flag_non_call_exceptions compatibility.
11624 2016-01-22 Jakub Jelinek <jakub@redhat.com>
11627 * dwarf2out.c (add_child_die_after): New function.
11628 (dwarf_qual_info_t): New type.
11629 (dwarf_qual_info): New variable.
11630 (qualified_die_p): New function.
11631 (modified_type_die): For -fdebug-types-section, ensure
11632 canonical order of qualifiers. Put qualified DIEs adjacent
11633 to the corresponding non-qualified type DIE and search there
11634 for existing qualified DIEs.
11636 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
11638 * doc/extend.texi (scalar_storage_order type attribute): Document
11639 restriction on type punning and aliasing, and remove future tense.
11641 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
11644 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
11647 2016-01-21 Jeff Law <law@redhat.com>
11649 PR middle-end/69347
11650 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
11651 useless call to record_temporary_equivalences.
11652 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
11653 allocate 10 slots in the bb_path vector and let it grow as needed.
11654 (fsm_find_control_statement_thread_paths): Similarly for the next_path
11657 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
11659 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
11661 * configure: Regenerate.
11663 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
11665 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
11666 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
11668 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
11670 PR middle-end/66178
11671 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
11672 drop EXPAND_INITIALIZER.
11673 * rtl.h (contains_symbolic_reference_p): Declare.
11674 * rtlanal.c (contains_symbolic_reference_p): New function.
11675 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
11676 a subtraction into a NOT if symbolic constants are involved.
11678 2016-01-21 Anton Blanchard <anton@samba.org>
11679 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11682 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
11684 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
11687 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
11689 * config/microblaze/microblaze.c
11690 (get_branch_target): New.
11691 (insert_wic_for_ilb_runout): New.
11693 (microblaze_machine_dependent_reorg): New.
11694 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
11695 * config/microblaze/microblaze.md
11696 (UNSPEC_IPREFETCH): Define.
11697 (iprefetch): New pattern
11698 * config/microblaze/microblaze.opt
11699 (mxl-prefetch): New flag.
11701 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
11703 * config/microblaze/microblaze.h
11704 (FIXED_REGISTERS): Update in macro.
11705 (CALL_USED_REGISTERS): Update in macro.
11707 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
11709 PR rtl-optimization/68920
11710 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
11713 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
11715 PR rtl-optimization/68990
11716 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
11717 pseudo instead of inheritance ones.
11719 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11720 Nick Clifton <nickc@redhat.com>
11724 * config/mips/mips.c (mips_compute_frame_info): Initialise
11725 args_size and hard_frame_pointer_offset fields of the frame
11726 structure before calling mips_global_pointer.
11728 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
11730 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
11732 * configure: Regenerate.
11734 2016-01-21 Richard Biener <rguenther@suse.de>
11736 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
11738 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
11740 * config/s390/s390.c (s390_asm_declare_function_size): Add code
11741 to actually emit the .size directive.
11743 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
11744 Jakub Jelinek <jakub@redhat.com>
11748 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
11749 args array size by one to avoid buffer overflow.
11751 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
11753 * config/s390/s390.md (pool_section_start): Use switch_to_section
11754 to select proper read-only data section instead of hardcoding
11756 (pool_section_end): Use switch_to_section to match the above.
11758 2016-01-21 Richard Biener <rguenther@suse.de>
11760 PR tree-optimization/69378
11761 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
11762 (set_ssa_val_to): Use it for dominance checks taking into
11763 account not executable edges.
11765 2016-01-21 Jakub Jelinek <jakub@redhat.com>
11768 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
11769 for bitsize instead of GET_MODE_PRECISION (mode).
11771 2016-01-20 Martin Sebor <msebor@redhat.com>
11774 * extend.texi (__sync Builtins): Clarify the semantics of
11775 __sync_fetch_and_OP built-ins on pointers.
11776 (__atomic Builtins): Same.
11778 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11779 Sebastian Pop <s.pop@samsung.com>
11781 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
11782 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
11783 (is_valid_rename): Same.
11784 (translate_isl_ast_to_gimple::get_rename): Same.
11785 (translate_isl_ast_to_gimple::rename_all_uses): Same.
11786 (translate_isl_ast_to_gimple::rename_uses): Same.
11787 (get_new_name): Check for close_phi nodes.
11788 (copy_loop_phi_args): Use phi_node_kind.
11789 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
11790 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
11792 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11793 Sebastian Pop <s.pop@samsung.com>
11795 Revert commit r229783.
11796 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11797 Remove use of parameter_rename_map.
11798 (copy_def): Remove.
11799 (copy_internal_parameters): Remove.
11800 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
11801 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
11802 (free_sese_info): Do not free parameter_rename_map.
11803 (set_rename): Do not use parameter_rename_map.
11804 (rename_uses): Update call to set_rename.
11805 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
11806 * sese.h (parameter_rename_map_t): Remove.
11807 (struct sese_info_t): Remove field parameter_rename_map.
11809 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11810 Sebastian Pop <s.pop@samsung.com>
11812 * graphite-isl-ast-to-gimple.c: Fix comment.
11813 * graphite-scop-detection.c (defined_in_loop_p): New.
11814 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
11815 names defined in loop.
11817 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11818 Sebastian Pop <s.pop@samsung.com>
11820 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
11821 Discard unstructured if-then-else regions.
11823 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11824 Sebastian Pop <s.pop@samsung.com>
11826 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
11827 (cleanup_loop_iter_dom): Remove.
11828 (build_loop_iteration_domains): Remove.
11829 (build_scop_context): Remove.
11830 (build_scop_iteration_domain): Remove.
11831 (add_loop_constraints): New.
11832 (build_iteration_domains): New.
11833 (build_poly_scop): Call build_iteration_domains.
11835 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11836 Sebastian Pop <s.pop@samsung.com>
11838 * graphite-scop-detection.c
11839 (scop_detection::harmful_loop_in_region): Free dom and loops.
11840 (scop_detection::loop_body_is_valid_scop): Free bbs.
11842 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11843 Sebastian Pop <s.pop@samsung.com>
11845 * graphite-scop-detection.c (record_loop_in_sese): New.
11846 (gather_bbs::before_dom_children): Call record_loop_in_sese.
11847 (build_scops): Remove call to build_sese_loop_nests.
11848 * sese.c (sese_record_loop): Remove.
11849 (build_sese_loop_nests): Remove.
11850 (new_sese_info): Remove region->loops.
11851 (free_sese_info): Same.
11852 * sese.h (sese_contains_loop): Same.
11853 (build_sese_loop_nests): Remove.
11854 (sese_contains_loop): Remove.
11856 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11857 Sebastian Pop <s.pop@samsung.com>
11859 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
11860 loop_is_valid_in_scop.
11861 (scop_detection::harmful_stmt_in_region): Renamed
11862 harmful_loop_in_region.
11863 Call loop_is_valid_in_scop.
11865 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11866 Sebastian Pop <s.pop@samsung.com>
11868 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
11871 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11872 Sebastian Pop <s.pop@samsung.com>
11874 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
11875 * graphite.h (struct poly_bb): Remove field is_reduction.
11876 (PBB_IS_REDUCTION): Remove.
11878 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
11879 Sebastian Pop <s.pop@samsung.com>
11881 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
11882 (add_pdr_constraints): Same.
11883 (scop_get_reads): Same.
11884 (scop_get_must_writes): Same.
11885 (scop_get_may_writes): Same.
11886 (scop_get_original_schedule): Same.
11887 (extend_schedule): Same.
11888 (apply_schedule_on_deps): Same.
11889 (carries_deps): Same.
11890 (compute_deps): Same.
11891 (scop_get_dependences): Same.
11892 * graphite-isl-ast-to-gimple.c
11893 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
11894 * graphite-optimize-isl.c (get_schedule_for_band): Same.
11895 (get_schedule_for_band_list): Same.
11896 (get_schedule_map): Same.
11897 (apply_schedule_map_to_scop): Same.
11898 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11899 (build_loop_iteration_domains): Same.
11900 (add_condition_to_pbb): Same.
11901 (add_param_constraints): Same.
11902 (pdr_add_memory_accesses): Same.
11903 (pdr_add_data_dimensions): Same.
11905 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
11907 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
11910 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
11912 * common.opt (feliminate-dwarf2-dups): Replace references to
11913 "DWARF 2" with just "DWARF".
11914 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
11915 * doc/extend.texi: Likewise.
11916 * doc/cpp.texi: Likewise.
11917 * doc/invoke.texi: Likewise.
11918 (Option Summary): Add -gdwarf to list of Debugging Options.
11919 (Debugging Options): Document -gdwarf.
11920 * doc/contrib.texi: Spell "DWARF" like that.
11922 2016-01-21 Jakub Jelinek <jakub@redhat.com>
11924 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
11925 warning. Fix up formatting.
11927 PR middle-end/67653
11928 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
11929 attempt to mark memory input operand addressable and
11930 call prepare_gimple_addressable in that case. Don't adjust
11931 input_location for diagnostics, use error_at instead.
11933 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
11935 * config/rs6000/ppc-auxv.h: New file.
11936 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
11937 (cpu_is): Likewise.
11938 (cpu_supports): Likewise.
11939 * config/rs6000/rs6000.c: include "ppc-auxv.h".
11940 (cpu_is_info): New variable.
11941 (cpu_supports_info): Likewise.
11942 (tcb_verification_symbol): Likewise.
11943 (cpu_builtin_p): Likewise.
11944 (cpu_expand_builtin): New function.
11945 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
11946 (rs6000_init_builtins): Likewise.
11947 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
11948 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
11949 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
11950 * configure: Regenerate.
11951 * config.in: Likewise.
11952 * doc/extend.texi (PowerPC Built-in Functions): Document
11953 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
11955 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
11958 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
11960 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
11963 2016-01-20 Richard Henderson <rth@redhat.com>
11969 * tree.c (tm_define_builtin): New.
11970 (find_tm_vector_type): New.
11971 (build_tm_vector_builtins): New.
11972 (build_common_builtin_nodes): Call it.
11974 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
11976 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
11977 (arm_fp_ok): Likewise.
11978 (arm_fp): Likewise.
11979 (arm_crypto): Likewise.
11981 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
11982 Richard Biener <rguenther@suse.de>
11984 PR tree-optimization/69328
11985 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
11986 vectors have same number of elements.
11987 (vectorizable_condition): Fix masked version recognition.
11989 2016-01-20 Richard Biener <rguenther@suse.de>
11991 PR tree-optimization/69345
11992 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
11993 (VN_INFO_PTR_INFO): Likewise.
11994 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
11995 info when it is equal between non-dominating SSA names.
11996 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11997 Make sure to look at original SSA infos.
11999 2016-01-20 Jeff Law <law@redhat.com>
12002 * config/m68k/predicates.md (pow2_m1_operand): New predicate
12004 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
12005 (pc_or_label_operand): New predicate.
12006 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
12007 tests for small integers that are 2^n - 1.
12009 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
12011 * doc/invoke.texi (Options Summary): Add '.' after @xref.
12013 2016-01-19 Jeff Law <law@redhat.com>
12015 PR middle-end/69347
12016 * tree-ssa-threadbackwards.c
12017 (fsm_find_control_statement_thread_paths): Do not try to lookup
12018 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
12020 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12022 * doc/lto.texi: Remove text that says only Gold has linker plugin
12025 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
12027 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
12028 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
12029 the DIE accordingly.
12030 (modified_type_die): Add REVERSE parameter and pass it recursively,
12031 as well as to base_type_die. Adjust presence check accordingly.
12032 (base_type_for_mode): Adjust call to modified_type_die.
12033 (add_type_attribute): Add REVERSE parameter and pass it to
12035 (generic_parameter_die): Adjust call to add_type_attribute.
12036 (add_scalar_info): Likewise.
12037 (add_subscript_info): Likewise.
12038 (gen_array_type_die): Likewise.
12039 (gen_descr_array_type_die): Likewise.
12040 (gen_entry_point_die): Likewise.
12041 (gen_enumeration_type_die): Likewise.
12042 (gen_formal_parameter_die): Likewise.
12043 (gen_subprogram_die): Likewise.
12044 (gen_variable_die ): Likewise.
12045 (gen_const_die): Likewise.
12046 (gen_field_die): Likewise.
12047 (gen_pointer_type_die): Likewise.
12048 (gen_reference_type_die): Likewise.
12049 (gen_ptr_to_mbr_type_die): Likewise.
12050 (gen_inheritance_die): Likewise.
12051 (gen_subroutine_type_die): Likewise.
12052 (gen_typedef_die): Likewise.
12053 (force_type_die): Adjust call to modified_type_die.
12055 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
12057 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
12058 flow throughout the file. Fix broken link to Objective-C 2.0
12060 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
12063 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12065 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
12067 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12070 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
12071 (maybe_record_node): Record cxa_pure_virtual as the only possible
12072 target if there are not ohter candidates.
12073 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
12075 2016-01-19 Richard Biener <rguenther@suse.de>
12077 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
12078 (get_memory_order): Likewise.
12080 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
12082 * tree-vect-stmts.c (vectorizable_store): Check
12085 2016-01-19 David Malcolm <dmalcolm@redhat.com>
12088 * gcc.c (driver::decode_argv): Add call to
12089 init_opts_obstack before init_options_struct.
12090 * opts.c (init_opts_obstack): Remove idempotency.
12091 (init_options_struct): Replace call to init_opts_obstack
12092 with a gcc_assert to verify that it has already been called.
12093 * toplev.c (toplev::main): Add call to init_opts_obstack before
12094 calls to init_options_struct.
12095 (toplev::finalize): Move cleanup of opts_obstack next to
12096 cleanup of save_decoded_options, clearing the latter, and
12097 save_decoded_options_count.
12099 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12102 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
12103 attribute to unconditional. Remove %? from output template.
12105 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12106 Jiong Wang <jiong.wang@arm.com>
12108 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
12109 generated from different expand order.
12111 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12113 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
12114 Add support for CCMP costing.
12116 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12118 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
12119 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
12120 (fccmpe<mode>): Likewise.
12121 (fcmp): Rename to fcmp and globalize pattern.
12123 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
12124 (aarch64_gen_ccmp_next): Add FP support.
12126 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
12128 * target.def (gen_ccmp_first): Update documentation.
12129 (gen_ccmp_next): Likewise.
12130 * doc/tm.texi (gen_ccmp_first): Update documentation.
12131 (gen_ccmp_next): Likewise.
12132 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
12133 expand_ccmp_expr_1. Improve comments.
12134 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
12135 (ccmp_ior<mode>): Remove pattern.
12136 (cmp<mode>): Remove expand.
12137 (cmp): Globalize pattern.
12138 (cstorecc4): Use cc_register.
12139 (mov<mode>cc): Remove ccmp_cc_register check.
12140 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
12141 Simplify after removal of CC_DNE/* modes.
12142 (aarch64_ccmp_mode_to_code): Remove.
12143 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
12144 In 'k' case use integer as condition.
12145 (aarch64_nzcv_codes): Remove inverted cases.
12146 (aarch64_code_to_ccmode): Remove.
12147 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
12148 comparison with CC register to be used in folowing CCMP/branch/CSEL.
12149 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
12150 pattern. Return the comparison with CC register. Invert conditions
12151 when bitcode is OR.
12152 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
12153 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
12155 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12157 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12158 instrumented_version.
12160 2016-01-19 Richard Biener <rguenther@suse.de>
12162 PR tree-optimization/69336
12163 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
12164 handled components with get_ref_base_and_extent.
12165 (equal_mem_array_ref_p): Adjust.
12167 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12170 * shrink-wrap.c: Include valtrack.h.
12171 (move_insn_for_shrink_wrap): Add DEBUG argument. If
12172 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
12173 in between insn and where it will be moved to. Call
12174 dead_debug_insert_temp.
12175 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
12176 first and dead_debug_local_finish at the end.
12177 For uses and defs bitmap, handle all regs in between REGNO and
12178 END_REGNO, not just the first one.
12180 2016-01-19 Richard Biener <rguenther@suse.de>
12182 PR tree-optimization/69352
12183 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
12184 (equal_mem_array_ref_p): Constrain size and max size properly.
12185 Compare the reverse flag.
12187 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
12189 * ira.c (ira): Update regstat data if we deleted insns.
12191 2016-01-19 Jakub Jelinek <jakub@redhat.com>
12193 PR rtl-optimization/68955
12194 PR rtl-optimization/64557
12195 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
12196 here. Fix up formatting.
12197 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
12199 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12202 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
12203 assume that the node has body.
12204 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
12207 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12209 * lto-streamer-out.c (lto_output): Do not stream instrumentation
12212 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12214 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
12215 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
12217 2016-01-19 Martin Jambor <mjambor@suse.cz>
12218 Martin Liska <mliska@suse.cz>
12219 Michael Matz <matz@suse.de>
12221 * Makefile.in (OBJS): Add new source files.
12222 (GTFILES): Add hsa.c.
12223 * common.opt (disable_hsa): New variable.
12224 (-Whsa): New warning.
12225 * config.in (ENABLE_HSA): New.
12226 * configure.ac: Treat hsa differently from other accelerators.
12227 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
12228 $enable_offloading.
12229 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
12230 * doc/install.texi (Configuration): Document --with-hsa-runtime,
12231 --with-hsa-runtime-include, --with-hsa-runtime-lib and
12232 --with-hsa-kmt-lib.
12233 * doc/invoke.texi (-Whsa): Document.
12234 (hsa-gen-debug-stores): Likewise.
12235 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
12236 to invoke offload compiler for hsa acclerator.
12237 * opts.c (common_handle_option): Determine whether HSA offloading
12238 should be performed.
12239 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
12240 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
12241 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
12242 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
12243 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
12244 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
12245 GF_OMP_FOR_KIND_GRID_LOOP.
12246 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
12247 (pp_gimple_stmt_1): Likewise.
12248 * gimple-walk.c (walk_gimple_stmt): Likewise.
12249 * gimple.c (gimple_build_omp_grid_body): New function.
12250 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
12251 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
12252 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
12253 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
12254 GF_OMP_TEAMS_GRID_PHONY.
12255 (gimple_statement_omp_single_layout): Updated comments.
12256 (gimple_build_omp_grid_body): New function.
12257 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
12258 (gimple_omp_for_grid_phony): New function.
12259 (gimple_omp_for_set_grid_phony): Likewise.
12260 (gimple_omp_parallel_grid_phony): Likewise.
12261 (gimple_omp_parallel_set_grid_phony): Likewise.
12262 (gimple_omp_teams_grid_phony): Likewise.
12263 (gimple_omp_teams_set_grid_phony): Likewise.
12264 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
12265 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
12266 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
12267 (BUILT_IN_GOMP_TARGET): Updated type.
12268 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
12269 (adjust_for_condition): New function.
12270 (get_omp_for_step_from_incr): Likewise.
12271 (extract_omp_for_data): Moved parts to adjust_for_condition and
12272 get_omp_for_step_from_incr.
12273 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
12274 (fixup_child_record_type): Bail out if receiver_decl is NULL.
12275 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
12276 (scan_omp_parallel): Do not create child functions for phony
12278 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
12279 (scan_omp_1_op): Checking assert we are not remapping to
12280 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
12281 (parallel_needs_hsa_kernel_p): New function.
12282 (expand_parallel_call): Register apprpriate parallel child
12283 functions as HSA kernels.
12284 (grid_launch_attributes_trees): New type.
12285 (grid_attr_trees): New variable.
12286 (grid_create_kernel_launch_attr_types): New function.
12287 (grid_insert_store_range_dim): Likewise.
12288 (grid_get_kernel_launch_attributes): Likewise.
12289 (get_target_argument_identifier_1): Likewise.
12290 (get_target_argument_identifier): Likewise.
12291 (get_target_argument_value): Likewise.
12292 (push_target_argument_according_to_value): Likewise.
12293 (get_target_arguments): Likewise.
12294 (expand_omp_target): Call get_target_arguments instead of looking
12295 up for teams and thread limit.
12296 (grid_expand_omp_for_loop): New function.
12297 (grid_arg_decl_map): New type.
12298 (grid_remap_kernel_arg_accesses): New function.
12299 (grid_expand_target_kernel_body): New function.
12300 (expand_omp): Call it.
12301 (lower_omp_for): Do not emit phony constructs.
12302 (lower_omp_taskreg): Do not emit phony constructs but create for them
12303 a temporary variable receiver_decl.
12304 (lower_omp_taskreg): Do not emit phony constructs.
12305 (lower_omp_teams): Likewise.
12306 (lower_omp_grid_body): New function.
12307 (lower_omp_1): Call it.
12308 (grid_reg_assignment_to_local_var_p): New function.
12309 (grid_seq_only_contains_local_assignments): Likewise.
12310 (grid_find_single_omp_among_assignments_1): Likewise.
12311 (grid_find_single_omp_among_assignments): Likewise.
12312 (grid_find_ungridifiable_statement): Likewise.
12313 (grid_target_follows_gridifiable_pattern): Likewise.
12314 (grid_remap_prebody_decls): Likewise.
12315 (grid_copy_leading_local_assignments): Likewise.
12316 (grid_process_kernel_body_copy): Likewise.
12317 (grid_attempt_target_gridification): Likewise.
12318 (grid_gridify_all_targets_stmt): Likewise.
12319 (grid_gridify_all_targets): Likewise.
12320 (execute_lower_omp): Call grid_gridify_all_targets.
12321 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
12322 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
12323 (tree_omp_clause): Added union field dimension.
12324 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
12325 * tree.c (omp_clause_num_ops): Added number of arguments of
12326 OMP_CLAUSE__GRIDDIM_.
12327 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
12328 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
12329 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
12330 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
12331 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
12332 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
12333 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
12334 * tree-pass.h (make_pass_gen_hsail): Declare.
12335 (make_pass_ipa_hsa): Likewise.
12336 * ipa-hsa.c: New file.
12337 * lto-section-in.c (lto_section_name): Add hsa section name.
12338 * lto-streamer.h (lto_section_type): Add hsa section.
12339 * timevar.def (TV_IPA_HSA): New.
12340 * hsa-brig-format.h: New file.
12341 * hsa-brig.c: New file.
12342 * hsa-dump.c: Likewise.
12343 * hsa-gen.c: Likewise.
12346 * toplev.c (compile_file): Call hsa_output_brig.
12347 * hsa-regalloc.c: New file.
12349 2016-01-18 Jeff Law <law@redhat.com>
12351 PR tree-optimization/69320
12352 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
12353 ranged object, do nothing if the RHS constant is not [0..1].
12354 (optimize_stmt): Comparing a boolean ranged object against a
12355 constant outside [0..1] results in a compile-time constant.
12357 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
12360 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
12362 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12363 (Option Summary): Update to reflect new section and moved options.
12364 (C++ Dialect Options): Move -fstats to new section.
12365 (Debugging Options): Move all dump, statistics, and other GCC
12366 developer options to new section. Rewrite section introduction
12367 and re-order remaining options to put the more basic ones first.
12368 (Optimization Options): Move -fira-verbose and -flto-report* to
12370 (Developer Options): New section incorporating moved options.
12371 * doc/cppopts.texi (-dM): Update cross-reference.
12373 2016-01-18 Richard Henderson <rth@redhat.com>
12376 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
12377 operands to pseudo only if CSE is expected. Split long immediate
12378 operands only after reload, and for the stack pointer.
12379 (*add<GPI>3_pluslong): Remove.
12380 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
12381 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
12382 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
12383 (*add<GPI>3 peepholes): New.
12384 (*add<GPI>3 splitters): New.
12385 * config/aarch64/constraints.md (Upl): New.
12386 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
12388 2016-01-18 Richard Biener <rguenther@suse.de>
12390 PR tree-optimization/69297
12391 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
12393 (vect_bb_vectorization_profitable_p): Clear visited flag again.
12395 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12397 PR middle-end/68542
12398 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
12399 of mixind vector and scalar types.
12400 (fold_relational_const): Add handling of vector
12401 comparison with boolean result.
12402 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
12403 comparison of vector operands with boolean result for EQ/NE only.
12404 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
12405 (verify_gimple_cond): Likewise.
12406 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
12409 2016-01-18 Joseph Myers <joseph@codesourcery.com>
12411 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
12414 2016-01-18 Richard Biener <rguenther@suse.de>
12416 PR middle-end/69308
12417 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
12419 2016-01-18 Tom de Vries <tom@codesourcery.com>
12421 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
12423 2016-01-18 Tom de Vries <tom@codesourcery.com>
12425 * omp-low.c (set_oacc_fn_attrib): Make extern.
12426 * omp-low.h (set_oacc_fn_attrib): Declare.
12427 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
12428 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
12429 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
12430 Add and handle function parameter oacc_kernels_p.
12431 (find_reduc_addr, get_omp_data_i_param): New function.
12432 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
12433 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
12434 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
12435 Calculate dominance info. Skip loops that are not in a kernels region
12436 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
12437 (pass_parallelize_loops::execute): Call parallelize_loops with
12438 oacc_kernels_p argument.
12439 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
12440 New member function.
12441 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
12442 * passes.def: Add argument to pass_parallelize_loops instantation.
12444 2016-01-18 Tom de Vries <tom@codesourcery.com>
12446 * tree-parloops.c (pass_parallelize_loops::execute): Allow
12447 pass_parallelize_loops to be run outside the loop pipeline.
12449 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12451 * tree-scalar-evolution.c (follow_copies_to_constant): New.
12452 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
12454 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12457 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
12458 using get_ref_base_and_extent.
12459 (equal_mem_array_ref_p): New.
12460 (hashable_expr_equal_p): Add call to previous.
12462 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
12465 * tree-sra.c (disqualified_constants, constant_decl_p): New.
12466 (sra_initialize): Allocate disqualified_constants.
12467 (sra_deinitialize): Free disqualified_constants.
12468 (disqualify_candidate): Update disqualified_constants when appropriate.
12469 (create_access): Scan for constant-pool entries as we go along.
12470 (scalarizable_type_p): Add check against type_contains_placeholder_p.
12471 (maybe_add_sra_candidate): Allow constant-pool entries.
12472 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
12473 (initialize_constant_pool_replacements): New.
12474 (sra_modify_assign): Avoid mangling assignments created by previous,
12475 and don't generate writes into constant pool.
12476 (sra_modify_function_body): Call initialize_constant_pool_replacements.
12478 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
12480 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
12481 andnot instruction.
12482 (scalar_chain::convert_op): Likewise.
12483 * config/i386/i386.md (*andndi3_doubleword): New.
12485 2016-01-18 Richard Biener <rguenther@suse.de>
12487 PR tree-optimization/69170
12488 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
12489 building a vector from scalar results of a pattern stmt.
12491 2016-01-18 Jakub Jelinek <jakub@redhat.com>
12493 * haifa-sched.c (autopref_multipass_init): Work around
12494 -Wmaybe-uninitialized warning.
12496 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12498 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
12499 against the constant 0.
12501 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12503 PR tree-optimization/68799
12504 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
12505 look up phi candidates in the statement-candidate map.
12506 (phi_add_costs): Likewise.
12507 (record_phi_increments): Likewise.
12508 (phi_incr_cost): Likewise.
12509 (ncd_with_phi): Likewise.
12510 (all_phi_incrs_profitable): Likewise.
12512 2016-01-17 Jakub Jelinek <jakub@redhat.com>
12514 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
12515 -Wmaybe-uninitialized warning.
12517 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
12519 * doc/invoke.texi (Invoking GCC): Add new section to menu.
12520 (Option Summary): Update to reflect new section and moved options.
12521 (C++ Dialect Options): Move -fvtable-verify and related options.
12522 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
12523 and profiling-related options.
12524 (Optimization Options): Move profile generation options and
12525 -fstack-protector and related options.
12526 (Instrumentation Options): New section incorporating moved options.
12527 (Code Generation Options): Move -finstrument-functions and
12528 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
12530 2016-01-16 Tom de Vries <tom@codesourcery.com>
12532 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
12534 2016-01-16 Tom de Vries <tom@codesourcery.com>
12536 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
12538 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
12540 * hash-table.h (hash_table::empty): Turn into an inline wrapper
12541 that checks whether the table is already empty. Rename the
12542 original implementation to...
12543 (hash_table::empty_slot): ...this new private function.
12545 2016-01-15 David Malcolm <dmalcolm@redhat.com>
12547 PR diagnostic/68899
12548 * diagnostic-show-locus.c (layout::print_source_line): Move x
12549 offset of line until after call to
12550 get_line_width_without_trailing_whitespace.
12552 2016-01-15 Jeff Law <law@redhat.com>
12554 PR tree-optimization/69270
12555 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
12556 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
12557 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
12558 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
12559 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
12560 ssa_name_has_boolean_range and constant_boolean_node.
12562 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
12564 PR rtl-optimization/69030
12565 * lra-spills.c (remove_pseudos): Check nrefs and make the function
12567 (spill_pseudos): Delete debug insn for dead pseudo.
12568 (lra_spill): Initiate spill_hard_reg and slots memory separately.
12570 2016-01-15 Jiong Wang <jiong.wang@arm.com>
12572 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
12574 (TYPES_UNOPUS): Likewise.
12575 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
12576 builtin type, from UNOP to UNOPUS.
12577 (lbtruncuv4sf): Likewise.
12578 (lbtruncuv2df): Likewise.
12579 (lrounduv2sf): Likewise.
12580 (lrounduv4sf): Likewise.
12581 (lrounduv2df): Likewise.
12582 (lroundusf): Likewise.
12583 (lroundusf): Likewise.
12584 (lceiluv2sf): Likewise.
12585 (lceiluv4sf): Likewise.
12586 (lceiluv2df): Likewise.
12587 (lceilusf): Likewise.
12588 (lceiludf): Likewise.
12589 (lflooruv2sf): Likewise.
12590 (lflooruv4sf): Likewise.
12591 (lflooruv2df): Likewise.
12592 (lfloorusf): Likewise.
12593 (lfloorudf): Likewise.
12594 (lfrintnuv2sf): Likewise.
12595 (lfrintnuv4sf): Likewise.
12596 (lfrintnuv2df): Likewise.
12597 (lfrintnusf): Likewise.
12598 (lfrintnudf): Likewise.
12599 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
12601 (vcvtq_u32_f32): Likewise.
12602 (vcvtq_u64_f64): Likewise.
12603 (vcvta_u32_f32): Likewise.
12604 (vcvtaq_u32_f32): Likewise.
12605 (vcvtaq_u64_f64): Likewise.
12606 (vcvtm_u32_f32): Likewise.
12607 (vcvtmq_u32_f32): Likewise.
12608 (vcvtmq_u64_f64): Likewise.
12609 (vcvtn_u32_f32): Likwise.
12610 (vcvtnq_u32_f32): Likewise.
12611 (vcvtnq_u64_f64): Likewise.
12612 (vcvtp_u32_f32): Likewise.
12613 (vcvtpq_u32_f32): Likewise.
12614 (vcvtpq_u64_f64): Likewise.
12615 (vcvtmd_u64_f64): Likewise.
12616 (vcvtms_u32_f32): Likewise.
12617 (vcvtad_u64_f64): Likewise.
12618 (vcvtas_u32_f32): Likewise.
12619 (vcvtnd_u64_f64): Likewise.
12620 (vcvtns_u32_f32): Likewise.
12621 (vcvtpd_u64_f64): Likewise.
12622 (vcvtps_u32_f32): Likewise.
12624 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12626 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
12627 CSEL of zero_extended registers.
12629 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12631 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
12632 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
12634 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12636 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
12637 false when argument string is not found in the attributes table
12640 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
12643 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
12644 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
12645 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
12646 precision estimate.
12648 2016-01-15 Richard Biener <rguenther@suse.de>
12650 PR tree-optimization/66856
12651 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
12652 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
12653 (vect_create_new_slp_node): Increment stmt reference count.
12654 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
12655 an SLP tree before swapping operands.
12656 (vect_build_slp_tree): Likewise.
12657 (destroy_bb_vec_info): Free stmt info after SLP instances.
12658 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
12659 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
12660 (STMT_VINFO_NUM_SLP_USES): New macro.
12662 2016-01-15 Richard Biener <rguenther@suse.de>
12665 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
12666 (add_linkage_name): ... here.
12667 (gen_typedef_die): Use add_linkage_name_raw instead of
12668 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
12671 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
12673 * gimplify.c (oacc_default_clause): Decode reference and pointer
12674 types for both kernels and parallel regions.
12676 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
12678 PR middle-end/69246
12679 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
12681 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
12683 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
12684 (convert_scalars_to_vector): Likewise.
12686 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
12688 * doc/extend.texi (Type Traits): Fix grammar.
12690 2016-01-15 Martin Jambor <mjambor@suse.cz>
12692 * tree-inline.c (remap_decl): Use existing dclarations if
12693 remapping a type and prevent_decl_creation_for_types.
12694 (replace_locals_stmt): Do an initial remapping of non-VLA typed
12695 decls first. Do real remapping with
12696 prevent_decl_creation_for_types set.
12697 * tree-inline.h (copy_body_data): New field
12698 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
12701 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12703 * config/s390/s390.opt (mmvcle): More verbose help text.
12705 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
12707 * config/s390/s390.opt: Add period to -mzvector option text.
12709 2016-01-15 Richard Biener <rguenther@suse.de>
12711 PR tree-optimization/68961
12712 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
12713 of invariants in stores again.
12715 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
12717 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
12719 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
12721 * config/i386/i386.c (ix86_expand_branch): Don't split
12722 DI mode xor instruction to SI mode.
12724 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
12727 * ipa-icf.c (sem_function::merge): Virtual functions may become
12728 reachable even if they address is not taken and there are no
12731 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
12733 * lto-streamer-out.c (subtract_estimated_size): New function.
12734 (get_symbol_initial_value): Use it.
12736 2016-01-15 Christian Bruel <christian.bruel@st.com>
12739 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
12740 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
12741 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
12742 use add_builtin_function_ext_scope instead of add_builtin_function.
12743 (neon_set_p, neon_crypto_set_p): Remove.
12744 (arm_init_builtins): Always call arm_init_neon_builtins and
12745 arm_init_crypto_builtins.
12746 (arm_expand_builtin): Check that builtins are allowed for the arch.
12747 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
12748 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
12749 arm_init_neon_builtins call.
12751 2016-01-15 Richard Biener <rguenther@suse.de>
12753 PR tree-optimization/69117
12754 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
12755 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
12756 of the leader conservatively.
12757 (free_scc_vn): Restore original SSA name infos.
12759 2016-01-14 Jeff Law <law@redhat.com>
12761 PR tree-optimization/69270
12762 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
12763 single bit of precision, verify it's also unsigned.
12764 (record_edge_info): Use constant_boolean_node rather than fold_convert
12765 to convert boolean_true/boolean_false to the right type.
12767 2016-01-14 Richard Henderson <rth@redhat.com>
12770 * loop-doloop.c (record_reg_sets): New.
12771 (doloop_optimize): Reject the transform if the sequence
12772 clobbers registers live at the end of the loop block.
12773 (doloop_optimize_loops): Enable df_live if needed.
12775 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12777 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
12778 * gcc/config/rs6000/rs6000.c: Likewise.
12779 * gcc/config/rs6000/rs6000.h: Likewise.
12780 * gcc/config/rs6000/rs6000.md: Likewise.
12781 * gcc/doc/extend.texi: Likewsie.
12783 2016-01-14 Jeff Law <law@redhat.com>
12785 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
12788 2016-01-14 Richard Henderson <rth@redhat.com>
12792 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
12793 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
12794 instead of builtin_decl_declared_p to test for declaration.
12796 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
12798 * doc/loop.texi (Loop Analysis and Representation): Document
12799 loop_depth function.
12801 2016-01-14 Tom de Vries <tom@codesourcery.com>
12803 PR tree-optimization/68773
12804 * omp-low.c (expand_omp_target): Don't set force_output.
12805 * varpool.c (varpool_node::get_create): Same.
12806 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
12807 offload_funcs with force_output.
12809 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12812 * lra-eliminations.c (move_plus_up): Don't change anything if either
12813 the outer or inner subreg mode is not MODE_INT.
12814 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
12815 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
12817 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
12819 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
12820 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
12821 reduc_uplus_@var{m}): Remove.
12822 * expr.c (expand_expr_real_2): Remove expansion path for
12823 reduc_[us](min|max|plus) optabs.
12824 * optabs-tree.c (scalar_reduc_to_vector): Remove.
12825 * optabs-tree.h (scalar_reduc_to_vector): Remove.
12826 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
12827 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
12828 * tree-vect-loop.c (vectorizable_reduction): Remove test for
12829 reduc_[us](min|max|plus) optabs.
12831 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
12833 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
12834 (reduc_plus_scal_v2sf): New.
12835 (reduc_smax_v2sf): Rename to...
12836 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
12837 (reduc_smin_v2sf): Rename to...
12838 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
12840 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
12842 * alias.c (compare_base_symbol_refs): New function.
12843 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
12846 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12848 PR middle-end/68146
12849 PR tree-optimization/69155
12850 * tree-complex.c: Include cfganal.h.
12851 (phis_to_revisit): New variable.
12852 (extract_component): Add phiarg_p argument. Assert that returned
12853 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
12854 (update_phi_components): Partly rewrite to use loop over real/imag
12855 components instead of code duplication. If extract_component returns
12856 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
12857 create_tmp_reg into the PHI node instead, and mention the phi triplet
12858 in phis_to_revisit.
12859 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
12860 in phis_to_revisit at the end.
12862 2016-01-14 Richard Biener <rguenther@suse.de>
12864 PR tree-optimization/68060
12865 * tree-vect-loop.c (vect_is_simple_reduction): Check the
12866 outer loop reduction is only used in the inner loop before
12867 detecting a double reduction.
12869 2016-01-14 Jakub Jelinek <jakub@redhat.com>
12872 * combine.c (expand_field_assignment): Punt if compute_mode is
12873 unsupported scalar mode.
12875 2016-01-14 Richard Biener <rguenther@suse.de>
12877 PR tree-optimization/66856
12878 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
12879 SLP node only if it built successfully.
12880 (vect_analyze_slp_instance): Adjust.
12882 2016-01-14 Jeff Law <law@redhat.com>
12884 PR tree-optimization/69270
12885 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
12886 (record_edge_info): Use it. Convert boolean_{true,false}_node
12887 to the type of op0.
12889 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
12892 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
12893 use block_ultimate_origin
12894 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
12896 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
12898 * doc/invoke.texi (Submodel Options): Rename section to
12899 "Machine-Dependent Options" to better reflect its content.
12900 Rewrite introductory text to remove archaic CPU names.
12903 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
12905 * doc/invoke.texi (Code Gen Options): Move section up in file,
12906 before target-specific options. Update menu and option summary
12907 to reflect the new section ordering.
12909 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
12911 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
12912 (C++ Dialect Options): Add cross-reference to -std option.
12913 * doc/standards.texi (C++ Language): Document C++14 support.
12915 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
12917 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
12918 for pack/unpack functions for __ibm128.
12919 (PACK_IF): Likewise.
12920 (UNPACK_IF): Likewise.
12922 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
12923 support for __ibm128 pack/unpack functions.
12924 (rs6000_invalid_builtin): Likewise.
12925 (rs6000_init_builtins): Likewise.
12926 (rs6000_opt_masks): Likewise.
12928 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
12929 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
12931 (RS6000_BTM_COMMON): Likewise.
12933 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
12934 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
12935 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
12936 128-bit floating point. Add support for the double values to be
12937 in Altivec registers for TF/IF packing and unpacking, but restrict
12938 TD packing sub-fields to be FPR registers. Don't allow overlapped
12939 register support for packing. Allow pack inputs to be memory
12940 locations. Don't build generator functions for unpack<mode>_dm
12941 and unpack<mode>_nodm.
12942 (unpack<mode>_dm): Likewise.
12943 (unpack<mode>_nodm): Likewise.
12944 (pack<mode>): Likewise.
12946 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
12947 built-in functions to pack/unpack explicit __ibm128 values.
12948 (__builtin_unpack_ibm128): Likewise.
12950 * doc/extend.texi (PowerPC Built-in Functions): Document
12951 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
12953 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
12956 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
12957 Add new arg loc and pass it down as context.
12958 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
12959 to the location to use for the warning.
12960 (check_function_arguments): New arg loc. All callers changed. Pass
12961 it to check_function_nonnull.
12962 * c-common.h (check_function_arguments): Adjust declaration.
12964 2016-01-13 Jakub Jelinek <jakub@redhat.com>
12966 PR tree-optimization/69156
12967 * gimple.c (validate_type): Removed.
12968 (gimple_builtin_call_types_compatible_p): Use
12969 useless_type_conversion_p instead of validate_type.
12970 * value-prof.c (gimple_stringop_fixed_value): Fold
12971 icall_size to correct type.
12973 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
12975 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
12978 2016-01-13 Richard Henderson <rth@redhat.com>
12981 * target.def (builtin_tm_load, builtin_tm_store): Remove.
12982 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
12983 (ix86_builtin_tm_store): Remove.
12984 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
12985 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
12986 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
12987 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
12988 * doc/tm.texi: Rebuild.
12990 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
12991 (BUILT_IN_TM_MEMCPY_RTWN): New.
12992 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
12993 fallback from vector to integer helpers.
12994 (build_tm_load): Handle vector types directly, instead of
12996 (build_tm_store): Likewise.
12997 (expand_assign_tm): Prepare for register types not handled by
12998 the above. Copy them to memory and use memcpy.
12999 * tree.c (tm_define_builtin): New.
13000 (find_tm_vector_type): New.
13001 (build_tm_vector_builtins): New.
13002 (build_common_builtin_nodes): Call it.
13004 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
13006 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
13007 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
13009 2016-01-13 Tom de Vries <tom@codesourcery.com>
13011 PR tree-optimization/69169
13012 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
13013 handled_struct_type param.
13014 (create_variable_info_for, intra_create_variable_infos): Call
13015 create_variable_info_for_1 with extra arg.
13017 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
13019 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
13020 and "armv8.1-a+crc" entries.
13022 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
13025 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
13026 Change first operand predicate from register_or_constm1_operand
13027 to register_operand.
13028 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
13029 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
13030 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
13031 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
13032 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
13033 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
13034 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
13035 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
13036 comparison with constm1_rtx from vec_prefetch_gen part.
13038 2016-01-13 Richard Biener <rguenther@suse.de>
13040 PR tree-optimization/69013
13041 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
13042 Exchange assert for a test.
13044 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13047 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
13049 2016-01-13 Richard Biener <rguenther@suse.de>
13051 PR tree-optimization/69242
13052 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
13053 assert with a check.
13055 2016-01-13 Richard Biener <rguenther@suse.de>
13057 PR tree-optimization/69186
13058 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13059 Properly guard vect_update_misalignment_for_peel call.
13061 2016-01-12 Jeff Law <law@redhat.com>
13063 PR tree-optimization/pr67755
13064 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
13065 "need_profile_correction".
13066 (thread_block_1): Initialize new field to false by default. If we
13067 have multiple thread paths through a common joiner to different
13068 final targets, then set new field to true.
13069 (compute_path_counts): Only do count adjustment when it's really
13072 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13074 * doc/invoke.texi (Spec Files): Move section down in file, past
13075 all command-line option descriptions.
13077 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13079 PR middle-end/54809
13080 * doc/gty.texi: Remove documentation of mark_hook.
13081 * gengtype.c (struct write_types_data): Remove code to support
13082 mark_hook attribute.
13083 (walk_type): Likewise.
13084 (write_func_for_structure): Likewise.
13086 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13088 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
13089 Directory Options, and -specs= to Overall Options.
13090 (Overall Options): Adjust similarly. Reorder to group related
13091 options together. Make -specs= cross-reference the spec file details.
13092 (Directory Options): Adjust similarly.
13094 2016-01-12 Jeff Law <law@redhat.com>
13096 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
13098 2016-01-12 Olivier Hainque <hainque@adacore.com>
13100 * gcc.c (spec_undefvar_allowed): New global.
13101 (process_command): Set to true when running for --version or --help,
13103 (getenv_spec_function): When the variable is not defined, use the
13104 variable name as the variable value if we're allowed not to issue
13107 2016-01-12 Bin Cheng <bin.cheng@arm.com>
13109 PR tree-optimization/68911
13110 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
13111 information computed for expression "init + nit * step".
13113 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
13115 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
13116 about name of GCC executable. Remove deleted node from menu.
13117 (Directory Options) <-B>: Remove cross-reference to deleted node.
13118 (Target Options): Delete section.
13120 2016-01-12 Christian Bruel <christian.bruel@st.com>
13123 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
13124 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
13126 2016-01-12 Jakub Jelinek <jakub@redhat.com>
13129 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
13130 aligned_mem is properly set for AVX512-VL floating point masked
13134 * ifcvt.c (cond_exec_process_if_block): When removing the last
13135 insn from then_bb, remove also any possible barriers that follow it.
13137 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
13141 * config/i386/iamcu.h (SIZE_TYPE): New macro.
13142 (PTRDIFF_TYPE): Likewise.
13143 (WCHAR_TYPE): Likewise.
13144 (WCHAR_TYPE_SIZE): Likewise.
13145 (STDINT_LONG32): Likewise.
13147 2016-01-12 Richard Biener <rguenther@suse.de>
13149 PR tree-optimization/69053
13150 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
13151 convert initial value for cond reductions.
13153 2016-01-12 Richard Biener <rguenther@suse.de>
13155 PR tree-optimization/69007
13156 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
13157 widen_sum after dot_prod and sad.
13159 2016-01-12 Richard Biener <rguenther@suse.de>
13161 PR tree-optimization/69168
13162 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
13163 pattern stmt SLP type.
13164 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
13165 end up unused so cope with that case.
13167 2016-01-12 Richard Biener <rguenther@suse.de>
13169 PR tree-optimization/69157
13170 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
13171 stmts def type only during analyze phase.
13172 (vectorizable_call): Likewise.
13173 (vectorizable_simd_clone_call): Likewise.
13174 (vectorizable_conversion): Likewise.
13175 (vectorizable_assignment): Likewise.
13176 (vectorizable_shift): Likewise.
13177 (vectorizable_operation): Likewise.
13178 (vectorizable_store): Likewise.
13179 (vectorizable_load): Likewise.
13181 2016-01-12 Richard Biener <rguenther@suse.de>
13183 PR tree-optimization/69174
13184 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
13186 (vectorizable_load): Properly compute the number of loads needed
13187 for permuted strided SLP loads and do not spuriously assign
13188 to SLP_TREE_VEC_STMTS.
13190 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
13192 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
13193 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
13194 (MD_EXEC_PREFIX): Remove.
13195 (MD_STARTFILE_PREFIX) Removee.
13196 (FILE_NAME_ABSOLUTE_P): Remove.
13197 (CPP_SPEC): Do not read macros from sys/version.h.
13198 (LINK_COMMAND_SPEC): Remove.
13199 (LOCAL_INCLUDE_DIR): Remove.
13200 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
13201 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
13202 (POST_LINK_SPEC): Define to invoke stubify after linker
13203 (LIBSTDCXX): Remove define
13204 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
13205 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
13206 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
13207 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
13208 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
13209 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
13210 (i386_djgpp_asm_named_section): Add propotype of new procedure
13212 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
13213 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
13214 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
13215 in config/i386/djgpp.h).
13216 (STANDARD_STARTFILE_PREFIX_2): Define identical to
13217 STANDARD_STARTFILE_PREFIX_1.
13218 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
13219 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
13220 installation errors.
13221 (MAX_OFILE_ALIGNMENT): Define to 128.
13222 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
13224 * config/i386/djgpp.c: New file. Add implementation of
13225 i386_djgpp_asm_named_section.
13227 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
13229 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
13230 Add rule for building djgpp.o.
13232 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13234 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
13235 (rtx_is_swappable_p): Reductions are swappable.
13236 (insn_is_swappable_p): V2DF reductions are swappable.
13238 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
13240 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
13241 reloads for other unsupported memory operands.
13243 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
13244 Jim Wilson <jim.wilson@linaro.org>
13247 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
13248 copy_to_mode_reg instead of force_reg.
13250 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13253 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
13254 TARGET_80387 is true.
13256 2016-01-11 Jakub Jelinek <jakub@redhat.com>
13259 * lra-eliminations.c (move_plus_up): Only move plus up
13260 if subreg of the constant can be simplified into constant
13261 and use the simplified subreg of the constant instead of
13262 the original constant.
13264 * fold-const.c (fold_convertible_p): Don't return true
13265 for conversion of VECTOR_TYPE to same sized integral type.
13266 (fold_convert_loc): Fix up formatting. Fold conversion of
13267 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
13268 instead of NOP_EXPR.
13270 PR tree-optimization/69214
13271 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
13272 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
13275 PR tree-optimization/69207
13276 * tree-vect-slp.c (vect_get_constant_vectors): For
13277 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
13278 fold_convertible_p to vector_type's element type, and always
13279 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
13281 2016-01-11 Richard Biener <rguenther@suse.de>
13283 PR tree-optimization/69173
13284 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
13285 fixup the cycle if all stmts are in a pattern.
13287 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
13289 PR middle-end/68999
13290 * alias.c (base_alias_check): Move check for addresses with
13291 alignment ANDs before the call for compare_base_decls.
13292 (memrefs_conflict_p): Return -1 for different decls
13293 that went through alignment adjustments.
13295 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13297 PR rtl-optimization/68796
13298 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
13299 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
13300 and QImode comparisons against zero with CC_NZmode.
13301 * config/aarch64/iterators.md (short_mask): New mode_attr.
13303 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
13305 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
13306 (<avx512>_store<mode>_mask): Likewise.
13308 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
13309 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13311 PR rtl-optimization/68841
13312 * ifcvt.c (struct noce_if_info): Add orig_x field.
13313 (bbs_ok_for_cmove_arith): Add to_rename parameter.
13314 Don't record conflicts on to_rename if it's present.
13315 Allow memory destinations in sets.
13316 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
13317 blocks, passing orig_x to the checks.
13318 (noce_process_if_block): Set if_info->orig_x appropriately.
13320 2016-01-11 Tom de Vries <tom@codesourcery.com>
13322 PR tree-optimization/69069
13323 * tree-parloops.c (create_parallel_loop): Add missing phi args.
13325 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13327 PR rtl-optimization/68920
13328 * config/i386/i386.c (ix86_option_override_internal): Restrict number
13329 of conditional moves for RTL if-conversion to 1 for
13330 TARGET_ONE_IF_CONV_INSN.
13331 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
13332 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
13333 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
13334 parameter to restirct number of conditional moves for
13336 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
13337 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
13340 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
13343 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
13344 onepart vars. Fix typo in comment. Fix reversed condition in
13346 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
13349 * var-tracking.c (dump_onepart_variable_differences): New.
13350 (dataflow_set_different): If a detailed dump is requested,
13351 delay early returns and dump differences between onepart
13352 variables present before and after, and added variables.
13354 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
13357 * expr.c (expand_expr_real_1): For boolean vector constants
13358 with a scalar mode use const_scalar_mask_from_tree.
13359 (const_scalar_mask_from_tree): New.
13360 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
13361 assigned to a mask type to handle constants.
13363 2016-01-11 Martin Jambor <mjambor@suse.cz>
13366 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
13367 useless parameters if we cannot change function signature.
13369 2016-01-11 Martin Jambor <mjambor@suse.cz>
13372 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
13375 2016-01-11 Tom de Vries <tom@codesourcery.com>
13377 PR tree-optimization/69109
13378 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
13381 2016-01-11 Tom de Vries <tom@codesourcery.com>
13383 PR tree-optimization/69108
13384 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
13385 res is not used in a phi.
13387 2016-01-11 Yury Gribov <y.gribov@samsung.com>
13390 * common.opt (frandom-seed): Fix parameter name.
13391 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
13393 2016-01-11 Tom de Vries <tom@codesourcery.com>
13395 PR tree-optimization/69058
13396 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
13399 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
13401 * config/arc/arc.opt (mdiv-rem): Add period to the end.
13402 (mcode-density): Likewise.
13404 2016-01-10 Tom de Vries <tom@codesourcery.com>
13406 PR tree-optimization/69062
13407 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
13408 (parallelize_loops): Don't paralelize loop that has phi with address
13411 2016-01-10 Tom de Vries <tom@codesourcery.com>
13413 PR tree-optimization/69039
13414 * tree-parloops.c (try_create_reduction_list): Only allow single exit
13417 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
13419 PR middle-end/68743
13420 * match.pd: Require target has function_c99_misc before doing
13421 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
13423 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
13425 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
13427 * configure: Regenerate.
13429 2016-01-09 Jakub Jelinek <jakub@redhat.com>
13431 PR middle-end/50865
13432 PR tree-optimization/69097
13433 * fold-const.h (expr_not_equal_to): New prototype.
13434 * fold-const.c: Include stringpool.h and tree-ssanames.h.
13435 (expr_not_equal_to): New function.
13436 * match.pd (X % -Y is the same as X % Y): Don't optimize
13437 unless X is known not to be equal to minimum or Y is known
13438 not to be equal to -1.
13439 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
13440 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
13441 (simplify_stmt_using_ranges): Adjust caller.
13442 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
13443 substitute_and_fold.
13445 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
13447 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
13450 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13452 PR tree-optimization/69167
13453 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
13454 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
13456 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
13458 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13459 Richard Biener <rguenther@suse.de>
13461 PR tree-optimization/68707
13462 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
13463 instances that can be handled via vect_load_lanes.
13465 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
13467 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
13468 if we can't determine address equivalence.
13469 * alias.c (compare_base_decl): Update for changed return value of
13470 symtab_node::equal_address_to.
13472 2016-01-08 Jason Merrill <jason@redhat.com>
13476 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
13477 * expr.c (store_field): Not here.
13478 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
13479 call with TREE_ADDRESSABLE type.
13480 * tree-cfg.c (verify_gimple_call): Adjust.
13482 2016-01-08 Olivier Hainque <hainque@adacore.com>
13484 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
13487 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
13489 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
13490 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
13491 (reduc_smin_v2sf): Rename to...
13492 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
13493 (reduc_splus_v2sf): Rename to...
13494 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
13496 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13498 PR tree-optimization/69162
13499 * gimplify.c (gimplify_va_arg_expr): Encode original type of
13500 valist argument in another argument.
13501 (gimplify_modify_expr): Adjust for the above change. Cleanup.
13502 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
13503 to determine the va_list type, build a MEM_REF instead of
13504 build_fold_indirect_ref.
13506 PR tree-optimization/69172
13507 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
13510 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
13512 PR tree-optimization/67781
13513 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
13514 and cmpnop in two steps: first the ones not accessed in original
13515 gimple expression in a endian independent way and then the ones not
13516 accessed in the final result in an endian-specific way.
13518 2016-01-08 Jakub Jelinek <jakub@redhat.com>
13520 PR tree-optimization/69083
13521 * tree-vect-slp.c (vect_get_constant_vectors): For
13522 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
13523 element type. If op is fold_convertible_p to vector_type's element
13524 type, use NOP_EXPR instead of VCE.
13526 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
13528 PR rtl-optimization/67778
13529 PR rtl-optimization/68634
13530 PR rtl-optimization/68909
13531 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
13532 block from the stack until done with it. Remove a superfluous
13533 bitmap set. Remove a superfluous bitmap test.
13535 2016-01-07 Martin Sebor <msebor@redhat.com>
13538 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
13539 constraint on the type of arguments.
13541 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
13543 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
13544 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
13545 unaligned_access on the gcc_options set.
13546 * config/arm/arm.c (arm_option_override_internal): Use
13547 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
13549 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13552 * config/i386/i386.c (ix86_frame_pointer_required): Enable
13553 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
13555 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
13558 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
13561 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13562 depending on frame_pointer_needed before remaining integer and SSE
13563 registers are saved.
13565 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
13568 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
13570 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
13573 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
13574 Use the "xBm" constraint.
13575 (float<sseintvecmodelower><mode>2<mask_name><round_name):
13577 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
13578 (sse_cvtsi2ssq<round_name>): Likewise.
13579 (sse_cvtss2si<round_name>): Likewise.
13580 (sse_cvtss2siq<round_name>): Likewise.
13581 (sse2_cvtsi2sdq<round_name>): Likewise.
13582 (sse2_cvtsd2si<round_name>): Likewise.
13583 (sse2_cvtsd2siq<round_name>): Likewise.
13584 * config/i386/subst.md (round_nimm_scalar_predicate): New
13587 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
13589 PR middle-end/67639
13590 * varasm.c (make_decl_rtl): Mark invalid register vars as
13593 PR rtl-optimization/66206
13594 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
13595 All callers changed.
13597 2016-01-07 Jakub Jelinek <jakub@redhat.com>
13599 PR tree-optimization/69141
13600 * tree-ssa-pre.c: Include langhooks.h.
13601 (eliminate_dom_walker::before_dom_children): Use
13602 lang_hooks.decl_printable_name instead of
13603 cgraph_node::get ()->name ().
13605 PR middle-end/68960
13606 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
13607 it and DECL_ALIGN too.
13609 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
13611 * config/mips/mips-ftypes.def: Sort to lexicographical order.
13613 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
13616 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
13617 depending on frame_pointer_needed before remaining integer and SSE
13618 registers are saved.
13620 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13622 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
13623 mode iterator with VSX_M2.
13624 (*p9_vecstore_<mode>): Likewise.
13625 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
13626 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
13627 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
13628 (define_split for VSX_LE128 stores): Likewise.
13629 (define_peephole2 for TImode LE swaps): Likewise.
13630 (define_split for VSX_LE128 post-reload stores): Likewise.
13632 2016-01-06 Marek Polacek <polacek@redhat.com>
13635 * convert.c (convert_to_integer_1): Adjust call to
13636 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
13637 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
13638 EXPR instead of ARG.
13639 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
13641 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13644 * doc/extend.texi (RL78 Variable Attributes): New section.
13646 2016-01-05 Marek Polacek <polacek@redhat.com>
13649 * builtins.c (get_memmodel): Use expansion point location rather than
13650 the input location. Call warning_at rather than warning.
13651 (expand_builtin_atomic_compare_exchange): Likewise.
13652 (expand_builtin_atomic_load): Likewise.
13653 (expand_builtin_atomic_store): Likewise.
13654 (expand_builtin_atomic_clear): Likewise.
13656 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
13659 * config/i386/i386.c (ix86_expand_vector_logical_operator):
13660 Replace nonimmediate_operand with vector_operand.
13661 * config/i386/predicates.md (vector_operand): New predicate.
13662 (general_vector_operand): Replace nonimmediate_operand with
13664 * config/i386/sse.md: Replace nonimmediate_operand with
13665 vector_operand and m constraint with Bm constraint on SSE
13666 patterns with 16-byte memory operand.
13667 * config/i386/subst.md (round_nimm_predicate): Replace
13668 nonimmediate_operand with vector_operand.
13669 (round_saeonly_nimm_predicate): Likewise.
13670 (round_saeonly_nimm_scalar_predicate): New.
13672 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
13675 * config/i386/constraints.md (Bm): New constraint.
13676 * config/i386/predicates.md (vector_memory_operand): New
13678 * config/i386/sse.md: Replace xm with xBm in plusminus and
13679 any_logic patterns.
13681 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13684 * doc/extend.texi (V850 Function Attributes): New section.
13685 (V850 Variable Attributes): New section.
13687 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
13690 * doc/extend.texi (MicroBlaze Function Attributes): Document
13691 interrupt_handler and fast_interrupt attributes.
13693 2016-01-05 Sergei Trofimovich <siarheit@google.com>
13696 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
13697 for local symbolic operands.
13698 * config/ia64/predicates.md (local_symbolic_operand64): New
13701 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13703 PR rtl-optimization/68651
13704 * combine.c (combine_simplify_rtx): Canonicalize x + x into
13707 2016-01-05 Nathan Sidwell <nathan@acm.org>
13709 * alias.c (compare_base_decls): Use symtab_node::get.
13711 2016-01-05 Nick Clifton <nickc@redhat.com>
13714 * ira-costs.c (copy_cost): Initialise the t_icode field of the
13715 secondary_reload_info structure.
13718 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
13719 decls if weak support is available.
13721 2016-01-04 Martin Sebor <msebor@redhat.com>
13723 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
13725 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
13727 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
13728 OPTION_MASK_P9_DFORM.
13730 * config/rs6000/constraints.md (wo constraint): New constraint for
13733 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
13735 (rs6000_init_hard_regno_mode_ok): Likewise.
13737 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
13740 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
13741 expanders not to have constraints. Add support for ISA 3.0 xxperm
13742 instruction. Add support for fusing xxlor with xxperm.
13743 (altivec_vperm_<mode>_internal): Likewise.
13744 (altivec_vperm_v8hiv16qi): Likewise.
13745 (altivec_vperm_<mode>v16q): Likewise.
13746 (altivec_vperm_<mode>_uns): Likewise.
13747 (vperm_v8hiv4si): Likewise.
13748 (vperm_v16qiv8hi): Likewise.
13750 * doc/md.texi (RS/6000 constraints): Document wo constraint.
13752 2016-01-04 Jakub Jelinek <jakub@redhat.com>
13754 Update copyright years.
13756 * gcc.c (process_command): Update copyright notice dates.
13757 * gcov-dump.c (print_version): Ditto.
13758 * gcov.c (print_version): Ditto.
13759 * gcov-tool.c (print_version): Ditto.
13760 * gengtype.c (create_file): Ditto.
13761 * doc/cpp.texi: Bump @copying's copyright year.
13762 * doc/cppinternals.texi: Ditto.
13763 * doc/gcc.texi: Ditto.
13764 * doc/gccint.texi: Ditto.
13765 * doc/gcov.texi: Ditto.
13766 * doc/install.texi: Ditto.
13767 * doc/invoke.texi: Ditto.
13769 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13771 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
13772 modes larger than TImode as TImode if NEON is not enabled.
13774 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13777 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
13778 mode for %f0-%f31 only if TARGET_FPU.
13780 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
13783 * config/sparc/sparc.c (scan_record_type): Take into account subfields
13784 to compute the PACKED_P predicate.
13785 (function_arg_record_value): Minor tweaks.
13787 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13789 * doc/install.texi (--with-multilib-list): Describe the meaning of the
13790 option for arm*-*-* targets.
13792 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
13794 * doc/extend.texi (Common Function Attributes): Move docs for
13795 MSP430-specific attributes to....
13796 (MSP430 Function Attributes): ...here. Delete the redundant
13797 entries and copy-edit the remaining text.
13798 (MSP430 Variable Attributes): Use uniform format for index
13799 entries and add a cross-reference to the corresponding function
13802 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
13804 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
13806 (x86 Options): Likewise.
13808 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
13812 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
13813 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
13814 to corresponding attribute.
13816 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
13818 * doc/extend.texi (Common Function Attributes) <noplt>: Move
13819 to correct alphabetization of table. Copy-edit and correct
13821 <stack_protect>: Likewise.
13822 <target_clones>: Likewise.
13824 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
13825 Correct punctuation.
13826 (Code Gen Options) <-fno-plt>: Copy-edit.
13828 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
13831 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
13832 SI values. Explicitly convert SI to DI and vice-versa.
13834 2016-01-01 Jakub Jelinek <jakub@redhat.com>
13836 PR tree-optimization/69070
13837 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
13838 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
13841 * ubsan.c (ubsan_instrument_float_cast): Call
13842 initialize_sanitizer_builtins.
13845 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
13847 Copyright (C) 2016 Free Software Foundation, Inc.
13849 Copying and distribution of this file, with or without modification,
13850 are permitted in any medium without royalty provided the copyright
13851 notice and this notice are preserved.