1 2016-08-22 Release Manager
5 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
8 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
11 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
12 enclosing parallel construct for reduction variables on OpenACC loop
15 2016-08-18 Oleg Endo <olegendo@gcc.gnu.org>
17 Backport from mainline
18 2016-06-17 DJ Delorie <dj@redhat.com>
21 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
22 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
23 (umulqihi3_virt): Likewise.
24 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
25 (umulqihi3_real): Likewise.
27 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
29 * doc/install.texi (*-*-solaris2*): Adjust latest change.
31 2016-08-15 Martin Liska <mliska@suse.cz>
33 Backported from mainline
34 2016-08-15 Martin Liska <mliska@suse.cz>
37 * gcc.c (do_spec_1): Call save_string with the right size.
39 2016-08-15 Jakub Jelinek <jakub@redhat.com>
42 * dwarf2out.c (string_types): New variable.
43 (gen_array_type_die): Change early_dwarf handling of
44 DW_AT_string_length, create DW_OP_call4 referencing the
45 length var temporarily. Handle parameters that are pointers
47 (adjust_string_types): New function.
48 (gen_subprogram_die): Temporarily set string_types to local var,
49 call adjust_string_types if needed.
50 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
52 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
54 2016-08-15 Richard Biener <rguenther@suse.de>
56 PR tree-optimization/73434
57 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
58 TBAA info on the base when forwarding a non-invariant address.
60 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
62 * doc/install.texi (*-*-solaris2*): Fix version number and document
63 requirement on GNU make for building libjava with the Solaris linker.
65 2016-08-15 Martin Liska <mliska@suse.cz>
66 Jakub Jelinek <jakub@redhat.com>
68 PR tree-optimization/72824
69 * tree-loop-distribution.c (const_with_all_bytes_same)
70 <case VECTOR_CST>: Fix a typo.
72 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
74 Backport from mainline
75 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
78 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
79 Renamed from _mm512_undefined_si512.
80 (_mm_undefined_si512): New definition.
82 Backport from mainline:
83 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
85 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
88 Backport from mainline:
89 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
92 * config/i386/i386.md (*movtf_internal): Use
93 lra_in_progress || reload_completed instead of !can_create_pseudo_p
94 in the insn constraint.
95 (*movxf_internal): Ditto.
96 (*movdf_internal): Ditto.
97 (*movsf_internal): Ditto.
99 2016-08-12 Jakub Jelinek <jakub@redhat.com>
102 * ubsan.c (instrument_si_overflow): Pass true instead of false
104 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
105 of bbs. Return TODO_cleanup_cfg if any returned true.
107 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
109 Backport from mainline
110 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
112 PR tree-optimization/71083
113 * tree-predcom.c (ref_at_iteration): Correctly align the
116 2016-08-12 James Greenhalgh <james.greenhalgh@arm.com
118 Backport from mainline
119 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
122 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
123 (aarch64_fp16_ptr_type_node): Likewise.
124 * config/aarch64/aarch64-simd-builtins.c
125 (aarch64_fp16_ptr_type_node): Define.
126 (aarch64_init_fp16_types): New, refactored out of...
127 (aarch64_init_builtins): ...here, update to call
128 aarch64_init_fp16_types.
129 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
131 (aapcs_vfp_sub_candidate): Likewise.
133 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
135 Backport from mainline
136 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
138 * config/s390/s390-builtin-types.def: Add INT128 types.
139 * config/s390/s390-builtins.def: Add INT128 variants for the add
140 sub low-level builtins dealing with TImode.
141 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
142 via subreg when expanding a builtin.
143 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
144 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
146 * config/s390/vecintrin.h: Adjust builtin names accordingly.
147 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
148 ("vec_addc<mode>", "vec_addc_u128"): Merge to
149 "vacc<bhfgq>_<mode>".
150 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
151 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
152 ("vec_subc<mode>", "vec_subc_u128"): Merge to
153 "vscbi<bhfgq>_<mode>".
154 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
155 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
157 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
159 Backport from mainline
160 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
162 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
163 and s390_vlgv* builtins as element selector.
165 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
167 Backport from mainline
168 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
170 * config/s390/s390.c (s390_expand_vec_init): Force initializer
171 element to register if it doesn't match general_operand.
173 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
175 Backport from mainline
176 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
178 * config/s390/vecintrin.h: Fix file description in comment.
180 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
182 Backport from mainline
183 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
185 * config/s390/s390-builtin-types.def: Change builtin type naming
186 scheme to match builtin-types.def.
188 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
190 Backport from mainline
191 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
194 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
195 being an offsettable address.
197 2016-08-10 Jakub Jelinek <jakub@redhat.com>
199 Backported from mainline
200 2016-08-09 Jakub Jelinek <jakub@redhat.com>
202 PR tree-optimization/72824
203 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
204 real_zerop is not negative.
206 2016-08-09 Martin Jambor <mjambor@suse.cz>
209 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
210 if instance is a MEM_REF.
212 2016-08-09 Richard Biener <rguenther@suse.de>
214 Backport from mainline
215 2016-08-09 Richard Biener <rguenther@suse.de>
218 * ipa-prop.c (ipa_modify_formal_parameters): Build
219 parameter types with natural alignment also for the
222 2016-07-15 Richard Biener <rguenther@suse.de>
224 PR tree-optimization/71881
225 * tree-loop-distribution.c (destroy_loop): Remove blocks in
226 reverse DOM order to make debug temp generation happy.
228 2016-08-09 Alan Modra <amodra@gmail.com>
231 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
232 alternatives. Put loads first, then stores, and reg/reg moves
233 within same class later. Delete attr length.
235 2016-08-09 Alan Modra <amodra@gmail.com>
238 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
239 (mem_operand_ds_form): New predicate.
240 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
241 * config/rs6000/constraints.md (wY): New constraint.
242 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
243 (extendsfdf2_fpr): Replace o constraint with wY.
245 2016-08-08 Georg-Johann Lay <avr@gjlay.de>
247 Backport from 2016-07-29 trunk r238863.
249 PR rtl-optimization/71976
250 * combine.c (get_last_value): Return 0 if the argument for which
251 the function is called has a wider mode than the recorded value.
253 2016-08-04 Michael Meissner <meissner@linux.vnet.ibm.com>
256 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
259 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
260 __float128 support when we don't have hardware support, so that
261 the IEEE built-in functions like isgreater, first call __unordkf3
262 to make sure neither operand is a NaN, and if both operands are
263 ordered, do the normal comparison.
265 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
268 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
269 Cast builtin function result to __mmask16 instead of __mmask8.
270 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
271 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
272 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
274 2016-08-03 Georg-Johann Lay <avr@gjlay.de>
277 * common/config/avr/avr-common.c (avr_option_optimization_table)
278 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
280 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
282 Backport from 2016-08-01 trunk r238948.
285 * config/avr/avr.md (length) [branch]: Correct insn length
286 attribute for forward branches.
288 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
290 Backport from 2016-06-16 trunk r237536.
291 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
294 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
295 progmem_swtable_section.
296 (progmem_swtable_section): Remove.
297 (avr_asm_function_rodata_section): Remove.
298 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
299 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Define to 1.
301 2016-07-29 Marek Polacek <polacek@redhat.com>
303 Backport from mainline
304 2016-07-29 Marek Polacek <polacek@redhat.com>
307 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
308 (altivec_expand_st_builtin): Likewise.
309 * config/i386/i386.c (ix86_expand_args_builtin): Likewise.
310 (ix86_expand_round_builtin): Likewise.
312 2016-07-27 Segher Boessenkool <segher@kernel.crashing.org>
315 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
316 when to emit a ".machine" pseudo-op.
318 2016-07-26 Alan Modra <amodra@gmail.com>
321 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
324 2016-07-21 Jakub Jelinek <jakub@redhat.com>
327 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
328 before builtin_decl_implicit.
330 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
332 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
334 Improving concepts performance and diagnostics.
335 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
336 for constraint satisfaction and subsumption.
337 * timevar.h (auto_timevar): New constructor that matches the push/pop
338 pattern of usage in pt.c.
340 2016-07-20 John David Anglin <danglin@gcc.gnu.org>
342 Backport from mainline
343 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
345 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
346 register parameters. Remove code to initialize argument pointer
347 on TARGET_64BIT. Optimize call to _mcount when it can be reached
348 using a pc-relative branch. Cleanup conditional code.
349 * config/pa/pa.md (call_mcount): New expander.
350 (call_mcount_nonpic): New insn.
351 (call_mcount_pic): New insn and split.
352 (call_mcount_pic_post_reload): New insn.
353 (call_mcount_64bit): New insn and split.
354 (call_mcount_64bit_post_reload): New insn.
356 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
358 Backport from mainline
359 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
361 * config/s390/s390.c (s390_encode_section_info): Remove mode size
364 2016-07-20 Martin Jambor <mjambor@suse.cz>
367 * trans-decl.c (gfc_generate_function_code): Use get_create rather
368 than create to get a call graph node.
370 2016-07-19 Jakub Jelinek <jakub@redhat.com>
372 PR rtl-optimization/71916
373 * cfgrtl.c (contains_no_active_insn_p): Return false also for
374 bb which have a single succ fake edge.
376 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
379 * dwarf2out.c (gen_subprogram_die): Only call
380 gen_unspecified_parameters_die while dumping early dwarf.
382 2016-07-19 Jakub Jelinek <jakub@redhat.com>
385 * gimple-fold.c (fold_builtin_memory_op): Use
386 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
388 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
390 Back port from mainline
391 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
394 * config/rs6000/rs6000.c (rs6000_function_value): Fix
395 unintentional System V.4 structure return breakage for structures
396 with a single floating point element.
398 2016-07-18 Martin Liska <mliska@suse.cz>
400 Backported from mainline
401 2016-07-12 Martin Liska <mliska@suse.cz>
403 PR rtl-optimization/71634
404 * ira-build.c (mark_loops_for_removal): Properly iterate
407 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
409 Backport from mainline
410 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
412 * config/s390/s390.c (s390_encode_section_info): Always set
413 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
416 2016-07-15 Alan Modra <amodra@gmail.com>
419 2016-07-11 Alan Modra <amodra@gmail.com>
420 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
421 (ctr<mode>): Add unspec.
422 (ctr<mode>_internal*): Likewise.
424 2016-07-14 Alan Modra <amodra@gmail.com>
427 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
428 with p9_vector override before power9-dform override.
430 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
432 Backport from mainline r238086.
433 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
436 * ipa-inline-analysis.c (compute_inline_parameters): Set
437 local.can_change_signature to false for intrumentation
440 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
441 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
443 Backport from mainline
444 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
445 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
447 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
449 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
450 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
451 (SIGNBIT): New mode iterator.
452 (Fsignbit): New mode attribute.
453 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
454 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
455 when direct moves are available.
456 (signbit<mode>2_dm): New define_insn_and_split).
457 (signbit<mode>2_dm2): New define_insn.
459 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
461 Backport from mainline
462 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
465 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
466 The xxperm and xxpermr instructions require that the 2nd input
467 operand overlap with the output operand, and not the 1st.
468 (altivec_vperm_v8hiv16qi): Likewise.
469 (altivec_vperm_<mode>_uns_internal): Likewise.
470 (altivec_vpermr_<mode>_internal): Likewise.
471 (vperm_v8hiv4si): Likewise.
472 (vperm_v16qiv8hi): Likewise.
474 2016-07-12 Segher Boessenkool <segher@kernel.crashing.org>
476 Backport from mainline
477 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
481 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
482 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
485 2016-07-11 Jakub Jelinek <jakub@redhat.com>
488 * omp-low.c (expand_omp_target): Gimplify device.
490 PR tree-optimization/71823
491 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
492 to get vec_oprnds2 from op2.
494 2016-07-11 Yuri Rumyantsev <ysrumyan@gmail.com>
496 Backport from mainline r238055.
497 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
499 PR tree-optimization/71518
500 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
501 misalign also for outer loops with negative step.
503 2016-07-08 Martin Liska <mliska@suse.cz>
505 Backported from mainline
506 2016-07-08 Martin Liska <mliska@suse.cz>
509 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
510 folding produces SAVE_EXPRs, thus return false for the type.
512 2016-07-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
514 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): Remove
515 redundant and erroneous definition of this macro accidentally
516 inserted during backporting.
517 (BU_P9_64BIT_MISC_0): Likewise.
518 (BU_P9_MISC_0): Likewise.
520 2016-07-08 Jiong Wang <jiong.wang@arm.com>
522 Back port from the trunk
523 2016-07-08 Jiong Wang <jiong.wang@arm.com>
525 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
530 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
531 __builtin_aarch64_fmaxv2sf.
532 (vmaxnmq_f32): Likewise.
533 (vmaxnmq_f64): Likewise.
534 (vminnm_f32): Likewise.
535 (vminnmq_f32): Likewise.
536 (vminnmq_f64): Likewise.
538 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
541 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
544 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
545 enable -mfloat128-hardware by default.
546 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
547 that IEEE 128-bit hardware support needs.
548 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
549 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
550 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
551 floating point requires.
552 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
553 -mfloat128 and -mfloat128-hardware changes.
555 2016-07-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
557 Backport from mainline r237912
558 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
560 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
561 Exchange the order of the second and third operands in the vpermr
562 instruction tmeplate.
564 2016-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
566 Back port from the trunk
567 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
570 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
571 the insns, use an insn form that does not adjust the offset on
572 little endian systems.
574 2016-07-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
576 Backport from mainline r237885
577 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
579 * config/rs6000/altivec.md (darn_32): Change the condition to
580 TARGET_P9_MISC instead of TARGET_MODULO.
581 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
582 condition expression.
583 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
584 condition expression.
585 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
586 (DFP_TEST): New code iterator.
587 (dfptstsfi_<code>_mode>): New define_expand.
588 (*dfp_sgnfcnc_<mode>): New define_insn.
589 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
590 definition next to BU_P9_MISC_1 definition and change the MASK
591 value to RS6000_BTM_P9_MISC.
592 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
593 (BU_P9_64BIT_MISC_0): Likewise.
594 (BU_P9_DFP_MISC_0): New macro definition.
595 (BU_P9_DFP_MISC_1): New macro definition.
596 (BU_P9_DFP_MISC_2): New macro definition.
597 (BU_P9_DFP_OVERLOAD_1): New macro definition.
598 (BU_P9_DFP_OVERLOAD_2): New macro definition.
599 (BU_P9_DFP_OVERLOAD_3): New macro definition.
600 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
601 (TSTSFI_LT_TD): Likewise.
602 (TSTSFI_EQ_DD): Likewise.
603 (TSTSFI_EQ_TD): Likewise.
604 (TSTSFI_GT_DD): Likewise.
605 (TSTSFI_GT_TD): Likewise.
606 (TSTSFI_OV_DD): Likewise.
607 (TSTSFI_OV_TD): Likewise.
608 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
609 (TSTSFI_LT_DD): Likewise.
610 (TSTSFI_LT_TD): Likewise.
611 (TSTSFI_EQ): Likewise.
612 (TSTSFI_EQ_DD): Likewise.
613 (TSTSFI_EQ_TD): Likewise.
614 (TSTSFI_GT): Likewise.
615 (TSTSFI_GT_DD): Likewise.
616 (TSTSFI_GT_TD): Likewise.
617 (TSTSFI_OV): Likewise.
618 (TSTSFI_OV_DD): Likewise.
619 (TSTSFI_OV_TD): Likewise.
620 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
621 overloaded test significance functions.
622 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
623 OPTION_MASK_P9_MISC into the representation of this mask.
624 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
626 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
627 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
629 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
630 argument is a 6-bit unsigned literal value if the icode argument
631 represents a DFP test significance built-in call.
632 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
633 flag used independently and in combination with the
634 RS6000_BTM_64BIT flag.
635 (rs6000_opt_masks): Add entry for power9-misc command-line option.
636 (rs6000_builtin_mask_names): Add entry for power9-misc
638 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
639 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
640 RS6000_BTM_P9_MISC macros.
641 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
642 option and change the description of the -mpower9-vector option to
643 enable only vector instructions, removing its erroneously claimed
644 support for scalar instructions.
645 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
646 the ISA 3.0 digital floating point test significance built-in
649 2016-07-07 Richard Biener <rguenther@suse.de>
651 Backport from mainline
652 2016-06-13 Richard Biener <rguenther@suse.de>
655 * fold-const.c (fold_unary_loc): Preserve alignment when
656 folding a VIEW_CONVERT_EXPR into a MEM_REF.
658 2016-07-07 Richard Biener <rguenther@suse.de>
660 Backport from mainline
661 2016-05-25 Richard Biener <rguenther@suse.de>
663 PR tree-optimization/71264
664 * tree-vect-stmts.c (vect_init_vector): Properly deal with
667 2016-06-07 Richard Biener <rguenther@suse.de>
670 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
673 2016-06-14 Richard Biener <rguenther@suse.de>
675 PR tree-optimization/71521
676 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
677 division int_const_binop against zero divisor.
679 2016-06-08 Richard Biener <rguenther@suse.de>
681 PR tree-optimization/71452
682 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
683 type used for the SSA rewrite has enough precision to cover
684 the dynamic type of the location.
686 2016-06-14 Richard Biener <rguenther@suse.de>
688 PR tree-optimization/71522
689 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
690 copying into float copying.
692 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
694 Backport from mainline
695 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
698 * config/avr/avr.c (avr_asm_select_section): Strip off
699 SECTION_DECLARED from flags when calling get_section.
701 2016-07-05 Pat Haugen <pthaugen@us.ibm.com>
703 Backport from mainline
704 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
706 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
707 ('size' attribute): Add '128'.
709 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
710 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
711 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
712 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
713 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
714 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
715 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
716 *trunc<mode>df2_odd): Set size attribute to '128'.
717 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
718 * config/rs6000/power6.md (power6-fp): Include dfp type.
719 * config/rs6000/power7.md (power7-fp): Likewise.
720 * config/rs6000/power8.md (power8-fp): Likewise.
721 * config/rs6000/power9.md: New file.
722 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
723 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
724 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
726 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
727 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
728 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
729 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
730 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
731 dfp_dscri_<mode>): Change type attribute to dfp.
732 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
733 attribute to vecsimple.
734 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
735 and prefetch streams.
736 (rs6000_option_override_internal): Remove temporary code setting
737 tuning to power8. Don't set rs6000_sched_groups for power9.
738 (last_scheduled_insn): Change to rtx_insn *.
739 (divide_cnt, vec_load_pendulum): New variables.
740 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
741 (rs6000_issue_rate): Set issue rate for Power9.
742 (is_power9_pairable_vec_type): New.
743 (power9_sched_reorder2): New.
744 (rs6000_sched_reorder2): Call new function for Power9 specific
746 (insn_must_be_first_in_group): Remove Power9.
747 (insn_must_be_last_in_group): Likewise.
748 (force_new_group): Likewise.
749 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
750 Initialize divide_cnt/vec_load_pendulum.
751 (_rs6000_sched_context, rs6000_init_sched_context,
752 rs6000_set_sched_context): Handle context save/restore of new
755 2016-07-05 Pat Haugen <pthaugen@us.ibm.com>
757 Backport from mainline
758 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
760 * config/rs6000/rs6000.md ('type' attribute): Add
761 veclogical,veccmpfx,vecexts,vecmove insn types.
762 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
763 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
764 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
765 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
766 *nabs<mode>2_hw): Change type to vecmove.
767 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
768 *boolcc<mode>3_internal, *eqv<mode>3_internal,
769 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
770 *ieee_128bit_vsx_abs<mode>2_internal,
771 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
772 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
773 *ieee128_mtvsrd_32bit): Change type to veclogical.
774 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
775 *movdi_internal32, *movdi_internal64): Update insn types.
776 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
777 vsx_extract_<mode>): Change type to veclogical.
778 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
779 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
780 *vsx_sign_extend_si_v2di): Change type to vecexts.
781 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
783 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
784 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
785 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
786 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
787 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
788 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
789 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
790 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
791 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
792 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
793 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
794 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
795 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
796 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
797 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
798 (ppc7450-vecsimple): Add veclogical, vecmove.
799 (ppc7450-veccmp): Add veccmpfx.
800 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
802 (ppc8540_vector_compare): Add veccmpfx.
803 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
804 * config/rs6000/cell.md (cell-fp): Add fpsimple.
805 (cell-vecsimple): Add veclogical, vecmove.
806 (cell-veccmp): Add veccmpfx.
807 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
808 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
810 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
811 * config/rs6000/power4.md (power4-fp): Add fpsimple.
812 (power4-vecsimple): Add veclogical, vecmove.
813 (power4-veccmp): Add veccmpfx.
814 * config/rs6000/power5.md (power5-fp): Add fpsimple.
815 * config/rs6000/power6.md (power6-fp): Add fpsimple.
816 (power6-vecsimple): Add veclogical, vecmove.
817 (power6-veccmp): Add veccmpfx.
818 * config/rs6000/power7.md (power7-fp): Add fpsimple.
819 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
820 * config/rs6000/power8.md (power8-fp): Add fpsimple.
821 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
822 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
823 * config/rs6000/titan.md (titan_fp): Add fpsimple.
824 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
826 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
828 2016-07-05 Kelvin Nilsen <kelvin@gcc.gnu.org>
830 Backport from mainline r237391
831 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
833 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
834 RS6000_BTM_MODULO flag into the set of flags that are considered
835 to be part of the common configuration.
837 2016-07-04 Jakub Jelinek <jakub@redhat.com>
840 * tree.c (attribute_value_equal): Use get_attribute_name instead of
841 directly using TREE_PURPOSE.
843 2016-07-04 Segher Boessenkool <segher@kernel.crashing.org>
845 Backport from mainline
846 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
849 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
850 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
852 2016-07-02 Jakub Jelinek <jakub@redhat.com>
854 Backported from mainline
855 2016-06-28 Jakub Jelinek <jakub@redhat.com>
858 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
859 a constant, force its SUBREG_REG into memory or register instead
862 2016-06-20 Jakub Jelinek <jakub@redhat.com>
865 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
866 returned values and add UN*/LTGT/*ORDERED cases with values matching
867 D operand modifier on vcmp for AVX.
869 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
871 Backport from trunk r237659
872 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
874 * config/rs6000/rs6000.h: Add conditional preprocessing directives
875 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
878 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
881 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
884 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
885 OPTION_MASK_P9_DFORM_VECTOR.
886 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
887 disable -mpower9-dform-vector when using reload.
888 (quad_address_p): Remove 'gpr_p' argument and all associated code.
889 New 'strict' argument. Update all callers. Add strict addressing
891 (rs6000_legitimate_offset_address_p): Remove call to
892 virtual_stack_registers_memory_p.
893 (rs6000_legitimize_reload_address): Add quad address support.
894 (rs6000_legitimate_address_p): Move call to quad_address_p above
895 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
896 to account for new strict usage.
897 (rs6000_output_move_128bit): Adjust quad_address_p args to account
898 for new strict usage.
899 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
901 2016-07-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
903 Backport from mainline
904 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
906 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
907 (BU_FLOAT128_1): Likewise.
909 (COPYSIGNQ): Likewise.
910 (RS6000_BUILTIN_NANQ): Likewise.
911 (RS6000_BUILTIN_NANSQ): Likewise.
912 (RS6000_BUILTIN_INFQ): Likewise.
913 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
914 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
915 (TARGET_FOLD_BUILTIN): New #define.
916 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
917 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
918 (rs6000_fold_builtin): New target hook implementation, handling
919 folding of 128-bit NaNs and infinities.
920 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
921 entries are filled in to avoid problems during bootstrap
922 self-test; define builtins for 128-bit NaNs and infinities.
923 (rs6000_opt_mask): Add entry for float128.
924 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
925 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
926 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
927 (const_str_type_node): New #define.
928 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
929 to a define_expand that dispatches to either copysign<mode>3_soft
930 or copysign<mode>3_hard.
931 (copysign<mode>3_hard): Rename from copysign<mode>3.
932 (copysign<mode>3_soft): New define_insn.
933 * doc/extend.texi: Document new builtins.
935 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
938 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
941 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move): Disallow
944 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
946 Backport from trunk r236992
947 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
949 * config/rs6000/altivec.h (vec_slv): New macro.
950 (vec_srv): New macro.
951 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
952 (UNSPEC_VSRV): New value.
955 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
956 (vsrv): New builtin definition.
957 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
958 define argument types for new builtin.
959 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
961 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
964 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
966 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
969 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
971 Backport from trunk r237390
972 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
974 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
976 (vec_absdb): New macro for vector absolute difference unsigned
978 (vec_absdh): New macro for vector absolute difference unsigned
980 (vec_absdw): New macro for vector absolute difference unsigned word.
981 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
982 (vadu<mode>3): New insn.
983 (*p9_vadu<mode>3): New insn.
984 * config/rs6000/rs6000-builtin.def (vadub): New built-in
986 (vaduh): New built-in definition.
987 (vaduw): New built-in definition.
988 (vadu): New overloaded built-in definition.
989 (vadub): New overloaded built-in definition.
990 (vaduh): New overloaded built-in definition.
991 (vaduw): New overloaded built-in definition.
992 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
993 overloaded vector absolute difference unsigned functions.
994 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
995 the ISA 3.0 vector absolute difference unsigned built-in functions.
997 2016-06-30 David Malcolm <dmalcolm@redhat.com>
999 Backport from trunk r237880.
1000 2016-06-30 David Malcolm <dmalcolm@redhat.com>
1003 * gcc.c (driver::build_option_suggestions): Pass "option" to
1004 add_misspelling_candidates.
1005 * opts-common.c (add_misspelling_candidates): Add "option" param;
1006 use it to avoid adding negated forms for options marked with
1008 * opts.h (add_misspelling_candidates): Add "option" param.
1010 2016-06-30 Jakub Jelinek <jakub@redhat.com>
1013 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
1014 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
1015 first when permuting bitwise operation with rotate. Cast
1016 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
1018 2016-06-30 Martin Liska <mliska@suse.cz>
1020 Parting backport from mainline
1021 2016-06-29 Martin Liska <mliska@suse.cz>
1023 * ipa-inline-transform.c (inline_call): Remove unnecessary call
1024 of build_optimization_node.
1026 2016-06-29 Eric Botcazou <ebotcazou@adacore.com>
1028 Backport from mainline
1029 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
1031 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
1033 2016-06-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1035 Back port from trunk
1036 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1038 * stor-layout.c (layout_type): Move setting complex MODE to
1039 layout_type, instead of setting it ahead of time by the caller.
1041 Back port from trunk
1042 2016-05-11 Alan Modra <amodra@gmail.com>
1044 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
1045 abi_v4_pass_in_fpr): New functions.
1046 (rs6000_function_arg_boundary): Exclude complex IBM long double
1047 from 64-bit alignment when ABI_V4.
1048 (rs6000_function_arg, rs6000_function_arg_advance_1,
1049 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
1051 Back port from trunk
1052 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1054 * machmode.h (mode_complex): Add support to give the complex mode
1056 (GET_MODE_COMPLEX_MODE): Likewise.
1057 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
1058 stored by build_complex_type and gfc_build_complex_type instead of
1059 trying to figure out the appropriate mode based on the size. Raise
1060 an assertion error, if the type was not set.
1061 * genmodes.c (struct mode_data): Add field for the complex type of
1063 (blank_mode): Likewise.
1064 (make_complex_modes): Remember the complex mode created in the
1066 (emit_mode_complex): Write out the mode_complex array to map a
1067 type mode to the complex version.
1068 (emit_insn_modes_c): Likewise.
1069 * tree.c (build_complex_type): Set the complex type to use before
1070 calling layout_type.
1071 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
1072 support for __float128 complex datatypes.
1073 (rs6000_hard_regno_mode_ok): Likewise.
1074 (rs6000_setup_reg_addr_masks): Likewise.
1075 (rs6000_complex_function_value): Likewise.
1076 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
1077 __float128 and __ibm128 complex.
1078 (FLOAT128_IBM_P): Likewise.
1079 (ALTIVEC_ARG_MAX_RETURN): Likewise.
1080 * doc/extend.texi (Additional Floating Types): Document that
1081 -mfloat128 must be used to enable __float128. Document complex
1082 __float128 and __ibm128 support.
1084 2016-06-24 Jakub Jelinek <jakub@redhat.com>
1086 PR tree-optimization/71647
1087 * omp-low.c (lower_rec_input_clauses): Convert
1088 omp_clause_aligned_alignment (c) to size_type_node for the
1089 last argument of __builtin_assume_aligned.
1091 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
1093 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
1095 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
1097 Backport from 2016-06-21 trunk r237639.
1100 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
1101 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
1102 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
1104 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
1107 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
1108 constant addresses if can_create_pseudo_p.
1110 2016-06-21 Jakub Jelinek <jakub@redhat.com>
1112 PR tree-optimization/71588
1113 * tree-ssa-strlen.c (valid_builtin_call): New function.
1114 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
1117 Backported from mainline
1118 2016-06-20 Jakub Jelinek <jakub@redhat.com>
1121 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
1122 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
1123 for conversion of scalar user var to complex type and use the
1124 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
1127 2016-06-16 Jakub Jelinek <jakub@redhat.com>
1129 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
1130 with base of reference to struct.
1132 2016-06-20 Ilya Enkovich <ilya.enkovich@intel.com>
1134 Backport from mainline r237484.
1135 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
1138 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
1139 DECL_CONTEXT for copied arguments.
1141 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
1142 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1144 Backport from 2016-06-20 trunk r237589, r236558.
1147 * config/avr/avr.md (movqi): Handle loading subreg:qi (const,
1148 symbol_ref,label_ref).
1150 2016-06-16 Jakub Jelinek <jakub@redhat.com>
1153 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
1154 (setcc + and peephole2): Likewise.
1156 2016-06-15 Andreas Tobler <andreast@gcc.gnu.org>
1158 Backported from mainline
1159 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
1161 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
1162 FreeBSD 11 and above.
1164 2016-06-15 Ilya Verbin <ilya.verbin@intel.com>
1166 Backport from mainline
1167 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
1171 2016-06-14 Jakub Jelinek <jakub@redhat.com>
1173 Backported from mainline
1174 2016-06-10 Jakub Jelinek <jakub@redhat.com>
1177 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
1178 without LABEL_DECL, set *handled_ops_p to false instead of true.
1180 2016-06-08 Jakub Jelinek <jakub@redhat.com>
1181 Richard Biener <rguenther@suse.de>
1184 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
1185 the same as DECL_P (base0) for indirect_base0. Use equality_code
1186 in one further place.
1188 2016-06-04 Jakub Jelinek <jakub@redhat.com>
1190 PR tree-optimization/71405
1191 * tree-ssa.c (execute_update_addresses_taken): For clobber with
1192 incompatible type, build a new clobber with the right type instead
1193 of building a VIEW_CONVERT_EXPR around it.
1195 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
1197 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
1198 update shared_lookup_references only once after changing operands.
1200 2016-06-13 Richard Biener <rguenther@suse.de>
1202 PR tree-optimization/71505
1203 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
1204 assert match comment.
1206 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1208 Backport from mainline
1209 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1212 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
1215 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
1218 Backport from trunk r237291:
1219 * tree-nested.c (convert_nonlocal_omp_clauses)
1220 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
1221 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
1222 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
1224 Backport from trunk r237291:
1225 * gimplify.c (gimplify_adjust_omp_clauses): Discard
1227 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
1229 Backport from trunk r237290:
1230 * omp-low.c (scan_sharing_clauses): Don't expect
1233 Backport trunk r235964:
1234 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
1236 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
1237 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
1240 2016-06-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1242 Back port from trunk
1243 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1245 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
1246 alternatives, eliminating preferred register class. Add support
1247 for the MTVSRDD instruction in ISA 3.0.
1248 (vsx_splat_v4si_internal): Use splat_input_operand instead of
1249 reg_or_indexed_operand.
1250 (vsx_splat_v4sf_internal): Likewise.
1252 Back port from trunk
1253 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1256 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
1257 for loading up all 0's or all 1's.
1259 Back port from trunk
1260 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1263 * config/rs6000/constraints.md (wE constraint): New constraint
1264 for a vector constant that can be loaded with XXSPLTIB.
1265 (wM constraint): New constraint for a vector constant of a 1's.
1266 (wS constraint): New constraint for a vector constant that can be
1267 loaded with XXSPLTIB and a vector sign extend instruction.
1268 * config/rs6000/predicates.md (xxspltib_constant_split): New
1269 predicates for wE/wS constraints.
1270 (xxspltib_constant_nosplit): Likewise.
1271 (easy_vector_constant): Add support for constants that can be
1272 loaded via XXSPLTIB.
1273 (splat_input_operand): Add support for ISA 3.0 word splat operations.
1274 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
1275 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
1276 instruction and possibly with a sign extension.
1277 (output_vec_const_move): Add support for XXSPLTIB. If we are
1278 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
1279 instead of XXLXOR/XXLORC.
1280 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
1282 (rs6000_legitimize_reload_address): Likewise.
1283 (rs6000_output_move_128bit): Use output_vec_const_move to emit
1285 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
1286 combine VSX_M and VSX_M2 into one iterator.
1288 (VSINT_84): New iterators for loading constants with XXSPLTIB.
1289 (VSINT_842): Likewise.
1290 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
1291 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
1292 XXSPLTIB instruction.
1293 (xxspltib_<mode>_nosplit): Likewise.
1294 (xxspltib_<mode>_split): New insn to load up constants with
1295 XXSPLTIB and a sign extend instruction.
1296 (vsx_mov<mode>): Replace single move that handled all vector types
1297 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
1298 moves (when -mvsx-timode is in effect) into the main vector
1299 moves. Eliminate separate moves for <VSr> <VSa>, where the
1300 preferred register class (<VSr>) is listed first, and the
1301 secondary register class (<VSa>) is listed second with a '?' to
1302 discourage use. Prefer loading 0/-1 in any VSX register for ISA
1303 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
1304 that if the register was involved in a slow operation, the
1305 clear/set operation does not wait for the slow operation to
1306 finish. Adjust the length attributes for 32-bit mode. Use
1307 rs6000_output_move_128bit and drop the use of the string
1308 instructions for 32-bit movti when -mvsx-timode is in effect. Use
1309 spacing so that the alternatives and attributes don't generate
1310 long lines, and put things in columns, so that it is easier to
1311 match up the operands and attributes with the insn alternatives.
1312 (vsx_mov<mode>_64bit): Likewise.
1313 (vsx_mov<mode>_32bit): Likewise.
1314 (vsx_movti_64bit): Fold movti into normal vector moves.
1315 (vsx_movti_32bit): Likewise.
1316 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
1318 (vsx_splat_v4si_internal): Likewise.
1319 (vsx_splat_v4sf_internal): Likewise.
1320 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
1321 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
1322 extend vector elements.
1323 (vsx_sign_extend_hi_<mode>): Likewise.
1324 (vsx_sign_extend_si_v2di): Likewise.
1325 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
1327 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
1328 constraints. Add trailing period to wL documentation.
1330 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
1332 Backport from mainline
1333 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
1335 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
1336 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
1338 2016-06-08 Eric Botcazou <ebotcazou@adacore.com>
1340 Backport from mainline
1341 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1343 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
1344 Include the M7 SPARC DFA scheduler.
1345 New attribute v3pipe.
1346 Annotate insns with v3pipe where appropriate.
1347 Define cpu_feature vis4.
1348 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
1349 Add (V8QI "8") to vbits.
1350 Add insns {add,sub}v8qi3
1351 Add insns ss{add,sub}v8qi3
1352 Add insns us{add,sub}{v8qi,v4hi}3
1353 Add insns {min,max}{v8qi,v4hi,v2si}3
1354 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
1355 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
1356 * config/sparc/niagara4.md: Add a comment explaining the
1357 discrepancy between the documented latenty numbers and the
1359 * config/sparc/niagara7.md: New file.
1360 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
1361 supports SPARC5 and VIS 4.0 instructions.
1362 * configure: Regenerate.
1363 * config.in: Likewise.
1364 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
1365 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
1366 TARGET_CPU_niagara7.
1367 (ASM_CPU64_DEFAULT_SPEC): Likewise.
1368 (CPP_CPU_SPEC): Handle niagara7.
1369 (ASM_CPU_SPEC): Likewise.
1370 * config/sparc/sparc-opts.h (processor_type): Add
1372 (mvis4): New option.
1373 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
1374 (AS_NIAGARA7_FLAG): Define.
1375 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
1376 (CPP_CPU64_DEFAULT_SPEC): Likewise.
1377 (CPP_CPU_SPEC): Handle niagara7.
1378 (ASM_CPU_SPEC): Likewise.
1379 * config/sparc/sparc.c (niagara7_costs): Define.
1380 (sparc_option_override): Handle niagara7 and adjust cache-related
1381 parameters with better values for niagara cpus. Also support VIS4.
1382 (sparc32_initialize_trampoline): Likewise.
1383 (sparc_use_sched_lookahead): Likewise.
1384 (sparc_issue_rate): Likewise.
1385 (sparc_register_move_cost): Likewise.
1386 (dump_target_flag_bits): Support VIS4.
1387 (sparc_vis_init_builtins): Likewise.
1388 (sparc_builtins): Likewise.
1389 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
1391 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
1393 * config/sparc/sparc.opt (sparc_processor_type): New value
1395 * config/sparc/visintrin.h (__attribute__): Prototypes for the
1397 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
1399 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
1402 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
1404 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
1406 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
1408 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
1409 cpu_32, cpu_64, tune_32 and tune_64.
1410 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
1412 2016-06-08 Ilya Verbin <ilya.verbin@intel.com>
1414 Backport from mainline
1415 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
1417 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
1418 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
1419 * config/i386/i386.c (enum ix86_builtins): Add
1420 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
1421 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
1422 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
1423 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
1424 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
1425 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
1426 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
1427 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
1428 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
1429 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
1430 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
1431 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
1432 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
1433 __builtin_ia32_cvtps2dq512_mask.
1434 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
1435 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
1436 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
1437 * config/i386/sse.md
1438 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
1440 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
1441 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
1443 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
1444 (avx512f_vec_pack_sfix_v8df): New define_expand.
1445 (avx512f_roundpd512): Rename to ...
1446 (avx512f_round<castmode>512): ... this. Change iterator.
1447 (avx512f_roundps512_sfix): New define_expand.
1448 (round<mode>2_sfix): Change iterator.
1450 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
1452 Backport from mainline
1453 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
1455 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1458 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
1461 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1462 Copy op1 RTX to avoid invalid sharing.
1463 (ix86_expand_vector_move_misalign): Ditto.
1465 2016-06-06 Jakub Jelinek <jakub@redhat.com>
1467 PR tree-optimization/71259
1468 * tree-vect-slp.c (vect_get_constant_vectors): For
1469 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1470 one for constant op, and use COND_EXPR for non-constant.
1472 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1475 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1478 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
1480 2016-06-05 Uros Bizjak <ubizjak@gmail.com>
1482 Backport from mainline
1483 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
1484 Jocelyn Mayer <l_indien@magic.fr>
1487 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
1488 detect processor family for signature_CENTAUR_ebx.
1489 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
1490 signature_CENTAUR_ebx.
1491 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
1492 <default>: Pass x86-64 for has_longmode.
1494 2016-06-03 Jakub Jelinek <jakub@redhat.com>
1497 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
1498 to noreturn e->callee->decl that has void return type and void
1499 arguments, adjust gimple_call_fntype and remove lhs even if it had
1500 previously addressable type.
1502 2016-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1504 Back port from trunk
1505 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
1507 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
1508 for ISA 3.0 min/max support.
1509 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
1510 conditional move support.
1511 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
1512 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
1514 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
1515 conditional moves where the comparison type is different from move
1517 (fp_minmax): New code iterator for smin/smax.
1518 (minmax): New code attributes for min/max.
1519 (SMINMAX): Likewise.
1520 (smax<mode>3): Combine min, max insns into one insn using the
1521 fp_minmax code iterator. Add support for ISA 3.0 min/max
1522 instructions that don't need -ffast-math.
1523 (s<minmax><mode>3): Likewise.
1524 (smax<mode>3_vsx): Likewise.
1525 (smin<mode>3): Likewise.
1526 (s<minmax><mode>3_vsx): Likewise.
1527 (smin<mode>3_vsx): Likewise.
1528 (pre-VSX min/max splitters): Likewise.
1529 (s<minmax><mode>3_fpr): Likewise.
1530 (movsfcc): Rewrite floating point conditional moves to combine
1531 SFmode/DFmode into a single insn.
1532 (mov<mode>cc): Likewise.
1533 (movdfcc): Likewise.
1534 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
1535 SFDF2 iterators to handle all combinations.
1536 (fseldfsf4): Likewise.
1537 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
1538 (fseldfdf4): Likewise.
1539 (fselsfdf4): Likewise.
1540 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
1541 comparison instructions that set a 0/-1 mask, and use it for
1542 floating point conditional move via XXSEL.
1543 (fpmask<mode>): Likewise.
1544 (xxsel<mode>): Likewise.
1545 * config/rs6000/predicates.md (min_max_operator): Delete, no
1547 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
1548 instructions that generate a 0/-1 mask for use with XXSEL.
1549 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
1550 say whether floating point min/max is available, either through
1551 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
1552 (TARGET_MINMAX_DF): Likewise.
1554 Back port from trunk
1555 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
1557 * config/rs6000/predicate.md (all_ones_constant): New predicate
1558 for vector constant with all 1's set.
1560 2016-06-02 Kelvin Nilsen <kelvin@gcc.gnu.org>
1562 Back port from trunk
1563 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
1565 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
1566 (UNSPEC_DARN_32): New unspec constant.
1567 (UNSPEC_DARN_RAW): New unspec constant.
1568 (darn_32): New instruction.
1569 (darn_raw): New instruction.
1570 (darn): New instruction.
1571 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
1572 support and documentation for this macro.
1573 (BU_P9_MISC_1): New macro definition.
1574 (BU_P9_64BIT_MISC_0): New macro definition.
1575 (BU_P9_MISC_0): New macro definition.
1576 (darn_32): New builtin definition.
1577 (darn_raw): New builtin definition.
1578 (darn): New builtin definition.
1579 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
1580 RS6000_BUILTIN_0 directives to surround each occurrence of
1581 #include "rs6000-builtin.def".
1582 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
1583 RS6000_BTM_64BIT flags to the returned mask, depending on
1585 (def_builtin): Correct an error in the assignments made to the
1586 debugging variable attr_string.
1587 (rs6000_expand_builtin): Add support for no-operand built-in
1589 (builtin_function_type): Remove fatal_error assertion that is no
1591 (rs6000_common_init_builtins): Add support for no-operand built-in
1593 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
1595 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
1597 (RS6000_BTM_64BIT): New macro definition.
1598 * doc/extend.texi: Document __builtin_darn (void),
1599 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
1602 2016-06-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1604 Back port from trunk
1605 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1608 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
1609 ISA 3.0 xxperm fusion alternative.
1610 (altivec_vperm_v8hiv16qi): Likewise.
1611 (altivec_vperm_<mode>_uns_internal): Likewise.
1612 (vperm_v8hiv4si): Likewise.
1613 (vperm_v16qiv8hi): Likewise.
1615 Back port from trunk
1616 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1617 Kelvin Nilsen <kelvin@gcc.gnu.org>
1619 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
1620 vpermr/xxpermr on ISA 3.0.
1621 (altivec_expand_vec_perm_le): Likewise.
1622 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
1623 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
1626 Back port from trunk
1627 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1629 * config/rs6000/altivec.md (VParity): New mode iterator for vector
1630 parity built-in functions.
1631 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
1633 (p9v_parity<mode>2): Likewise.
1634 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
1636 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
1637 (parity<mode>2): ISA 3.0 expander for vector parity.
1638 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
1640 (BU_P9_64BIT_MISC_0): Likewise.
1641 (BU_P9_MISC_0): Likewise.
1642 (BU_P9V_AV_1): Likewise.
1643 (BU_P9V_AV_2): Likewise.
1644 (BU_P9V_AV_3): Likewise.
1645 (BU_P9V_AV_P): Likewise.
1646 (BU_P9V_VSX_1): Likewise.
1647 (BU_P9V_OVERLOAD_1): Likewise.
1648 (BU_P9V_OVERLOAD_2): Likewise.
1649 (BU_P9V_OVERLOAD_3): Likewise.
1650 (VCTZB): Add vector count trailing zeros support.
1654 (VPRTYBD): Add vector parity support.
1655 (VPRTYBQ): Likewise.
1656 (VPRTYBW): Likewise.
1657 (VCTZ): Add overloaded vector count trailing zeros support.
1658 (VPRTYB): Add overloaded vector parity support.
1659 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1660 overloaded vector count trailing zeros and parity instructions.
1661 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
1662 vector parity support.
1663 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
1664 trailing zeros support.
1665 (vec_cntlz): Likewise.
1666 (vec_vctzb): Likewise.
1667 (vec_vctzd): Likewise.
1668 (vec_vctzh): Likewise.
1669 (vec_vctzw): Likewise.
1670 (vec_vprtyb): Add ISA 3.0 vector parity support.
1671 (vec_vprtybd): Likewise.
1672 (vec_vprtybw): Likewise.
1673 (vec_vprtybq): Likewise.
1674 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1675 the ISA 3.0 vector count trailing zeros and vector parity built-in
1678 Back port from trunk
1679 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1681 * config/rs6000/altivec.md (VNEG iterator): New iterator for
1682 VNEGW/VNEGD instructions.
1683 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
1684 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
1685 support for ISA 3.0 VNEGW/VNEGD instructions.
1687 Back port from trunk
1688 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1690 * config/rs6000/predicates.md (quad_memory_operand): Move most of
1691 the code into quad_address_p and call it to share code with
1692 vsx_quad_dform_memory_operand.
1693 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
1695 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
1696 bit instead of being a separate word. Split -mpower9-dform into
1697 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
1698 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
1699 for the register class supporting 128-bit quad word memory offsets.
1700 (mode_supports_vsx_dform_quad): Helper function to return if the
1701 register class uses quad word memory offsets.
1702 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
1703 (rs6000_debug_reg_global): Always print if we are using LRA or not.
1704 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
1705 instructions are enabled, set up the appropriate addr_masks for
1707 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
1708 -mpower9-dform-scalar, instead of -mpower9-dform.
1709 (rs6000_option_override_internal): Split -mpower9-dform into two
1710 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
1711 -mpower9-dform switch sets or clears both. If we are not using
1712 the LRA register allocator, do not enable -mpower9-dform-vector by
1713 default. If we are using LRA, enable -mpower9-dform-vector and
1714 -mvsx-timode if it is appropriate. Issue a warning if either
1715 -mpower9-dform-vector or -mvsx-timode are explicitly used without
1717 (quad_address_offset_p): New helper function to return if the
1718 offset is legal for quad word memory instructions.
1719 (quad_address_p): New function to determin if GPR or vector
1720 register quad word memory addresses are legal.
1721 (mem_operand_gpr): Validate quad word address offsets.
1722 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
1723 d-form (register + offset) instructions.
1724 (offsettable_ok_by_alignment): Likewise.
1725 (rs6000_legitimate_offset_address_p): Likewise.
1726 (legitimate_lo_sum_address_p): Likewise.
1727 (rs6000_legitimize_address): Likewise.
1728 (rs6000_legitimize_reload_address): Add more debug statements for
1730 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
1731 d-form instructions.
1732 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
1733 d-form instructions. Distinguish different cases in debug
1734 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
1735 d-form instructions.
1736 (rs6000_preferred_reload_class): Likewise.
1737 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
1738 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
1739 of the ISA 2.06 indexed memory instructions.
1740 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
1741 use them to save/restore the saved vector registers instead of
1742 using Altivec instructions.
1743 (rs6000_emit_epilogue): Likewise.
1744 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
1745 (rs6000_opt_masks): Split -mpower9-dform into
1746 -mpower9-dform-scalar and -mpower9-dform-vector.
1747 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
1749 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
1750 ISA 3.0 vector indexed memory instructions, and fold the code into
1751 the normal mov<mode> patterns.
1752 (p9_vecstore_<mode>): Likewise.
1753 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
1755 (vsx_movti_64bit): Likewise.
1756 (vsx_movti_32bit): Likewise.
1757 * config/rs6000/constraints.md (wO constraint): New constraint for
1758 ISA 3.0 vector d-form support.
1759 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
1760 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
1761 include -mpower9-dform-vector until we switch over to LRA.
1762 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
1763 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
1764 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
1765 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
1766 for -mpower9-dform and -mlra.
1767 * doc/md.texi (wO constraint): Document wO constraint.
1769 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
1771 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
1772 the factor for live Phi nodes.
1774 2016-06-01 Jakub Jelinek <jakub@redhat.com>
1777 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
1778 around creation of the temporary.
1780 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
1782 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
1783 into account live statements for mask producers.
1785 2016-05-31 Richard Biener <rguenther@suse.de>
1787 Backport from mainline
1788 2016-05-11 Richard Biener <rguenther@suse.de>
1791 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
1792 (dwarf2out_finish): Move retry_incomplete_types call ...
1793 (dwarf2out_early_finish): ... here.
1795 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1798 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
1799 NULL_TREE early if NEON is not available. Remove now redundant check
1800 in ARM_CHECK_BUILTIN_MODE.
1802 2016-05-31 Tom de Vries <tom@codesourcery.com>
1805 2016-05-31 Tom de Vries <tom@codesourcery.com>
1807 PR tree-optimization/69068
1808 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
1809 phis with more than two args.
1811 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
1813 Backport from mainline
1814 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
1816 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
1817 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
1820 2016-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1822 Backport from mainline
1823 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1825 * config/rs6000/altivec.h: Change definitions of vec_xl and
1827 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
1828 (LD_ELEMREV_V2DI): New.
1829 (LD_ELEMREV_V4SF): New.
1830 (LD_ELEMREV_V4SI): New.
1831 (LD_ELEMREV_V8HI): New.
1832 (LD_ELEMREV_V16QI): New.
1833 (ST_ELEMREV_V2DF): New.
1834 (ST_ELEMREV_V2DI): New.
1835 (ST_ELEMREV_V4SF): New.
1836 (ST_ELEMREV_V4SI): New.
1837 (ST_ELEMREV_V8HI): New.
1838 (ST_ELEMREV_V16QI): New.
1841 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1842 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
1843 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
1844 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
1845 (altivec_expand_builtin): Add handling for
1846 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
1847 (rs6000_invalid_builtin): Add error-checking for
1848 RS6000_BTM_P9_VECTOR.
1849 (altivec_init_builtins): Define builtins used to implement vec_xl
1851 (rs6000_builtin_mask_names): Define power9-vector.
1852 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
1853 (RS6000_BTM_P9_VECTOR): Define.
1854 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
1855 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
1856 (vsx_ld_elemrev_v2df): Likewise.
1857 (vsx_ld_elemrev_v4sf): Likewise.
1858 (vsx_ld_elemrev_v4si): Likewise.
1859 (vsx_ld_elemrev_v8hi): Likewise.
1860 (vsx_ld_elemrev_v16qi): Likewise.
1861 (vsx_st_elemrev_v2df): Likewise.
1862 (vsx_st_elemrev_v2di): Likewise.
1863 (vsx_st_elemrev_v4sf): Likewise.
1864 (vsx_st_elemrev_v4si): Likewise.
1865 (vsx_st_elemrev_v8hi): Likewise.
1866 (vsx_st_elemrev_v16qi): Likewise.
1867 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
1870 2016-05-30 Richard Biener <rguenther@suse.de>
1872 Backport from mainline
1873 2016-05-11 Richard Biener <rguenther@suse.de>
1876 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
1877 if the langhook insists on it.
1878 * fold-const.c (make_bit_field_ref): Add arg for the original
1879 reference and preserve its alias-set.
1880 (decode_field_reference): Take exp by reference and adjust it
1881 to the original memory reference.
1882 (optimize_bit_field_compare): Adjust callers.
1883 (fold_truth_andor_1): Likewise.
1885 2016-05-13 Jakub Jelinek <jakub@redhat.com>
1888 * fold-const.c (fold_checksum_tree): Allow modification
1889 of TYPE_ALIAS_SET during folding.
1891 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
1893 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
1894 (visium_expand_copysign): Use gen_int_mode directly.
1895 (visium_compute_frame_size): Minor tweaks.
1897 2016-05-30 Tom de Vries <tom@codesourcery.com>
1900 2016-05-30 Tom de Vries <tom@codesourcery.com>
1902 PR tree-optimization/69067
1903 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
1905 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
1907 * config/visium/visium-protos.h (split_double_move): Rename into...
1908 (visium_split_double_move): ...this.
1909 (visium_split_double_add): Declare.
1910 * config/visium/visium.c (split_double_move): Rename into...
1911 (visium_split_double_move): ...this.
1912 (visium_split_double_add): New function.
1913 (visium_expand_copysign): Renumber operands for consistency.
1914 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
1915 (DFmode move splitter): Likewise.
1916 (*addi3_insn): Split by means of visium_split_double_add.
1917 (*adddi3_insn_flags): Delete.
1918 (*plus_plus_sltu<subst_arith>): New insn.
1919 (*subdi3_insn): Split by means of visium_split_double_add.
1920 (subdi3_insn_flags): Delete.
1921 (*minus_minus_sltu<subst_arith>): New insn.
1922 (*negdi2_insn): Split by means of visium_split_double_add.
1923 (*negdi2_insn_flags): Delete.
1925 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
1927 Backport from mainline r236810.
1928 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
1931 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
1934 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
1936 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
1937 redundant test and bail out if the type of the new operand is not
1938 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
1940 2016-05-24 Martin Sebor <msebor@redhat.com>
1943 * tree.h (complete_or_array_type_p): New inline function.
1945 2016-05-24 Jakub Jelinek <jakub@redhat.com>
1947 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
1948 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
1949 rather than X86_TUNE_AVOID_4BYTE_PREFIXES. Use SSE_REGS instead
1950 of ALL_SSE_REGS. Return SSE_REGS also when TARGET_AVX.
1952 2016-05-24 Jakub Jelinek <jakub@redhat.com>
1955 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1956 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1957 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
1958 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
1959 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
1961 2016-05-23 Martin Jambor <mjambor@suse.cz>
1963 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
1964 default block if a PHI node in the original one would be resized.
1966 2016-05-23 Martin Jambor <mjambor@suse.cz>
1968 PR tree-optimization/70884
1969 * tree-sra.c (initialize_constant_pool_replacements): Do not check
1970 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
1971 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
1972 of constant pool data as a reason for scalarization.
1974 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
1976 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
1977 for naked functions.
1978 (thumb1_expand_prologue): Likewise.
1980 2016-05-20 Jakub Jelinek <jakub@redhat.com>
1983 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
1984 calls if the LHS is variable length or has addressable type.
1985 If targets[0]->decl is a noreturn call with void return type and
1986 zero arguments, adjust fntype and remove lhs in that case.
1988 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
1990 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
1991 force pending loads from memory.
1993 2016-05-19 Marek Polacek <polacek@redhat.com>
1995 Backport from mainline
1996 2016-05-19 Marek Polacek <polacek@redhat.com>
1998 PR tree-optimization/71031
1999 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
2000 condition and adjust the code a bit.
2002 2016-05-19 Martin Jambor <mjambor@suse.cz>
2005 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
2006 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
2008 2016-05-19 Martin Jambor <mjambor@suse.cz>
2011 * ipa-inline.h (condition): New field size.
2012 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
2013 for comaprison and store it into the new condition.
2014 (evaluate_conditions_for_known_args): Use condition size to check
2015 access sizes for all but CHANGED conditions.
2016 (unmodified_parm_1): New parameter size_p, store access size into it.
2017 (unmodified_parm): Likewise.
2018 (unmodified_parm_or_parm_agg_item): Likewise.
2019 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
2020 (set_cond_stmt_execution_predicate): Extract access sizes and store
2022 (set_switch_stmt_execution_predicate): Likewise.
2023 (will_be_nonconstant_expr_predicate): Likewise.
2024 (will_be_nonconstant_predicate): Likewise.
2025 (inline_read_section): Stream condition size.
2026 (inline_write_summary): Likewise.
2027 * lto-streamer.h (LTO_minor_version): Bump.
2029 2016-05-18 Martin Liska <mliska@suse.cz>
2031 Backport from mainline
2032 2016-05-18 Martin Liska <mliska@suse.cz>
2035 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
2038 2016-05-18 Jakub Jelinek <jakub@redhat.com>
2041 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
2042 lhs if it has TREE_ADDRESSABLE type.
2044 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
2047 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
2048 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
2050 2016-05-17 Thomas Schwinge <thomas@codesourcery.com>
2052 Backport trunk r235748:
2054 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
2055 (nvptx_function_value): Assert non-NULL cfun.
2057 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2059 Backport from mainline
2060 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2063 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
2065 2016-05-16 Martin Jambor <mjambor@suse.cz>
2067 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
2068 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
2070 2016-05-16 Martin Jambor <mjambor@suse.cz>
2073 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
2074 the outlined kernel function.
2076 2016-05-16 James Norris <jnorris@codesourcery.com>
2078 Backport from mainline r236098.
2079 2016-05-10 James Norris <jnorris@codesourcery.com>
2082 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
2083 if offloading is enabled and -fopenacc or -fopenmp is specified.
2084 (CRTOFFLOADEND): Likewise.
2085 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
2086 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
2088 2016-05-16 Alan Modra <amodra@gmail.com>
2091 2016-05-10 Alan Modra <amodra@gmail.com>
2093 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
2094 regrename modifying insns saving lr before __morestack call.
2095 * config/rs6000/rs6000.md (split_stack_return): Similarly for
2096 insns restoring lr after __morestack call.
2098 2016-05-13 Richard Biener <rguenther@suse.de>
2100 Backport from mainline
2101 2016-04-27 Richard Biener <rguenther@suse.de>
2104 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
2105 aggregate_value_p to determine if a function result is
2106 returned by reference.
2108 2016-05-06 Richard Biener <rguenther@suse.de>
2111 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
2113 2016-05-06 Richard Biener <rguenther@suse.de>
2116 * fold-const.c (split_tree): Always convert to the original type
2119 2016-05-12 Martin Liska <mliska@suse.cz>
2121 Backport from mainline
2122 2016-05-10 Martin Liska <mliska@suse.cz>
2124 * tree-inline.c (remap_dependence_clique): Do not remap
2125 debugging statements.
2127 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
2129 Backport from mainline r236171.
2130 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
2132 PR tree-optimization/71006
2133 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2134 consider COND_EXPR as a mask producer.
2136 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2138 Backport from mainline
2139 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2142 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
2143 when popping the PC and within an interrupt handler routine.
2144 Add missing tab to output of "ldmfd".
2145 (output_return_instruction): Output LDMFD with SP update rather
2146 than POP when returning from interrupt handler.
2148 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
2150 Backport from mainline r236088.
2151 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2154 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
2155 calls with type casted fndecl.
2157 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
2159 Backport from mainline r236086.
2160 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
2162 PR tree-optimization/70876
2163 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
2164 * gcc/calls.c (initialize_argument_information): Bind bounds
2165 with corresponding args passed by reference.
2167 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2169 Backport from mainline
2170 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2173 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
2174 code for a zero scale factor.
2175 (vsx_xvcvdpuxds_scale): Likewise.
2177 2016-05-10 Jakub Jelinek <jakub@redhat.com>
2179 Backported from mainline
2180 2016-05-03 Jakub Jelinek <jakub@redhat.com>
2182 PR tree-optimization/70916
2183 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
2184 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
2186 2016-05-10 Yuri Rumyantsev <ysrumyan@gmail.com>
2188 Backport from mainline r235962.
2189 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
2192 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
2193 loop latch destination.
2195 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2197 Backport from mainline
2198 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2200 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
2201 ("*fixuns_truncdfdi2_z13")
2202 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
2203 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
2204 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
2206 2016-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2208 Backport from mainline
2209 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
2211 * config/rtems.h (LIB_SPEC): Add -latomic.
2213 2016-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
2215 Backport from mainline
2216 2016-04-27 Joel Sherrill <joel@rtems.org>
2218 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
2219 xilink.ld and flags not relevant to RTEMS.
2221 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
2223 * config/i386/i386.md (absneg splitters with general regs): Use
2224 general_reg_operand predicate.
2225 (btsq peephole2): Use x86_64_immediate_operand to check if new
2226 value is suitable for immediate operand. Generate emitted insn
2227 using RTL expressions.
2228 (btcq peephole2): Ditto.
2229 (btrq peephole2): Ditto. Generate correct immediate operand
2232 2016-05-07 Tom de Vries <tom@codesourcery.com>
2235 2016-05-07 Tom de Vries <tom@codesourcery.com>
2237 PR tree-optimization/70956
2238 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
2241 2016-05-06 Marek Polacek <polacek@redhat.com>
2243 Backported from mainline
2244 2016-05-06 Marek Polacek <polacek@redhat.com>
2247 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
2249 2016-05-06 Marek Polacek <polacek@redhat.com>
2251 Backported from mainline
2252 2016-04-29 Marek Polacek <polacek@redhat.com>
2253 Jakub Jelinek <jakub@redhat.com>
2256 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
2257 TARGET_EXPR_SLOT as a base.
2259 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
2261 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
2263 (compute_samebase_partition_bases): Fix typo.
2265 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
2267 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
2268 occurence with frame_offset_ ones.
2270 2016-04-28 Jakub Jelinek <jakub@redhat.com>
2273 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
2274 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
2275 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
2276 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
2277 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
2279 2016-04-28 Eric Botcazou <ebotcazou@adacore.com>
2281 Backport from mainline
2282 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
2285 * stor-layout.h (internal_reference_types): Delete.
2286 * stor-layout.c (reference_types_internal): Likewise.
2287 (internal_reference_types): Likewise.
2288 (layout_type) <REFERENCE_TYPE>: Adjust.
2290 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2292 Backport from mainline
2293 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2295 * config/rs6000/rs6000-builtin.def: Correct pasto error for
2296 stxvd2x and stxvw4x built-in functions.
2298 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
2300 Backported from mainline
2301 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
2304 * config/i386/predicates.md (call_insn_operand): Replace
2305 sibcall_memory_operand with memory_operand.
2307 2016-04-27 Richard Biener <rguenther@suse.de>
2310 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
2311 function cummulating used_from_other_partition, externally_visible
2312 and force_output from aliases.
2313 (refered_from_nonlocal_var): Likewise.
2314 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
2315 node flags properly.
2317 2016-04-27 Jakub Jelinek <jakub@redhat.com>
2319 Backported from mainline
2320 2016-04-23 Jakub Jelinek <jakub@redhat.com>
2323 * cfgexpand.c (expand_stack_vars): Fix typo.
2325 2016-04-19 Jakub Jelinek <jakub@redhat.com>
2328 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
2329 implicitly linear or lastprivate iterator on the outer context.
2331 2016-04-27 Kirill Yukhin <kirill.yukhin@intel.com>
2334 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
2335 Extract AVX-512BW constraint from AVX.
2337 2016-04-27 Jakub Jelinek <jakub@redhat.com>
2339 * BASE-VER: Set to 6.1.1.
2341 2016-04-27 Release Manager
2343 * GCC 6.1.0 released.
2345 2016-04-25 Richard Biener <rguenther@suse.de>
2347 PR tree-optimization/70780
2348 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
2350 (compute_antic): Mark blocks with abnormal preds as visited as
2351 they have a final empty antic-in solution already.
2353 2016-04-22 H.J. Lu <hongjiu.lu@intel.com>
2355 Backport from mainline
2356 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
2358 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
2360 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2362 * system.h (list, map, set, vector): Include conditionally.
2363 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
2364 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
2365 * ipa-icf.c (INCLUDE_LIST): Define.
2366 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
2367 * config/sh/sh.c (INCLUDE_VECTOR): Define.
2368 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
2369 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
2370 * cp/logic.cc (INCLUDE_LIST): Define.
2371 * fortran/trans-common.c (INCLUDE_MAP): Define.
2373 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2375 * auto-profile.c: Remove <string.h> include.
2376 * ipa-icf-gimple.c: Remove <list> include.
2377 * diagnostic.c: Remove <new> include.
2378 * genmatch.c: Likewise.
2379 * pretty-print.c: Likewise.
2380 * toplev.c: Likewise
2381 * c/c-objc-common.c: Likewise.
2382 * cp/error.c: Likewise.
2383 * fortran/error.c: Likewise.
2385 2016-04-21 Richard Biener <rguenther@suse.de>
2388 * fold-const.c (fold_comparison): Return properly typed
2391 2016-04-20 Andrew Pinski <apinski@cavium.com>
2392 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2395 * config/aarch64/aarch64.md (sibcall): Force call
2396 address to be DImode for ILP32.
2397 (sibcall_value): Likewise.
2399 2016-04-20 Marek Polacek <polacek@redhat.com>
2401 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
2404 2016-04-20 Marek Polacek <polacek@redhat.com>
2406 PR tree-optimization/70725
2407 * tree-if-conv.c (is_false_predicate): New function.
2408 (predicate_mem_writes): Use it.
2410 2016-04-20 Richard Biener <rguenther@suse.de>
2412 PR tree-optimization/70726
2413 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
2414 shift amounts from a pattern stmt operand.
2416 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2419 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
2420 stack_restore_from_fpr pattern when restoring r15.
2421 (s390_optimize_prologue): Strip away the memory barrier in the
2422 parallel when trying to get rid of restore insns.
2423 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
2424 definition for loading the stack pointer from an FPR. Compared to
2425 the normal move insn this pattern includes a full memory barrier.
2427 2016-04-19 Richard Biener <rguenther@suse.de>
2429 PR tree-optimization/70724
2430 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
2431 restoring out from ...
2432 (free_scc_vn): ... here.
2433 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
2434 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
2436 (pass_fre::execute): Restore SSA info.
2438 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2440 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2442 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
2444 Mention Solaris 11 packaging changes.
2445 Update gas and gld requirements.
2446 Remove reference to pre-Solaris 10 bug.
2447 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2449 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2452 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
2455 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2456 armv8.1-a and armv8.1-a+crc.
2458 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
2460 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2461 unless compiling with at least GCC-4.8.
2463 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2466 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
2467 Fix mode size check.
2469 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2471 * BASE-VER: Set to 6.0.1.
2472 * DEV-PHASE: Set to prerelease.
2474 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
2476 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2478 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2480 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2481 architecture revisions.
2483 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
2485 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2486 * config/i386/i386.c (ix86_using_red_zone): No longer static.
2487 * config/i386/i386.md (stack decrement to push peepholes): Guard
2488 with !x86_using_red_zone ().
2490 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2493 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2494 to dump_generic_node.
2495 (NIY): Pass also flags to do_niy.
2497 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
2499 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2500 (simd_clone_vector_of_formal_parm_types)
2501 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2502 (simd_clone_mangle, simd_clone_create)
2503 (simd_clone_adjust_return_type, create_tmp_simd_array)
2504 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2505 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2506 (ipa_simd_modify_function_body, simd_clone_linear_addend)
2507 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2508 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2509 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
2511 * omp-simd-clone.c: ... this new file.
2512 (simd_clone_vector_of_formal_parm_types): Make it static.
2513 * Makefile.in (OBJS): Add omp-simd-clone.o.
2515 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2518 * config/i386/sse.md: Use proper memory operand
2522 2016-04-15 Richard Biener <rguenther@suse.de>
2523 Alan Modra <amodra@gmail.com>
2525 PR tree-optimization/70130
2526 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2527 when alignment stays not the same and no not use the realign
2530 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2533 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2534 direct move handlers for KFmode. Change TFmode handlers test from
2535 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2537 2016-04-14 Jakub Jelinek <jakub@redhat.com>
2540 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2541 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2542 (inlined_polymorphic_ctor_dtor_block_p): Use it.
2543 * tree-ssa-live.c (remove_unused_scope_block_p): When
2544 in_ctor_dtor_block, avoid discarding not just BLOCKs with
2545 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2546 block_ultimate_origin is FUNCTION_DECL.
2547 (remove_unused_locals): If current_function_decl is
2548 polymorphic_ctor_dtor_p, pass initial true to
2549 remove_unused_scope_block_p' is_ctor_dtor_block.
2551 2016-04-14 Martin Sebor <msebor@redhat.com>
2556 * doc/extend.texi (Variable Length): Revert.
2558 2016-04-14 Marek Polacek <polacek@redhat.com>
2559 Jan Hubicka <hubicka@ucw.cz>
2562 * tree.c (verify_type): Disable the canonical type of main variant
2565 2016-04-14 Jason Merrill <jason@redhat.com>
2567 * cfgexpand.c, expr.c: Revert previous change.
2569 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2572 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2573 when building a mem ref for the incoming reduction variable.
2575 2016-04-14 Richard Biener <rguenther@suse.de>
2577 PR tree-optimization/70614
2578 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2579 loop if the evolution dropped to chrec_dont_know.
2580 (interpret_condition_phi): Likewise.
2582 2016-04-14 Richard Biener <rguenther@suse.de>
2584 PR tree-optimization/70623
2585 * tree-ssa-pre.c (changed_blocks): Make global ...
2586 (compute_antic): ... local here. Move and fix worklist
2587 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2588 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
2589 worklist handling, dump when ANTIC_IN changed.
2590 (compute_partial_antic_aux): Remove worklist handling.
2591 (init_pre): Do not compute post dominators. Add a comment about
2592 the CFG order chosen.
2593 (fini_pre): Do not free post dominators.
2595 2016-04-13 Martin Sebor <msebor@redhat.com>
2600 * doc/extend.texi (Variable Length): Document C++ specifics.
2602 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2605 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2606 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
2607 eh edges have been purged.
2610 * tree-sra.c (create_access_replacement,
2611 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2613 * tree-pretty-print.c (dump_fancy_name): New function.
2614 (dump_decl_name, dump_generic_node): Use it.
2616 2016-04-13 Jason Merrill <jason@redhat.com>
2618 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2619 * expr.c (expand_expr_real_1): Likewise.
2621 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
2623 * config/i386/i386.md (kunpckhi): Swap operands.
2624 (kunpcksi): Likewise.
2625 (kunpckdi): Likewise.
2626 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2627 (vec_pack_trunc_<mode>): Likewise.
2629 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2632 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2635 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2636 gimplification turns some element into non-constant.
2639 * rtl.h (convert_memory_address_addr_space_1): New prototype.
2640 * explow.c (convert_memory_address_addr_space_1): No longer static,
2641 add NO_EMIT argument and don't call convert_modes if true, pass
2642 it down recursively, remove break after return.
2643 (convert_memory_address_addr_space): Adjust caller.
2644 * simplify-rtx.c (simplify_unary_operation_1): Call
2645 convert_memory_address_addr_space_1 instead of convert_memory_address,
2646 if it returns NULL, don't simplify.
2648 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
2651 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2653 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2655 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2656 Bump the upper SIMDLEN limits, so that if the return type or
2657 characteristic type if the return type is void can be passed in
2658 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2661 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2664 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2665 Do not use "=" constraint on an input constraint.
2666 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2667 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2668 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2669 generates (neg (abs ...)) instead of (abs ...).
2671 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2673 PR rtl-optimization/70596
2674 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2675 just invalidate LRA data and reset them. Adjust dump wording.
2677 2016-04-12 Martin Liska <mliska@suse.cz>
2680 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2682 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2684 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2685 max_loop_iterations_int.
2686 (tree_unswitch_outer_loop): Likewise.
2687 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2688 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2690 2016-04-12 Tom de Vries <tom@codesourcery.com>
2692 PR tree-optimization/68756
2693 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2694 instead of new_name.
2696 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2698 PR tree-optimization/70602
2699 * tree-sra.c (generate_subtree_copies): Don't write anything into
2700 constant pool decls.
2702 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2703 regardless whether there are depend clauses or not.
2705 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2708 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2709 target attribute and pragma from changing the -mfloat128
2710 and -mfloat128-hardware options.
2712 * doc/extend.texi (Additional Floating Types): Document PowerPC
2713 __float128 restrictions.
2715 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2718 * config/aarch64/driver-aarch64.c
2719 (aarch64_get_extension_string_for_isa_flags): New.
2720 (arch_extension): Rename to...
2721 (aarch64_arch_extension): ...This.
2722 (ext_to_feat_string): Rename to...
2723 (aarch64_extensions): ...This.
2724 (aarch64_core_data): Keep track of architecture extension flags.
2725 (cpu_data): Rename to...
2726 (aarch64_cpu_data): ...This.
2727 (aarch64_arch_driver_info): Keep track of architecture extension
2729 (get_arch_name_from_id): Rename to...
2730 (get_arch_from_id): ...This, change return type.
2731 (host_detect_local_cpu): Update and reformat for renames, handle
2732 extensions through common infrastructure.
2734 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2737 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2738 track of a canonical flag name.
2739 (all_extensions): Likewise.
2740 (arch_to_arch_name): Also track extension flags enabled by the arch.
2741 (all_architectures): Likewise.
2742 (aarch64_parse_extension): Move to here.
2743 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2745 (aarch64_rewrite_selected_cpu): Update for above change.
2746 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2747 are handled, such that the single explicit value enabled by an
2748 extension is kept seperate from the implicit values it also enables.
2749 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2751 (aarch64_parse_extension): New.
2752 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2753 here to config/aarch64/aarch64-protos.h.
2754 (aarch64_parse_extension): Move from here to
2755 common/config/aarch64/aarch64-common.c.
2756 (aarch64_option_print): Update.
2757 (aarch64_declare_function_name): Likewise.
2758 (aarch64_start_file): Likewise.
2759 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2760 the canonical flag for extensions.
2761 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2764 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2766 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2769 2016-04-09 Tom de Vries <tom@codesourcery.com>
2771 PR tree-optimization/68953
2772 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2773 first to last subscript.
2775 2016-04-09 Jakub Jelinek <jakub@redhat.com>
2777 PR tree-optimization/70586
2778 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2781 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2785 PR tree-optimization/70373
2789 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2790 clauses for acc parallel reductions as necessary. Error on those
2792 * omp-low.c (scan_sharing_clauses): Don't install variables which
2793 are used in acc parallel reductions.
2794 (lower_rec_input_clauses): Remove dead code.
2795 (lower_oacc_reductions): Add support for reference reductions.
2796 (lower_reduction_clauses): Remove dead code.
2797 (lower_omp_target): Don't remap variables appearing in acc parallel
2799 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2801 2016-04-08 Jakub Jelinek <jakub@redhat.com>
2804 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2805 with multiple SSA_NAME defs, force the outputs other than first
2806 to be live before calling live_track_process_def on each output.
2808 PR rtl-optimization/70574
2809 * fwprop.c (forward_propagate_and_simplify): Don't add
2810 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2811 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2812 paradoxical subregs within *loc.
2814 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
2816 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2817 -ftree-parallelize-loops={0,1}.
2818 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2819 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2820 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2821 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2822 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2824 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
2827 * asan.c (instrument_derefs): If we get unknown location, extract it
2829 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2831 2016-04-08 Tom de Vries <tom@codesourcery.com>
2833 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2834 implicit firstprivate clause.
2836 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2839 * config/arm/thumb2.md (tst + branch-> lsls + branch
2840 peephole below *orsi_not_shiftsi_si): Require that condition
2841 register is dead after the peephole.
2842 (second peephole after the above): Likewise.
2844 2016-04-08 Alan Modra <amodra@gmail.com>
2847 * builtins.c (fold_builtin_classify): For IBM extended precision,
2848 look at just the high-order double to test for NaN.
2849 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
2850 test just the high double for Inf but both doubles for subnormal
2853 2016-04-07 Jakub Jelinek <jakub@redhat.com>
2855 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2856 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2857 node->simdclone->mask_mode != VOIDmode masks.
2858 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
2859 earlier, use it instead of node->simdclone.
2860 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2861 Set clonei->mask_mode.
2863 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2866 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2867 Pass it through to cp_parser_already_scoped_statement.
2868 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
2869 it through to cp_parser_statement.
2870 (cp_parser_statement): Pass IF_P through to
2871 cp_parser_iteration_statement.
2872 (cp_parser_pragma): Adjust call to
2873 cp_parser_iteration_statement.
2875 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2878 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2879 resolve a future -Wparentheses warning.
2880 * omp-low.c (scan_sharing_clauses): Likewise.
2881 * tree-parloops.c (eliminate_local_variables): Likewise.
2883 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
2885 PR rtl-optimization/70398
2886 * lra-constraints.c (process_address_1): Check zero scale and code
2887 for reloading with zero scale.
2889 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
2891 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2892 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2894 2016-04-06 Jakub Jelinek <jakub@redhat.com>
2896 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2897 Add support for AVX512F clones, include them by default for
2898 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
2899 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2903 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2904 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2905 firstprivate clauses.
2906 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2907 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2908 (lower_omp_target): Set TREE_NO_WARNING for
2909 non-addressable possibly uninitialized vars which are copied into
2910 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2912 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
2914 * config/pa/predicates.md (integer_store_memory_operand): Accept
2915 REG+D operands with a large offset when reload_in_progress is true.
2916 (floating_point_store_memory_operand): Likewise.
2918 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2921 * match.pd (nested int casts): Limit to GIMPLE.
2923 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
2926 * ipa-devirt.c (maybe_record_node): Fix comment; use
2927 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2929 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2931 PR rtl-optimization/70542
2932 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2933 if there are any uses other than insn or debug insns.
2935 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
2936 Jakub Jelinek <jakub@redhat.com>
2938 PR tree-optimization/70509
2939 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2940 Shift HOST_WIDE_INT_1U instead of 1.
2942 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
2944 PR tree-optimization/70509
2945 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2946 of the vector base type for index.
2948 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
2951 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2953 2016-04-05 Richard Biener <rguenther@suse.de>
2955 PR tree-optimization/70526
2956 * tree-sra.c (build_ref_for_offset): Use prev_base to
2957 extract the alias pointer type.
2959 2016-04-05 Richard Biener <rguenther@suse.de>
2961 * dse.c (struct store_info): Remove alias_set member.
2962 (struct read_info_type): Likewise.
2963 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2964 spill_deleted, clear_alias_set_lookup): Remove.
2965 (get_group_info): Remove dead base == NULL_RTX case.
2966 (dse_step0): Remove initialization of removed variables.
2967 (delete_dead_store_insn): Reomve alias set dumping.
2968 (free_read_records): Remove alias_set handling.
2969 (canon_address): Remove alias_set_out parameter.
2970 (record_store): Remove spill_alias_set, it's always zero.
2971 (check_mem_read_rtx): Likewise.
2972 (dse_step2): Rename from ...
2973 (dse_step2_nospill): ... this. Adjust.
2974 (scan_stores): Rename from ...
2975 (scan_stores_nospill): ... this.
2976 (scan_reads): Rename from ...
2977 (scan_reads_nospill): ... this.
2978 (scan_stores_spill, scan_reads_spill): Remove.
2979 (dse_step3_scan): Remove for_spills argument which is always false.
2980 (dse_step3): Likewise.
2981 (dse_step5): Rename from ...
2982 (dse_step5_nospill): ... this. Remove alias_set handling.
2983 (rest_of_handle_dse): Adjust.
2985 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2988 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2989 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2990 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2991 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2993 2016-04-05 Richard Biener <rguenther@suse.de>
2996 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2997 non-register type temporaries into SSA.
2999 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
3002 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
3003 calls when sanitizing.
3004 (possible_polymorphic_call_target_p): Fix formatting.
3006 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3007 Jakub Jelinek <jakub@redhat.com>
3010 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
3011 to ensure a call statement is compatible with a built-in's
3013 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
3016 2016-04-04 Richard Biener <rguenther@suse.de>
3018 PR rtl-optimization/70484
3019 * rtl.h (canon_output_dependence): Declare.
3020 * alias.c (canon_output_dependence): New function.
3021 * dse.c (record_store): Use canon_output_dependence rather
3022 than canon_true_dependence.
3024 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
3027 * cgraph.h (symtab_node::copy_visibility_from): New function.
3028 * symtab.c (symtab_node::copy_visibility_from): New function.
3029 * ipa-visibility.c (optimize_weakref): New function.
3030 (function_and_variable_visibility): Use it.
3032 2016-04-04 Martin Liska <mliska@suse.cz>
3035 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
3036 value that is really in range handled by SBR instruction.
3037 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
3038 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
3039 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
3041 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
3045 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
3046 set, but not for SP_REG operands.
3048 2016-04-02 Martin Sebor <msebor@redhat.com>
3051 * fold-const.c (maybe_nonzero_address): New function.
3052 (fold_comparison): Call it. Fold equality and relational
3053 expressions involving null pointers.
3054 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
3056 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
3058 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
3059 the "Y" constraint (scalar FP 0.0 immediate).
3061 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
3062 Add the "const_double" to the list of operand constraints.
3064 2016-04-01 Jakub Jelinek <jakub@redhat.com>
3066 PR rtl-optimization/70467
3067 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
3068 If low word of the last operand is 0, just emit addition/subtraction
3071 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3074 * config/s390/s390.c (s390_expand_insv): Check for everything
3075 constant instead of just VOIDmode stuff.
3077 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3080 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
3082 2016-04-01 Nathan Sidwell <nathan@acm.org>
3084 * tree.def (TRY_CATCH_EXPR): Correct documentation.
3086 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
3088 PR rtl-optimization/70461
3089 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
3092 2016-03-31 Martin Liska <mliska@suse.cz>
3095 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
3096 a tree value or an immediate integer value to a buffer
3097 that is eventually copied to a BRIG section.
3098 (emit_immediate_operand): Call the function here.
3099 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
3100 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
3101 of class' fields that are removed.
3102 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
3103 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
3104 m_brig_repr_size fields.
3106 2016-03-31 Martin Liska <mliska@suse.cz>
3109 * hsa-gen.c (hsa_function_representation::update_dominance): New
3111 (convert_addr_to_flat_segment): Likewise.
3112 (gen_hsa_memory_set): New alignment argument.
3113 (gen_hsa_ctor_assignment): Likewise.
3114 (gen_hsa_insns_for_single_assignment): Provide alignment
3115 to gen_hsa_ctor_assignment.
3116 (gen_hsa_insns_for_direct_call): Add new argument.
3117 (expand_lhs_of_string_op): New function.
3118 (expand_string_operation_builtin): Likewise.
3119 (expand_memory_copy): New function.
3120 (expand_memory_set): New function.
3121 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
3122 (convert_switch_statements): Change signature.
3123 (generate_hsa): Use a return value of the function.
3124 (pass_gen_hsail::execute): Do not call
3125 convert_switch_statements here.
3126 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
3127 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
3128 (hsa_function_representation::update_dominance): New function.
3130 2016-03-31 Martin Liska <mliska@suse.cz>
3133 * hsa-brig.c (emit_directive_variable): Emit alignment
3134 according to hsa_symbol::m_align.
3135 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
3136 (dump_hsa_symbol): Dump alignment of HSA symbols.
3137 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
3138 (gen_hsa_addr_with_align): New function.
3139 (hsa_bitmemref_alignment): Use newly added function.
3140 (gen_hsa_insns_for_load): Likewise.
3141 (gen_hsa_insns_for_store): Likewise.
3142 (gen_hsa_memory_copy): New argument added.
3143 (gen_hsa_insns_for_single_assignment): Respect
3144 alignment for assignments processed via gen_hsa_memory_copy.
3145 (gen_hsa_insns_for_direct_call): Likewise.
3146 (gen_hsa_insns_for_return): Likewise.
3147 (gen_function_def_parameters): Set default alignment.
3148 * hsa.c (hsa_object_alignment): New function.
3149 (hsa_byte_alignment): Pasted function.
3150 * hsa.h (hsa_symbol::m_align): New field.
3152 2016-03-31 Bin Cheng <bin.cheng@arm.com>
3154 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
3155 scratch field for goto case.
3157 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
3159 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
3161 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
3164 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
3165 (scalar_chain::convert_insn): Call convert_op for reg
3166 moves to handle undefined registers.
3168 2016-03-31 Nathan Sidwell <nathan@acm.org>
3171 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
3172 Assert we don't want to move backwards.
3174 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
3177 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
3179 2016-03-31 Jakub Jelinek <jakub@redhat.com>
3181 PR rtl-optimization/70460
3182 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
3183 with operand from REG_LABEL_OPERAND, instead substitute
3184 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
3185 Don't do anything for REG_NON_LOCAL_GOTO jumps.
3187 2016-03-31 Martin Liska <mliska@suse.cz>
3189 * passes.c (execute_one_pass): Do not call
3190 todo_after for a discarded function.
3192 2016-03-31 Bin Cheng <bin.cheng@arm.com>
3194 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
3195 (no_cost, infinite_cost): Initialize the new field.
3196 (get_computation_cost_at): Record setup cost.
3197 (determine_use_iv_cost_address): Skip cost computation for sub
3198 uses if we can estimate it without losing accuracy.
3200 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
3202 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
3204 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
3205 max_loop_iterations_int.
3206 (tree_unswitch_outer_loop): Likewise.
3207 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3208 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3210 2016-03-30 Richard Biener <rguenther@suse.de>
3213 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
3215 2016-03-30 Jakub Jelinek <jakub@redhat.com>
3218 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
3219 in gen_blendm expander.
3221 2016-03-30 Nick Clifton <nickc@redhat.com>
3224 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
3225 case where we are already provided with an SImode SUBREG.
3227 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
3230 * config/i386/i386.c (ix86_expand_epilogue): Properly check
3231 conflict between DRAP register and __builtin_eh_return.
3233 2016-03-30 Michael Matz <matz@suse.de>
3234 Richard Biener <rguenther@suse.de>
3237 * ipa-polymorphic-call.c (struct type_change_info): Change
3238 speculative to an unsigned allowing to limit the work we do.
3239 (csftc_abort_walking_p): New inline function..
3240 (check_stmt_for_type_change): Limit the number of may-defs
3241 skipped for speculative devirtualization to
3242 max-speculative-devirt-maydefs.
3243 * params.def (max-speculative-devirt-maydefs): New param.
3244 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
3246 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
3249 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
3252 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
3254 PR tree-optimization/59124
3255 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
3256 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
3258 2016-03-29 Jeff Law <law@redhat.com>
3260 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
3262 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3264 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
3267 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3269 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
3270 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
3271 gcrt0.o if linking dynamically.
3273 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3276 * ipa-devirt.c (methods_equal_p): New function.
3277 (compare_virtual_tables): Use it.
3278 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
3279 * cgraphclones.c (clone_function_name_1): Use
3280 symbol_table::symbol_suffix_separator.
3281 * coverage.c (build_var): Likewise.
3282 * symtab.c (symbol_table::symbol_suffix_separator): New.
3284 2016-03-29 Jakub Jelinek <jakub@redhat.com>
3286 PR rtl-optimization/70429
3287 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
3288 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3289 mode != result_mode.
3292 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3294 PR tree-optimization/70405
3295 * ssa-iterators.h (num_imm_uses): Add missing braces.
3297 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
3299 PR rtl-optimization/68695
3300 * ira-color.c (allocno_copy_cost_saving): New.
3301 (improve_allocation): Use it.
3303 2016-03-29 Richard Henderson <rth@redhat.com>
3306 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3308 2016-03-29 Richard Biener <rguenther@suse.de>
3311 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3312 use alignment returned by get_pointer_alignment_1 if it is
3313 bigger than BITS_PER_UNIT.
3314 * builtins.c (get_pointer_alignment_1): Do not return true
3315 for alignment extracted from SSA info.
3317 2016-03-28 James Bowman <james.bowman@ftdichip.com>
3319 * config/ft32/ft32.opt (mnodiv): New.
3320 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3321 * doc/invoke.texi (FT32 Options -mnodiv): New.
3323 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
3326 * config/i386/i386.md (define_split, andn): Fix modes.
3328 2016-03-26 Richard Biener <rguenther@suse.de>
3329 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3332 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3334 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3335 as 2nd argument to cl_optimization_restore().
3337 2016-03-25 Richard Henderson <rth@redhat.com>
3340 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3341 * config/aarch64/aarch64-protos.h: Declare it.
3342 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3344 2016-03-25 Alan Modra <amodra@gmail.com>
3347 * config/rs6000/constraints.md (j): Simplify.
3348 * config/rs6000/predicates.md (easy_fp_constant): Exclude
3350 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3351 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3352 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3353 in all constraint alternatives.
3354 (movtd_64bit_nodm): Delete "j" constraint alternative.
3356 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3358 * tree-ssa-propagate.c: Enhance docs for
3359 SSA_PROP_NOT_INTERESTING.
3361 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3363 * doc/extend.texi: Fix typo in documentation to pure attribute.
3365 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
3368 * config/pa/pa.md (bswapdi2): Use a scratch register.
3370 2016-03-24 Richard Henderson <rth@redhat.com>
3373 * fold-const.c (extract_muldiv_1): Correct test for multiplication
3376 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
3378 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3379 using ix86_expand_binary_operator instead of gen_andsi3.
3381 2016-03-24 Richard Biener <rguenther@suse.de>
3383 PR tree-optimization/70396
3384 * tree-vect-stmts.c (vectorizable_comparison): Use
3385 get_vectype_for_scalar_type.
3387 2016-03-24 Richard Biener <rguenther@suse.de>
3390 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3391 with register bases.
3393 2016-03-24 Richard Biener <rguenther@suse.de>
3395 PR tree-optimization/70372
3396 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3397 build_all_ones_cst to also handle vector types correctly.
3399 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3402 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3405 2016-03-23 Marek Polacek <polacek@redhat.com>
3408 * doc/invoke.texi: Document -Wignored-attributes.
3410 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3412 PR tree-optimization/69042
3413 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3414 parameter from 30 to 40.
3416 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3418 PR tree-optimization/69042
3419 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3420 for use with constant offset stripped in base.
3422 2016-03-23 Richard Biener <rguenther@suse.de>
3425 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3426 mode compatibility check.
3427 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3429 2016-03-23 Jeff Law <law@redhat.com>
3431 PR tree-optimization/64058
3432 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3434 (struct ssa_conflicts): Move up earlier in the file.
3435 (conflicts_, var_map_): New static variables.
3436 (initialize_conflict_count): New function to initialize the
3437 CONFLICT_COUNT field for each conflict pair.
3438 (compare_pairs): Lazily initialize the conflict count and use it
3439 as the first tie-breaker.
3440 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
3441 and wipe conflicts_ and map_ around the call to qsort. Remove
3442 special case for 2 coalesce pairs.
3443 * bitmap.c (bitmap_count_unique_bits): New function.
3444 (bitmap_count_bits_in_word): New function, extracted from
3446 (bitmap_count_bits): Use bitmap_count_bits_in_word.
3447 * bitmap.h (bitmap_count_unique_bits): Declare it.
3449 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3452 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3453 transparent alias chain for decl assembler name.
3454 * config/sol2.c (solaris_assemble_visibility): Likewise.
3456 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3458 * config/arm/arm1020e.md (1020call_op): Reduce reservation
3460 (v10_fdivs): Likewise.
3461 (v10_fdivd): Likewise.
3463 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3466 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3467 to not call fclose twice on file.
3469 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3471 PR tree-optimization/70354
3472 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3473 oprnd0 is wider than oprnd1 and there is a cast from the wider
3474 type to oprnd1, mask it with the mask of the narrower type.
3477 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3478 Optimize TARGET_STV splitters, if high or low word of last argument
3481 2016-03-22 Jeff Law <law@redhat.com>
3484 tree-ssa-threadbackward.c
3485 (fsm_find_control_statement_thread_paths): Correctly distinguish
3486 between old style jump threads vs FSM jump threads.
3488 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3491 * config/i386/i386.c (scalar_chain::convert_op): Support
3492 uninitialized register usage case.
3494 2016-03-22 Richard Biener <rguenther@suse.de>
3497 * genmatch.c (gen_transform): Adjust last parameter to a three-state
3499 (capture::gen_transform): ... to change behavior when substituting
3500 a condition into cond or not-cond expr context.
3501 (dt_simplify::gen_1): Adjust.
3502 * gimple-match-head.c: Include gimplify.h for unshare_expr.
3503 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3504 last change and instead change to
3505 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3506 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3508 2016-03-22 Anthony Green <green@moxielogic.com>
3510 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
3511 issue for moxiebox targets.
3512 (CC1PLUS_SPEC): Ditto.
3514 2016-03-22 Richard Biener <rguenther@suse.de>
3517 * fold-const.c (extract_muldiv_1): Properly perform multiplication
3520 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3522 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3524 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3527 * config/i386/i386.c (def_builtin): Handle
3528 OPTION_MASK_ISA_AVX512VL to be and-ed with other
3530 (const struct builtin_description bdesc_special_args[]):
3531 Remove duplicate ISA bits.
3533 2016-03-22 Jakub Jelinek <jakub@redhat.com>
3536 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3537 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
3538 in a way that works also for AVX512BW.
3541 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3542 instead of source if operands[1] is xmm16 and above and
3543 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
3544 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3547 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3548 on assign if (*from_p) is a comparison, set it to
3549 TREE_NO_WARNING (*from_p).
3551 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3554 * lra.c (restore_scratches): Ignore deleted insns.
3556 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
3557 Jakub Jelinek <jakub@redhat.com>
3559 PR tree-optimization/70317
3560 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3563 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
3566 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3567 of ix86_expand_move.
3569 (movti): Use general_operand for operand 1 predicate.
3571 2016-03-21 Martin Liska <mliska@suse.cz>
3573 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3575 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3577 2016-03-21 Martin Liska <mliska@suse.cz>
3580 * ipa-icf.c (sem_function::parse): Skip static
3581 constructors and destructors.
3583 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3586 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3587 function-like macro, peek following token(s) if it is followed
3588 by CPP_OPEN_PAREN token with optional padding in between, and
3589 if not, don't treat it like a macro.
3591 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
3592 Alexander Monakov <amonakov@ispras.ru>
3594 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3595 for the stabs debug format.
3597 2016-03-21 Richard Biener <rguenther@suse.de>
3599 PR tree-optimization/70310
3600 * tree-vect-generic.c (expand_vector_condition): Fold the built
3603 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
3606 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3607 Block third alternative for AVX-512VL target,
3609 2016-03-21 Martin Liska <mliska@suse.cz>
3612 * hsa-brig.c (emit_function_directives): Mark unemitted
3613 global variables for emission.
3614 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3615 (get_symbol_for_decl): Likewise.
3616 * hsa.h (struct hsa_symbol): New flag.
3618 2016-03-21 Richard Biener <rguenther@suse.de>
3620 PR tree-optimization/70288
3621 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3622 we do not estimate unsimplified all-constant conditionals or
3623 switches as optimized away.
3625 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
3627 PR rtl-optimization/69102
3628 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3629 when we have a readonly dependency context.
3631 2016-03-18 Jeff Law <law@redhat.com>
3633 PR rtl-optimization/70263
3634 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3635 (update_equiv_regs): When trying to move a store to after the insn
3636 that sets the source of the store, make sure the store occurs after
3637 the insn that sets the source of the store. When successful note
3638 the REG_EQUIV note created in the dump file.
3640 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
3641 Bernd Schmidt <bschmidt@redhat.com>
3643 * doc/extend.texi: Document more potential problems with basic asms.
3645 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
3647 PR rtl-optimization/70278
3648 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3651 2016-03-18 Jason Merrill <jason@redhat.com>
3653 * calls.c (load_register_parameters): Fix zero size sibcall logic.
3655 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
3657 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3658 values to 128b regs.
3660 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3662 PR tree-optimization/70252
3663 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3664 boolean vector has a proper number of elements.
3665 (supportable_narrowing_operation): Likewise.
3667 2016-03-18 Tom de Vries <tom@codesourcery.com>
3670 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3672 2016-03-18 Jakub Jelinek <jakub@redhat.com>
3674 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3675 instead of replace_rtx for DEBUG_INSNs.
3677 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3679 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3680 load type reservations.
3682 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
3685 * config/pa/constraints.md: Revert 2015-02-13 change. Use
3686 define_constraint for "Q" and "T" constraints.
3688 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
3690 Tweak the pipeline model for Exynos M1
3692 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
3695 2016-03-17 David Malcolm <dmalcolm@redhat.com>
3698 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3699 where one or both locations aren't within a line_map.
3701 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
3704 * opts.c (finish_options): Don't set flag_pie to the default if
3705 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
3708 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
3710 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3711 true as ALL_REGS argument to replace_rtx.
3713 2016-03-17 Richard Biener <rguenther@suse.de>
3716 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3719 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3722 * rtl.h (replace_rtx): Add ALL_REGS argument.
3723 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
3724 equality and assert mode is the same, instead of just rtx pointer
3726 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3727 true as ALL_REGS argument to replace_rtx.
3729 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3731 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3732 for boolean vector with vector mode only.
3733 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3735 2016-03-17 Nick Clifton <nickc@redhat.com>
3738 * config/rx/rx.c (rx_print_integer): Print negative constants in
3741 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3744 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3746 2016-03-16 Richard Henderson <rth@redhat.com>
3747 Richard Biener <rguenth@suse.de>
3752 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3753 first operand as is_gimple_condexpr.
3758 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
3759 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3760 Do not gimplify the result.
3761 (do_unop): Adjust call to tree_vec_extract.
3762 (do_binop): Likewise.
3763 (do_compare): Likewise.
3764 (do_plus_minus): Likewise.
3765 (do_negate): Likewise.
3766 (expand_vector_condition): Likewise.
3767 (do_cond): Likewise.
3769 2016-03-16 Richard Henderson <rth@redhat.com>
3772 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3773 (aarch64_classify_address): Use it.
3774 (aarch64_legitimize_address): Force all subexpressions of PLUS
3775 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
3777 2016-03-16 Jakub Jelinek <jakub@redhat.com>
3778 Richard Biener <rguenth@suse.de>
3781 * rtlanal.c (replace_rtx): For REG, if from is a REG,
3782 return to even if only REGNO is equal, and assert
3785 2016-03-11 Jeff Law <law@redhat.com>
3787 PR rtl-optimization/70224
3788 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3790 2016-03-16 Richard Henderson <rth@redhat.com>
3793 * function.h (struct function): Add has_forced_label_in_static.
3794 * gimplify.c (force_labels_r): Set it.
3795 * lto-streamer-in.c (input_struct_function_base): Read it.
3796 * lto-streamer-out.c (output_struct_function_base): Write it.
3797 * tree-inline.c (has_label_address_in_static_1): Remove.
3798 (copy_forbidden): Remove fndecl parameter; test
3799 has_forced_label_in_static.
3800 (inline_forbidden_p): Update call to copy_forbidden.
3801 (tree_versionable_function_p): Likewise.
3802 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3803 (chkp_versioning): Likewise.
3804 * tree-inline.h (copy_forbidden): Update decl.
3806 2016-03-16 Marek Polacek <polacek@redhat.com>
3809 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3810 function being thunked if the result type doesn't have fixed size.
3811 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3812 doesn't have fixed size.
3814 2016-03-16 Bin Cheng <bin.cheng@arm.com>
3816 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3817 reporting malformed loop nest.
3819 2016-03-16 Tom de Vries <tom@codesourcery.com>
3822 * ipa-devirt.c (possible_polymorphic_call_targets): Move
3823 nodes.length () == 1 test to before first nodes[0] access.
3825 2016-03-16 Tom de Vries <tom@codesourcery.com>
3827 PR tree-optimization/68715
3828 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3831 2016-03-16 Tom de Vries <tom@codesourcery.com>
3833 PR tree-optimization/68809
3834 * graphite-scop-detection.c (same_close_phi_node): Test if result types
3837 2016-03-16 Carlos O'Donell <carlos@redhat.com>
3838 Sandra Loosemore <sandra@codesourcery.com>
3840 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3841 on leaf attribute. Mention ELF interposition problems.
3843 2016-03-16 Alan Modra <amodra@gmail.com>
3845 PR rtl-optimization/69195
3846 PR rtl-optimization/47992
3847 * ira.c (indirect_jump_optimize): Ignore artificial defs.
3850 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
3853 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3855 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3857 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3859 2016-03-15 Jakub Jelinek <jakub@redhat.com>
3861 PR rtl-optimization/70222
3862 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3863 optimization if mode is different from result_mode, queue up masking
3864 of the result in outer_op. Formatting fix.
3867 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3870 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3872 PR rtl-optimization/69032
3873 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3874 looping backwards over basic block insns.
3876 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3879 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3880 to non-speculative when propagating trap bits.
3882 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3884 PR rtl-optimization/63384
3885 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3888 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3891 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3892 factored out from ...
3893 (sched_analyze_insn): ... here.
3894 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3895 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3896 get_implicit_reg_pending_clobbers in it.
3897 (setup_id_reg_sets): Use setup_id_implicit_regs.
3898 (deps_init_id): Ditto.
3900 2016-03-15 Tom de Vries <tom@codesourcery.com>
3903 * cgraph.c (cgraph_node::get_body): Save, reset and restore
3905 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3906 execute_function_dump.
3907 (execute_one_pass): Don't dump function if it will be dumped after ipa
3910 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3912 * genrecog.c (match_pattern_2): If pred is NULL don't call
3913 safe_predicate_mode on it.
3915 2016-03-14 Jakub Jelinek <jakub@redhat.com>
3918 * lra-constraints.c (delete_move_and_clobber): Change assertion
3919 to also allow dregno == 0.
3921 2016-03-14 Richard Henderson <rth@redhat.com>
3924 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3925 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3926 (reassociate_bb): Use optimize_vec_cond_expr; avoid
3927 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3930 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
3933 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3935 (lra_create_live_ranges_1): initialize hard register biggest_mode to
3937 * lra-constraints.c (split_reg): For hard regs, try to find the
3938 biggest single-register mode used in the function.
3940 2016-03-14 Richard Biener <rguenther@suse.de>
3942 PR tree-optimization/56365
3943 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3944 constants to compare against.
3946 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
3949 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3950 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3951 (define_split for the GPR case): Use int_reg_operand instead of
3952 gpc_reg_operand for the output.
3954 2016-03-14 Tom de Vries <tom@codesourcery.com>
3956 PR tree-optimization/70045
3957 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3958 create_empty_if_region_on_edge argument.
3960 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
3962 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3963 (STACK_CHECK_PROTECT): Likewise.
3964 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3965 (STACK_CHECK_PROTECT): Likewise.
3966 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3967 (STACK_CHECK_PROTECT): Likewise.
3968 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3969 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3970 (STACK_CHECK_PROTECT): Likewise.
3972 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
3974 PR rtl-optimization/69307
3975 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3976 registers in modes that span more than one register.
3978 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
3981 * lra-constraints.c (delete_move_and_clobber): New.
3982 (remove_inheritance_pseudos): Use it.
3984 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
3987 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3988 the libcall is LCT_THROW.
3989 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3990 for the checking routine.
3992 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3995 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3996 optimization if we have direct move.
3997 (roundu32<mode>2_fprs): Likewise.
3999 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
4002 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
4004 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
4005 Arguments swapped. All callers changed. Take reg_renumber into
4006 account, and Calculate and compare register ranges for hard regs.
4008 2016-03-11 Jeff Law <law@redhat.com>
4010 PR tree-optimization/70190
4011 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4012 Handle cases where we can not extract the taken edge, even though we
4013 found a constant value.
4015 PR tree-optimization/64058
4016 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
4017 (num_coalesce_pairs): Move up earlier in file.
4018 (find_coalesce_pair): Initialize the INDEX field for each pair
4020 (compare_pairs): No longer sort on the elements in each pair.
4021 Instead break ties with the index of the coalesce pair.
4023 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4026 * config/aarch64/aarch64-protos.h
4027 (aarch64_save_restore_target_globals): New prototype.
4028 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
4029 Call the above when popping pragma.
4030 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
4032 (aarch64_set_current_function): Rewrite using the above.
4034 2016-03-11 Jakub Jelinek <jakub@redhat.com>
4036 PR tree-optimization/70177
4037 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
4038 (extract_ops_from_tree): ... this. In the 2 argument
4039 overload remove _1 suffix.
4040 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
4041 (extract_ops_from_tree): ... this.
4042 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
4044 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
4045 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
4046 extract_ops_from_tree instead of 2 operand one.
4048 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
4050 PR tree-optimization/70013
4051 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
4052 for constant-pool entries.
4054 2016-03-11 Jakub Jelinek <jakub@redhat.com>
4056 PR rtl-optimization/70174
4057 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
4058 followed by gen_lowpart on force_reg instead of just gen_lowpart.
4060 PR tree-optimization/70169
4061 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
4062 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
4065 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4066 Jakub Jelinek <jakub@redhat.com>
4069 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
4070 of uninitialized values.
4072 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4074 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
4076 ("*trunctddd2"): New pattern definition.
4077 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
4080 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4082 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
4083 definitions for BFP and DFP rounding modes.
4084 ("fixuns_truncdddi2", "fixuns_trunctddi2")
4085 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
4086 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
4087 ("fix_trunctf<mode>2"): Use the new constants instead of magic
4090 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4092 * config/s390/constraints.md: Adjust comment.
4093 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
4094 s390_decompose_addrstyle_without_index.
4095 * config/s390/predicates.md (shift_count_or_setmem_operand):
4096 Rename to setmem_operand.
4097 * config/s390/s390-protos.h
4098 (s390_decompose_shift_count): Rename to
4099 s390_decompose_addrstyle_without_index.
4100 * config/s390/s390.c (s390_decompose_shift_count)
4101 (s390_mem_constraint, print_shift_count_operand)
4102 (print_operand_address, print_operand): Rename
4103 s390_decompose_shift_count to
4104 s390_decompose_addrstyle_without_index and rename
4105 print_shift_count_operand to print_addrstyle_operand troughout the
4107 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
4108 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
4109 Rename shift_count_or_setmem_operand to setmem_operand.
4110 * config/s390/vx-builtins.md ("vec_insert<mode>")
4111 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
4114 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4117 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4118 Handle overlapping retval and newval.
4120 2016-03-10 Nick Clifton <nickc@redhat.com>
4123 * config/aarch64/aarch64.c
4124 (aarch64_override_options_after_change_1): When forcing
4125 flag_omit_frame_pointer to be true, use a special value that can
4126 be detected if this function is called again, thus preventing
4127 flag_omit_leaf_frame_pointer from being forced to be false.
4129 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4131 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4132 Set x_flag_omit_leaf_frame_pointer when handling
4133 -momit-leaf-frame-pointer.
4135 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4138 * cgraph.c (cgraph_node::dump): Dump split_part and
4139 indirect_call_target.
4140 * cgraph.h (cgraph_node): Add indirect_call_target flag.
4141 * ipa.c (has_addr_references_p): Cleanup.
4142 (is_indirect_call_target_p): New.
4143 (walk_polymorphic_call_targets): Do not mark virtuals that may be
4144 called indirectly as local.
4145 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
4147 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4150 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4151 on cxa_pure_virtual.
4153 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4156 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
4158 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4161 * tree.c (need_assembler_name_p): Only record main variant type names.
4163 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
4166 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
4167 Always define to 0 or 1.
4168 (TARGET_FIX_ERR_A53_843419): New macro.
4169 * config/aarch64/aarch64-elf-raw.h
4170 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
4171 * config/aarch64/aarch64-linux.h: Likewise.
4172 * config/aarch64/aarch64.c
4173 (aarch64_override_options_after_change_1): Do not default
4174 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
4176 (aarch64_attributes): Handle fix-cortex-a53-843419.
4177 (aarch64_can_inline_p): Likewise.
4178 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
4180 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
4181 Jakub Jelinek <jakub@redhat.com>
4183 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
4184 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
4185 DECL_COMMONS if flag_unconstrained_commons is set.
4186 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4187 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
4188 (funconstrained-commons): Document.
4190 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
4192 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
4193 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
4195 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4197 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
4198 has a proper number of elements.
4200 2016-03-10 Alan Modra <amodra@gmail.com>
4202 PR rtl-optimization/69195
4203 PR rtl-optimization/47992
4204 * ira.c (recorded_label_ref): Delete.
4205 (update_equiv_regs): Return void.
4206 (indirect_jump_optimize): New function.
4207 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
4208 before regstat_compute_ri. Don't rebuild_jump_labels here.
4209 Delete update_regstat.
4211 2016-03-10 Richard Biener <rguenther@suse.de>
4213 PR tree-optimization/70128
4214 * tree-ssa-structalias.c (set_uids_in_ptset): Set
4215 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
4217 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4219 PR tree-optimization/70152
4220 * tree-sra.c (replace_removed_params_ssa_names): Copy over
4221 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
4224 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
4225 instead of gen_sse2_loadlpd.
4226 * config/i386/sse.md (*vec_concatv2df): Rename to...
4227 (vec_concatv2df): ... this.
4229 PR tree-optimization/70127
4230 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
4232 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4236 * diagnostic-show-locus.c (compatible_locations_p): New function.
4237 (layout::layout): Sanitize ranges using compatible_locations_p.
4239 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4243 * diagnostic-show-locus.c (layout_range::layout_range): Replace
4244 location_range param with three const expanded_locations * and a
4246 (layout::layout): Replace call to
4247 rich_location::lazily_expand_location with get_expanded_location.
4248 Extract the range and perform location expansion here, passing
4249 the results to the layout_range ctor.
4250 * diagnostic.c (source_range::debug): Delete.
4251 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
4252 of rich_location::get_expanded_location.
4253 * gcc-rich-location.c (get_range_for_expr): Delete.
4254 (gcc_rich_location::add_expr): Reimplement to avoid the
4255 rich_location::add_range overload that took a location_range,
4256 passing a location_t instead.
4258 2016-03-09 Richard Biener <rguenther@suse.de>
4259 Jakub Jelinek <jakub@redhat.com>
4261 PR tree-optimization/70138
4262 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4263 Also skip vect_double_reduction_def.
4265 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4268 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
4269 if the operand is "m".
4271 2016-03-09 Nathan Sidwell <nathan@acm.org>
4273 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
4275 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4277 * config/i386/i386.c (processor_target_table): Fix cost table
4278 intialization order for znver1.
4280 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4282 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
4283 - becuase -> because.
4284 * ipa-reference.c (ignore_module_statics): Likewise.
4285 * cgraph.c (cgraph_node::get_body): Likewise.
4286 * ipa-inline.c (early_inliner): Likewise.
4287 * ipa-devirt.c (types_same_for_odr): Likewise.
4288 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4289 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4291 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4293 * tree-ssa-math-opts.c: Fix typo in comment.
4295 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4298 * config/i386/i386.c (scalar_chain::make_vector_copies,
4299 scalar_chain::convert_reg): Call end_sequence in between
4300 get_insns and emit_conversion_insns rather than after both
4303 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
4306 * config/i386/i386.h (machine_function): Add
4307 pc_thunk_call_expanded flag.
4308 (ix86_pc_thunk_call_expanded): New define.
4309 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4310 (*set_got): Rename insn pattern from set_got.
4311 (*set_got_labelled): Rename inst pattern from set_got_labelled.
4312 * config/i386/i386.c (ix86_compute_frame_layout): Use
4313 ix86_pc_thunk_call_expanded to prevent red-zone.
4315 2016-03-07 Martin Jambor <mjambor@suse.cz>
4317 * hsa.h (hsa_get_ctor_statements): Declare.
4318 (hsa_get_dtor_statements): Likewise.
4319 (hsa_get_kernel_dispatch_type): Likewise.
4320 * hsa.c (hsa_get_ctor_statements): New function.
4321 (hsa_get_dtor_statements): Likewise.
4322 (hsa_get_kernel_dispatch_type): Likewise.
4323 * hsa-brig.c (hsa_cdtor_statements): Removed.
4324 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4325 hsa_get_dtor_statements.
4326 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4327 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4329 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4331 * config/arm/arm-cores.def (cortex-r8): New.
4332 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4333 * config/arm/arm-tune.md: Likewise.
4334 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4336 2016-03-07 Martin Sebor <msebor@redhat.com>
4338 PR rtl-optimization/19705
4339 * doc/invoke.texi (Options That Control Optimization): Clarify
4340 -fno-branch-count-reg.
4342 2016-02-26 Richard Biener <rguenther@suse.de>
4343 Jeff Law <law@redhat.com>
4345 PR tree-optimization/69740
4346 * cfghooks.c (remove_edge): Request loop fixups if we delete
4347 an edge that might turn an irreducible loop into a natural
4349 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4350 Move after definition of loops_state_clear.
4352 2016-03-07 Bin Cheng <bin.cheng@arm.com>
4354 PR rtl-optimization/69052
4355 * rtlanal.c (commutative_operand_precedence): Set higher precedence
4358 2016-03-07 Tom de Vries <tom@codesourcery.com>
4360 PR tree-optimization/70116
4361 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4362 is_tm_ending stmts and ubsan/asan internal functions.
4363 (find_duplicate): Use it. Don't test is_tm_ending here.
4365 2016-03-07 Richard Biener <rguenther@suse.de>
4367 PR tree-optimization/70115
4368 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4369 (propagate_constants_for_unrolling): Use replace_uses_by.
4371 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
4374 * omp-low.c (struct oacc_loop): Add ifns.
4375 (new_oacc_loop_raw): Initialize it.
4376 (finish_oacc_loop): Clear mask & flags if no ifns.
4377 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4378 (oacc_loop_xform_loop): Add ifns arg & adjust.
4379 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4381 2016-03-07 Richard Henderson <rth@redhat.com>
4384 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4385 (insert_value_copy_on_edge): Likewise.
4387 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4389 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4391 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4394 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4396 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4398 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4400 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4402 Fix sseimul type attribute.
4403 * config/i386/znver1.md
4404 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4405 znver1_sseimul_avx256_load) : Fix the type attribute.
4406 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4407 pipe usage and latency.
4409 2016-03-05 Jakub Jelinek <jakub@redhat.com>
4412 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4413 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4416 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4419 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4421 PR rtl-optimization/69941
4422 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4423 the reg share its mode.
4425 2016-03-04 Jeff Law <law@redhat.com>
4427 PR tree-optimization/69196
4428 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4429 If the both SSA_NAMEs are anonymous, then consider them unassociated
4430 and include the PHI in the statement count.
4432 2016-03-05 Tom de Vries <tom@codesourcery.com>
4434 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4435 construct in oacc routine. Check for oacc region in oacc routine.
4437 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4440 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
4441 2016-02-22 changes, instead don't recurse if RECUR is already true.
4442 Don't change *dynamic_check if RECUR. Adjust recursive caller
4443 to pass true to the new argument.
4444 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4447 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4448 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4450 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
4452 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4454 PR rtl-optimization/57676
4455 * lra-assigns.c (lra_assign): Guard test for maximum iterations
4458 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
4460 * tree-vect-patterns.c (search_type_for_mask): Handle
4461 comparison of booleans.
4463 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4465 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4469 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4470 all other ops that have dw_val_class_die_ref operands,
4471 and DW_OP_GNU_entry_value.
4473 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4475 PR rtl-optimization/69904
4476 * config/arm/arm.c (arm_cannot_copy_insn_p):
4477 Return true for load-exclusive instructions.
4479 2016-03-03 Jakub Jelinek <jakub@redhat.com>
4482 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4483 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4484 the pattern no matter if it is used just by non-pattern, pattern
4486 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4487 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4488 oprnd1 def_stmt is in pattern, don't look through it.
4490 2016-03-03 Marek Polacek <polacek@redhat.com>
4493 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4495 2016-03-03 Martin Liska <mliska@suse.cz>
4497 PR tree-optimization/70043
4498 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4499 previous statement if we see a debug statement.
4501 2016-03-03 Richard Biener <rguenther@suse.de>
4503 PR tree-optimization/55936
4504 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4505 parameter and guard unsafe equivalence use.
4506 (vrp_evaluate_conditional_warnv_with_ops): Always use
4507 safe equivalences but not via the quadratic compare_names
4510 2016-03-03 Michael Collison <michael.collison@linaro.org>
4513 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4514 for operand 1 to s_register_operand. Change predicate for operand
4515 2 to arm_not_immediate_operand.
4517 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4519 * doc/tm.texi: Regenerated.
4521 2016-03-02 Richard Henderson <rth@redhat.com>
4524 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4525 simplification when all args are positive non-fixed registers.
4527 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4529 * target.def (lra_p): Specify that new ports should use LRA.
4531 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4534 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4535 gimplify_type_sizes the type they refer to.
4536 (omp_notice_variable): Handle reference vars to VLAs.
4537 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4538 reference to VLA decls in the second pass instead of first pass.
4540 2016-03-02 Tom de Vries <tom@codesourcery.com>
4542 PR tree-optimization/68659
4543 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4544 new_expr == NULL_TREE.
4545 (get_new_name): Handle ADDR_EXPR.
4547 2016-03-02 Bin Cheng <bin.cheng@arm.com>
4549 PR rtl-optimization/69052
4550 * loop-invariant.c (canonicalize_address): New function.
4551 (inv_can_prop_to_addr_use): Check validity of address expression
4552 which is canonicalized by above function.
4554 2016-03-02 Alan Modra <amodra@gmail.com>
4557 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4560 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4563 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4564 (*movhi_internal): Put mask moves from and to memory separately
4565 from moves from/to GPRs.
4567 2016-03-02 Richard Biener <rguenther@suse.de>
4569 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4570 GENERIC expressions in GIMPLE.
4572 2016-03-02 Richard Biener <rguenther@suse.de>
4574 * config/i386/i386.c (type_natural_mode): Fix typo.
4576 2016-03-02 Nick Clifton <nickc@redhat.com>
4578 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4580 2016-03-02 Richard Biener <rguenther@suse.de>
4581 Uros Bizjak <ubizjak@gmail.com>
4584 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4586 2016-03-02 Richard Biener <rguenther@suse.de>
4589 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4591 2016-03-02 Marek Polacek <polacek@redhat.com>
4594 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4595 "is promoted to" warning.
4597 2016-03-01 DJ Delorie <dj@redhat.com>
4599 * config.gcc: Deprecate mep-*.
4601 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
4604 * lra-constraints.c (regno_val_use_in): New.
4605 (match_reload): Use it instead of regno_use_in.
4607 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4609 PR rtl-optimization/70007
4610 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4611 references present in REG_EQUAL notes attached to non-SET patterns.
4613 2016-03-01 Jeff Law <law@redhat.com>
4615 PR tree-optimization/69196
4616 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4617 Appropriately clamp the number of statements to copy when the
4618 thread path does not traverse a loop backedge.
4620 PR tree-optimization/69196
4621 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4622 Do count some PHIs in the thread path against the insn count. Decrease
4623 final statement count by one as the control statement in the last
4624 block will get removed. Remove special cased code for handling PHIs
4627 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
4630 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4631 asm dialect alternatives to explicit GOTPCREL calls.
4633 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4636 * ira.c (do_reload): Issue warning for generic stack checking here...
4637 * reload1.c (reload): ...instead of here and streamline it.
4639 2016-03-01 Nick Clifton <nickc@redhat.com>
4641 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4643 2016-03-01 Richard Biener <rguenther@suse.de>
4645 PR tree-optimization/69983
4646 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4647 types and fall back to operand_equal_p.
4649 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4652 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4654 * config/s390/constraints.md ("jm8"): New constraint.
4655 * config/s390/predicates.md ("const_int_8bitset_operand"): New
4657 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4659 ("*setmem_long<setmem_and>"): New pattern.
4660 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4662 ("*setmem_long_31z<setmem_and>"): New pattern.
4663 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4664 New substitution rules with the required attributes.
4667 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4670 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4672 * gensupport.c (process_substs_on_one_elem): Split loop to
4673 complete mark_operands_used_in_match_dup on all expressions in the
4675 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4676 and remove function.
4678 2016-03-01 Richard Biener <rguenther@suse.de>
4681 * fold-const.c (fold_indirect_ref_1): Fix range checking for
4682 vector BIT_FIELD_REF extract.
4684 2016-03-01 Richard Biener <rguenther@suse.de>
4686 PR tree-optimization/69994
4687 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4689 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
4691 PR tree-optimization/69956
4692 * tree-vect-stmts.c (supportable_widening_operation): Support
4693 multi-step conversion of boolean vectors.
4694 (supportable_narrowing_operation): Likewise.
4696 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4698 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4701 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4703 * config/s390/subst.md (DSI_VI): New mode iterator.
4704 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4705 * config/s390/vector.md ("vec_set<mode>"): Move expander before
4706 the insn definition.
4707 ("*vec_set<mode>"): Change predicate and add alternative to
4708 support only either register or const_int operands as element
4710 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4712 ("vec_extract<mode>"): New expander.
4713 ("*vec_extract<mode>"): New insn definition supporting reg and
4714 const_int element selectors.
4715 ("*vec_extract<mode>_plus"): New insn definition supporting
4716 reg+const_int element selectors.
4717 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4718 following expander+insn definition.
4719 ("<vec_shifts_name><mode>3"): New expander.
4720 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4722 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4724 * config/s390/s390.md ("*tabort_1"): Change predicate to
4725 nonmemory_operand. Add a second alternative to cover
4726 register as well as const int operands.
4727 ("*tabort_1_plus"): New pattern definition.
4729 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4731 * config/s390/s390.md ("*ashrdi3_cc_31")
4732 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4733 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4734 Merge insn definitions into ...
4735 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4736 New pattern definition.
4737 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4738 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4739 ("*ashr<mode>3_and"): Merge insn definitions into ...
4740 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4741 New pattern definition.
4742 * config/s390/subst.md ("addr_style_op_cc_subst")
4743 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4744 substitutions patterns plus attributes.
4745 Add ashiftrt to SUBST iterator.
4747 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4749 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4750 op2 to nonmemory_operand.
4751 ("*<shift>di3_31", "*<shift>di3_31_and"):
4752 Merge into single pattern definition ...
4753 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4754 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4755 pattern definition ...
4756 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4757 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4760 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4762 * config/s390/predicates.md (const_int_6bitset_operand): New
4764 * config/s390/s390.md: Include subst.md.
4765 ("rotl<mode>3"): New expander.
4766 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4768 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4769 * config/s390/subst.md: New file.
4771 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4773 * config/s390/s390.md ("op_type", "atype", "length" attributes):
4774 Remove RRR type. It doesn't really exist.
4775 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4777 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4778 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4779 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4780 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4781 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4782 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4783 `enabled' attribute.
4785 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4787 * gensupport.c (process_substs_on_one_elem): Split loop to
4788 complete mark_operands_used_in_match_dup on all expressions in the
4790 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4791 and remove function.
4793 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4796 * config/sparc/sparc.c (NWORDS_UP): Rename to...
4797 (CEIL_NWORDS): ...this. Use CEIL macro.
4798 (compute_fp_layout): Adjust to above renaming.
4799 (function_arg_union_value): Likewise.
4800 (sparc_arg_partial_bytes): Likewise.
4801 (sparc_function_arg_advance): Likewise.
4803 2016-02-29 Jeff Law <law@redhat.com>
4805 PR tree-optimization/70005
4806 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4807 where an object with a boolean range is compared against a value
4810 PR tree-optimization/69999
4811 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4812 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4815 2016-02-29 Richard Biener <rguenther@suse.de>
4817 PR tree-optimization/69994
4818 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4819 (get_unary_op): Look through nop conversions.
4820 (ops_equal_values_p): New function, look for equality diregarding
4822 (eliminate_plus_minus_pair): Use ops_equal_values_p
4823 (repropagate_negates): Do not use get_unary_op here.
4825 2016-02-29 Martin Liska <mliska@suse.cz>
4827 * system.h: Poison ENABLE_CHECKING macro.
4829 2016-02-29 Martin Liska <mliska@suse.cz>
4831 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4832 is presented in dump flags.
4833 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4834 (hsa_regalloc): Likewise.
4836 2016-02-19 Richard Biener <rguenther@suse.de>
4838 PR tree-optimization/69980
4839 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4840 permutation of those we need to keep.
4842 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4845 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4846 (NWORDS_UP): ...this
4847 (init_cumulative_args): Minor tweaks.
4848 (sparc_promote_function_mode): Likewise.
4849 (scan_record_type): Delete.
4850 (traverse_record_type): New function template.
4851 (classify_data_t): New structure type.
4852 (classify_registers): New inline function.
4853 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4854 exhausted. Instantiate traverse_record_type on classify_registers and
4855 deal with the case of a structure passed in slot #15 with no FP field
4857 (assign_data_t): New structure type.
4858 (compute_int_layout): New static function.
4859 (compute_fp_layout): Likewise.
4860 (count_registers): New inline function.
4861 (assign_int_registers): New static function.
4862 (assign_fp_registers): Likewise.
4863 (assign_registers): New inline function.
4864 (function_arg_record_value_1): Delete.
4865 (function_arg_record_value_2): Likewise.
4866 (function_arg_record_value_3): Likewise.
4867 (function_arg_record_value): Adjust to above changes. Instantiate
4868 traverse_record_type on count_registers to first count the number of
4869 registers to be used and then on assign_registers to assign them.
4870 (function_arg_union_value): Adjust to above renaming.
4871 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
4872 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
4873 case of a structure passed in slot #15
4874 (sparc_function_arg_advance): Likewise.
4875 (function_arg_padding): Minor tweak.
4877 2016-02-29 Richard Biener <rguenther@suse.de>
4879 PR tree-optimization/69720
4880 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4881 the adjustment_def path for possibly vectorized defs.
4882 (vect_create_epilog_for_reduction): Handle vectorized initial
4885 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
4887 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4889 2016-02-27 Jeff Law <law@redhat.com>
4892 2016-02-26 Richard Biener <rguenther@suse.de>
4893 Jeff Law <law@redhat.com>
4895 PR tree-optimization/69740
4896 * cfghooks.c (remove_edge): Request loop fixups if we delete
4897 an edge that might turn an irreducible loop into a natural
4900 2016-02-27 Jakub Jelinek <jakub@redhat.com>
4902 PR rtl-optimization/69896
4903 * tree-vect-generic.c (get_compute_type): Avoid single element
4906 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
4908 Rename the AArch64 tuning option and related functions to enable the
4909 Newton series for the reciprocal square root to reflect its
4910 approximative characteristic.
4912 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4913 function to "aarch64_emit_approx_rsqrt".
4914 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4915 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4916 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4917 (xgene1_tunings): Likewise.
4918 (use_rsqrt_p): Likewise.
4919 (aarch64_emit_swrsqrt): Use new function name.
4920 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4921 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4922 text explaining this option.
4923 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4925 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4928 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4929 complain about -mallow-movmisalign without -mvsx if
4930 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4932 2016-02-26 Joel Sherrill <joel@rtems.org>
4934 * config.gcc: Add x86_64-*-rtems*.
4935 * gcc/config/i386/rtems-64.h: New file.
4937 2016-02-26 Joel Sherrill <joel@rtems.org>
4939 * config.gcc: Add aarch64-*-rtems*.
4940 * gcc/config/aarch64/rtems.h: New file.
4942 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
4945 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4946 shift amount using %h. Add comment.
4948 2016-02-26 Richard Biener <rguenther@suse.de>
4949 Jeff Law <law@redhat.com>
4951 PR tree-optimization/69740
4952 * cfghooks.c (remove_edge): Request loop fixups if we delete
4953 an edge that might turn an irreducible loop into a natural
4956 2016-02-26 Martin Jambor <mjambor@suse.cz>
4959 * tree-sra.c (sra_modify_assign): Do not remove loads of
4960 uninitialized aggregates to SSA_NAMEs.
4962 2016-02-26 Richard Henderson <rth@redhat.com>
4965 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4966 pseudo in case the target rtx matches the source of the left
4969 2016-02-26 Martin Jambor <mjambor@suse.cz>
4972 * hsa.h (hsa_type_packed_p): Declare.
4973 * hsa.c (hsa_type_packed_p): New function.
4974 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4976 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4977 * hsa-brig.c (emit_basic_insn): Likewise.
4979 2016-02-26 Martin Jambor <mjambor@suse.cz>
4982 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4984 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4986 2016-02-26 Martin Jambor <mjambor@suse.cz>
4988 * hsa.h (is_a_helper): New overload for hsa_op_immed for
4989 hsa_op_with_type operands.
4990 (hsa_unsigned_type_for_type): Declare.
4991 * hsa.c (hsa_unsigned_type_for_type): New function.
4992 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4993 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4994 the finalizer. Do not emit extra move.
4996 2016-02-26 Martin Jambor <mjambor@suse.cz>
4998 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4999 atomic operations in private segment.
5001 2016-02-26 Martin Jambor <mjambor@suse.cz>
5003 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
5004 statements to wi->info. Also disallow omp simd constructs.
5005 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
5006 for not gridifying. Dump special string for omp_for.
5008 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5011 * config/aarch64/aarch64.c (aarch64_set_current_function):
5012 Save/restore target globals when switching to
5013 target_option_default_node.
5015 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5018 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
5019 Return 0 if !SHIFT_COUNT_TRUNCATED.
5021 2016-02-26 Jakub Jelinek <jakub@redhat.com>
5022 Eric Botcazou <ebotcazou@adacore.com>
5024 PR rtl-optimization/69891
5025 * dse.c (scan_insn): If we can't figure out memset arguments
5026 or they are non-constant, call clear_rhs_from_active_local_stores.
5028 2016-02-26 Martin Liska <mliska@suse.cz>
5030 * doc/extend.texi: Mention clog10, clog10f an clog10l
5031 in Builtins section.
5033 2016-02-26 Martin Liska <mliska@suse.cz>
5035 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
5037 (resolve_args_picking_1): Likewise.
5038 * dwarf2out.h (struct GTY): Likewise.
5040 2016-02-26 Martin Liska <mliska@suse.cz>
5042 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
5044 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
5046 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
5047 Martin Liska <mliska@suse.cz>
5049 * doc/install.texi: Mention --enable-valgrind-annotations.
5051 2016-02-26 Richard Biener <rguenther@suse.de>
5053 PR tree-optimization/69551
5054 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
5055 looking through aliases adjust DECL_PT_UID to refer to the
5056 ultimate alias target.
5058 2016-02-25 Martin Liska <mliska@suse.cz>
5061 * alloc-pool.c (after_memory_report): New variable.
5062 * alloc-pool.h (base_pool_allocator ::release): Do not use
5063 the infrastructure if after_memory_report.
5064 * toplev.c (toplev::main): Mark after memory report.
5066 2016-02-25 Richard Biener <rguenther@suse.de>
5068 PR tree-optimization/48795
5069 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
5071 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5074 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
5075 offloading is enabled and -fopenacc or -fopenmp is specified.
5076 (CRTOFFLOADEND): Likewise.
5077 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
5078 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
5079 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
5080 (offload_objects_file_name): New static var.
5081 (tool_cleanup): Remove offload_objects_file_name file.
5082 (find_offloadbeginend): Replace with ...
5083 (find_crtoffloadtable): ... this.
5084 (run_gcc): Remove offload_argc and offload_argv.
5085 Get offload_objects_file_name from -foffload-objects=... option.
5086 Read names of object files with offload from this file, pass them to
5087 compile_images_for_offload_targets. Don't call find_offloadbeginend and
5088 don't pass offloadbegin and offloadend to the linker. Don't pass
5089 offload non-LTO files to the linker, because now they're not claimed.
5091 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
5094 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5095 on builtin_unreachable.
5097 2016-02-25 Jakub Jelinek <jakub@redhat.com>
5099 PR rtl-optimization/69896
5100 * regcprop.c: Include cfgrtl.h.
5101 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
5102 than remembered mode, either delete it (if noop_move_p), or
5103 treat like copy_p but not noop_p instruction.
5105 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5108 * dwarf2out.c (gen_variable_die): Work around buggy LTO
5109 - allow NULL decl for Fortran DW_TAG_common_block variables.
5111 2016-02-24 Jason Merrill <jason@redhat.com>
5113 * common.opt (flifetime-dse): Add -flifetime-dse=1.
5115 2016-02-24 Richard Biener <rguenther@suse.de>
5116 Jakub Jelinek <jakub@redhat.com>
5119 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
5120 conditionally executed ops to well-defined overflow behavior.
5122 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5125 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
5128 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5130 PR rtl-optimization/69886
5131 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
5132 argument. Use it when checking validity of set instructions.
5133 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
5134 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
5136 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
5137 * store-motion.c (find_moveable_store): Update
5138 can_assign_to_reg_without_clobbers_p callsite.
5140 2016-02-24 Richard Biener <rguenther@suse.de>
5143 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
5145 (record_nonwrapping_iv): Do not fall back to the low/high bound
5146 for non-constant IV bases if the stmt is not always executed.
5148 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5150 * config/arm/arm-cores.def (cortex-a32): New entry.
5151 * config/arm/arm-tables.opt: Regenerate.
5152 * config/arm/arm-tune.md: Regenerate.
5153 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
5154 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
5155 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
5156 for -mcpu and -mtune.
5158 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5161 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
5162 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
5163 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
5164 (atomic_loaddi_1): Delete.
5165 (atomic_loaddi): Rewrite expander using the above changes.
5167 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5170 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
5173 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5174 Richard Biener <rguenth@suse.de>
5177 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
5178 set_mem_attributes if tem is SSA_NAME which got expanded
5181 2016-02-24 Richard Biener <rguenther@suse.de>
5183 PR tree-optimization/69907
5184 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
5185 end of permutations for BB vectorization.
5187 2016-02-24 Christian Bruel <christian.bruel@st.com>
5189 * config/arm/arm-c.c (arm_option_override): Initialize
5190 target_option_current_node.
5191 * config/arm/arm.c (arm_pragma_target_parse): Replace
5192 build_target_option_node call by target_option_current_node.
5193 Set target_option_current_node.
5196 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
5199 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
5200 define_insn_and_split to define_insn.
5201 (zero_extendqi<mode>2_dot2): Same.
5202 (extendqi<mode>2_dot): Same.
5203 (extendqi<mode>2_dot2): Same.
5205 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
5207 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
5208 and add bypass for AES{D,E} and AESMC pairs.
5209 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
5212 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
5214 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
5215 series for reciprocal square root in Exynos M1.
5217 2016-02-23 Martin Sebor <msebor@redhat.com>
5220 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
5221 __builtin_alloca_with_align.
5223 2016-02-23 Richard Henderson <rth@redhat.com>
5225 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
5226 (ix86_register_pragmas): Remove __seg_tls.
5227 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
5228 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
5229 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
5230 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
5231 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
5232 * doc/extend.texi (__seg_tls): Remove item.
5234 2016-02-23 Richard Biener <rguenther@suse.de>
5236 * alloc-pool.h (struct allocation_object): Make id member
5237 conditional on CHECKING_P again.
5238 (get_instance): Adjust.
5239 (base_pool_allocator): Likewise.
5241 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5243 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
5244 (parallelize_loops): In OpenACC kernels mode, set n_threads to
5246 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
5248 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5250 2016-02-23 Richard Biener <rguenther@suse.de>
5252 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
5253 * bitmap.h (struct bitmap_usage): Likewise.
5254 (bitmap_move): Declare.
5255 * bitmap.c (register_overhead): Take size_t argument.
5256 (bitmap_move): New function.
5257 * df-problems.c (df_rd_transfer_function): Use bitmap_move
5258 to properly account overhead.
5259 * tree.c (free_node): Use tree_size.
5261 2016-02-23 Jakub Jelinek <jakub@redhat.com>
5264 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
5265 when inverting comparison.
5268 * common.opt (Wunreachable-code): Add Warning flag.
5270 2016-02-23 Mark Wielaard <mjw@redhat.com>
5271 Jakub Jelinek <jakub@redhat.com>
5274 * cgraphunit.c (check_global_declaration): Check main_input_filename
5275 and DECL_SOURCE_FILE are not NULL.
5277 2016-02-23 Martin Jambor <mjambor@suse.cz>
5279 PR tree-optimization/69666
5280 * tree-sra.c (sra_modify_assign): Do not attempt to create
5281 default_def replacements for unscalarizable regions.
5283 2016-02-20 Mark Wielaard <mjw@redhat.com>
5286 * cgraphunit.c (check_global_declaration): Check level of
5287 warn_unused_const_variable and main_input_filename.
5288 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5289 (-Wunused-variable): For C implies -Wunused-const-variable=1.
5290 (-Wunused-const-variable): Explain levels 1 and 2.
5292 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5295 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5296 identical arguments. Formatting and spelling fixes.
5299 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5304 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5305 and m68k-devices.def.
5306 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5307 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5309 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5311 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5312 and HImode registers.
5314 2016-02-22 Richard Biener <rguenther@suse.de>
5316 PR tree-optimization/69882
5317 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5318 preserve permutations present because of gaps.
5319 (vect_supported_load_permutation_p): Always continue checking
5320 permutations after vect_attempt_slp_rearrange_stmts.
5322 2016-02-22 Bin Cheng <bin.cheng@arm.com>
5324 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5325 min_profitable_estimate, rather than min_profitable_iters.
5327 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5330 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5331 SImode for last match_operand.
5333 2016-02-22 Martin Liska <mliska@suse.cz>
5335 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5336 return bitsize - 1 as the return value.
5338 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
5342 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5343 Handle negative shift counts.
5344 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5345 force_reg on the shift constant.
5346 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
5347 (lshrsi3_d): Handle negative shift counts.
5349 2016-02-22 Richard Biener <rguenther@suse.de>
5350 Tom de Vries <tom@codesourcery.com>
5352 * graph.c: Include dumpfile.h.
5353 (print_graph_cfg): Split into three overloads.
5354 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5356 2016-02-22 Tom de Vries <tom@codesourcery.com>
5358 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5361 2016-02-22 Richard Biener <rguenther@suse.de>
5364 * ipa-inline-transform.c (inline_call): When not updating
5365 overall summaries adjust self size by the growth estimate.
5366 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5367 hash-set, do not update overall summaries here. Renamed from ...
5368 (inline_to_all_callers): ... this which is now wrapping the
5369 above and performing delayed overall summary update.
5370 (early_inline_small_functions): Delay updating of the overall
5373 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
5375 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5378 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5381 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5382 :%* in %:gt() argument.
5383 (greater_than_spec_func): Adjust for expecting only numbers,
5384 if there are more than two numbers, compare the last two.
5386 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
5388 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5389 -Wnarrowing with -std.
5391 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5394 * expr.c (store_field): Don't use bit-field path if exp is
5395 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5396 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5397 and the assignment can be performed by bitwise copy. Formatting
5401 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5402 call copy_reg_eh_region_note_forward on before and/or after sequences
5403 and remove note from insn if it no longer can throw.
5406 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5409 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5411 * config/s390/vector.md: Add missing commutative operand markers
5412 to the patterns which qualify for one.
5413 * config/s390/vx-builtins.md: Likewise.
5415 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5417 * config/s390/vector.md (VI, VI_QHS): Add single element vector
5418 types to mode iterators.
5419 (vec_double): ... and mode attribute.
5420 * config/s390/vx-builtins.md (non_vec_int): Likewise.
5422 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5424 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5425 Change the predicate of op2 from nonimmediate to general and let
5426 reload fix it if necessary.
5428 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5430 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5432 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5434 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5437 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5439 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5440 * config/s390/s390.c (s390_expand_vec_movstr): New function.
5441 * config/s390/s390.md ("movstr<P:mode>"): Call
5442 s390_expand_vec_movstr.
5444 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5446 * config/s390/s390.md: Add missing output modifier for operand 1
5447 to print it as address properly.
5449 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5451 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5452 * config/s390/2964.md: New file.
5453 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5454 of insn grouping attributes depending on the CPU level.
5455 (s390_get_unit_mask): New function.
5456 (s390_sched_score): Remove the OOO from the scheduling macros.
5457 Add loop to calculate a score for the instruction mix.
5458 (s390_sched_reorder): Likewise plus improve debug output.
5459 (s390_sched_variable_issue): Rename macros as above. Calculate
5460 the unit distances after actually scheduling an insn. Improve
5462 (s390_sched_init): Clear last_scheduled_unit_distance array.
5463 * config/s390/s390.md: Include 2964.md.
5465 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5468 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5469 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5470 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5471 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5472 *avx512f_<code>v8div16qi2_mask_1): New insns.
5474 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5477 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5480 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5481 earlyclobber from target. Use wF constraint for fused memory
5483 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5485 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5486 Martin Liska <mliska@suse.cz>
5489 * cfgexpand.c (asan_sanitize_stack_p): New function.
5490 (partition_stack_vars): Use the function.
5491 (expand_stack_vars): Likewise.
5492 (defer_stack_allocation): Likewise.
5493 (expand_used_vars): Likewise.
5495 2016-02-18 Richard Biener <rguenther@suse.de>
5498 * fold-const.c (operand_equal_p): Properly compare offsets for
5499 IMAGPART_EXPR and ARRAY_REF.
5501 2016-02-18 Nick Clifton <nickc@redhat.com>
5505 * config/arm/arm.c (arm_option_override_internal): Disable
5506 interworking if the target does not support thumb instructions.
5507 (arm_reload_in_hi): Handle the case where a register to register
5508 move needs reloading because there is no simple pattern to handle
5510 (arm_reload_out_hi): Likewise.
5512 2016-02-18 Richard Biener <rguenther@suse.de>
5515 * match.pd: Don't use fold_binary or fold_unary for folding
5518 2016-02-17 Jakub Jelinek <jakub@redhat.com>
5521 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5522 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5523 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5524 warn on gimple_no_warning_p statements.
5526 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
5528 * doc/extend.texi (C++ Attributes): Correct description of
5529 warn_unused type attribute.
5531 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5533 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5534 correct instruction.
5536 2016-02-17 Richard Biener <rguenther@suse.de>
5538 PR rtl-optimization/69609
5539 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5540 (find_traces_1_round): When ending a trace update cached priority
5542 (bb_to_key): Use cached priority when available.
5543 (copy_bb): Initialize cached priority.
5544 (reorder_basic_blocks_software_trace_cache): Likewise.
5546 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5549 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5551 (aarch64_comparison_operator): Break overly long line into two.
5552 (aarch64_comparison_operation): Likewise.
5553 * config/aarch64/aarch64.md (cstorecc4): Use
5554 aarch64_comparison_operator_mode instead of
5555 aarch64_comparison_operator.
5556 (cstore<mode>4): Likewise.
5557 (aarch64_cstore<mode>): Likewise.
5558 (*cstoresi_insn_uxtw): Likewise.
5559 (cstore<mode>_neg): Likewise.
5560 (*cstoresi_neg_uxtw): Likewise.
5562 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5565 * config/arm/predicates.md (arm_comparison_operator_mode):
5567 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5568 instead of arm_comparison_operator.
5569 (*mov_negscc): Likewise.
5570 (*mov_notscc): Likewise.
5571 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5572 (*thumb2_mov_negscc): Likewise.
5573 (*thumb2_mov_negscc_strict_it): Likewise.
5574 (*thumb2_mov_notscc): Likewise.
5575 (*thumb2_mov_notscc_strict_it): Likewise.
5577 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
5579 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5582 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
5584 * config/visium/visium.c (machine_libfunc_index): New enum.
5585 (machine_libfuncs): New structure.
5586 (visium_libfuncs): New static variable.
5587 (TARGET_INIT_LIBFUNCS): Define to...
5588 (visium_init_libfuncs): ...this. New function.
5589 (expand_block_move_4): Use the appropriate libfunc.
5590 (expand_block_move_2): Likewise.
5591 (expand_block_move_1): Likewise.
5592 (expand_block_set_4): Likewise.
5593 (expand_block_set_2): Likewise.
5594 (expand_block_set_1): Likewise.
5595 (visium_trampoline_init): Likewise.
5597 2016-02-17 Nick Clifton <nickc@redhat.com>
5599 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5600 TI's devices.csv file as of March 2016.
5602 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
5605 * opts-global.c (handle_common_deferred_options): Introduce and
5606 initialize two global variables to remember command-line options
5607 specifying a stack-limiting register.
5608 * opts.h: Add extern declarations of the two new global variables.
5609 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5610 variable based on the values of the two new global variables.
5612 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5615 * common.opt (Wnonnull-compare): New warning.
5616 * doc/invoke.texi (-Wnonnull): Remove text about comparison
5617 of arguments against NULL.
5618 (-Wnonnull-compare): Document.
5619 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5620 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5621 * passes.def (pass_warn_nonnull_compare): Add.
5622 * gimple-ssa-nonnull-compare.c: New file.
5624 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5626 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5627 AARCH64_EXTRA_TUNE_RECIP_SQRT.
5629 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5631 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5632 reciprocal sqrt for -mlow-precision-recip-sqrt.
5634 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5635 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5637 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5638 always use lane loads to construct non-constant vectors.
5640 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5642 * config/aarch64/aarch64.md
5643 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5644 constraints for operand 3.
5645 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5647 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5648 Richard Biener <rguenther@suse.de>
5650 PR tree-optimization/69820
5651 * tree-vect-patterns.c (type_conversion_p): Return false if
5652 *orig_type is unsigned single precision or boolean.
5653 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5656 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5658 PR rtl-optimization/69764
5659 PR rtl-optimization/69771
5660 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5661 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5663 2016-02-16 Richard Biener <rguenther@suse.de>
5665 PR tree-optimization/69776
5666 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5668 (indirect_refs_may_alias_p): Likewise.
5669 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5670 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5671 according to tbaa_p.
5672 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5673 (optimize_stmt): For redundant store discovery do not allow tbaa.
5675 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
5677 PR tree-optimization/69714
5678 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5679 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5681 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5683 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5684 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5685 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5686 * config/arc/arc.c (arc_init): Check FPU options.
5687 (get_arc_condition_code): Handle new CC_FPU* modes.
5688 (arc_select_cc_mode): Likewise.
5689 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5690 register pair only. Allow access for ARCv2 accumulator.
5691 (gen_compare_reg): Whenever we have FPU support use FPU compare
5693 (arc_reorg): Don't generate brcc insns when FPU compare
5694 instructions are involved.
5695 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5696 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5697 floating point emulation.
5698 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5699 (REVERSE_CONDITION): Add new CC_FPU* modes.
5700 (TARGET_FP_SP_BASE): Define.
5701 (TARGET_FP_DP_BASE): Likewise.
5702 (TARGET_FP_SP_FUSED): Likewise.
5703 (TARGET_FP_DP_FUSED): Likewise.
5704 (TARGET_FP_SP_CONV): Likewise.
5705 (TARGET_FP_DP_CONV): Likewise.
5706 (TARGET_FP_SP_SQRT): Likewise.
5707 (TARGET_FP_DP_SQRT): Likewise.
5708 (TARGET_FP_DP_AX): Likewise.
5709 * config/arc/arc.md (ARCV2_ACC): New constant.
5710 (type): New fpu type attribute.
5711 (SDF): Conditional iterator.
5712 (cstore<mode>, cbranch<mode>): Change expand condition.
5713 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5714 handles FPU/FPX cases as well.
5715 * config/arc/arc.opt (mfpu): New option.
5716 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5718 (adddf3, muldf3, subdf3): Removed.
5719 * config/arc/predicates.md (proper_comparison_operator): Recognize
5721 * config/arc/fpu.md: New file.
5722 * doc/invoke.texi (ARC Options): Document mfpu option.
5724 2016-02-16 Richard Biener <rguenther@suse.de>
5726 PR rtl-optimization/69291
5727 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5728 noce_operand_ok check.
5730 2016-02-16 Tom de Vries <tom@codesourcery.com>
5733 * omp-low.c (simd_clone_create): Remove call to
5734 symtab->call_cgraph_insertion_hooks.
5736 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5738 PR tree-optimization/69802
5739 * tree-ssa-reassoc.c (update_range_test): If op is
5740 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5741 op == 1 test of precision 1 integral op, otherwise handle
5742 that case as op itself. Fix up formatting.
5743 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5746 2016-02-16 Richard Biener <rguenther@suse.de>
5748 PR tree-optimization/69586
5749 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5750 types for conversion sources.
5752 2016-02-16 Richard Biener <rguenther@suse.de>
5755 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5756 mask OEP_ADDRESS_OF.
5758 2016-02-16 Alan Modra <amodra@gmail.com>
5761 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5762 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5763 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5765 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5766 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5767 (p8_fmrgow_<mode>): Likewise.
5768 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
5770 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5771 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5772 to use movdi_internal64. Remove op0_di.
5773 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5775 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
5777 Add support for the FCCMP insn types
5779 * config/aarch64/aarch64.md (fccmp): Change insn type.
5781 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5782 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5783 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5784 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5785 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5786 * config/arm/types.md (fccmps): Add new insn type.
5789 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5791 * alias.c (get_alias_set): Fix a typo in comment.
5793 2016-02-15 Richard Biener <rguenther@suse.de>
5795 PR tree-optimization/69595
5796 * match.pd: Complete range test simplification to true.
5798 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
5800 PR rtl-optimization/69648
5801 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5802 pic_offset_table_rtx.
5804 PR rtl-optimization/69752
5805 * ira.c (update_equiv_regs): When looking for more than a single SET,
5806 also take other side effects into account.
5808 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5810 * config/s390/s390.c (s390_function_profiler): Add a new sequence
5811 for z900+ CPUs in 31-bit mode.
5813 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5815 * common/config/s390/s390-common.c (s390_supports_split_stack):
5817 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5818 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5819 * config/s390/s390.c (struct machine_function): New field
5820 split_stack_varargs_pointer.
5821 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5822 in s390_emit_prologue.
5823 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5825 (morestack_ref): New global.
5826 (SPLIT_STACK_AVAILABLE): New macro.
5827 (s390_expand_split_stack_prologue): New function.
5828 (s390_live_on_entry): New function.
5829 (s390_va_start): Use split-stack vararg pointer if appropriate.
5830 (s390_asm_file_end): Emit the split-stack note sections.
5831 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5832 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5833 (UNSPECV_SPLIT_STACK_CALL): New unspec.
5834 (UNSPECV_SPLIT_STACK_DATA): New unspec.
5835 (split_stack_prologue): New expand.
5836 (split_stack_space_check): New expand.
5837 (split_stack_data): New insn.
5838 (split_stack_call): New expand.
5839 (split_stack_call_*): New insn.
5840 (split_stack_cond_call): New expand.
5841 (split_stack_cond_call_*): New insn.
5843 2016-02-15 Richard Biener <rguenther@suse.de>
5845 PR tree-optimization/69783
5846 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5847 Add trivially correct cases.
5849 2016-02-15 Tom de Vries <tom@codesourcery.com>
5852 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5854 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5856 2016-02-15 Richard Biener <rguenther@suse.de>
5858 PR tree-optimization/69776
5859 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5860 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5861 indicate whether we can use TBAA to disambiguate against stores.
5862 Use alias-set zero if not.
5863 (visit_reference_op_store): Do not use TBAA when looking up
5865 * tree-ssa-pre.c (compute_avail): Use TBAA here.
5866 (eliminate_dom_walker::before_dom_children): But not when looking
5867 up redundant stores.
5869 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
5871 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5873 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5875 * config/i386/znver1.md
5876 (znver1_pop, znver1_pop_mem,
5877 znver1_load_imov_double_store,
5878 znver1_load_imov_direct_store,
5879 znver1_load_imov_direct_load,
5880 znver1_load_imov_double_load): Add new.
5881 (znver1_insn, znver1_insn_load): Add icmov type.
5883 znver1_sseavx_fma_load,
5885 znver1_avx256_fma_load): Fix pipe usage.
5887 2016-02-14 Alan Modra <amodra@gmail.com>
5890 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5891 with an invalid hard reg, reload just the reg not the entire
5892 pre/post-inc/dec address expression.
5894 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5897 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5898 fixed R1_REG scratch reg.
5899 (sibcall_value_pcrel_fdpic): Likewise.
5901 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5905 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5907 2016-02-12 Walter Lee <walt@tilera.com>
5909 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5910 * config/tilegx/t-tilegx: Likewise.
5912 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5915 * diagnostic-show-locus.c (struct line_span): New struct.
5916 (layout::get_first_line): Delete.
5917 (layout::get_last_line): Delete.
5918 (layout::get_num_line_spans): New member function.
5919 (layout::get_line_span): Likewise.
5920 (layout::print_heading_for_line_span_index_p): Likewise.
5921 (layout::get_expanded_location): Likewise.
5922 (layout::calculate_line_spans): Likewise.
5923 (layout::m_first_line): Delete.
5924 (layout::m_last_line): Delete.
5925 (layout::m_line_spans): New field.
5926 (layout::layout): Update comment. Replace m_first_line and
5927 m_last_line with m_line_spans, replacing their initialization
5928 with a call to calculate_line_spans.
5929 (diagnostic_show_locus): When printing source lines and
5930 annotations, rather than looping over a single span
5931 of lines, instead loop over each line_span within
5932 the layout, with an inner loop over the lines within them.
5933 Call the context's start_span callback when changing line spans.
5934 * diagnostic.c (diagnostic_initialize): Initialize start_span.
5935 (diagnostic_build_prefix): Break out the building of the location
5936 part of the string into...
5937 (diagnostic_get_location_text): ...this new function, rewriting
5938 it from nested ternary expressions to a sequence of "if"
5940 (default_diagnostic_start_span_fn): New function.
5941 * diagnostic.h (diagnostic_start_span_fn): New typedef.
5942 (diagnostic_context::start_span): New field.
5943 (default_diagnostic_start_span_fn): New prototype.
5945 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5948 * gcc.c (driver::finalize): Fix cleanup of "specs".
5950 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5954 * gcc.c (driver::driver): Initialize m_option_suggestions.
5955 (driver::~driver): Clean up m_option_suggestions.
5956 (suggest_option): Convert to...
5957 (driver::suggest_option): ...this, and split out into
5958 driver::build_option_suggestions and find_closest_string.
5959 (driver::build_option_suggestions): New function, from
5960 first half of suggest_option. Special-case
5961 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5962 the sanitizer_opts array. For options of enum types, add the
5963 various enum values to the candidate strings.
5964 (driver::handle_unrecognized_options): Remove "const".
5965 * gcc.h (driver::handle_unrecognized_options): Likewise.
5966 (driver::build_option_suggestions): New decl.
5967 (driver::suggest_option): New decl.
5968 (driver::m_option_suggestions): New field.
5969 * opts-common.c (add_misspelling_candidates): New function.
5970 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5971 and make non-static.
5972 * opts.h (sanitizer_opts): New array decl.
5973 (add_misspelling_candidates): New function decl.
5974 * spellcheck.c (find_closest_string): New function.
5975 * spellcheck.h (find_closest_string): New function decl.
5977 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5979 PR rtl-optimization/69764
5980 PR rtl-optimization/69771
5981 * optabs.c (expand_binop_directly): For shift_optab_p, force
5982 convert_modes with VOIDmode if xop1 has VOIDmode.
5984 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5987 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5988 to correctly determine instrumentation thunks.
5990 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5993 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5994 type by reference, force lhs on the call.
5997 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5998 Compute retval and retbnd early in all cases if split_part_return_p
5999 and return_bb is not EXIT. Remove all clobber stmts and reset
6000 all debug stmts that refer to SSA_NAMEs defined in split part,
6001 except if it is retval, in that case replace the old retval with the
6002 lhs of the call to the split part.
6004 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6007 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6010 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6011 whose result is used in PHI.
6012 (maybe_optimize_range_tests): Likewise.
6013 (final_range_test_p): Likweise.
6015 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6018 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6019 whose result is used in PHI.
6020 (maybe_optimize_range_tests): Likewise.
6021 (final_range_test_p): Likweise.
6023 2016-02-12 Jakub Jelinek <jakub@redhat.com>
6025 * cgraph.c: Spelling fixes - behaviour -> behavior and
6026 neighbour -> neighbor.
6027 * target.def: Likewise.
6028 * sel-sched.c: Likewise.
6029 * config/mips/mips.c: Likewise.
6030 * config/arc/arc.md: Likewise.
6031 * config/arm/cortex-a57.md: Likewise.
6032 * config/arm/arm.c: Likewise.
6033 * config/arm/neon.md: Likewise.
6034 * config/arm/arm-c.c: Likewise.
6035 * config/vms/vms-c.c: Likewise.
6036 * config/s390/s390.c: Likewise.
6037 * config/i386/znver1.md: Likewise.
6038 * config/i386/i386.c: Likewise.
6039 * config/ia64/hpux-unix2003.h: Likewise.
6040 * config/msp430/msp430.md: Likewise.
6041 * config/rx/rx.c: Likewise.
6042 * config/rx/rx.md: Likewise.
6043 * config/aarch64/aarch64-simd.md: Likewise.
6044 * config/aarch64/aarch64.c: Likewise.
6045 * config/nvptx/nvptx.c: Likewise.
6046 * config/bfin/bfin.c: Likewise.
6047 * config/cris/cris.opt: Likewise.
6048 * config/rs6000/rs6000.c: Likewise.
6049 * target.h: Likewise.
6050 * spellcheck.c: Likewise.
6051 * ira-build.c: Likewise.
6052 * tree-inline.c: Likewise.
6053 * builtins.c: Likewise.
6054 * lra-constraints.c: Likewise.
6055 * explow.c: Likewise.
6056 * hwint.h: Likewise.
6057 * targhooks.c: Likewise.
6058 * tree-vect-data-refs.c: Likewise.
6060 * doc/tm.texi: Likewise.
6061 * doc/extend.texi: Likewise.
6062 * doc/install.texi: Likewise.
6063 * doc/md.texi: Likewise.
6064 * tree-ssa-tail-merge.c: Likewise.
6065 * sched-int.h: Likewise.
6066 * match.pd: Likewise.
6067 * sched-ebb.c: Likewise.
6068 * target.def (omit_struct_return_reg): Likewise.
6069 * gimple-ssa-isolate-paths.c: Likewise.
6070 (find_implicit_erroneous_behaviour): Renamed to...
6071 (find_implicit_erroneous_behavior): ... this.
6072 (find_explicit_erroneous_behaviour): Renamed to...
6073 (find_explicit_erroneous_behavior): ... this.
6074 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
6076 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
6078 PR rtl-optimization/64682
6079 PR rtl-optimization/69567
6080 PR rtl-optimization/69737
6081 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
6082 in I2 as well, just lose it.
6084 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6086 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
6088 (aarch64_last_printed_tune_string): Likewise.
6089 (aarch64_declare_function_name): Only output .arch assembler
6090 directive if it will be different from the previously output
6091 directive. Same for .tune comment but only if -dA is set.
6092 (aarch64_start_file): New function.
6093 (TARGET_ASM_FILE_START): Define.
6095 2016-02-11 David Malcolm <dmalcolm@redhat.com>
6098 * Makefile.in (PLUGIN_HEADERS): Add params.list.
6100 2016-02-11 Jakub Jelinek <jakub@redhat.com>
6103 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
6104 -Wmaybe-uninitialized warning.
6106 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
6109 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
6111 2016-02-11 Richard Biener <rguenther@suse.de>
6113 PR rtl-optimization/69291
6114 * ifcvt.c (noce_try_store_flag_constants): Do not allow
6115 subexpressions affected by changing the result.
6117 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
6120 * lra-constraints.c (curr_insn_transform): Find in/out operands
6121 for secondary memory moves. Update dups.
6123 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
6125 PR tree-optimization/69652
6126 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
6127 to nested loop, did source re-formatting, skip debug statements,
6128 add check on statement with volatile operand, remove dead scalar
6131 2016-02-10 Jakub Jelinek <jakub@redhat.com>
6132 Patrick Palka <ppalka@gcc.gnu.org>
6136 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
6137 calls if the return type is TREE_ADDRESSABLE.
6138 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
6139 * ipa-split.c (split_function): Fix doubled "we" in comment.
6140 Use void return type for the split part even if
6141 !split_point->split_part_set_retval.
6143 2016-02-10 Bin Cheng <bin.cheng@arm.com>
6145 PR tree-optimization/68021
6146 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
6147 when computing the value of biv cand by itself.
6149 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
6151 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
6152 (cortexa57_tunings): Likewise.
6153 (cortexa72_tunings): Likewise.
6154 (arch_macro_fusion_pair_p): Add support for AES fusion.
6155 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
6156 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6157 Allow virtual registers before reload so early scheduling works.
6158 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
6159 correct latency and pipeline.
6160 (cortex_a57_crypto_complex): Likewise.
6161 (cortex_a57_crypto_xor): Likewise.
6162 (define_bypass): Add AES bypass.
6164 2016-02-10 Richard Biener <rguenther@suse.de>
6166 PR tree-optimization/69726
6167 * passes.def: Add DCE pass before late uninit.
6168 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
6169 really fixup if-conversions job.
6171 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
6173 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
6174 (arm_cortex_a57_tune): Likewise.
6175 (aarch_macro_fusion_pair_p): Add support for AES fusion.
6176 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
6178 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
6180 * timevar.def (TV_PHASE_DBGINFO): Delete.
6181 (TV_PHASE_CHECK_DBGINFO): Likewise.
6182 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
6184 2016-02-10 Richard Biener <rguenther@suse.de>
6186 PR tree-optimization/69719
6187 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6188 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
6190 2016-02-09 Andrew Pinski <apinski@cavium.com>
6193 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
6194 get_vcond_mask_icode returns false.
6196 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6199 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
6200 an ADDIS that adds a pointer to a large constant that sets the
6201 upper16 bits with a load operation.
6203 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
6206 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
6208 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
6210 (vzipq_s16): Likewise.
6211 (vzipq_s32): Likewise.
6212 (vzipq_f32): Likewise.
6213 (vzipq_u8): Likewise.
6214 (vzipq_u16): Likewise.
6215 (vzipq_u32): Likewise.
6216 (vzipq_p8): Likewise.
6217 (vzipq_p16): Likewise.
6219 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
6222 * config/arm/arm.c (neon_endian_lane_map): New function.
6223 (neon_vector_pair_endian_lane_map): New function.
6224 (arm_evpc_neon_vuzp): Allow for big endian lane order.
6225 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
6227 (vuzpq_s16): Likewise.
6228 (vuzpq_s32): Likewise.
6229 (vuzpq_f32): Likewise.
6230 (vuzpq_u8): Likewise.
6231 (vuzpq_u16): Likewise.
6232 (vuzpq_u32): Likewise.
6233 (vuzpq_p8): Likewise.
6234 (vuzpq_p16): Likewise.
6236 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
6239 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
6242 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
6244 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
6245 truncate const_int operand 1 to QImode.
6247 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
6249 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
6250 corresponding to an abnormal edge.
6252 2016-02-09 Tom de Vries <tom@codesourcery.com>
6254 PR tree-optimization/69599
6255 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
6257 (find_func_aliases_for_builtin_call, find_func_clobbers)
6258 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
6261 2016-02-09 Richard Biener <rguenther@suse.de>
6263 PR tree-optimization/69715
6264 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
6265 LHS on calls as non-rewritable.
6267 2016-02-09 Tom de Vries <tom@codesourcery.com>
6270 * lto-wrapper.c (append_diag_options): New function.
6271 (compile_offload_image): Call append_diag_options.
6273 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
6276 * doc/extend.texi (Flag Output Operands): Correct sectioning.
6277 Minor copy-edit to fix verb tenses.
6279 2016-02-08 Jakub Jelinek <jakub@redhat.com>
6281 PR tree-optimization/69209
6282 * ipa-split.c (split_function): If split part is not
6283 returning retval, retval has gimple type but is not
6284 gimple value, force it into a SSA_NAME first.
6286 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
6288 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6291 2016-02-08 Jason Merrill <jason@redhat.com>
6294 * convert.c (convert_to_integer_1): Check dofold on truncation
6296 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6297 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6298 Rename from *_nofold.
6299 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6300 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6302 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6305 * tree.c (build_common_tree_nodes): Remove short_double argument.
6306 All callers changed.
6307 * tree.h (build_common_tree_nodes): Adjust declaration.
6308 * doc/invoke.texi (-fshort-double): Remove documentation.
6309 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6310 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6311 * lto-wrapper.c (merge_and_complain, append_compiler_options)
6312 (append_linker_options): Don't handle OPT_fshort_double.
6314 PR rtl-optimization/68730
6315 * lra-remat.c (insn_to_cand_activation): New static variable.
6316 (lra_remat): Allocate and free it.
6317 (create_cand): New arg activation. Initialize a field in
6318 insn_to_cand_activation if it is nonnull.
6319 (create_cands): Pass the activation insn to create_cand when making
6320 a candidate involving an output reload. Reorganize code a little.
6321 (do_remat): Keep track of active status of candidates in a separate
6324 2016-02-08 Richard Biener <rguenther@suse.de>
6326 PR tree-optimization/69719
6327 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6328 Properly use absolute of the difference of the two offsets to
6329 compare or adjust the segment length.
6331 2016-02-08 Richard Biener <rguenther@suse.de>
6332 Jeff Law <law@redhat.com>
6335 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6336 types for anonymous SSA names.
6338 2016-02-08 Richard Biener <rguenther@suse.de>
6340 PR rtl-optimization/69274
6341 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6343 2016-02-08 Jeff Law <law@redhat.com>
6345 PR tree-optimization/65917
6346 * tree-ssa-dom.c (record_temporary_equivalences): Record both
6347 equivalences from if (x == y) style conditionals.
6348 (loop_depth_of_name): Remove.
6349 (record_equality): Remove loop depth check.
6350 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6351 (const_and_copies::record_const_or_copy_raw): New member function.
6352 * tree-ssa-scopedtables.c
6353 (const_and_copies::record_const_or_copy_raw): New, factored out of
6354 (const_and_copies::record_const_or_copy): Call new member function.
6356 2016-02-05 Jeff Law <law@redhat.com>
6358 PR tree-optimization/68541
6359 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6360 (count_stmts_in_block): New function.
6361 (poor_ifcvt_candidate_code): Likewise.
6362 (is_feasible_trace): Add some heuristics to determine when path
6363 splitting is profitable.
6364 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6365 is a diamond with a single exit.
6367 2016-02-05 Martin Sebor <msebor@redhat.com>
6370 * doc/invoke.texi: Update -Wplacement-new to take an optional
6373 2016-02-06 Richard Henderson <rth@redhat.com>
6376 * tree.c (tree_nop_conversion_p): Do not strip casts into or
6377 out of non-standard address spaces.
6379 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6381 PR rtl-optimization/69691
6382 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6384 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
6386 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6387 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6388 (*ieee128_mfvsrd_64bit): Likewise.
6389 (*ieee128_mfvsrd_32bit): Likewise.
6391 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6395 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6397 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6398 instrumented_version.
6400 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
6402 * doc/invoke.texi (Optimize Options): In table of --param options
6403 rename second occurrence of tracer-min-branch-ratio to
6404 tracer-min-branch-probability, rename
6405 tracer-min-branch-ratio-feedback to
6406 tracer-min-branch-probability-feedback and clarify description,
6407 rename sched-spec-state-edge-prob-cutoff to
6408 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6409 to selsched-insns-to-rename, rename lto-minpartition to
6410 lto-min-partition, delete reorder-blocks-duplicate and
6411 reorder-blocks-duplicate-feedback.
6413 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6415 * config/s390/s390.c (s390_register_info_set_ranges): Remove
6418 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6420 * doc/extend.texi: S/390: Correct some typos.
6422 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6424 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6426 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6429 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6430 (s390_register_info_gprtofpr): Use new macros above.
6431 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6433 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6434 its name. Adjust restore and save gpr ranges.
6435 (s390_register_info_set_ranges): New function.
6436 (s390_register_info): Use new macros above. Call
6437 s390_register_info_set_ranges.
6438 (s390_optimize_register_info): Likewise.
6439 (s390_hard_regno_rename_ok): Use new macros.
6440 (s390_hard_regno_scratch_ok): Likewise.
6441 (s390_emit_epilogue): Likewise.
6442 (s390_can_use_return_insn): Likewise.
6443 (s390_optimize_prologue): Likewise.
6444 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6446 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6449 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6451 (ix86_option_override_internal): Disable TARGET_STV even for
6452 -m{incoming,preferred}-stack-boundary=3.
6454 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6456 * config.gcc: Mark deprecated rtems targets as obsolete.
6458 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
6460 PR rtl-optimization/64682
6461 PR rtl-optimization/69567
6462 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6463 before I2 only if the register is both used and set in I2.
6465 2016-02-04 DJ Delorie <dj@redhat.com>
6467 * config/msp430/msp430.c (msp430_start_function): Add function type.
6469 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6472 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6474 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
6476 PR rtl-optimization/69577
6478 2015-10-29 Richard Henderson <rth@redhat.com>
6482 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6483 sse check to the exact conditions of PR 67609.
6485 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6488 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6489 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6490 not allowed into the traditional Altivec registers.
6491 (movtd_64bit_nodm): Likewise.
6492 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6494 2016-02-04 David Malcolm <dmalcolm@redhat.com>
6496 * config/aarch64/cortex-a57-fma-steering.c
6497 (aarch64_register_fma_steering): Remove "static" from arguments
6500 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
6503 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6506 2016-02-04 Mike Frysinger <vapier@gentoo.org>
6508 * doc/invoke.texi: Delete -mno-fma4.
6510 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
6512 PR rtl-optimization/69577
6513 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6514 (find_subregs_of_mode): Update accordingly. Iterate over partial
6517 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
6519 * config/arm/arm-protos.h (neon_reinterpret): Remove.
6520 * config/arm/arm.c (neon_reinterpret): Remove.
6521 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6522 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6523 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6524 vreinterpretti): Remove.
6525 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6526 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6527 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6528 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6529 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6530 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6531 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6532 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6533 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6534 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6535 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6536 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6537 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6538 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6539 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6540 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6541 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6542 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6543 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6544 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6545 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6546 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6547 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6548 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6549 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6550 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6551 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6552 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6553 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6554 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6555 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6556 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6557 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6558 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6559 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6560 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6561 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6562 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6563 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6564 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6565 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6566 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6567 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6568 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6569 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6570 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6571 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6572 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6573 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6574 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6575 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6576 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6577 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6578 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6579 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6580 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6581 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6582 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6583 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6584 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6585 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6586 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6587 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6588 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6589 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6590 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6591 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6592 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6593 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6594 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6595 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6596 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6597 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6598 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6599 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6600 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6601 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6602 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6603 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6604 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6605 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6606 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6607 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6608 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6609 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6610 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6611 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6612 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6613 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6614 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6615 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6616 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6617 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6618 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6619 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6620 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6621 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6622 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6623 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6624 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6625 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6626 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6627 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6629 2016-02-04 Martin Liska <mliska@suse.cz>
6632 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6633 that are gimple_store_p.
6634 (maybe_instrument_call): Likewise.
6636 2016-02-04 Bin Cheng <bin.cheng@arm.com>
6638 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6639 register scaling out of memory reference and comment why.
6641 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6645 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6646 folding the source of a SET.
6648 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6652 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6653 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6655 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
6659 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6662 2016-02-04 Christian Bruel <christian.bruel@st.com>
6664 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6665 * config/arm/arm.c (arm_set_current_function): Likewise.
6667 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6668 Ilya Enkovich <enkovich.gnu@gmail.com>
6669 H.J. Lu <hongjiu.lu@intel.com>
6672 * config/i386/i386.c (convert_scalars_to_vector): Remove
6673 stack alignment fixes.
6674 (ix86_option_override_internal): Disable TARGET_STV if stack
6675 might not be aligned enough.
6676 (ix86_minimum_alignment): Assert that TARGET_STV is false.
6678 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
6680 * gcc/config/i386/x86-tune.def: Disable default prefetching
6683 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6684 Vladimir Makarov <vmakarov@redhat.com>
6687 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6688 in validating fused toc addresses.
6690 2016-02-03 Jakub Jelinek <jakub@redhat.com>
6693 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6694 range->m_caret fields if range->m_show_caret_p is false.
6697 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6698 Force oldval into register if it does not satisfy reg_or_short_operand
6699 predicate. Fix up formatting.
6701 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
6702 Alexandre Oliva <aoliva@redhat.com>
6705 * lra-constraints.c (simplify_operand_subreg): Check additionally
6706 address validity after potential reloading.
6707 (process_address_1): Check insns validity. In case of failure do
6710 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
6713 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6716 2016-02-02 Jakub Jelinek <jakub@redhat.com>
6718 * wide-int.cc (canonize_uhwi): New function.
6719 (wi::divmod_internal): Use it.
6721 2016-02-02 James Norris <jnorris@codesourcery.com
6723 * gimplify.c (omp_notice_variable): Add usage check.
6725 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6727 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6728 like LE, GE, LT, GT when emitting relational operator.
6730 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6732 * ira-costs.c (find_costs_and_classes): Add extra argument.
6733 * target.def (ira_change_pseudo_allocno_class): Add parameter.
6734 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6735 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6736 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6737 Add best_class parameter, and return it if not ALL_REGS.
6738 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6740 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6743 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6745 * config/aarch64/aarch64.c
6746 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6747 (aarch64_ira_change_pseudo_allocno_class): New function.
6749 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
6752 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6754 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6756 * config/avr/avr.c (avr_option_override): Set
6757 PARAM_ALLOW_STORE_DATA_RACES to 1.
6759 2016-02-02 Richard Biener <rguenther@suse.de>
6761 PR tree-optimization/69595
6762 * match.pd: Add range test simplifications to true/false.
6764 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6766 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6767 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6770 2016-02-02 Richard Biener <rguenther@suse.de>
6772 PR tree-optimization/69606
6773 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6774 info on the result before moving a stmt.
6776 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
6779 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6780 branch with vector comparison.
6781 * config/i386/sse.md (VI48_AVX): New mode iterator.
6782 (define_expand "cbranch<mode>4): Add support for conditional branch
6783 with vector comparison.
6784 * tree-vect-loop.c (optimize_mask_stores): New function.
6785 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6786 has_mask_store field of vect_info.
6787 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6788 vectorized loops having masked stores after vec_info destroy.
6789 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6790 correspondent macros.
6791 (optimize_mask_stores): Add prototype.
6793 2016-02-02 Alan Modra <amodra@gmail.com>
6796 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6799 2016-02-02 Alan Modra <amodra@gmail.com>
6802 * config/rs6000/rs6000.c (need_toc_init): New var, set it
6803 whenever toc_label_name used.
6804 (rs6000_file_start): Don't set up toc section here,
6805 (rs6000_output_function_epilogue): do so here instead,
6806 (rs6000_xcoff_file_start): and here.
6807 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6808 (load_toc_aix_di): Likewise.
6810 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6812 PR rtl-optimization/69592
6813 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6814 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6815 (num_sign_bit_copies_binary_arith_p): New inline function.
6816 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6818 2016-02-01 Jeff Law <law@redhat.com>
6820 PR tree-optimization/69580
6821 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6822 * tree-ssa-threadbackward.c
6823 (fsm_find_control_statement_thread_paths): Do not try to walk
6824 through large PHI nodes.
6826 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6828 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6829 when count is incremented above limit, don't analyze further
6832 * omp-low.c (oacc_parse_default_dims): Avoid
6833 -Wsign-compare warning, make sure value fits into int
6834 rather than just unsigned int.
6836 2016-02-01 Bin Cheng <bin.cheng@arm.com>
6838 PR tree-optimization/67921
6839 * fold-const.c (split_tree): New parameters. Convert pointer
6840 type variable part to proper type before negating.
6841 (fold_binary_loc): Pass new arguments to split_tree.
6843 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6845 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6846 (nvptx_goacc_validate_dims): Extend to handle global defaults.
6847 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6848 * doc/tm.texti: Rebuilt.
6849 * doc/invoke.texi (fopenacc-dim): Document.
6850 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6851 (append_compiler_options): Likewise.
6852 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6853 (oacc_parse_default_dims): New.
6854 (oacc_validate_dims): Add USED arg. Select non-unity default when
6856 (oacc_loop_fixed_partitions): Return mask of used partitions.
6857 (oacc_loop_auto_partitions): Emit dump info.
6858 (oacc_loop_partition): Return mask of used partitions.
6859 (execute_oacc_device_lower): Parse default dimension arg. Adjust
6860 loop partitioning and validation calls.
6862 2016-02-01 Richard Biener <rguenther@suse.de>
6865 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6867 2016-02-01 Richard Biener <rguenther@suse.de>
6869 PR tree-optimization/69574
6870 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6871 of asserting return chrec_dont_know.
6873 2016-02-01 Martin Liska <mliska@suse.cz>
6875 * mem-stats-traits.h: Add copyright header.
6876 * mem-stats.h: Likewise.
6878 2016-02-01 Richard Biener <rguenther@suse.de>
6880 PR tree-optimization/69579
6881 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6882 Do not propagate through abnormal PHI results.
6884 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
6886 * postreload.c (reload_cse_simplify): Remove dead code.
6888 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6890 PR rtl-optimization/69570
6891 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6892 if there is more than one set, not if there is a single set.
6894 2016-02-01 Richard Henderson <rth@redhat.com>
6897 * combine.c (make_compound_operation): When looking through a
6898 subreg, make sure to re-extend to the width of the outer mode.
6900 2016-01-30 Jakub Jelinek <jakub@redhat.com>
6902 PR tree-optimization/69546
6903 * wide-int.cc (wi::divmod_internal): For unsigned division
6904 where both operands fit into uhwi, if o1 is 1 and o0 has
6905 msb set, if divident_prec is larger than bits per hwi,
6906 clear another quotient word and return 2 instead of 1.
6907 Similarly for remainder with msb in HWI set, if dividend_prec
6908 is larger than bits per hwi.
6910 2016-01-29 Martin Jambor <mjambor@suse.cz>
6912 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6913 Use short lowercase names.
6914 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
6915 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6916 acq_rel one. Protect warning agains segfaults if
6917 get_memory_order_name returns NULL.
6918 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6919 with release semantics. Do not warn if get_memory_order already did.
6920 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6921 semantics. Fix check for relaxed or acquire semantics. Do not warn
6922 if get_memory_order already did.
6924 2016-01-29 Sebastian Pop <s.pop@samsung.com>
6926 * doc/install.texi: Document that isl-0.16 is supported.
6928 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
6931 * config/i386/constraints.md (Bm): Describe as special memory
6933 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6934 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6935 * genpreds.c (struct constraint_data): Add is_special_memory.
6936 (have_special_memory_constraints, special_memory_start): New
6938 (special_memory_end): Ditto.
6939 (add_constraint): Add new arg is_special_memory. Add code to
6940 process its true value. Update have_special_memory_constraints.
6941 (process_define_constraint): Pass the new arg.
6942 (process_define_register_constraint): Ditto.
6943 (choose_enum_order): Process special memory.
6944 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6945 function insn_extra_special_memory_constraint.
6946 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6947 * gensupport.c (process_rtx): Process
6948 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6949 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6950 * ira-lives.c (single_reg_class): Use
6951 insn_extra_special_memory_constraint.
6952 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6953 * lra-constraints.c (process_alt_operands): Ditto.
6954 (curr_insn_transform): Use insn_extra_special_memory_constraint.
6955 * recog.c (asm_operand_ok, preprocess_constraints): Process
6957 * reload.c (find_reloads): Ditto.
6958 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6959 * stmt.c (parse_input_constraint): Use
6960 insn_extra_special_memory_constraint.
6962 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6965 * lra-splill.c (lra_final_code_change): Revert r229087 by
6966 removing all sub-registers.
6968 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
6971 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6973 2016-01-29 Jakub Jelinek <jakub@redhat.com>
6976 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6977 SSE1, copy target into the temporary reg first before recursing
6980 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6982 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6985 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6987 * ginclude/stdarg.h: Test __cplusplus instead of
6988 __GXX_EXPERIMENTAL_CXX0X__.
6990 2016-01-29 Richard Biener <rguenther@suse.de>
6992 PR tree-optimization/69547
6993 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6994 Do not mark clobbers necessary.
6995 (mark_all_reaching_defs_necessary_1): Likewise.
6997 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6999 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
7000 declaration name with %qs and print it in both error messages.
7001 Also fix indentation.
7003 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7006 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
7007 trailing blank line from error message.
7009 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
7012 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
7015 2016-01-29 Richard Biener <rguenther@suse.de>
7018 * match.pd: Allow all integral types when simplifying a
7019 widening or sign-changing conversion.
7021 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7023 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
7024 back to setting codegen_error to fail codegen.
7026 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
7029 * config/i386/constraints.md (C): Only accept constant zero operand.
7030 (BC): New constraint.
7031 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
7032 instead of C constraint.
7033 * doc/md.texi (Machine Constraints): Update description
7036 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
7039 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
7041 2016-01-28 Jakub Jelinek <jakub@redhat.com>
7044 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
7047 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
7049 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
7050 branches if using guessed profile.
7052 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
7054 * graphite-optimize-isl.c (optimize_isl): Fix dump.
7056 2016-01-28 Richard Henderson <rth@redhat.com>
7059 * config/aarch64/aarch64-modes.def (CC_Cmode): New
7060 * config/aarch64/aarch64-protos.h: Update.
7061 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
7062 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
7063 (aarch64_get_condition_code_1): Handle CC_Cmode.
7064 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
7065 (*add<mode>3_compareC_cconly_imm): New.
7066 (*add<mode>3_compareC_cconly): New.
7067 (*add<mode>3_compareC_imm): New.
7068 (add<mode>3_compareC): New.
7069 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
7070 to be first. Use aarch64_carry_operation.
7071 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
7072 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
7073 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
7074 (subti3): Use subdi3_compare1.
7075 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
7076 (sub<mode>3_compare1): New.
7077 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
7078 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
7079 (*subsi3_carryin_uxtw): Likewise.
7080 (*ngc<mode>, *ngcsi_uxtw): Likewise.
7081 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
7082 * config/aarch64/iterators.md (DWI): New.
7083 * config/aarch64/predicates.md (aarch64_carry_operation): New.
7084 (aarch64_borrow_operation): New.
7086 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7088 * graphite-optimize-isl.c (optimize_isl): Print a different debug
7089 message when isl does not return a valid schedule.
7091 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7093 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7094 Remove comments from class declarations: they are already in the code
7097 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7099 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
7101 (ternary_op_to_tree): Same.
7102 (unary_op_to_tree): Same.
7103 (nary_op_to_tree): Same.
7104 (gcc_expression_from_isl_expr_op): Same.
7105 (gcc_expression_from_isl_expression): Same.
7106 (graphite_create_new_loop): Same.
7107 (graphite_create_new_loop_guard): Same.
7108 (build_iv_mapping): Same.
7109 (graphite_create_new_guard): Same.
7110 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
7111 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
7113 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7115 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
7116 instead of setting codegen_error to fail codegen.
7118 2016-01-28 Jason Merrill <jason@redhat.com>
7120 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
7122 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7124 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7125 Remove CONST_INT_P check in CCMP cost calculation.
7127 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7129 * config/aarch64/aarch64.c (generic_vector_cost):
7130 Set vec_permute_cost.
7131 (cortexa57_vector_cost): Likewise.
7132 (exynosm1_vector_cost): Likewise.
7133 (xgene1_vector_cost): Likewise.
7134 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
7135 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
7136 Add vec_permute_cost entry.
7138 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7140 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
7142 (add<mode>3_compare0): Likewise.
7143 (addsi3_compare0_uxtw): Likewise.
7144 (add<mode>3nr_compare0): Likewise.
7145 (compare_neg<mode>): Likewise.
7146 (<optab><mode>3): Likewise.
7148 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
7150 * tree-vect-stmts.c (vectorizable_comparison): Add
7151 NULL check for vectype.
7153 2016-01-28 Richard Biener <rguenther@suse.de>
7155 PR tree-optimization/69466
7156 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7157 Account for PHIs we couldn't duplicate.
7159 2016-01-28 Martin Liska <mliska@suse.cz>
7162 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
7163 instead of ENABLE_VALGRIND_CHECKING.
7165 2016-01-27 Richard Henderson <rth@redhat.com>
7168 * lra-remat.c (subreg_regs): New.
7169 (dump_candidates_and_remat_bb_data): Dump it.
7170 (operand_to_remat): Reject if operand in subreg_regs.
7171 (set_bb_regs): Collect subreg_regs.
7172 (lra_remat): Init and free subreg_regs. Compute
7173 calculate_local_reg_remat_bb_data before create_cands.
7175 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
7178 * config/i386/i386.c (ix86_update_stack_boundary): Don't
7179 change stack_alignment_needed for __tls_get_addr call.
7181 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
7183 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
7185 2016-01-27 Jeff Law <law@redhat.com>
7187 PR tree-optimization/68398
7188 PR tree-optimization/69196
7189 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
7190 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
7191 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7192 Only count PHIs in the last block in the path. The others will
7193 const/copy propagate away. Add heuristic to allow more irreducible
7194 subloops to be created when it is likely profitable to do so.
7196 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7197 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
7198 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
7200 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7203 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
7204 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
7205 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
7206 * tree-streamer-in.c: Include asan.h.
7207 (streamer_get_builtin_tree): For builtins in sanitizer
7208 range call initialize_sanitizer_builtins and retry.
7210 2016-01-27 Ian Lance Taylor <iant@google.com>
7212 * common.opt (fkeep-gc-roots-live): New undocumented option.
7213 * tree-ssa-loop-ivopts.c (add_candidate_1): If
7214 -fkeep-gc-roots-live, skip pointers.
7215 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
7218 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
7221 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
7222 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
7224 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
7227 * configure.ac: NetBSD provides SSP in its C library.
7228 * configure: Updated.
7230 2016-01-27 Richard Biener <rguenther@suse.de>
7232 PR tree-optimization/69166
7233 * tree-vect-loop.c (vect_is_simple_reduction): Always check
7234 reduction code for commutativity / associativity.
7236 2016-01-27 Martin Jambor <mjambor@suse.cz>
7238 PR tree-optimization/69355
7239 * tree-sra.c (analyze_access_subtree): Correct hole detection when
7240 total_scalarization fails.
7242 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
7244 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
7247 2016-01-27 Christian Bruel <christian.bruel@st.com>
7250 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
7251 Move arm_reset_previous_fndecl and set_target_option_current_node in
7252 the conditional part. Call save_restore_target_globals.
7253 * config/arm/arm.c (arm_set_current_function):
7254 Refactor to better support #pragma target and attribute mix.
7255 Call save_restore_target_globals.
7256 * config/arm/arm-protos.h (save_restore_target_globals): New function.
7258 2016-01-27 Martin Liska <mliska@suse.cz>
7260 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
7261 reference for an HSA kernel and its host function.
7263 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7265 PR tree-optimization/69399
7266 * wide-int.h (wi::lrshift): For larger precisions, only
7267 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
7269 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
7271 * config/arc/predicates.md (proper_comparison_operator): Reject
7272 constant-constant comparison.
7274 2016-01-26 Tom de Vries <tom@codesourcery.com>
7276 PR tree-optimization/69110
7277 * tree-data-ref.c (initialize_data_dependence_relation): Handle
7278 DR_NUM_DIMENSIONS == 0.
7280 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7281 Sebastian Pop <s.pop@samsung.com>
7283 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
7284 isl_ast_op_cond and isl_ast_op_select.
7285 (gcc_expression_from_isl_expr_op): Same.
7287 2016-01-26 Jason Merrill <jason@redhat.com>
7290 * tree.c (recompute_constructor_flags): Split out from
7292 (verify_constructor_flags): New.
7293 * tree.h: Declare them.
7295 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
7297 PR rtl-optimization/69217
7298 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7299 are no TYPE_FIELDS set for the record type.
7301 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7304 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7305 toc_label_name unconditionally.
7306 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7307 SYMBOL_REF string. Use toc_label_name instead of constructing
7309 (rs6000_elf_declare_function_name): Use toc_label_name instead of
7310 constructing LCTOC1.
7312 2016-01-26 Martin Sebor <msebor@redhat.com>
7315 * doc/extend.texi (Common Type Attributes): Move text that talks about
7316 attribute packed from attribute aligned to the section discussing
7317 the former attribute for clarity.
7319 2016-01-26 Richard Henderson <rth@redhat.com>
7322 * trans-mem.c (tm_region_init): Mark entry block as visited.
7324 2016-01-26 David Malcolm <dmalcolm@redhat.com>
7327 * diagnostic-show-locus.c (layout::print_source_line): Replace
7328 call to pp_newline with call to layout::print_newline.
7329 (layout::print_annotation_line): Likewise.
7330 (layout::move_to_column): Likewise.
7331 (layout::print_any_fixits): After printing any fixits, print a
7332 trailing newline, if necessary.
7333 (layout::print_newline): New method, resetting any colorization
7335 (diagnostic_show_locus): Move the pp_newline to before the
7336 early bailout. Remove dummy block enclosing the layout instance.
7337 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7338 of pp_newline_and_flush with pp_flush.
7339 (diagnostic_append_note): Delete use of pp_newline.
7340 (diagnostic_append_note_at_rich_loc): Delete.
7341 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7342 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7343 when newline characters are added to the buffer.
7345 2016-01-26 Michael Matz <matz@suse.de>
7347 * configure.ac (ac_cv_std_swap_in_utility): New test.
7348 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7349 * configure: Regenerate.
7350 * config.in: Regenerate.
7352 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
7354 * config/arc/arc.md (cstoresi4): Force operand into register.
7355 (arcset<code>): Fix predicate.
7356 (arcsetltu): Likewise.
7357 (arcsetgeu): Likewise.
7358 (arcsethi): Likewise.
7359 (arcsetls): Likewise.
7361 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7363 PR tree-optimization/69483
7364 * gimple-fold.c (canonicalize_constructor_val): Return NULL
7365 if base has error_mark_node type.
7367 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
7370 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7371 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7373 (vget_lane_f16): Handle big-endian.
7374 (vgetq_lane_f16): Likewise.
7375 (vset_lane_f16): Likewise.
7376 (vsetq_lane_f16): Likewise.
7377 * config/arm/iterators.md (VQXMOV): Add V8HF.
7378 (VDQ): Add V4HF and V8HF.
7379 (V_reg): Handle V4HF and V8HF.
7380 (Is_float_mode): Likewise.
7381 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7382 neon_vdup_nv8hf): New patterns.
7383 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7384 Use VD_LANE iterator.
7385 (neon_vld1_dup<mode>): Use VQ2 iterator.
7387 2016-01-26 Nathan Sidwell <nathan@acm.org>
7389 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7390 (set_oacc_fn_attrib): Add IS_KERNEL arg.
7391 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7392 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7393 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7394 (oacc_validate_dims): Add LEVEL arg, don't return level.
7395 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7397 (execute_oacc_device_lower): Adjust, add more dump output.
7398 * tree-ssa-loop.c (gate_oacc_kernels): Use
7399 oacc_fn_attrib_kernels_p.
7400 * tree-parloops.c (create_parallel_loop): Adjust
7401 set_oacc_fn_attrib call.
7403 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7406 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7407 (append_compiler_options): Handle -fcilkplus.
7408 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7410 2016-01-26 Nick Clifton <nickc@redhat.com>
7413 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7414 been marked as DECL_ONE_ONLY but we do not the means to make it
7415 so, then do not allow it to bind locally.
7417 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7420 * opts.h (parse_sanitizer_options): New prototype.
7421 * opts.c (sanitizer_opts): New array.
7422 (parse_sanitizer_options): New function.
7423 (common_handle_option): Use parse_sanitizer_options.
7425 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
7428 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7429 alignment adjustment to ...
7430 (ix86_update_stack_boundary): Here. Don't over-align stack for
7432 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7433 if __tls_get_addr is called.
7435 2016-01-26 Christian Bruel <christian.bruel@st.com>
7437 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7439 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
7441 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7443 2016-01-26 Richard Biener <rguenther@suse.de>
7446 * match.pd: Guard X * CST CMP 0 pattern with single_use.
7448 2016-01-26 Richard Biener <rguenther@suse.de>
7450 PR tree-optimization/69452
7451 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7452 (move_computations_dom_walker::before_dom_children): Rename
7454 (move_computations_worker): This.
7455 (move_computations): Perform an RPO rather than a DOM walk.
7457 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7460 * combine.c (combine_instructions): For REG_EQUAL note with
7461 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7462 to the underlying register.
7463 * doc/rtl.texi (REG_EQUAL): Document the behavior of
7464 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7466 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
7469 * config/aarch64/aarch64-builtins.c
7470 (aarch64_init_simd_builtin_types): Do not set structural
7471 equality to __Poly{8,16,64,128}_t types.
7473 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
7475 PR tree-optimization/69400
7476 * wide-int.cc (wi_pack): Take the precision as argument and
7477 perform canonicalization here rather than in the callers.
7478 Use the main loop to handle all full-width HWIs. Add a
7479 zero HWI if in_len isn't a full result.
7480 (wi::divmod_internal): Update accordingly.
7481 (wi::mul_internal): Likewise. Simplify.
7483 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7484 Sebastian Pop <s.pop@samsung.com>
7486 * graphite-poly.c (apply_poly_transforms): Simplify.
7487 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7488 (print_isl_map): Same.
7489 (print_isl_union_map): Same.
7490 (print_isl_schedule): New.
7491 (debug_isl_schedule): New.
7492 * graphite-dependences.c (scop_get_reads): Do not call
7493 isl_union_map_add_map that is undocumented isl functionality.
7494 (scop_get_must_writes): Same.
7495 (scop_get_may_writes): Same.
7496 (scop_get_original_schedule): Remove.
7497 (scop_get_dependences): Do not call isl_union_map_compute_flow that
7498 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
7499 (compute_deps): Remove.
7500 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7501 (debug_schedule_ast): New.
7502 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7503 set_separate_option.
7504 (graphite_regenerate_ast_isl): Add dump.
7505 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7506 from scop->transformed_schedule.
7507 (graphite_regenerate_ast_isl): Add more dump.
7508 * graphite-optimize-isl.c (optimize_isl): Set
7509 scop->transformed_schedule. Check whether schedules are equal.
7510 (apply_poly_transforms): Move here.
7511 * graphite-poly.c (apply_poly_transforms): ... from here.
7512 (free_poly_bb): Static.
7513 (free_scop): Static.
7514 (pbb_number_of_iterations_at_time): Remove.
7515 (print_isl_ast): New.
7516 (debug_isl_ast): New.
7517 (debug_scop_pbb): New.
7518 * graphite-scop-detection.c (print_edge): Move.
7520 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7521 (build_scop_scattering): Remove.
7522 (create_pw_aff_from_tree): Assert instead of bailing out.
7523 (add_condition_to_pbb): Remove unused code, do not fail.
7524 (add_conditions_to_domain): Same.
7525 (add_conditions_to_constraints): Remove.
7526 (build_scop_context): New.
7527 (add_iter_domain_dimension): New.
7528 (build_iteration_domains): Initialize pbb->iterators.
7529 Call add_conditions_to_domain.
7532 (index_outermost_in_loop): New.
7533 (index_pbb_in_loop): New.
7534 (outermost_pbb_in): New.
7535 (add_in_sequence): New.
7536 (add_outer_projection): New.
7537 (outer_projection_mupa): New.
7538 (add_loop_schedule): New.
7539 (build_schedule_pbb): New.
7540 (build_schedule_loop): New.
7541 (embed_in_surrounding_loops): New.
7542 (build_schedule_loop_nest): New.
7543 (build_original_schedule): New.
7544 (build_poly_scop): Call build_original_schedule.
7545 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7546 (free_poly_dr): Remove.
7547 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
7548 (free_poly_bb): Remove.
7549 (debug_loop_vec): Remove.
7550 (print_isl_ast): Declare.
7551 (debug_isl_ast): Declare.
7552 (scop_do_interchange): Remove.
7553 (scop_do_strip_mine): Remove.
7554 (scop_do_block): Remove.
7555 (flatten_all_loops): Remove.
7556 (optimize_isl): Remove.
7557 (pbb_number_of_iterations_at_time): Remove.
7558 (debug_scop_pbb): Declare.
7559 (print_schedule_ast): Declare.
7560 (debug_schedule_ast): Declare.
7561 (struct scop): Remove schedule. Add original_schedule,
7562 transformed_schedule.
7563 (free_gimple_poly_bb): Remove.
7564 (print_generated_program): Remove.
7565 (debug_generated_program): Remove.
7566 (unify_scattering_dimensions): Remove.
7567 * sese.c (print_edge): ... here.
7568 (print_sese): ... here.
7569 (debug_edge): ... here.
7570 (debug_sese): ... here.
7571 * sese.h (print_edge): Declare.
7572 (print_sese): Declare.
7573 (dump_edge): Declare.
7574 (dump_sese): Declare.
7576 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7577 Sebastian Pop <s.pop@samsung.com>
7579 * Makefile.in: Set ISLVER in site.exp.
7581 2016-01-25 Jakub Jelinek <jakub@redhat.com>
7583 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7584 DECL_VALUE_EXPR of new_var even for the non-array case. Look
7585 through DECL_VALUE_EXPR for expansion.
7587 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7589 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7590 the frame info after reload completed.
7592 2016-01-25 Jeff Law <law@redhat.com>
7594 PR tree-optimization/69196
7595 PR tree-optimization/68398
7596 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7597 tree-ssa-threadupdate.c.
7598 (determine_bb_domination_status): Prototype
7599 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7600 (determine_bb_domination_status): No longer static.
7601 (valid_jump_thread_path): Remove code to detect characteristics
7602 of the jump thread path not associated with correctness.
7603 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7604 Correct test for thread path length. Count PHIs for real operands as
7605 statements that need to be copied. Do not count ASSERT_EXPRs.
7606 Look at all the blocks in the thread path. Compute and selectively
7607 filter thread paths based on threading through the latch, threading
7608 a multiway branch or crossing a multiway branch.
7610 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7612 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
7613 decl with __attribute__ ((unused)) annotation.
7615 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
7618 * tree-vect-stmts.c (vectorizable_condition): Check vectype
7619 of operands is compatible with a statement vectype.
7621 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
7623 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7624 improve wording for mixed storage order support.
7626 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
7628 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7629 (vcvt_u64_f64): Likewise.
7630 (vcvta_s64_f64): Likewise.
7631 (vcvta_u64_f64): Likewise.
7632 (vcvtm_s64_f64): Likewise.
7633 (vcvtm_u64_f64): Likewise.
7634 (vcvtn_s64_f64): Likewise.
7635 (vcvtn_u64_f64): Likewise.
7636 (vcvtp_s64_f64): Likewise.
7637 (vcvtp_u64_f64): Likewise.
7639 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
7641 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7642 (arc_init): Check validity mll64 option.
7643 (arc_save_restore): Use double load/store instruction.
7644 (arc_expand_movmem): Likewise.
7645 (arc_split_move): Don't split if we have double load/store
7646 instructions. Returns a boolean.
7647 (arc_process_double_reg_moves): Change function to return boolean
7648 instead of a sequence of instructions.
7649 (arc_dwarf_register_span): New function.
7650 * config/arc/arc-protos.h (arc_split_move): Change prototype.
7651 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7652 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7653 (*movdf_insn): Likewise.
7654 * config/arc/arc.opt (mll64): New option.
7655 * config/arc/predicates.md (even_register_operand): New predicate.
7656 * doc/invoke.texi (ARC Options): Add mll64 documentation.
7658 2016-01-25 Richard Biener <rguenther@suse.de>
7661 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7662 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7664 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7666 2016-01-25 Richard Biener <rguenther@suse.de>
7668 PR tree-optimization/69376
7669 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7671 (VN_INFO_ANTI_RANGE_P): New inline.
7672 (VN_INFO_RANGE_TYPE): Likewise.
7673 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7674 SSA_NAME_ANTI_RANGE_P.
7675 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7676 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7677 Properly query VN_INFO_RANGE_TYPE.
7679 2016-01-25 Nick Clifton <nickc@redhat.com>
7682 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7684 2016-01-23 Tom de Vries <tom@codesourcery.com>
7686 PR tree-optimization/69426
7687 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7690 2016-01-23 Jakub Jelinek <jakub@redhat.com>
7692 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7693 "the the" with "the" in the comments.
7694 * ipa-devirt.c (build_type_inheritance_graph,
7695 update_type_inheritance_graph): Likewise.
7696 * tree.c (build_function_type_list_1): Likewise.
7697 * cfgloopmanip.c (scale_loop_profile): Likewise.
7698 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7699 * gimple-ssa-split-paths.c
7700 (find_block_to_duplicate_for_splitting_paths): Likewise.
7701 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7702 * expr.c (convert_move): Likewise.
7703 * var-tracking.c (vt_stack_adjustments): Likewise.
7704 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7705 * tree-vrp.c (test_for_singularity): Likewise.
7707 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7708 directly instead of building a temporary tree.
7711 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7712 remove <algorithm> include.
7714 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7717 * config/i386/i386.c: Include dojump.h.
7718 (expand_small_movmem_or_setmem,
7719 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7721 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7722 if dynamic_check != -1.
7724 2016-01-21 Jeff Law <law@redhat.com>
7727 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7728 record_temporary_equivalences. Rewritten to avoid unnecessary calls
7729 into dominated_by_p.
7730 (cprop_into_successor_phis): Avoid unnecessary tests.
7732 2016-01-22 Richard Henderson <rth@redhat.com>
7735 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7736 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7738 2016-01-22 Michael Matz <matz@suse.de>
7740 * system.h (string, algorithm): Include only conditionally.
7741 (new): Include always under C++.
7742 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7743 * final.c (toplevel): Ditto.
7744 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7745 * genconditions.c (write_header): Make gencondmd.c define
7747 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7749 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7750 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7752 2016-01-22 Christian Bruel <christian.bruel@st.com>
7755 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7757 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7760 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7761 define_insn_and_split. Ensure operands[1] and operands[0] do not
7762 get assigned the same register.
7764 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7766 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7768 2016-01-22 Christian Bruel <christian.bruel@st.com>
7770 * config/arm/arm-c.c (arm_pragma_target_parse):
7771 Remove warn_builtin_macro_redefined overwrite.
7773 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7775 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7776 flag_non_call_exceptions compatibility.
7778 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7781 * dwarf2out.c (add_child_die_after): New function.
7782 (dwarf_qual_info_t): New type.
7783 (dwarf_qual_info): New variable.
7784 (qualified_die_p): New function.
7785 (modified_type_die): For -fdebug-types-section, ensure
7786 canonical order of qualifiers. Put qualified DIEs adjacent
7787 to the corresponding non-qualified type DIE and search there
7788 for existing qualified DIEs.
7790 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7792 * doc/extend.texi (scalar_storage_order type attribute): Document
7793 restriction on type punning and aliasing, and remove future tense.
7795 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
7798 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7801 2016-01-21 Jeff Law <law@redhat.com>
7804 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7805 useless call to record_temporary_equivalences.
7806 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7807 allocate 10 slots in the bb_path vector and let it grow as needed.
7808 (fsm_find_control_statement_thread_paths): Similarly for the next_path
7811 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7813 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7815 * configure: Regenerate.
7817 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
7819 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7820 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7822 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
7825 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7826 drop EXPAND_INITIALIZER.
7827 * rtl.h (contains_symbolic_reference_p): Declare.
7828 * rtlanal.c (contains_symbolic_reference_p): New function.
7829 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7830 a subtraction into a NOT if symbolic constants are involved.
7832 2016-01-21 Anton Blanchard <anton@samba.org>
7833 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7836 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7838 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7841 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7843 * config/microblaze/microblaze.c
7844 (get_branch_target): New.
7845 (insert_wic_for_ilb_runout): New.
7847 (microblaze_machine_dependent_reorg): New.
7848 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7849 * config/microblaze/microblaze.md
7850 (UNSPEC_IPREFETCH): Define.
7851 (iprefetch): New pattern
7852 * config/microblaze/microblaze.opt
7853 (mxl-prefetch): New flag.
7855 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7857 * config/microblaze/microblaze.h
7858 (FIXED_REGISTERS): Update in macro.
7859 (CALL_USED_REGISTERS): Update in macro.
7861 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
7863 PR rtl-optimization/68920
7864 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7867 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
7869 PR rtl-optimization/68990
7870 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7871 pseudo instead of inheritance ones.
7873 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7874 Nick Clifton <nickc@redhat.com>
7878 * config/mips/mips.c (mips_compute_frame_info): Initialise
7879 args_size and hard_frame_pointer_offset fields of the frame
7880 structure before calling mips_global_pointer.
7882 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7884 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7886 * configure: Regenerate.
7888 2016-01-21 Richard Biener <rguenther@suse.de>
7890 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7892 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7894 * config/s390/s390.c (s390_asm_declare_function_size): Add code
7895 to actually emit the .size directive.
7897 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
7898 Jakub Jelinek <jakub@redhat.com>
7902 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7903 args array size by one to avoid buffer overflow.
7905 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7907 * config/s390/s390.md (pool_section_start): Use switch_to_section
7908 to select proper read-only data section instead of hardcoding
7910 (pool_section_end): Use switch_to_section to match the above.
7912 2016-01-21 Richard Biener <rguenther@suse.de>
7914 PR tree-optimization/69378
7915 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7916 (set_ssa_val_to): Use it for dominance checks taking into
7917 account not executable edges.
7919 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7922 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7923 for bitsize instead of GET_MODE_PRECISION (mode).
7925 2016-01-20 Martin Sebor <msebor@redhat.com>
7928 * extend.texi (__sync Builtins): Clarify the semantics of
7929 __sync_fetch_and_OP built-ins on pointers.
7930 (__atomic Builtins): Same.
7932 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7933 Sebastian Pop <s.pop@samsung.com>
7935 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7936 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7937 (is_valid_rename): Same.
7938 (translate_isl_ast_to_gimple::get_rename): Same.
7939 (translate_isl_ast_to_gimple::rename_all_uses): Same.
7940 (translate_isl_ast_to_gimple::rename_uses): Same.
7941 (get_new_name): Check for close_phi nodes.
7942 (copy_loop_phi_args): Use phi_node_kind.
7943 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7944 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7946 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7947 Sebastian Pop <s.pop@samsung.com>
7949 Revert commit r229783.
7950 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7951 Remove use of parameter_rename_map.
7953 (copy_internal_parameters): Remove.
7954 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7955 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7956 (free_sese_info): Do not free parameter_rename_map.
7957 (set_rename): Do not use parameter_rename_map.
7958 (rename_uses): Update call to set_rename.
7959 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7960 * sese.h (parameter_rename_map_t): Remove.
7961 (struct sese_info_t): Remove field parameter_rename_map.
7963 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7964 Sebastian Pop <s.pop@samsung.com>
7966 * graphite-isl-ast-to-gimple.c: Fix comment.
7967 * graphite-scop-detection.c (defined_in_loop_p): New.
7968 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7969 names defined in loop.
7971 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7972 Sebastian Pop <s.pop@samsung.com>
7974 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7975 Discard unstructured if-then-else regions.
7977 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7978 Sebastian Pop <s.pop@samsung.com>
7980 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7981 (cleanup_loop_iter_dom): Remove.
7982 (build_loop_iteration_domains): Remove.
7983 (build_scop_context): Remove.
7984 (build_scop_iteration_domain): Remove.
7985 (add_loop_constraints): New.
7986 (build_iteration_domains): New.
7987 (build_poly_scop): Call build_iteration_domains.
7989 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7990 Sebastian Pop <s.pop@samsung.com>
7992 * graphite-scop-detection.c
7993 (scop_detection::harmful_loop_in_region): Free dom and loops.
7994 (scop_detection::loop_body_is_valid_scop): Free bbs.
7996 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7997 Sebastian Pop <s.pop@samsung.com>
7999 * graphite-scop-detection.c (record_loop_in_sese): New.
8000 (gather_bbs::before_dom_children): Call record_loop_in_sese.
8001 (build_scops): Remove call to build_sese_loop_nests.
8002 * sese.c (sese_record_loop): Remove.
8003 (build_sese_loop_nests): Remove.
8004 (new_sese_info): Remove region->loops.
8005 (free_sese_info): Same.
8006 * sese.h (sese_contains_loop): Same.
8007 (build_sese_loop_nests): Remove.
8008 (sese_contains_loop): Remove.
8010 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8011 Sebastian Pop <s.pop@samsung.com>
8013 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
8014 loop_is_valid_in_scop.
8015 (scop_detection::harmful_stmt_in_region): Renamed
8016 harmful_loop_in_region.
8017 Call loop_is_valid_in_scop.
8019 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8020 Sebastian Pop <s.pop@samsung.com>
8022 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
8025 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8026 Sebastian Pop <s.pop@samsung.com>
8028 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
8029 * graphite.h (struct poly_bb): Remove field is_reduction.
8030 (PBB_IS_REDUCTION): Remove.
8032 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8033 Sebastian Pop <s.pop@samsung.com>
8035 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
8036 (add_pdr_constraints): Same.
8037 (scop_get_reads): Same.
8038 (scop_get_must_writes): Same.
8039 (scop_get_may_writes): Same.
8040 (scop_get_original_schedule): Same.
8041 (extend_schedule): Same.
8042 (apply_schedule_on_deps): Same.
8043 (carries_deps): Same.
8044 (compute_deps): Same.
8045 (scop_get_dependences): Same.
8046 * graphite-isl-ast-to-gimple.c
8047 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
8048 * graphite-optimize-isl.c (get_schedule_for_band): Same.
8049 (get_schedule_for_band_list): Same.
8050 (get_schedule_map): Same.
8051 (apply_schedule_map_to_scop): Same.
8052 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8053 (build_loop_iteration_domains): Same.
8054 (add_condition_to_pbb): Same.
8055 (add_param_constraints): Same.
8056 (pdr_add_memory_accesses): Same.
8057 (pdr_add_data_dimensions): Same.
8059 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
8061 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
8064 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
8066 * common.opt (feliminate-dwarf2-dups): Replace references to
8067 "DWARF 2" with just "DWARF".
8068 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
8069 * doc/extend.texi: Likewise.
8070 * doc/cpp.texi: Likewise.
8071 * doc/invoke.texi: Likewise.
8072 (Option Summary): Add -gdwarf to list of Debugging Options.
8073 (Debugging Options): Document -gdwarf.
8074 * doc/contrib.texi: Spell "DWARF" like that.
8076 2016-01-21 Jakub Jelinek <jakub@redhat.com>
8078 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
8079 warning. Fix up formatting.
8082 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
8083 attempt to mark memory input operand addressable and
8084 call prepare_gimple_addressable in that case. Don't adjust
8085 input_location for diagnostics, use error_at instead.
8087 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
8089 * config/rs6000/ppc-auxv.h: New file.
8090 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
8092 (cpu_supports): Likewise.
8093 * config/rs6000/rs6000.c: include "ppc-auxv.h".
8094 (cpu_is_info): New variable.
8095 (cpu_supports_info): Likewise.
8096 (tcb_verification_symbol): Likewise.
8097 (cpu_builtin_p): Likewise.
8098 (cpu_expand_builtin): New function.
8099 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
8100 (rs6000_init_builtins): Likewise.
8101 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
8102 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
8103 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
8104 * configure: Regenerate.
8105 * config.in: Likewise.
8106 * doc/extend.texi (PowerPC Built-in Functions): Document
8107 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
8109 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
8112 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
8114 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
8117 2016-01-20 Richard Henderson <rth@redhat.com>
8123 * tree.c (tm_define_builtin): New.
8124 (find_tm_vector_type): New.
8125 (build_tm_vector_builtins): New.
8126 (build_common_builtin_nodes): Call it.
8128 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
8130 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
8131 (arm_fp_ok): Likewise.
8133 (arm_crypto): Likewise.
8135 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
8136 Richard Biener <rguenther@suse.de>
8138 PR tree-optimization/69328
8139 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
8140 vectors have same number of elements.
8141 (vectorizable_condition): Fix masked version recognition.
8143 2016-01-20 Richard Biener <rguenther@suse.de>
8145 PR tree-optimization/69345
8146 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
8147 (VN_INFO_PTR_INFO): Likewise.
8148 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
8149 info when it is equal between non-dominating SSA names.
8150 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8151 Make sure to look at original SSA infos.
8153 2016-01-20 Jeff Law <law@redhat.com>
8156 * config/m68k/predicates.md (pow2_m1_operand): New predicate
8158 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
8159 (pc_or_label_operand): New predicate.
8160 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
8161 tests for small integers that are 2^n - 1.
8163 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
8165 * doc/invoke.texi (Options Summary): Add '.' after @xref.
8167 2016-01-19 Jeff Law <law@redhat.com>
8170 * tree-ssa-threadbackwards.c
8171 (fsm_find_control_statement_thread_paths): Do not try to lookup
8172 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
8174 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
8176 * doc/lto.texi: Remove text that says only Gold has linker plugin
8179 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
8181 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
8182 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
8183 the DIE accordingly.
8184 (modified_type_die): Add REVERSE parameter and pass it recursively,
8185 as well as to base_type_die. Adjust presence check accordingly.
8186 (base_type_for_mode): Adjust call to modified_type_die.
8187 (add_type_attribute): Add REVERSE parameter and pass it to
8189 (generic_parameter_die): Adjust call to add_type_attribute.
8190 (add_scalar_info): Likewise.
8191 (add_subscript_info): Likewise.
8192 (gen_array_type_die): Likewise.
8193 (gen_descr_array_type_die): Likewise.
8194 (gen_entry_point_die): Likewise.
8195 (gen_enumeration_type_die): Likewise.
8196 (gen_formal_parameter_die): Likewise.
8197 (gen_subprogram_die): Likewise.
8198 (gen_variable_die ): Likewise.
8199 (gen_const_die): Likewise.
8200 (gen_field_die): Likewise.
8201 (gen_pointer_type_die): Likewise.
8202 (gen_reference_type_die): Likewise.
8203 (gen_ptr_to_mbr_type_die): Likewise.
8204 (gen_inheritance_die): Likewise.
8205 (gen_subroutine_type_die): Likewise.
8206 (gen_typedef_die): Likewise.
8207 (force_type_die): Adjust call to modified_type_die.
8209 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
8211 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
8212 flow throughout the file. Fix broken link to Objective-C 2.0
8214 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
8217 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8219 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
8221 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8224 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
8225 (maybe_record_node): Record cxa_pure_virtual as the only possible
8226 target if there are not ohter candidates.
8227 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
8229 2016-01-19 Richard Biener <rguenther@suse.de>
8231 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
8232 (get_memory_order): Likewise.
8234 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
8236 * tree-vect-stmts.c (vectorizable_store): Check
8239 2016-01-19 David Malcolm <dmalcolm@redhat.com>
8242 * gcc.c (driver::decode_argv): Add call to
8243 init_opts_obstack before init_options_struct.
8244 * opts.c (init_opts_obstack): Remove idempotency.
8245 (init_options_struct): Replace call to init_opts_obstack
8246 with a gcc_assert to verify that it has already been called.
8247 * toplev.c (toplev::main): Add call to init_opts_obstack before
8248 calls to init_options_struct.
8249 (toplev::finalize): Move cleanup of opts_obstack next to
8250 cleanup of save_decoded_options, clearing the latter, and
8251 save_decoded_options_count.
8253 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8256 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
8257 attribute to unconditional. Remove %? from output template.
8259 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8260 Jiong Wang <jiong.wang@arm.com>
8262 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
8263 generated from different expand order.
8265 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8267 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8268 Add support for CCMP costing.
8270 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8272 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
8273 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
8274 (fccmpe<mode>): Likewise.
8275 (fcmp): Rename to fcmp and globalize pattern.
8277 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
8278 (aarch64_gen_ccmp_next): Add FP support.
8280 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8282 * target.def (gen_ccmp_first): Update documentation.
8283 (gen_ccmp_next): Likewise.
8284 * doc/tm.texi (gen_ccmp_first): Update documentation.
8285 (gen_ccmp_next): Likewise.
8286 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
8287 expand_ccmp_expr_1. Improve comments.
8288 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8289 (ccmp_ior<mode>): Remove pattern.
8290 (cmp<mode>): Remove expand.
8291 (cmp): Globalize pattern.
8292 (cstorecc4): Use cc_register.
8293 (mov<mode>cc): Remove ccmp_cc_register check.
8294 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8295 Simplify after removal of CC_DNE/* modes.
8296 (aarch64_ccmp_mode_to_code): Remove.
8297 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
8298 In 'k' case use integer as condition.
8299 (aarch64_nzcv_codes): Remove inverted cases.
8300 (aarch64_code_to_ccmode): Remove.
8301 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
8302 comparison with CC register to be used in folowing CCMP/branch/CSEL.
8303 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8304 pattern. Return the comparison with CC register. Invert conditions
8306 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8307 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8309 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8311 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8312 instrumented_version.
8314 2016-01-19 Richard Biener <rguenther@suse.de>
8316 PR tree-optimization/69336
8317 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8318 handled components with get_ref_base_and_extent.
8319 (equal_mem_array_ref_p): Adjust.
8321 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8324 * shrink-wrap.c: Include valtrack.h.
8325 (move_insn_for_shrink_wrap): Add DEBUG argument. If
8326 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8327 in between insn and where it will be moved to. Call
8328 dead_debug_insert_temp.
8329 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
8330 first and dead_debug_local_finish at the end.
8331 For uses and defs bitmap, handle all regs in between REGNO and
8332 END_REGNO, not just the first one.
8334 2016-01-19 Richard Biener <rguenther@suse.de>
8336 PR tree-optimization/69352
8337 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8338 (equal_mem_array_ref_p): Constrain size and max size properly.
8339 Compare the reverse flag.
8341 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
8343 * ira.c (ira): Update regstat data if we deleted insns.
8345 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8347 PR rtl-optimization/68955
8348 PR rtl-optimization/64557
8349 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8350 here. Fix up formatting.
8351 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8353 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8356 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8357 assume that the node has body.
8358 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8361 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8363 * lto-streamer-out.c (lto_output): Do not stream instrumentation
8366 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8368 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8369 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8371 2016-01-19 Martin Jambor <mjambor@suse.cz>
8372 Martin Liska <mliska@suse.cz>
8373 Michael Matz <matz@suse.de>
8375 * Makefile.in (OBJS): Add new source files.
8376 (GTFILES): Add hsa.c.
8377 * common.opt (disable_hsa): New variable.
8378 (-Whsa): New warning.
8379 * config.in (ENABLE_HSA): New.
8380 * configure.ac: Treat hsa differently from other accelerators.
8381 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8383 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8384 * doc/install.texi (Configuration): Document --with-hsa-runtime,
8385 --with-hsa-runtime-include, --with-hsa-runtime-lib and
8387 * doc/invoke.texi (-Whsa): Document.
8388 (hsa-gen-debug-stores): Likewise.
8389 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8390 to invoke offload compiler for hsa acclerator.
8391 * opts.c (common_handle_option): Determine whether HSA offloading
8392 should be performed.
8393 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8394 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8395 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8396 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8397 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8398 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8399 GF_OMP_FOR_KIND_GRID_LOOP.
8400 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8401 (pp_gimple_stmt_1): Likewise.
8402 * gimple-walk.c (walk_gimple_stmt): Likewise.
8403 * gimple.c (gimple_build_omp_grid_body): New function.
8404 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8405 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8406 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8407 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8408 GF_OMP_TEAMS_GRID_PHONY.
8409 (gimple_statement_omp_single_layout): Updated comments.
8410 (gimple_build_omp_grid_body): New function.
8411 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8412 (gimple_omp_for_grid_phony): New function.
8413 (gimple_omp_for_set_grid_phony): Likewise.
8414 (gimple_omp_parallel_grid_phony): Likewise.
8415 (gimple_omp_parallel_set_grid_phony): Likewise.
8416 (gimple_omp_teams_grid_phony): Likewise.
8417 (gimple_omp_teams_set_grid_phony): Likewise.
8418 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8419 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8420 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8421 (BUILT_IN_GOMP_TARGET): Updated type.
8422 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8423 (adjust_for_condition): New function.
8424 (get_omp_for_step_from_incr): Likewise.
8425 (extract_omp_for_data): Moved parts to adjust_for_condition and
8426 get_omp_for_step_from_incr.
8427 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8428 (fixup_child_record_type): Bail out if receiver_decl is NULL.
8429 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8430 (scan_omp_parallel): Do not create child functions for phony
8432 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8433 (scan_omp_1_op): Checking assert we are not remapping to
8434 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
8435 (parallel_needs_hsa_kernel_p): New function.
8436 (expand_parallel_call): Register apprpriate parallel child
8437 functions as HSA kernels.
8438 (grid_launch_attributes_trees): New type.
8439 (grid_attr_trees): New variable.
8440 (grid_create_kernel_launch_attr_types): New function.
8441 (grid_insert_store_range_dim): Likewise.
8442 (grid_get_kernel_launch_attributes): Likewise.
8443 (get_target_argument_identifier_1): Likewise.
8444 (get_target_argument_identifier): Likewise.
8445 (get_target_argument_value): Likewise.
8446 (push_target_argument_according_to_value): Likewise.
8447 (get_target_arguments): Likewise.
8448 (expand_omp_target): Call get_target_arguments instead of looking
8449 up for teams and thread limit.
8450 (grid_expand_omp_for_loop): New function.
8451 (grid_arg_decl_map): New type.
8452 (grid_remap_kernel_arg_accesses): New function.
8453 (grid_expand_target_kernel_body): New function.
8454 (expand_omp): Call it.
8455 (lower_omp_for): Do not emit phony constructs.
8456 (lower_omp_taskreg): Do not emit phony constructs but create for them
8457 a temporary variable receiver_decl.
8458 (lower_omp_taskreg): Do not emit phony constructs.
8459 (lower_omp_teams): Likewise.
8460 (lower_omp_grid_body): New function.
8461 (lower_omp_1): Call it.
8462 (grid_reg_assignment_to_local_var_p): New function.
8463 (grid_seq_only_contains_local_assignments): Likewise.
8464 (grid_find_single_omp_among_assignments_1): Likewise.
8465 (grid_find_single_omp_among_assignments): Likewise.
8466 (grid_find_ungridifiable_statement): Likewise.
8467 (grid_target_follows_gridifiable_pattern): Likewise.
8468 (grid_remap_prebody_decls): Likewise.
8469 (grid_copy_leading_local_assignments): Likewise.
8470 (grid_process_kernel_body_copy): Likewise.
8471 (grid_attempt_target_gridification): Likewise.
8472 (grid_gridify_all_targets_stmt): Likewise.
8473 (grid_gridify_all_targets): Likewise.
8474 (execute_lower_omp): Call grid_gridify_all_targets.
8475 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8476 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8477 (tree_omp_clause): Added union field dimension.
8478 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8479 * tree.c (omp_clause_num_ops): Added number of arguments of
8480 OMP_CLAUSE__GRIDDIM_.
8481 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8482 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8483 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8484 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8485 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8486 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8487 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8488 * tree-pass.h (make_pass_gen_hsail): Declare.
8489 (make_pass_ipa_hsa): Likewise.
8490 * ipa-hsa.c: New file.
8491 * lto-section-in.c (lto_section_name): Add hsa section name.
8492 * lto-streamer.h (lto_section_type): Add hsa section.
8493 * timevar.def (TV_IPA_HSA): New.
8494 * hsa-brig-format.h: New file.
8495 * hsa-brig.c: New file.
8496 * hsa-dump.c: Likewise.
8497 * hsa-gen.c: Likewise.
8500 * toplev.c (compile_file): Call hsa_output_brig.
8501 * hsa-regalloc.c: New file.
8503 2016-01-18 Jeff Law <law@redhat.com>
8505 PR tree-optimization/69320
8506 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8507 ranged object, do nothing if the RHS constant is not [0..1].
8508 (optimize_stmt): Comparing a boolean ranged object against a
8509 constant outside [0..1] results in a compile-time constant.
8511 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8514 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
8516 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8517 (Option Summary): Update to reflect new section and moved options.
8518 (C++ Dialect Options): Move -fstats to new section.
8519 (Debugging Options): Move all dump, statistics, and other GCC
8520 developer options to new section. Rewrite section introduction
8521 and re-order remaining options to put the more basic ones first.
8522 (Optimization Options): Move -fira-verbose and -flto-report* to
8524 (Developer Options): New section incorporating moved options.
8525 * doc/cppopts.texi (-dM): Update cross-reference.
8527 2016-01-18 Richard Henderson <rth@redhat.com>
8530 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8531 operands to pseudo only if CSE is expected. Split long immediate
8532 operands only after reload, and for the stack pointer.
8533 (*add<GPI>3_pluslong): Remove.
8534 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8535 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
8536 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8537 (*add<GPI>3 peepholes): New.
8538 (*add<GPI>3 splitters): New.
8539 * config/aarch64/constraints.md (Upl): New.
8540 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8542 2016-01-18 Richard Biener <rguenther@suse.de>
8544 PR tree-optimization/69297
8545 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8547 (vect_bb_vectorization_profitable_p): Clear visited flag again.
8549 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8552 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8553 of mixind vector and scalar types.
8554 (fold_relational_const): Add handling of vector
8555 comparison with boolean result.
8556 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8557 comparison of vector operands with boolean result for EQ/NE only.
8558 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8559 (verify_gimple_cond): Likewise.
8560 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8563 2016-01-18 Joseph Myers <joseph@codesourcery.com>
8565 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8568 2016-01-18 Richard Biener <rguenther@suse.de>
8571 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8573 2016-01-18 Tom de Vries <tom@codesourcery.com>
8575 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8577 2016-01-18 Tom de Vries <tom@codesourcery.com>
8579 * omp-low.c (set_oacc_fn_attrib): Make extern.
8580 * omp-low.h (set_oacc_fn_attrib): Declare.
8581 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8582 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8583 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8584 Add and handle function parameter oacc_kernels_p.
8585 (find_reduc_addr, get_omp_data_i_param): New function.
8586 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8587 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8588 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8589 Calculate dominance info. Skip loops that are not in a kernels region
8590 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
8591 (pass_parallelize_loops::execute): Call parallelize_loops with
8592 oacc_kernels_p argument.
8593 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8594 New member function.
8595 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8596 * passes.def: Add argument to pass_parallelize_loops instantation.
8598 2016-01-18 Tom de Vries <tom@codesourcery.com>
8600 * tree-parloops.c (pass_parallelize_loops::execute): Allow
8601 pass_parallelize_loops to be run outside the loop pipeline.
8603 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8605 * tree-scalar-evolution.c (follow_copies_to_constant): New.
8606 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8608 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8611 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8612 using get_ref_base_and_extent.
8613 (equal_mem_array_ref_p): New.
8614 (hashable_expr_equal_p): Add call to previous.
8616 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8619 * tree-sra.c (disqualified_constants, constant_decl_p): New.
8620 (sra_initialize): Allocate disqualified_constants.
8621 (sra_deinitialize): Free disqualified_constants.
8622 (disqualify_candidate): Update disqualified_constants when appropriate.
8623 (create_access): Scan for constant-pool entries as we go along.
8624 (scalarizable_type_p): Add check against type_contains_placeholder_p.
8625 (maybe_add_sra_candidate): Allow constant-pool entries.
8626 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8627 (initialize_constant_pool_replacements): New.
8628 (sra_modify_assign): Avoid mangling assignments created by previous,
8629 and don't generate writes into constant pool.
8630 (sra_modify_function_body): Call initialize_constant_pool_replacements.
8632 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8634 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8636 (scalar_chain::convert_op): Likewise.
8637 * config/i386/i386.md (*andndi3_doubleword): New.
8639 2016-01-18 Richard Biener <rguenther@suse.de>
8641 PR tree-optimization/69170
8642 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8643 building a vector from scalar results of a pattern stmt.
8645 2016-01-18 Jakub Jelinek <jakub@redhat.com>
8647 * haifa-sched.c (autopref_multipass_init): Work around
8648 -Wmaybe-uninitialized warning.
8650 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8652 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8653 against the constant 0.
8655 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8657 PR tree-optimization/68799
8658 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8659 look up phi candidates in the statement-candidate map.
8660 (phi_add_costs): Likewise.
8661 (record_phi_increments): Likewise.
8662 (phi_incr_cost): Likewise.
8663 (ncd_with_phi): Likewise.
8664 (all_phi_incrs_profitable): Likewise.
8666 2016-01-17 Jakub Jelinek <jakub@redhat.com>
8668 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8669 -Wmaybe-uninitialized warning.
8671 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
8673 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8674 (Option Summary): Update to reflect new section and moved options.
8675 (C++ Dialect Options): Move -fvtable-verify and related options.
8676 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8677 and profiling-related options.
8678 (Optimization Options): Move profile generation options and
8679 -fstack-protector and related options.
8680 (Instrumentation Options): New section incorporating moved options.
8681 (Code Generation Options): Move -finstrument-functions and
8682 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8684 2016-01-16 Tom de Vries <tom@codesourcery.com>
8686 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8688 2016-01-16 Tom de Vries <tom@codesourcery.com>
8690 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
8692 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
8694 * hash-table.h (hash_table::empty): Turn into an inline wrapper
8695 that checks whether the table is already empty. Rename the
8696 original implementation to...
8697 (hash_table::empty_slot): ...this new private function.
8699 2016-01-15 David Malcolm <dmalcolm@redhat.com>
8702 * diagnostic-show-locus.c (layout::print_source_line): Move x
8703 offset of line until after call to
8704 get_line_width_without_trailing_whitespace.
8706 2016-01-15 Jeff Law <law@redhat.com>
8708 PR tree-optimization/69270
8709 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8710 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
8711 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8712 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8713 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8714 ssa_name_has_boolean_range and constant_boolean_node.
8716 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
8718 PR rtl-optimization/69030
8719 * lra-spills.c (remove_pseudos): Check nrefs and make the function
8721 (spill_pseudos): Delete debug insn for dead pseudo.
8722 (lra_spill): Initiate spill_hard_reg and slots memory separately.
8724 2016-01-15 Jiong Wang <jiong.wang@arm.com>
8726 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8728 (TYPES_UNOPUS): Likewise.
8729 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8730 builtin type, from UNOP to UNOPUS.
8731 (lbtruncuv4sf): Likewise.
8732 (lbtruncuv2df): Likewise.
8733 (lrounduv2sf): Likewise.
8734 (lrounduv4sf): Likewise.
8735 (lrounduv2df): Likewise.
8736 (lroundusf): Likewise.
8737 (lroundusf): Likewise.
8738 (lceiluv2sf): Likewise.
8739 (lceiluv4sf): Likewise.
8740 (lceiluv2df): Likewise.
8741 (lceilusf): Likewise.
8742 (lceiludf): Likewise.
8743 (lflooruv2sf): Likewise.
8744 (lflooruv4sf): Likewise.
8745 (lflooruv2df): Likewise.
8746 (lfloorusf): Likewise.
8747 (lfloorudf): Likewise.
8748 (lfrintnuv2sf): Likewise.
8749 (lfrintnuv4sf): Likewise.
8750 (lfrintnuv2df): Likewise.
8751 (lfrintnusf): Likewise.
8752 (lfrintnudf): Likewise.
8753 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8755 (vcvtq_u32_f32): Likewise.
8756 (vcvtq_u64_f64): Likewise.
8757 (vcvta_u32_f32): Likewise.
8758 (vcvtaq_u32_f32): Likewise.
8759 (vcvtaq_u64_f64): Likewise.
8760 (vcvtm_u32_f32): Likewise.
8761 (vcvtmq_u32_f32): Likewise.
8762 (vcvtmq_u64_f64): Likewise.
8763 (vcvtn_u32_f32): Likwise.
8764 (vcvtnq_u32_f32): Likewise.
8765 (vcvtnq_u64_f64): Likewise.
8766 (vcvtp_u32_f32): Likewise.
8767 (vcvtpq_u32_f32): Likewise.
8768 (vcvtpq_u64_f64): Likewise.
8769 (vcvtmd_u64_f64): Likewise.
8770 (vcvtms_u32_f32): Likewise.
8771 (vcvtad_u64_f64): Likewise.
8772 (vcvtas_u32_f32): Likewise.
8773 (vcvtnd_u64_f64): Likewise.
8774 (vcvtns_u32_f32): Likewise.
8775 (vcvtpd_u64_f64): Likewise.
8776 (vcvtps_u32_f32): Likewise.
8778 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8780 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8781 CSEL of zero_extended registers.
8783 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8785 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8786 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8788 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8790 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8791 false when argument string is not found in the attributes table
8794 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
8797 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8798 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8799 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8802 2016-01-15 Richard Biener <rguenther@suse.de>
8804 PR tree-optimization/66856
8805 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8806 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8807 (vect_create_new_slp_node): Increment stmt reference count.
8808 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8809 an SLP tree before swapping operands.
8810 (vect_build_slp_tree): Likewise.
8811 (destroy_bb_vec_info): Free stmt info after SLP instances.
8812 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8813 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8814 (STMT_VINFO_NUM_SLP_USES): New macro.
8816 2016-01-15 Richard Biener <rguenther@suse.de>
8819 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8820 (add_linkage_name): ... here.
8821 (gen_typedef_die): Use add_linkage_name_raw instead of
8822 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8825 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
8827 * gimplify.c (oacc_default_clause): Decode reference and pointer
8828 types for both kernels and parallel regions.
8830 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
8833 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8835 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8837 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8838 (convert_scalars_to_vector): Likewise.
8840 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
8842 * doc/extend.texi (Type Traits): Fix grammar.
8844 2016-01-15 Martin Jambor <mjambor@suse.cz>
8846 * tree-inline.c (remap_decl): Use existing dclarations if
8847 remapping a type and prevent_decl_creation_for_types.
8848 (replace_locals_stmt): Do an initial remapping of non-VLA typed
8849 decls first. Do real remapping with
8850 prevent_decl_creation_for_types set.
8851 * tree-inline.h (copy_body_data): New field
8852 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8855 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8857 * config/s390/s390.opt (mmvcle): More verbose help text.
8859 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8861 * config/s390/s390.opt: Add period to -mzvector option text.
8863 2016-01-15 Richard Biener <rguenther@suse.de>
8865 PR tree-optimization/68961
8866 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8867 of invariants in stores again.
8869 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8871 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8873 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8875 * config/i386/i386.c (ix86_expand_branch): Don't split
8876 DI mode xor instruction to SI mode.
8878 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8881 * ipa-icf.c (sem_function::merge): Virtual functions may become
8882 reachable even if they address is not taken and there are no
8885 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8887 * lto-streamer-out.c (subtract_estimated_size): New function.
8888 (get_symbol_initial_value): Use it.
8890 2016-01-15 Christian Bruel <christian.bruel@st.com>
8893 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8894 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8895 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8896 use add_builtin_function_ext_scope instead of add_builtin_function.
8897 (neon_set_p, neon_crypto_set_p): Remove.
8898 (arm_init_builtins): Always call arm_init_neon_builtins and
8899 arm_init_crypto_builtins.
8900 (arm_expand_builtin): Check that builtins are allowed for the arch.
8901 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8902 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8903 arm_init_neon_builtins call.
8905 2016-01-15 Richard Biener <rguenther@suse.de>
8907 PR tree-optimization/69117
8908 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8909 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8910 of the leader conservatively.
8911 (free_scc_vn): Restore original SSA name infos.
8913 2016-01-14 Jeff Law <law@redhat.com>
8915 PR tree-optimization/69270
8916 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8917 single bit of precision, verify it's also unsigned.
8918 (record_edge_info): Use constant_boolean_node rather than fold_convert
8919 to convert boolean_true/boolean_false to the right type.
8921 2016-01-14 Richard Henderson <rth@redhat.com>
8924 * loop-doloop.c (record_reg_sets): New.
8925 (doloop_optimize): Reject the transform if the sequence
8926 clobbers registers live at the end of the loop block.
8927 (doloop_optimize_loops): Enable df_live if needed.
8929 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8931 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8932 * gcc/config/rs6000/rs6000.c: Likewise.
8933 * gcc/config/rs6000/rs6000.h: Likewise.
8934 * gcc/config/rs6000/rs6000.md: Likewise.
8935 * gcc/doc/extend.texi: Likewsie.
8937 2016-01-14 Jeff Law <law@redhat.com>
8939 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8942 2016-01-14 Richard Henderson <rth@redhat.com>
8946 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8947 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8948 instead of builtin_decl_declared_p to test for declaration.
8950 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
8952 * doc/loop.texi (Loop Analysis and Representation): Document
8953 loop_depth function.
8955 2016-01-14 Tom de Vries <tom@codesourcery.com>
8957 PR tree-optimization/68773
8958 * omp-low.c (expand_omp_target): Don't set force_output.
8959 * varpool.c (varpool_node::get_create): Same.
8960 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8961 offload_funcs with force_output.
8963 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8966 * lra-eliminations.c (move_plus_up): Don't change anything if either
8967 the outer or inner subreg mode is not MODE_INT.
8968 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8969 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8971 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8973 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8974 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8975 reduc_uplus_@var{m}): Remove.
8976 * expr.c (expand_expr_real_2): Remove expansion path for
8977 reduc_[us](min|max|plus) optabs.
8978 * optabs-tree.c (scalar_reduc_to_vector): Remove.
8979 * optabs-tree.h (scalar_reduc_to_vector): Remove.
8980 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8981 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8982 * tree-vect-loop.c (vectorizable_reduction): Remove test for
8983 reduc_[us](min|max|plus) optabs.
8985 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8987 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8988 (reduc_plus_scal_v2sf): New.
8989 (reduc_smax_v2sf): Rename to...
8990 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8991 (reduc_smin_v2sf): Rename to...
8992 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8994 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
8996 * alias.c (compare_base_symbol_refs): New function.
8997 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
9000 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9003 PR tree-optimization/69155
9004 * tree-complex.c: Include cfganal.h.
9005 (phis_to_revisit): New variable.
9006 (extract_component): Add phiarg_p argument. Assert that returned
9007 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
9008 (update_phi_components): Partly rewrite to use loop over real/imag
9009 components instead of code duplication. If extract_component returns
9010 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
9011 create_tmp_reg into the PHI node instead, and mention the phi triplet
9013 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
9014 in phis_to_revisit at the end.
9016 2016-01-14 Richard Biener <rguenther@suse.de>
9018 PR tree-optimization/68060
9019 * tree-vect-loop.c (vect_is_simple_reduction): Check the
9020 outer loop reduction is only used in the inner loop before
9021 detecting a double reduction.
9023 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9026 * combine.c (expand_field_assignment): Punt if compute_mode is
9027 unsupported scalar mode.
9029 2016-01-14 Richard Biener <rguenther@suse.de>
9031 PR tree-optimization/66856
9032 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
9033 SLP node only if it built successfully.
9034 (vect_analyze_slp_instance): Adjust.
9036 2016-01-14 Jeff Law <law@redhat.com>
9038 PR tree-optimization/69270
9039 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
9040 (record_edge_info): Use it. Convert boolean_{true,false}_node
9043 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
9046 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
9047 use block_ultimate_origin
9048 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
9050 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
9052 * doc/invoke.texi (Submodel Options): Rename section to
9053 "Machine-Dependent Options" to better reflect its content.
9054 Rewrite introductory text to remove archaic CPU names.
9057 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
9059 * doc/invoke.texi (Code Gen Options): Move section up in file,
9060 before target-specific options. Update menu and option summary
9061 to reflect the new section ordering.
9063 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
9065 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
9066 (C++ Dialect Options): Add cross-reference to -std option.
9067 * doc/standards.texi (C++ Language): Document C++14 support.
9069 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9071 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
9072 for pack/unpack functions for __ibm128.
9073 (PACK_IF): Likewise.
9074 (UNPACK_IF): Likewise.
9076 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
9077 support for __ibm128 pack/unpack functions.
9078 (rs6000_invalid_builtin): Likewise.
9079 (rs6000_init_builtins): Likewise.
9080 (rs6000_opt_masks): Likewise.
9082 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
9083 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
9085 (RS6000_BTM_COMMON): Likewise.
9087 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
9088 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
9089 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
9090 128-bit floating point. Add support for the double values to be
9091 in Altivec registers for TF/IF packing and unpacking, but restrict
9092 TD packing sub-fields to be FPR registers. Don't allow overlapped
9093 register support for packing. Allow pack inputs to be memory
9094 locations. Don't build generator functions for unpack<mode>_dm
9095 and unpack<mode>_nodm.
9096 (unpack<mode>_dm): Likewise.
9097 (unpack<mode>_nodm): Likewise.
9098 (pack<mode>): Likewise.
9100 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
9101 built-in functions to pack/unpack explicit __ibm128 values.
9102 (__builtin_unpack_ibm128): Likewise.
9104 * doc/extend.texi (PowerPC Built-in Functions): Document
9105 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
9107 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
9110 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
9111 Add new arg loc and pass it down as context.
9112 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
9113 to the location to use for the warning.
9114 (check_function_arguments): New arg loc. All callers changed. Pass
9115 it to check_function_nonnull.
9116 * c-common.h (check_function_arguments): Adjust declaration.
9118 2016-01-13 Jakub Jelinek <jakub@redhat.com>
9120 PR tree-optimization/69156
9121 * gimple.c (validate_type): Removed.
9122 (gimple_builtin_call_types_compatible_p): Use
9123 useless_type_conversion_p instead of validate_type.
9124 * value-prof.c (gimple_stringop_fixed_value): Fold
9125 icall_size to correct type.
9127 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
9129 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
9132 2016-01-13 Richard Henderson <rth@redhat.com>
9135 * target.def (builtin_tm_load, builtin_tm_store): Remove.
9136 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
9137 (ix86_builtin_tm_store): Remove.
9138 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9139 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9140 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9141 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9142 * doc/tm.texi: Rebuild.
9144 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
9145 (BUILT_IN_TM_MEMCPY_RTWN): New.
9146 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
9147 fallback from vector to integer helpers.
9148 (build_tm_load): Handle vector types directly, instead of
9150 (build_tm_store): Likewise.
9151 (expand_assign_tm): Prepare for register types not handled by
9152 the above. Copy them to memory and use memcpy.
9153 * tree.c (tm_define_builtin): New.
9154 (find_tm_vector_type): New.
9155 (build_tm_vector_builtins): New.
9156 (build_common_builtin_nodes): Call it.
9158 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
9160 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
9161 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
9163 2016-01-13 Tom de Vries <tom@codesourcery.com>
9165 PR tree-optimization/69169
9166 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
9167 handled_struct_type param.
9168 (create_variable_info_for, intra_create_variable_infos): Call
9169 create_variable_info_for_1 with extra arg.
9171 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
9173 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
9174 and "armv8.1-a+crc" entries.
9176 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
9179 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
9180 Change first operand predicate from register_or_constm1_operand
9181 to register_operand.
9182 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
9183 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
9184 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
9185 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
9186 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
9187 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
9188 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
9189 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
9190 comparison with constm1_rtx from vec_prefetch_gen part.
9192 2016-01-13 Richard Biener <rguenther@suse.de>
9194 PR tree-optimization/69013
9195 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
9196 Exchange assert for a test.
9198 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9201 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
9203 2016-01-13 Richard Biener <rguenther@suse.de>
9205 PR tree-optimization/69242
9206 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
9207 assert with a check.
9209 2016-01-13 Richard Biener <rguenther@suse.de>
9211 PR tree-optimization/69186
9212 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9213 Properly guard vect_update_misalignment_for_peel call.
9215 2016-01-12 Jeff Law <law@redhat.com>
9217 PR tree-optimization/pr67755
9218 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
9219 "need_profile_correction".
9220 (thread_block_1): Initialize new field to false by default. If we
9221 have multiple thread paths through a common joiner to different
9222 final targets, then set new field to true.
9223 (compute_path_counts): Only do count adjustment when it's really
9226 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9228 * doc/invoke.texi (Spec Files): Move section down in file, past
9229 all command-line option descriptions.
9231 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9234 * doc/gty.texi: Remove documentation of mark_hook.
9235 * gengtype.c (struct write_types_data): Remove code to support
9236 mark_hook attribute.
9237 (walk_type): Likewise.
9238 (write_func_for_structure): Likewise.
9240 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9242 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
9243 Directory Options, and -specs= to Overall Options.
9244 (Overall Options): Adjust similarly. Reorder to group related
9245 options together. Make -specs= cross-reference the spec file details.
9246 (Directory Options): Adjust similarly.
9248 2016-01-12 Jeff Law <law@redhat.com>
9250 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
9252 2016-01-12 Olivier Hainque <hainque@adacore.com>
9254 * gcc.c (spec_undefvar_allowed): New global.
9255 (process_command): Set to true when running for --version or --help,
9257 (getenv_spec_function): When the variable is not defined, use the
9258 variable name as the variable value if we're allowed not to issue
9261 2016-01-12 Bin Cheng <bin.cheng@arm.com>
9263 PR tree-optimization/68911
9264 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
9265 information computed for expression "init + nit * step".
9267 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9269 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
9270 about name of GCC executable. Remove deleted node from menu.
9271 (Directory Options) <-B>: Remove cross-reference to deleted node.
9272 (Target Options): Delete section.
9274 2016-01-12 Christian Bruel <christian.bruel@st.com>
9277 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
9278 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
9280 2016-01-12 Jakub Jelinek <jakub@redhat.com>
9283 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
9284 aligned_mem is properly set for AVX512-VL floating point masked
9288 * ifcvt.c (cond_exec_process_if_block): When removing the last
9289 insn from then_bb, remove also any possible barriers that follow it.
9291 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
9295 * config/i386/iamcu.h (SIZE_TYPE): New macro.
9296 (PTRDIFF_TYPE): Likewise.
9297 (WCHAR_TYPE): Likewise.
9298 (WCHAR_TYPE_SIZE): Likewise.
9299 (STDINT_LONG32): Likewise.
9301 2016-01-12 Richard Biener <rguenther@suse.de>
9303 PR tree-optimization/69053
9304 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9305 convert initial value for cond reductions.
9307 2016-01-12 Richard Biener <rguenther@suse.de>
9309 PR tree-optimization/69007
9310 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9311 widen_sum after dot_prod and sad.
9313 2016-01-12 Richard Biener <rguenther@suse.de>
9315 PR tree-optimization/69168
9316 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9317 pattern stmt SLP type.
9318 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9319 end up unused so cope with that case.
9321 2016-01-12 Richard Biener <rguenther@suse.de>
9323 PR tree-optimization/69157
9324 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9325 stmts def type only during analyze phase.
9326 (vectorizable_call): Likewise.
9327 (vectorizable_simd_clone_call): Likewise.
9328 (vectorizable_conversion): Likewise.
9329 (vectorizable_assignment): Likewise.
9330 (vectorizable_shift): Likewise.
9331 (vectorizable_operation): Likewise.
9332 (vectorizable_store): Likewise.
9333 (vectorizable_load): Likewise.
9335 2016-01-12 Richard Biener <rguenther@suse.de>
9337 PR tree-optimization/69174
9338 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9340 (vectorizable_load): Properly compute the number of loads needed
9341 for permuted strided SLP loads and do not spuriously assign
9342 to SLP_TREE_VEC_STMTS.
9344 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
9346 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9347 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9348 (MD_EXEC_PREFIX): Remove.
9349 (MD_STARTFILE_PREFIX) Removee.
9350 (FILE_NAME_ABSOLUTE_P): Remove.
9351 (CPP_SPEC): Do not read macros from sys/version.h.
9352 (LINK_COMMAND_SPEC): Remove.
9353 (LOCAL_INCLUDE_DIR): Remove.
9354 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9355 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9356 (POST_LINK_SPEC): Define to invoke stubify after linker
9357 (LIBSTDCXX): Remove define
9358 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9359 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9360 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9361 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9362 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9363 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9364 (i386_djgpp_asm_named_section): Add propotype of new procedure
9366 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9367 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9368 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9369 in config/i386/djgpp.h).
9370 (STANDARD_STARTFILE_PREFIX_2): Define identical to
9371 STANDARD_STARTFILE_PREFIX_1.
9372 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9373 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9374 installation errors.
9375 (MAX_OFILE_ALIGNMENT): Define to 128.
9376 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9378 * config/i386/djgpp.c: New file. Add implementation of
9379 i386_djgpp_asm_named_section.
9381 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9383 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9384 Add rule for building djgpp.o.
9386 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9388 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9389 (rtx_is_swappable_p): Reductions are swappable.
9390 (insn_is_swappable_p): V2DF reductions are swappable.
9392 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
9394 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9395 reloads for other unsupported memory operands.
9397 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9398 Jim Wilson <jim.wilson@linaro.org>
9401 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9402 copy_to_mode_reg instead of force_reg.
9404 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9407 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9408 TARGET_80387 is true.
9410 2016-01-11 Jakub Jelinek <jakub@redhat.com>
9413 * lra-eliminations.c (move_plus_up): Only move plus up
9414 if subreg of the constant can be simplified into constant
9415 and use the simplified subreg of the constant instead of
9416 the original constant.
9418 * fold-const.c (fold_convertible_p): Don't return true
9419 for conversion of VECTOR_TYPE to same sized integral type.
9420 (fold_convert_loc): Fix up formatting. Fold conversion of
9421 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9422 instead of NOP_EXPR.
9424 PR tree-optimization/69214
9425 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9426 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9429 PR tree-optimization/69207
9430 * tree-vect-slp.c (vect_get_constant_vectors): For
9431 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9432 fold_convertible_p to vector_type's element type, and always
9433 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9435 2016-01-11 Richard Biener <rguenther@suse.de>
9437 PR tree-optimization/69173
9438 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9439 fixup the cycle if all stmts are in a pattern.
9441 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
9444 * alias.c (base_alias_check): Move check for addresses with
9445 alignment ANDs before the call for compare_base_decls.
9446 (memrefs_conflict_p): Return -1 for different decls
9447 that went through alignment adjustments.
9449 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9451 PR rtl-optimization/68796
9452 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9453 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9454 and QImode comparisons against zero with CC_NZmode.
9455 * config/aarch64/iterators.md (short_mask): New mode_attr.
9457 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9459 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9460 (<avx512>_store<mode>_mask): Likewise.
9462 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
9463 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9465 PR rtl-optimization/68841
9466 * ifcvt.c (struct noce_if_info): Add orig_x field.
9467 (bbs_ok_for_cmove_arith): Add to_rename parameter.
9468 Don't record conflicts on to_rename if it's present.
9469 Allow memory destinations in sets.
9470 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9471 blocks, passing orig_x to the checks.
9472 (noce_process_if_block): Set if_info->orig_x appropriately.
9474 2016-01-11 Tom de Vries <tom@codesourcery.com>
9476 PR tree-optimization/69069
9477 * tree-parloops.c (create_parallel_loop): Add missing phi args.
9479 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9481 PR rtl-optimization/68920
9482 * config/i386/i386.c (ix86_option_override_internal): Restrict number
9483 of conditional moves for RTL if-conversion to 1 for
9484 TARGET_ONE_IF_CONV_INSN.
9485 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9486 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9487 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9488 parameter to restirct number of conditional moves for
9490 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9491 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9494 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
9497 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9498 onepart vars. Fix typo in comment. Fix reversed condition in
9500 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9503 * var-tracking.c (dump_onepart_variable_differences): New.
9504 (dataflow_set_different): If a detailed dump is requested,
9505 delay early returns and dump differences between onepart
9506 variables present before and after, and added variables.
9508 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9511 * expr.c (expand_expr_real_1): For boolean vector constants
9512 with a scalar mode use const_scalar_mask_from_tree.
9513 (const_scalar_mask_from_tree): New.
9514 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9515 assigned to a mask type to handle constants.
9517 2016-01-11 Martin Jambor <mjambor@suse.cz>
9520 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9521 useless parameters if we cannot change function signature.
9523 2016-01-11 Martin Jambor <mjambor@suse.cz>
9526 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9529 2016-01-11 Tom de Vries <tom@codesourcery.com>
9531 PR tree-optimization/69109
9532 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9535 2016-01-11 Tom de Vries <tom@codesourcery.com>
9537 PR tree-optimization/69108
9538 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9539 res is not used in a phi.
9541 2016-01-11 Yury Gribov <y.gribov@samsung.com>
9544 * common.opt (frandom-seed): Fix parameter name.
9545 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9547 2016-01-11 Tom de Vries <tom@codesourcery.com>
9549 PR tree-optimization/69058
9550 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9553 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
9555 * config/arc/arc.opt (mdiv-rem): Add period to the end.
9556 (mcode-density): Likewise.
9558 2016-01-10 Tom de Vries <tom@codesourcery.com>
9560 PR tree-optimization/69062
9561 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9562 (parallelize_loops): Don't paralelize loop that has phi with address
9565 2016-01-10 Tom de Vries <tom@codesourcery.com>
9567 PR tree-optimization/69039
9568 * tree-parloops.c (try_create_reduction_list): Only allow single exit
9571 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
9574 * match.pd: Require target has function_c99_misc before doing
9575 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9577 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
9579 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9581 * configure: Regenerate.
9583 2016-01-09 Jakub Jelinek <jakub@redhat.com>
9586 PR tree-optimization/69097
9587 * fold-const.h (expr_not_equal_to): New prototype.
9588 * fold-const.c: Include stringpool.h and tree-ssanames.h.
9589 (expr_not_equal_to): New function.
9590 * match.pd (X % -Y is the same as X % Y): Don't optimize
9591 unless X is known not to be equal to minimum or Y is known
9592 not to be equal to -1.
9593 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9594 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9595 (simplify_stmt_using_ranges): Adjust caller.
9596 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9597 substitute_and_fold.
9599 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
9601 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9604 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9606 PR tree-optimization/69167
9607 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9608 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9610 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9612 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9613 Richard Biener <rguenther@suse.de>
9615 PR tree-optimization/68707
9616 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9617 instances that can be handled via vect_load_lanes.
9619 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
9621 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9622 if we can't determine address equivalence.
9623 * alias.c (compare_base_decl): Update for changed return value of
9624 symtab_node::equal_address_to.
9626 2016-01-08 Jason Merrill <jason@redhat.com>
9630 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9631 * expr.c (store_field): Not here.
9632 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9633 call with TREE_ADDRESSABLE type.
9634 * tree-cfg.c (verify_gimple_call): Adjust.
9636 2016-01-08 Olivier Hainque <hainque@adacore.com>
9638 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9641 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9643 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9644 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9645 (reduc_smin_v2sf): Rename to...
9646 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9647 (reduc_splus_v2sf): Rename to...
9648 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9650 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9652 PR tree-optimization/69162
9653 * gimplify.c (gimplify_va_arg_expr): Encode original type of
9654 valist argument in another argument.
9655 (gimplify_modify_expr): Adjust for the above change. Cleanup.
9656 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9657 to determine the va_list type, build a MEM_REF instead of
9658 build_fold_indirect_ref.
9660 PR tree-optimization/69172
9661 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9664 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9666 PR tree-optimization/67781
9667 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9668 and cmpnop in two steps: first the ones not accessed in original
9669 gimple expression in a endian independent way and then the ones not
9670 accessed in the final result in an endian-specific way.
9672 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9674 PR tree-optimization/69083
9675 * tree-vect-slp.c (vect_get_constant_vectors): For
9676 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9677 element type. If op is fold_convertible_p to vector_type's element
9678 type, use NOP_EXPR instead of VCE.
9680 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
9682 PR rtl-optimization/67778
9683 PR rtl-optimization/68634
9684 PR rtl-optimization/68909
9685 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
9686 block from the stack until done with it. Remove a superfluous
9687 bitmap set. Remove a superfluous bitmap test.
9689 2016-01-07 Martin Sebor <msebor@redhat.com>
9692 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9693 constraint on the type of arguments.
9695 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
9697 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9698 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9699 unaligned_access on the gcc_options set.
9700 * config/arm/arm.c (arm_option_override_internal): Use
9701 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9703 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9706 * config/i386/i386.c (ix86_frame_pointer_required): Enable
9707 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9709 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9712 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9715 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9716 depending on frame_pointer_needed before remaining integer and SSE
9717 registers are saved.
9719 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
9722 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9724 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9727 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9728 Use the "xBm" constraint.
9729 (float<sseintvecmodelower><mode>2<mask_name><round_name):
9731 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9732 (sse_cvtsi2ssq<round_name>): Likewise.
9733 (sse_cvtss2si<round_name>): Likewise.
9734 (sse_cvtss2siq<round_name>): Likewise.
9735 (sse2_cvtsi2sdq<round_name>): Likewise.
9736 (sse2_cvtsd2si<round_name>): Likewise.
9737 (sse2_cvtsd2siq<round_name>): Likewise.
9738 * config/i386/subst.md (round_nimm_scalar_predicate): New
9741 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
9744 * varasm.c (make_decl_rtl): Mark invalid register vars as
9747 PR rtl-optimization/66206
9748 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9749 All callers changed.
9751 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9753 PR tree-optimization/69141
9754 * tree-ssa-pre.c: Include langhooks.h.
9755 (eliminate_dom_walker::before_dom_children): Use
9756 lang_hooks.decl_printable_name instead of
9757 cgraph_node::get ()->name ().
9760 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9761 it and DECL_ALIGN too.
9763 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
9765 * config/mips/mips-ftypes.def: Sort to lexicographical order.
9767 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9770 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9771 depending on frame_pointer_needed before remaining integer and SSE
9772 registers are saved.
9774 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9776 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9777 mode iterator with VSX_M2.
9778 (*p9_vecstore_<mode>): Likewise.
9779 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9780 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9781 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9782 (define_split for VSX_LE128 stores): Likewise.
9783 (define_peephole2 for TImode LE swaps): Likewise.
9784 (define_split for VSX_LE128 post-reload stores): Likewise.
9786 2016-01-06 Marek Polacek <polacek@redhat.com>
9789 * convert.c (convert_to_integer_1): Adjust call to
9790 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
9791 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
9792 EXPR instead of ARG.
9793 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9795 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9798 * doc/extend.texi (RL78 Variable Attributes): New section.
9800 2016-01-05 Marek Polacek <polacek@redhat.com>
9803 * builtins.c (get_memmodel): Use expansion point location rather than
9804 the input location. Call warning_at rather than warning.
9805 (expand_builtin_atomic_compare_exchange): Likewise.
9806 (expand_builtin_atomic_load): Likewise.
9807 (expand_builtin_atomic_store): Likewise.
9808 (expand_builtin_atomic_clear): Likewise.
9810 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9813 * config/i386/i386.c (ix86_expand_vector_logical_operator):
9814 Replace nonimmediate_operand with vector_operand.
9815 * config/i386/predicates.md (vector_operand): New predicate.
9816 (general_vector_operand): Replace nonimmediate_operand with
9818 * config/i386/sse.md: Replace nonimmediate_operand with
9819 vector_operand and m constraint with Bm constraint on SSE
9820 patterns with 16-byte memory operand.
9821 * config/i386/subst.md (round_nimm_predicate): Replace
9822 nonimmediate_operand with vector_operand.
9823 (round_saeonly_nimm_predicate): Likewise.
9824 (round_saeonly_nimm_scalar_predicate): New.
9826 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9829 * config/i386/constraints.md (Bm): New constraint.
9830 * config/i386/predicates.md (vector_memory_operand): New
9832 * config/i386/sse.md: Replace xm with xBm in plusminus and
9835 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9838 * doc/extend.texi (V850 Function Attributes): New section.
9839 (V850 Variable Attributes): New section.
9841 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9844 * doc/extend.texi (MicroBlaze Function Attributes): Document
9845 interrupt_handler and fast_interrupt attributes.
9847 2016-01-05 Sergei Trofimovich <siarheit@google.com>
9850 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9851 for local symbolic operands.
9852 * config/ia64/predicates.md (local_symbolic_operand64): New
9855 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9857 PR rtl-optimization/68651
9858 * combine.c (combine_simplify_rtx): Canonicalize x + x into
9861 2016-01-05 Nathan Sidwell <nathan@acm.org>
9863 * alias.c (compare_base_decls): Use symtab_node::get.
9865 2016-01-05 Nick Clifton <nickc@redhat.com>
9868 * ira-costs.c (copy_cost): Initialise the t_icode field of the
9869 secondary_reload_info structure.
9872 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9873 decls if weak support is available.
9875 2016-01-04 Martin Sebor <msebor@redhat.com>
9877 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9879 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
9881 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9882 OPTION_MASK_P9_DFORM.
9884 * config/rs6000/constraints.md (wo constraint): New constraint for
9887 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9889 (rs6000_init_hard_regno_mode_ok): Likewise.
9891 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9894 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9895 expanders not to have constraints. Add support for ISA 3.0 xxperm
9896 instruction. Add support for fusing xxlor with xxperm.
9897 (altivec_vperm_<mode>_internal): Likewise.
9898 (altivec_vperm_v8hiv16qi): Likewise.
9899 (altivec_vperm_<mode>v16q): Likewise.
9900 (altivec_vperm_<mode>_uns): Likewise.
9901 (vperm_v8hiv4si): Likewise.
9902 (vperm_v16qiv8hi): Likewise.
9904 * doc/md.texi (RS/6000 constraints): Document wo constraint.
9906 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9908 Update copyright years.
9910 * gcc.c (process_command): Update copyright notice dates.
9911 * gcov-dump.c (print_version): Ditto.
9912 * gcov.c (print_version): Ditto.
9913 * gcov-tool.c (print_version): Ditto.
9914 * gengtype.c (create_file): Ditto.
9915 * doc/cpp.texi: Bump @copying's copyright year.
9916 * doc/cppinternals.texi: Ditto.
9917 * doc/gcc.texi: Ditto.
9918 * doc/gccint.texi: Ditto.
9919 * doc/gcov.texi: Ditto.
9920 * doc/install.texi: Ditto.
9921 * doc/invoke.texi: Ditto.
9923 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9925 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9926 modes larger than TImode as TImode if NEON is not enabled.
9928 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9931 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9932 mode for %f0-%f31 only if TARGET_FPU.
9934 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9937 * config/sparc/sparc.c (scan_record_type): Take into account subfields
9938 to compute the PACKED_P predicate.
9939 (function_arg_record_value): Minor tweaks.
9941 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9943 * doc/install.texi (--with-multilib-list): Describe the meaning of the
9944 option for arm*-*-* targets.
9946 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
9948 * doc/extend.texi (Common Function Attributes): Move docs for
9949 MSP430-specific attributes to....
9950 (MSP430 Function Attributes): ...here. Delete the redundant
9951 entries and copy-edit the remaining text.
9952 (MSP430 Variable Attributes): Use uniform format for index
9953 entries and add a cross-reference to the corresponding function
9956 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
9958 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9960 (x86 Options): Likewise.
9962 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9966 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9967 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9968 to corresponding attribute.
9970 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9972 * doc/extend.texi (Common Function Attributes) <noplt>: Move
9973 to correct alphabetization of table. Copy-edit and correct
9975 <stack_protect>: Likewise.
9976 <target_clones>: Likewise.
9978 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9979 Correct punctuation.
9980 (Code Gen Options) <-fno-plt>: Copy-edit.
9982 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9985 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9986 SI values. Explicitly convert SI to DI and vice-versa.
9988 2016-01-01 Jakub Jelinek <jakub@redhat.com>
9990 PR tree-optimization/69070
9991 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9992 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9995 * ubsan.c (ubsan_instrument_float_cast): Call
9996 initialize_sanitizer_builtins.
9999 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
10001 Copyright (C) 2016 Free Software Foundation, Inc.
10003 Copying and distribution of this file, with or without modification,
10004 are permitted in any medium without royalty provided the copyright
10005 notice and this notice are preserved.