1 2016-11-16 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/78348
4 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
5 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
6 (classify_partition): Set PKIND_MEMCPY if dependence analysis
7 revealed no dependency, PKIND_MEMMOVE otherwise.
9 2016-11-16 Jakub Jelinek <jakub@redhat.com>
12 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
13 it points to non-NULL tree, use it instead of ubsan_create_data.
14 (instrument_si_overflow): Handle vector signed integer overflow
16 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
17 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
18 vector IFN_UBSAN_CHECK_*.
19 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
20 pass it through to ubsan_build_overflow_builtin.
21 (expand_neg_overflow, expand_mul_overflow): Likewise.
22 (expand_vector_ubsan_overflow): New function.
23 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
24 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
25 (expand_arith_overflow): Adjust expand_*_overflow callers.
27 2016-11-16 Matthias Klose <doko@ubuntu.com>
29 * doc/install.texi: Remove references to java/libjava.
31 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
33 * tree-ssa-coalesce.c (register_default_def): Remove register_ssa_partition.
34 (create_outofssa_var_map): Likewise.
35 * tree-ssa-live.c (register_ssa_partition_check): Remove.
36 * tree-ssa-live.h (register_ssa_partition): Likewise.
38 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
40 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
41 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
42 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
43 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
44 rtx when all sub-rtx are also permanent.
46 (attr_copy_rtx): Remove.
47 (make_canonical, get_attr_value): Use attr_equal_p.
48 (copy_boolean): Rehash NOT.
49 (simplify_test_exp_in_temp,
50 optimize_attrs): Remove call to attr_copy_rtx.
51 (attr_alt_intersection, attr_alt_union,
52 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
53 (make_automaton_attrs): Use attr_eq.
55 2016-11-15 Matthias Klose <doko@ubuntu.com>
57 * doc/install.texi: Remove references to java/libjava.
58 * doc/sourcebuild.texi: Likewise.
59 * doc/invoke.texi: Likewise.
60 * doc/standards.texi: Likewise.
62 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
63 Alan Hayward <alan.hayward@arm.com>
64 David Sherwood <david.sherwood@arm.com>
66 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
68 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
69 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
70 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
71 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
72 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
73 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
74 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
76 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
77 Alan Hayward <alan.hayward@arm.com>
78 David Sherwood <david.sherwood@arm.com>
80 * dce.c (check_argument_store): Pass the size instead of
82 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
84 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
85 Alan Hayward <alan.hayward@arm.com>
86 David Sherwood <david.sherwood@arm.com>
88 * alias.c (canon_rtx): Use simplify_gen_binary.
90 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
91 Alan Hayward <alan.hayward@arm.com>
92 David Sherwood <david.sherwood@arm.com>
94 * rtl.h (load_extend_op): Declare.
95 * rtlanal.c (load_extend_op): New function.
96 (nonzero_bits1): Use it.
97 (num_sign_bit_copies1): Likewise.
98 * cse.c (cse_insn): Likewise.
99 * fold-const.c (fold_single_bit_test): Likewise.
100 (fold_unary_loc): Likewise.
101 * fwprop.c (free_load_extend): Likewise.
102 * postreload.c (reload_cse_simplify_set): Likewise.
103 (reload_cse_simplify_operands): Likewise.
104 * combine.c (try_combine): Likewise.
105 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
106 subreg_lowpart_p checks.
108 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
109 Alan Hayward <alan.hayward@arm.com>
110 David Sherwood <david.sherwood@arm.com>
112 * combine.c (simplify_shift_const_1): Use the number of bits
113 in the inner mode to determine the range of the shift.
114 When handling shifts of vectors, skip any rules that apply
117 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
118 Alan Hayward <alan.hayward@arm.com>
119 David Sherwood <david.sherwood@arm.com>
121 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
124 2016-11-15 Matthias Klose <doko@ubuntu.com>
126 * doc/install.texi: Remove references to gcj/libjava.
127 * doc/invoke.texi: Likewise.
129 2016-11-15 Jeff Law <law@redhat.com>
131 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
132 parameter. Callers changed.
133 (check-subpath_and_update_thread_path): Extracted from
134 fsm_find_control_statement_thread_paths.
135 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
136 (handle_phi, handle_assignment): Allow any constant node, not
139 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
141 * config/arc/arc-arch.h: New file.
142 * config/arc/arc-arches.def: Likewise.
143 * config/arc/arc-cpus.def: Likewise.
144 * config/arc/arc-options.def: Likewise.
145 * config/arc/t-multilib: Likewise.
146 * config/arc/genmultilib.awk: Likewise.
147 * config/arc/genoptions.awk: Likewise.
148 * config/arc/arc-tables.opt: Likewise.
149 * config/arc/driver-arc.c: Likewise.
150 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
151 * common/config/arc/arc-common.c (arc_handle_option): Trace
153 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
154 options; check for supported cpu against arc-cpus.def file.
155 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
156 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
157 * config/arc/arc-c.def: Add emacs local variables.
158 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
159 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
160 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
161 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
162 (DEFAULT_arc_fpu_build): Define.
163 (DEFAULT_arc_mpy_option): Define.
164 * config/arc/arc-protos.h (arc_init): Delete.
165 * config/arc/arc.c (arc_cpu_name): New variable.
166 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
167 (arc_arc700, arc_arc600, arc_arc601): New variable.
168 (arc_init): Add static; remove selection of default tune value,
169 cleanup obsolete error messages.
170 (arc_override_options): Make use of .def files for selecting the
171 right cpu and option configurations.
172 * config/arc/arc.h (stdbool.h): Include.
173 (TARGET_CPU_DEFAULT): Define.
174 (CPP_SPEC): Remove mcpu=NPS400 handling.
175 (arc_cpu_to_as): Declare.
176 (EXTRA_SPEC_FUNCTIONS): Define.
177 (OPTION_DEFAULT_SPECS): Likewise.
178 (ASM_DEFAULT): Remove.
179 (ASM_SPEC): Use arc_cpu_to_as.
180 (DRIVER_SELF_SPECS): Remove deprecated options.
181 (arc_base_cpu): Declare.
182 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
183 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
185 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
186 * config/arc/arc.md (attr_cpu): Remove.
187 * config/arc/arc.opt (mno-mpy): Deprecate.
188 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
189 (mcpu=ARCHS): Remove.
190 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
192 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
193 (arc_fpu): Use new defines.
194 (mpy-option): Change to use numeric or string like inputs.
195 * config/arc/t-arc (driver-arc.o): New target.
196 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
197 * config/arc/t-arc-newlib: Delete.
198 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
199 * doc/invoke.texi (ARC): Update arc options.
201 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
203 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
204 insn at the beginning of the constant pool.
205 (mips_insert_insn_pseudos): New function.
206 (mips_machine_reorg2): Call it.
207 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
208 UNSPEC_INSN_PSEUDO enum values.
209 (insn_pseudo, consttable): New insns.
211 2016-11-15 Michael Matz <matz@suse.de>
213 PR missed-optimization/77881
214 * combine.c (simplify_comparison): Remove useless subregs
215 also inside the loop, not just after it.
216 (make_compound_operation): Recognize some subregs as being
219 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
220 Alan Hayward <alan.hayward@arm.com>
221 David Sherwood <david.sherwood@arm.com>
223 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
226 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
228 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
229 for using xxinsertw and vinsert{b,h} on ISA 3.0.
231 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
232 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
233 vinsert{b,h} on ISA 3.0.
235 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
237 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
238 and cmpnop in two steps: first the ones not accessed in original gimple
239 expression in a endian independent way and then the ones not accessed
240 in the final result in an endian-specific way.
241 (bswap_replace): Stop doing big endian adjustment.
243 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
245 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
246 (*ashl<mode>3_doubleword): Ditto.
248 2016-11-14 Martin Liska <mliska@suse.cz>
250 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra
253 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
254 Richard Biener <rguenther@suse.de>
256 * doc/invoke.texi (fgimple): Document.
257 * dumpfile.h (TDF_GIMPLE): Add.
258 * dumpfile.c (dump_options): Add gimple.
259 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
261 (dump_gimple_label): Likewise.
262 (dump_gimple_phi): Likewise.
263 (dump_gimple_bb_header): Likewise.
264 (dump_phi_nodes): Likewise.
265 (pp_cfg_jump): Likewise. Pass in dump flags.
266 (dump_implicit_edges): Adjust.
267 * passes.c (pass_init_dump_file): Do not dump function header
269 * tree-cfg.c (dump_function_to_file): Dump function return type
270 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
272 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
273 (dump_generic_node): Likewise.
274 * function.h (struct function): Add pass_startwith member.
275 * passes.c (execute_one_pass): Implement startwith.
276 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
277 and assign proper version for parsed ssa names.
278 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
279 * internal-fn.c (expand_PHI): New function.
280 * internal-fn.h (expand_PHI): Declared here.
281 * internal-fn.def: New defination for PHI.
282 * tree-cfg.c (lower_phi_internal_fn): New function.
283 (build_gimple_cfg): Call it.
284 (verify_gimple_call): Condition for passing label as arg in internal
286 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
287 present PHIs with arguments.
289 2016-11-14 Martin Liska <mliska@suse.cz>
292 * common.opt: Add prefer-atomic as a new enum value for
294 * coretypes.h: Likewise.
295 * doc/invoke.texi: Document the new option value.
296 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
297 * tree-profile.c (tree_profiling): Select default value
298 of -fprofile-update when 'prefer-atomic' is selected.
300 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
302 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
303 (cortex_a57_alu_shift): ...here.
305 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
307 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
309 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
310 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
311 (<optab>si3_insn_uxtw): Likewise.
312 (<optab><mode>3_insn): Likewise.
313 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
314 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
315 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
316 (<optab><mode>): Likewise.
317 (insv<mode>): Likewise.
318 (andim_ashift<mode>_bfiz): Likewise.
319 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
320 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
321 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
322 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
323 (exynos_m1_alu_p): Likewise.
324 * config/arm/types.md: Add bfx.
325 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
327 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
329 * config/aarch64/aarch64.c (cortexa57_vector_cost):
330 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
332 2016-11-14 Richard Biener <rguenther@suse.de>
334 PR tree-optimization/78312
335 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
338 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
341 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
342 * config/avr/avr.opt (-mabsdata): New option.
343 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
344 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
345 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
346 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
347 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
348 spec depending on AVR_ISA_LDS.
349 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
351 2016-11-13 Jakub Jelinek <jakub@redhat.com>
353 * match.pd: Don't try to compare addresses of variables with
356 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
358 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
359 (propagate_vr_accross_jump_function): Handle unary expressions.
360 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
361 (load_from_param_1): New.
362 (load_from_unmodified_param): Factor common part into load_from_param_1.
363 (load_from_param): New.
364 (compute_complex_assign_jump_func): Handle unary expressions.
365 (update_jump_functions_after_inlining): Likewise.
366 (ipa_write_jump_function): Likewise.
367 (ipa_read_jump_function): Likewise.
369 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
372 * doc/invoke.texi: Document Wrestrict.
373 * pretty-print.c (pp_format): Add case for "Z" specifier.
374 (test_pp_format): Test "Z" specifier.
376 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
378 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
379 original function needs a static chain.
381 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
384 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
387 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
390 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
391 return early if !optional_tbtab.
393 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
395 PR rtl-optimization/59461
396 * doc/rtl.texi (paradoxical subregs): Add missing word.
397 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
398 in modes with precision larger than that of last_set_mode.
399 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
400 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
401 REGs to paradoxical SUBREGs.
402 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
403 larger than a word before invoking LOAD_EXTEND_OP on it.
405 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
408 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
409 element order for little endian ordering.
411 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
412 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
415 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
418 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
419 when calculating operand 2.
420 (rotate to rotatex zext splitter): Ditto.
422 2016-11-11 Jeff Law <law@redhat.com>
424 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
426 (stmt_uses_name_in_undefined_way): New function, extracted from
427 find_implicit_erroneous_behavior and extended for div/mod case.
428 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
429 find_explicit_erroneous_behavior and extended for div/mod case.
430 (find_implicit_erroneous_behavior): Use new helper function.
431 (find_explicit_erroneous_behavior): Use new helper function.
433 2016-11-11 Richard Biener <rguenther@suse.de>
435 PR tree-optimization/71575
436 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
439 2016-11-11 Richard Biener <rguenther@suse.de>
442 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
443 about uninitialized destination arg of BIT_INSERT_EXPR.
445 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
448 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
449 terminology. Expand to remove ambiguity.
451 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
453 PR rtl-optimization/78232
454 * combine.c (try_combine): Add a big comment about why reusing i2dest
456 (change_zero_ext): Do not call simplify_gen_binary, do the
457 simplifications manually.
459 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
461 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
462 enable HImode and QImode to go in vector registers by default if
463 the -mvsx-small-integer option is enabled.
464 (rs6000_secondary_reload_simple_move): Likewise.
465 (rs6000_preferred_reload_class): Don't force integer constants to
466 be loaded into vector registers that we can easily make into
467 memory (or being created in the GPRs and moved over with direct move).
468 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
469 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
470 vector extraction on ISA 3.0 when the scalar integer can be
471 allocated in vector registers. Generate the VEC_SELECT directy,
472 and don't use UNSPEC's to avoid having the scalar type in a vector
473 register. Make the expander target registers, and let the
474 combiner fold in results storing to memory, if the machine
476 (vsx_extract_<mode>_di): Likewise.
477 (vsx_extract_<mode>_p9): Likewise.
478 (vsx_extract_<mode>_di_p9): Likewise.
479 (vsx_extract_<mode>_store_p9): Likewise.
480 (vsx_extract_si): Likewise.
481 (vsx_extract_<mode>_p8): Likewise.
482 (p9_lxsi<wd>zx): Delete, no longer used.
483 (p9_stxsi<wd>x): Likewise.
484 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
485 integers in vector registers for ISA 3.0.
486 (QHI): Update comment.
487 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
488 vector extract instructions in sign/zero extend.
489 (zero_extendhi<mode>): Likewise.
490 (extendqi<mode>): Likewise.
491 (extendhi<mode>2): Likewise.
492 (HImode splitter for load/sign extend in vector register): Likewise.
493 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
494 optimizing floating point conversions to/from small data types and
495 rewrite it to support QImode/HImode being allowed in vector
496 registers on ISA 3.0.
497 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
498 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
499 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
500 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
501 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
502 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
503 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
504 VSPLITISW on ISA 2.07.
505 (movhi_internal): Combine movhi_internal and movqi_internal into
506 one mov<mode>_internal with an iterator. Add support for QImode
507 and HImode being allowed in vector registers. Make large number
508 of attributes and constraints easier to read.
509 (movqi_internal): Likewise.
510 (mov<mode>_internal): Likewise.
511 (movdi_internal64): Fix constraint to allow loading -16..15 with
512 VSPLITISW on ISA 2.07.
513 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
516 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
518 PR rtl-optimization/78241
519 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
520 but emit initial peel copy if niter expr is not reliable.
522 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
524 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
525 (maybe_record_trace_start): If the CFI is different on the new and
526 old paths, print out both to the dump file before ICEing.
528 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
530 * target.def (additional_allocno_class_p): New.
531 * hooks.h (hook_bool_reg_class_t_false): New prototype.
532 * hooks.c (hook_bool_reg_class_t_false): New.
533 * ira.c (setup_allocno_and_important_classes): Use the new hook.
534 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
535 * doc/tm.texi: Update.
537 2016-11-10 Jason Merrill <jason@redhat.com>
539 * gengtype.c (new_structure): Append to structures list.
540 (find_structure): Likewise.
542 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
544 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
545 this_dir is 2. Check for this_dir non-zero before dir != this_dir
548 2016-11-10 Jakub Jelinek <jakub@redhat.com>
550 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
551 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
553 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
554 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
555 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
556 teams distribute parallel for simd even to distribute and teams
557 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
558 OMP_CLAUSE_DEPEND_SINK case.
559 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
560 (omp_no_lastprivate): Removed.
561 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
562 (gimplify_omp_for): Likewise.
563 (computable_teams_clause): Fail for automatic vars from current
564 function not yet seen in bind expr.
565 * langhooks.c (lhd_omp_scalar_p): New function.
566 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
567 * varpool.c (varpool_node::get_create): Set node->offloading
568 even for DECL_EXTERNAL decls.
569 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
570 (LANG_HOOKS_OMP_SCALAR_P): Define.
571 (LANG_HOOKS_DECLS): Use it.
573 2016-11-10 Martin Liska <mliska@suse.cz>
576 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
577 only when SWITCH_BODY is a BIND_EXPR.
579 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
582 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
583 on the context only when it has no DIE yet.
585 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
587 * arm.h (target_cpus): Delete.
588 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
589 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
590 (all_architectures): Likewise.
591 (arm_option_override): Adjust use of CPU enums.
592 (arm_sched_reorder): Likewise.
593 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
594 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
595 * arm/genopt.sh (processor_type): Prefix enumeration entries with
597 * arm-tables.opt: Regenerated.
599 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
601 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
603 * config/aarch64/aarch64-tune.md: Regenerated.
604 * config/arm/arm-cores.def (falkor): New core.
605 * config/arm/arm-tables.opt: Regenerated.
606 * config/arm/arm-tune.md: Regenerated.
607 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
608 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
609 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
610 (ARM Options/-mtune): Likewise.
612 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
615 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
617 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
618 (propagate_vr_accross_jump_function): Likewise.
619 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
620 (load_from_param_1): New.
621 (load_from_unmodified_param): Factor common part into load_from_param_1.
622 (load_from_param): New.
623 (compute_complex_assign_jump_func): Handle unary expressions.
624 (ipa_write_jump_function): Likewise.
625 (ipa_read_jump_function): Likewise.
627 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
629 * simplify-rtx.c (simplify_binary_operation_1): Simplify
630 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
631 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
634 2016-11-09 David Malcolm <dmalcolm@redhat.com>
636 * print-rtl-function.c: Include varasm.h.
637 (print_any_param_name): New function.
638 (print_param): New function.
639 (print_rtx_function): Call print_param for each argument.
640 * print-rtl.c (rtx_writer::finish_directive): New function.
641 * print-rtl.h (rtx_writer::finish_directive): New decl.
643 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
646 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
647 operand 0 as earlyclobber.
648 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
650 2016-11-09 Martin Liska <mliska@suse.cz>
652 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
654 2016-11-09 Jakub Jelinek <jakub@redhat.com>
657 * builtins.c (expand_builtin_memcmp): Formatting fix.
659 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
660 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
661 or of them, renumber other enumerators.
662 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
663 * doc/invoke.texi: Document -fsanitize=shift-base and
664 -fsanitize-shift-exponent, document -fsanitize=shift as
665 having those 2 suboptions.
667 2016-11-09 Richard Biener <rguenther@suse.de>
669 * fold-const.c (tree_swap_operands_p): Remove unused arg.
670 * fold-const.c (tree_swap_operands_p): Likewise.
671 (fold_binary_loc): Adjust.
672 (fold_ternary_loc): Likewise.
673 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
674 * gimple-fold.c (fold_stmt_1): Likewise.
675 * gimple-match-head.c (gimple_resimplify2): Likewise.
676 (gimple_resimplify3): Likewise.
677 (gimple_simplify): Likewise.
678 * tree-ssa-dom.c (record_equality): Likewise.
679 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
680 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
681 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
683 2016-11-09 Richard Biener <rguenther@suse.de>
685 * tree-ssa-dom.c (canonicalize_comparison): Remove.
686 (optimize_stmt): Remove redundant pre-propagation canonicalization
687 of comparison operand order.
689 2016-11-09 Martin Liska <mliska@suse.cz>
691 * fold-const-call.c (fold_const_call): Fix the folding.
693 2016-11-09 Richard Biener <rguenther@suse.de>
695 * common.opt (flag_evaluation_order): Remove.
696 * expr.c (expand_operands): Remove code guarded by
697 flag_evaluation_order.
698 * fold-const.c (reorder_operands_p): Remove, it always returns
700 (negate_expr_p): Remove calls to reorder_operands_p.
701 (fold_negate_expr): Likewise.
702 (tree_swap_operands_p): Likewise.
703 (fold_binary_loc): Likewise.
705 2016-11-09 Andreas Schwab <schwab@suse.de>
708 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
709 insns operating on a register.
711 2016-11-09 Richard Biener <rguenther@suse.de>
713 PR tree-optimization/78007
714 * tree-vect-stmts.c (vectorizable_bswap): New function.
715 (vectorizable_call): Call vectorizable_bswap for
716 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
718 2016-11-09 Richard Biener <rguenther@suse.de>
720 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
721 Look at the DR_BASE_ADDRESS object for forcing alignment.
723 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
725 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
726 (propagate_vr_accross_jump_function): Likewise.
727 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
728 (load_from_param_1): New.
729 (load_from_unmodified_param): Factor common part into load_from_param_1.
730 (load_from_param): New.
731 (compute_complex_assign_jump_func): Handle unary expressions.
732 (ipa_write_jump_function): Likewise.
733 (ipa_read_jump_function): Likewise.
735 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
738 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
739 Also fold constant passed as argument while computing value range.
740 (propagate_constants_accross_call): Pass param type.
741 * ipa-prop.c: export ipa_get_callee_param_type.
742 * ipa-prop.h: export ipa_get_callee_param_type.
744 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
746 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
747 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
749 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
751 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
752 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
753 ASAN_STACK_MAGIC_MIDDLE.
754 (asan_global_struct): Increase the size of fields.
755 (asan_add_global): Add new field constructor.
756 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
757 __asan_version_mismatch_check_v8.
759 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
761 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
764 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
767 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
768 Handle ASHIFT and LSHIFTRT.
769 (dimode_scalar_chain::compute_convert_gain): Ditto.
770 (dimode_scalar_chain::convert_insn): Ditto.
772 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
774 * gimple-ssa-store-merging.c: Include selftest.h
775 (verify_array_eq): New function.
776 (verify_shift_bytes_in_array): Likewise.
777 (verify_shift_bytes_in_array_right): Likewise.
778 (verify_clear_bit_region): Likewise.
779 (verify_clear_bit_region_be): Likewise.
780 (store_merging_c_tests): Likewise.
781 * selftest.h (store_merging_c_tests): Declare prototype.
782 * selftest-run-tests.c (selftest::run_tests): Run
783 store_merging_c_tests.
785 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
787 * config/arm/arm.opt (mold-rtx-costs): Delete.
788 (mnew-generic-costs): Delete.
789 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
790 * config/arm/arm.c (arm_rtx_costs_1): Delete.
791 (arm_size_rtx_costs): Likewise.
792 (arm_slowmul_rtx_costs): Likewise.
793 (arm_fastmul_rtx_costs): Likewise.
794 (arm_xscale_rtx_costs): Likewise.
795 (arm_9e_rtx_costs): Likewise.
796 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
797 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
798 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
799 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
800 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
801 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
802 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
804 Delete rtx_costs field.
805 (arm_new_rtx_costs): Rename to...
806 (arm_rtx_costs_internal): ... This.
807 (arm_rtx_costs): Remove old way of doing rtx costs.
809 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
811 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
812 (arm_fastmul_tune): Likewise.
813 (arm_strongarm_tune): Likewise.
814 (arm_xscale_tune): Likewise.
815 (arm_9e_tune): Likewise.
816 (arm_marvell_pj4_tune): Likewise.
817 (arm_v6t2_tune): Likewise.
818 (arm_v6m_tune): Likewise.
819 (arm_fa726te_tune): Likewise.
821 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
823 PR tree-optimization/78234
824 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
827 2016-11-08 Martin Liska <mliska@suse.cz>
830 * dbgcnt.def: Add new debug counter asan_use_after_scope.
831 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
832 with a value expr. Do not add artificial variables to
833 live_switch_vars. Use the debug counter.
834 (gimplify_target_expr): Use the debug counter.
835 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
836 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
837 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
839 2016-11-08 Richard Biener <rguenther@suse.de>
841 * tree-vect-stmts.c (get_group_load_store_type): If the
842 access is aligned do not trigger peeling for gaps.
843 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
844 force alignment of vars with DECL_USER_ALIGN.
846 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
848 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
850 2016-11-08 Richard Biener <rguenther@suse.de>
852 PR tree-optimization/78205
853 * tree-vect-stmts.c (vectorizable_load): Move check whether
854 we may run into gaps when BB vectorizing SLP permutations ...
855 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
856 here where we can do a more precise check.
858 2016-11-08 Richard Biener <rguenther@suse.de>
860 PR tree-optimization/78224
861 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
862 Split the fallthru edge in case its successor may have PHIs.
863 Do not free dominance info.
865 2016-11-07 Jakub Jelinek <jakub@redhat.com>
868 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
869 EH info even for bzhi and pdep/pext.
871 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
873 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
874 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
876 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
878 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
880 * config/rs6000/vector.md (div<mode>3): Ditto.
882 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
884 * configure.ac (.hidden): Change to conftest_s string. Provide string
886 (gcc_cv_ld_hidden): Yes for AIX.
887 * configure: Regenerate.
889 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
891 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
892 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
893 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
894 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
895 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
896 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
898 (rs6000_xcoff_visibility): New.
899 (rs6000_xcoff_declare_function_name): Add visibility support.
900 (rs6000_xcoff_asm_globalize_decl_name): New.
901 (rs6000_xcoff_asm_output_aligned_decl_common): New.
902 (rs6000_asm_weaken_decl): New.
903 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
904 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
907 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
910 * incpath.c: (remove_dup(): Also silently ignore EPERM.
912 2016-11-07 Martin Jambor <mjambor@suse.cz>
914 * tree.c (verify_type_variant): Use pointer comparison to check that
915 TYPE_SIZE_UNIT match.
917 2016-11-07 Jakub Jelinek <jakub@redhat.com>
920 * dse.c (dse_step5): Call scan_reads even if just
921 insn_info->frame_read. Improve and fix dump file messages.
924 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
925 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
927 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
930 * match.pd: Add following two patterns:
931 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
932 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
934 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
936 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
937 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
938 * rtl.h (duplicate_reg_notes): Declare.
939 * rtlanal.c (duplicate_reg_note): New function.
941 PR rtl-optimization/77309
942 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
943 don't assume an equality comparison for plain COMPARE.
944 (simplify_comparison): Pass a more accurate code to
945 make_compound_operation.
947 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
949 * target.def (compute_pressure_classes): New target hook.
950 * doc/tm.texi.in: Document it.
951 * doc/tm.texi: Regenerate.
952 * ira.c (setup_pressure_classes): Call target hook if defined.
954 2016-11-07 David Malcolm <dmalcolm@redhat.com>
956 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
958 (rtx_writer::print_rtx): In compact mode, omit trailing operands
959 that have the default values.
960 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
962 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
963 label string from expected dump.
964 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
967 2016-11-07 Jakub Jelinek <jakub@redhat.com>
970 * alias.c (nonoverlapping_memrefs_p): If one decl is
971 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
973 2016-11-07 Richard Biener <rguenther@suse.de>
976 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
979 2016-11-07 Richard Biener <rguenther@suse.de>
981 PR tree-optimization/78218
982 * gimple-ssa-store-merging.c
983 (pass_store_merging::terminate_all_aliasing_chains):
984 Drop unused argument, fix alias check to also consider uses.
985 (pass_store_merging::execute): Adjust.
987 2016-11-07 Richard Biener <rguenther@suse.de>
989 PR tree-optimization/78228
990 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
993 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
996 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
997 aarch64_simd_shift_imm_<mode> predicate for operand 1.
998 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
999 to restrict them to an appropriate range and add FAIL check if the
1000 region they specify is out of range. Delete useless constraint
1002 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
1003 2 and 3 to restrict their range and add pattern predicate.
1005 2016-11-07 Martin Liska <mliska@suse.cz>
1007 * asan.c (enum asan_check_flags): Move the enum to header file.
1008 (asan_init_shadow_ptr_types): Make type creation more generic.
1009 (shadow_mem_size): New function.
1010 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
1011 Rewritten stack unpoisoning code.
1012 (build_shadow_mem_access): Add new argument return_address.
1013 (instrument_derefs): Instrument local variables if use after scope
1014 sanitization is enabled.
1015 (asan_store_shadow_bytes): New function.
1016 (asan_expand_mark_ifn): Likewise.
1017 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
1018 * asan.h (enum asan_mark_flags): Moved here from asan.c
1019 (asan_protect_stack_decl): Protect all declaration that need
1021 (asan_sanitize_use_after_scope): New function.
1022 (asan_no_sanitize_address_p): Likewise.
1023 * cfgexpand.c (partition_stack_vars): Consider
1024 asan_sanitize_use_after_scope in condition.
1025 (expand_stack_vars): Likewise.
1026 * common.opt (-fsanitize-address-use-after-scope): New option.
1027 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
1028 Explain the parameter.
1029 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
1030 * gimplify.c (build_asan_poison_call_expr): New function.
1031 (asan_poison_variable): Likewise.
1032 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
1033 variables that have address taken.
1034 (gimplify_decl_expr): Likewise.
1035 (gimplify_target_expr): Likewise for C++ temporaries.
1036 (sort_by_decl_uid): New function.
1037 (gimplify_expr): Unpoison all variables for a label we can jump
1038 from outside of a scope.
1039 (gimplify_switch_expr): Unpoison variables defined in the switch
1041 (gimplify_function_tree): Clear asan_poisoned_variables.
1042 (asan_poison_variables): New function.
1043 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
1044 * internal-fn.c (expand_ASAN_MARK): New function.
1045 * internal-fn.def (ASAN_MARK): Declare.
1046 * opts.c (finish_options): Handle -fstack-reuse if
1047 -fsanitize-address-use-after-scope is enabled.
1048 (common_handle_option): Enable address sanitization if
1049 -fsanitize-address-use-after-scope is enabled.
1050 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
1052 * params.h: Likewise.
1053 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
1054 * sanitizer.def: Define __asan_poison_stack_memory and
1055 __asan_unpoison_stack_memory functions.
1056 * asan.c (asan_mark_poison_p): New function.
1057 (transform_statements): Handle asan_mark_poison_p calls.
1058 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
1060 2016-11-07 Tamar Christina <tamar.christina@arm.com>
1063 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
1065 2016-11-07 Martin Liska <mliska@suse.cz>
1067 * tree-profile.c (gimple_gen_time_profiler): Set proper type
1068 to time_profiler_counter_ptr.
1070 2016-11-07 Richard Biener <rguenther@suse.de>
1072 PR tree-optimization/37150
1073 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
1075 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
1076 (vect_analyze_slp_cost_1): Account for the real number of
1077 permutations emitted and for dead loads.
1078 (vect_transform_slp_perm_load): Add n_perms parameter counting
1079 the number of emitted permutations.
1080 * tree-vect-stmts.c (vectorizable_load): Adjust.
1082 2016-11-07 Richard Biener <rguenther@suse.de>
1084 PR tree-optimization/78189
1085 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
1086 alignment computation.
1088 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
1090 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
1092 2016-11-05 Martin Sebor <msebor@redhat.com>
1094 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
1097 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
1101 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
1103 2016-11-04 Jakub Jelinek <jakub@redhat.com>
1106 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
1107 doesn't have rtl set.
1109 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1111 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
1112 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
1113 rs6000_gimple_fold_builtin.
1114 (rs6000_gimple_fold_builtin): New function. Add handling for
1115 early expansion of vector addition builtins.
1117 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
1119 * expr.h (copy_blkmode_from_reg): Delete.
1120 * expr.c (copy_blkmode_from_reg): Make static.
1122 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
1124 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
1125 * combine.c (LOAD_EXTEND_OP): Delete.
1126 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
1127 * cse.c (LOAD_EXTEND_OP): Delete.
1128 * fold-const.c (LOAD_EXTEND_OP): Likewise.
1129 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
1130 * postreload.c (LOAD_EXTEND_OP): Delete.
1131 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
1132 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
1133 (find_reloads): Likewise.
1134 * reload1.c (eliminate_regs_1): Likewise.
1135 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
1136 (num_sign_bit_copies1): Likewise.
1138 2016-11-04 David Malcolm <dmalcolm@redhat.com>
1140 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
1141 (selftest::ix86_test_dumping_hard_regs): New function.
1142 (selftest::ix86_run_selftests): New function.
1143 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
1144 selftest::ix86_run_selftests.
1145 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
1146 * doc/tm.texi: Regenerate
1147 * selftest-rtl.h: New file.
1148 * rtl-tests.c: Include "selftest-rtl.h".
1149 (selftest::assert_rtl_dump_eq): Make non-static.
1150 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
1151 (selftest::test_dumping_regs): Update comment.
1152 * selftest-run-tests.c: Include "target.h".
1153 (selftest::run_tests): If non-NULL, call
1154 targetm.run_target_selftests.
1155 * target.def (run_target_selftests): New hook.
1157 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1159 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
1160 representative core for this architecture.
1161 * config/arm/arm-cores.def (cortex-m33): Define new processor.
1162 * config/arm/arm-tables.opt: Regenerate.
1163 * config/arm/arm-tune.md: Likewise.
1164 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
1165 valid -mcpu options.
1166 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
1168 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1170 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
1171 representative core for this architecture.
1172 * config/arm/arm-cores.def (cortex-m23): Define new processor.
1173 * config/arm/arm-tables.opt: Regenerate.
1174 * config/arm/arm-tune.md: Likewise.
1175 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
1176 this tuning parameters apply to in the comment.
1177 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
1178 valid -mcpu options.
1179 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
1181 2016-11-04 Bin Cheng <bin.cheng@arm.com>
1183 * fold-const.c (fold_cond_expr_with_comparison): Remove call
1184 to pedantic_non_lvalue_loc. Remove useless code for lvalue
1185 where cond_expr can't be a lvalue.
1187 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
1189 * config/arc/arc.c (arc_process_double_reg_moves): Use
1191 * config/arc/arc.md (movsi_insn): Disable unsupported move
1192 instructions for ARCv2 cores.
1193 (movdi): Use prepare_move_operands.
1194 (movsf, movdf): Use move_dest_operand predicate.
1195 * config/arc/constraints.md (Chs): Enable when barrel shifter is
1197 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
1198 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
1200 (dexcl_3op_peep2_insn_nores): Likewise.
1201 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
1202 (LINK_COMMAND_SPEC): Remove.
1204 2016-11-04 Richard Biener <rguenther@suse.de>
1207 * loop-invariant.c (find_exits): Record entering inner
1208 loops as possibly exiting to handle infinite sub-loops.
1209 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
1210 (fill_always_executed_in_1): Honor infinite child loops.
1212 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1215 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
1216 has already been adjusted for endianness, so don't adjust it any
1220 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
1221 ICmode unless we have standard PowerPC floating point.
1222 * config/rs6000/rs6000.md (FP iterator): Likewise.
1223 (FMOVE128 iterator): Likewise.
1225 2016-11-03 Jakub Jelinek <jakub@redhat.com>
1226 Alexandre Oliva <aoliva@redhat.com>
1227 Jason Merrill <jason@redhat.com>
1231 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
1233 * langhooks.c (lhd_type_dwarf_attribute): New function.
1234 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
1235 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
1236 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
1237 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
1238 (check_qualified_type, check_aligned_type): Call it.
1239 * dwarf2out.c (modified_type_die): Don't use type_main_variant
1240 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
1241 check_base_type and check_lang_type.
1242 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
1243 return early. For pointer-to-data-member add DW_AT_use_location
1245 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
1247 (gen_type_die_with_usage): Don't use type_main_variant
1248 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
1249 check_base_type and check_lang_type. Formatting fixes. Call
1250 get_debug_type langhook.
1252 2016-11-03 Jason Merrill <jason@redhat.com>
1254 * tree.c (check_lang_type): New.
1255 (check_qualified_type): Use it.
1256 (check_aligned_type): Use it.
1257 * tree.h: Declare it.
1259 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
1261 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
1262 (arm*-freebsd*): Likewise.
1263 (arm*-*-netbsdelf*): Likewise.
1264 (arm*-*-linux*): Likewise.
1265 (arm*-*-uclinux*eabi*): Likewise.
1266 (arm*-*-phoenix*): Likewise.
1267 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
1268 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
1269 specified. Default to arm6 if target_cpu_cname is not set.
1270 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
1271 default cpu has been correctly configured.
1272 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
1273 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
1274 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
1275 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
1276 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
1277 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
1278 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
1280 2016-11-03 Jiong Wang <jiong.wang@arm.com>
1282 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
1283 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
1284 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
1285 (output_cfa_loc): Support DW_CFA_val_expression.
1286 (output_cfa_loc_raw): Likewise.
1287 (output_cfi): Likewise.
1288 (output_cfi_directive): Likewise.
1289 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
1290 (dw_cfi_oprnd2_desc): Likewise.
1291 (mem_loc_descriptor): Recognize new pattern generated for value
1294 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
1296 PR rtl-optimization/78186
1297 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
1298 well, when converting to IOR.
1300 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
1302 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
1303 (vec_interleave_highv8qi): Likewise.
1305 2016-11-03 Martin Liska <mliska@suse.cz>
1307 * profile.c (instrument_values): Fix coding style.
1308 (branch_prob): Use renamed function.
1309 * tree-profile.c (init_ic_make_global_vars): Likewise.
1310 (gimple_init_edge_profiler): Rename to
1311 gimple_init_gcov_profiler.
1312 tree_time_profiler_counter variable declaration.
1313 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
1315 * value-prof.h: Remove an argument.
1317 2016-11-03 Richard Biener <rguenther@suse.de>
1319 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
1320 symtab_node::get_create.
1322 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1324 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
1325 Move comments into more natural position.
1327 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
1329 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
1330 (PTRDIFF_TYPE): Define as int.
1332 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1334 * ccmp.c (expand_ccmp_expr_1): Adjust.
1335 (expand_ccmp_expr): Likewise.
1336 (expand_ccmp_next): Likewise.
1337 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
1338 (aarch64_gen_ccmp_first): Likewise.
1339 * doc/tm.texi: Regenerate.
1340 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
1341 (gen_ccmp_next): Likewise.
1343 2016-11-03 Bin Cheng <bin.cheng@arm.com>
1345 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
1346 (vect_is_simple_reduction): Swap cond_reduction by inversion.
1348 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
1350 * config/i386/i386.c (ix86_init_libfuncs): New. Call
1351 darwin_rename_builtins here.
1352 (ix86_expand_divmod_libfunc): New.
1353 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
1354 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
1356 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
1357 Nathan Sidwell <nathan@acm.org>
1359 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
1361 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
1363 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
1365 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
1366 to format MODE_INT and MODE_PARTIAL_INT literals.
1368 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
1371 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
1372 NULL if TARGET_SPE_ABI.
1374 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1376 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
1377 clear padding bits even when they're less than a byte.
1379 2016-11-02 Richard Biener <rguenther@suse.de>
1381 * gimple-ssa-store-merging.c: Include gimplify-me.h.
1382 (imm_store_chain_info::output_merged_stores): Force base_addr
1383 to be proper GIMPLE for a MEM_REF address.
1384 (pass_store_merging::execute): Restrict negative bitpos
1385 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
1386 check. Take into account non-NULL_TREE offset if the base
1387 is already addressable.
1389 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1391 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
1393 (aarch64_be_crypto_sha1hv4si): New pattern.
1395 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
1397 * config/aarch64/aarch64.md (add<mode>3): Remove
1398 redundant code. Don't split frame based additions.
1400 2016-11-02 Richard Biener <rguenther@suse.de>
1402 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
1403 redundant val and dest members.
1404 (store_immediate_info::store_immediate_info): Adjust.
1405 (merged_store_group::merged_store_group): Adjust.
1406 (merged_store_group::apply_stores): Likewise.
1407 (struct imm_store_chain_info): Add base_addr field.
1408 (imm_store_chain_info::imm_store_chain_info): New constructor.
1409 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
1410 (imm_store_chain_info::output_merged_store): Likewise. Use
1411 addr_base which is already the address.
1412 (imm_store_chain_info::output_merged_stores): Likewise.
1413 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
1414 imm_store_chain_info instead of base. Fix alias check.
1415 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
1416 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
1417 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
1418 use the address of the base and adjust for other changes.
1420 2016-11-02 Martin Liska <mliska@suse.cz>
1422 * fold-const-call.c (host_size_t_cst_p): Test whether
1423 t is convertible to size_t.
1425 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1427 PR tree-optimization/78170
1428 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
1429 introduced by native_encode_expr on little-endian as well.
1431 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1433 PR tree-optimization/78162
1434 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
1437 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1439 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
1441 (aarch64_next_callee_save): Likewise.
1442 (aarch64_pushwb_single_reg): Likewise.
1443 (aarch64_gen_storewb_pair): Likewise.
1444 (aarch64_push_regs): Likewise.
1445 (aarch64_gen_loadwb_pair): Likewise.
1446 (aarch64_pop_regs): Likewise.
1447 (aarch64_gen_store_pair): Likewise.
1448 (aarch64_gen_load_pair): Likewise.
1449 (aarch64_save_callee_saves): Likewise.
1450 (aarch64_restore_callee_saves): Likewise.
1452 2016-11-02 Richard Biener <rguenther@suse.de>
1454 PR tree-optimization/78035
1455 PR tree-optimization/77964
1456 * gimple-pretty-print.c (pp_points_to_solution): Print
1457 vars_contains_interposable.
1458 * tree-ssa-alias.c: Include varasm.h.
1459 (ptrs_compare_unequal): Check vars_contains_interposable and
1460 decl_binds_to_current_def_p.
1461 (dump_points_to_solution): Dump vars_contains_interposable.
1462 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
1464 * tree-ssa-structalias.c: Include varasm.h.
1465 (set_uids_in_ptset): Record whether vars contains a
1466 not decl_binds_to_current_def_p variable in vars_contains_interposable.
1467 (ipa_escaped_pt): Update initializer.
1469 2016-11-02 Richard Biener <rguenther@suse.de>
1471 PR tree-optimization/78047
1472 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
1473 fake field at offset zero conservatively regarding to may_have_pointers.
1475 2016-11-02 Richard Biener <rguenther@suse.de>
1477 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
1478 infer_value_range on stmt ops and update value-ranges.
1479 Dump visited stmts and blocks.
1480 (evrp_dom_walker::push_value_range): Dump changes.
1481 (evrp_dom_walker::pop_value_range): Likewise.
1482 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
1484 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1486 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
1488 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
1490 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1492 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
1493 and adjust for that.
1494 * cfgrtl.h (delete_insn_chain): Adjust prototype.
1496 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1498 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
1500 (transcode_memory_rtx): Likewise.
1501 (move_to_acc): Likewise.
1502 (move_from_acc): Likewise.
1503 (move_acc_to_reg): Likewise.
1504 (move_to_x): Likewise.
1505 (move_to_hl): Likewise.
1506 (move_to_de): Likewise.
1507 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
1508 (rs6000_emit_savres_rtx): Likewise.
1509 (rs6000_emit_prologue): Likewise.
1510 * reorg.c (update_reg_unused_notes): Likewise.
1511 * rtl.h (remove_note): Adjust prototype.
1512 * rtlanal.c (remove_note): Make argument type rtx_insn *.
1514 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1516 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
1517 variables so some can be rtx_insn *.
1518 (alpha_emit_xfloating_libcall): Likewise.
1519 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
1520 (mips_legitimize_tls_address): Likewise.
1521 * optabs.c (expand_binop): Likewise.
1522 * reload1.c (gen_reload): Likewise.
1524 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1526 * reorg.c (relax_delay_slots): Split up the trial variable.
1528 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1530 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
1531 of variables rtx_insn *.
1532 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
1533 (legitimize_tls_address): Likewise.
1534 * config/bfin/bfin.c (hwloop_optimize): Likewise.
1535 (bfin_gen_bundles): Likewise.
1536 * config/c6x/c6x.c (reorg_split_calls): Likewise.
1537 (c6x_reorg): Likewise.
1538 * config/frv/frv.c (frv_reorder_packet): Likewise.
1539 * config/i386/i386.c (ix86_split_idivmod): Likewise.
1540 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
1541 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
1542 * config/mn10300/mn10300.c: Likewise.
1543 * config/rl78/rl78.c: Likewise.
1544 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
1545 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
1546 (sh_expand_cmpnstr): Likewise.
1547 (sh_expand_strlen): Likewise.
1548 (sh_expand_setmem): Likewise.
1549 * config/sh/sh.md: Likewise.
1550 * emit-rtl.c (emit_pattern_before): Likewise.
1551 * except.c: Likewise.
1552 * final.c: Likewise.
1555 2016-11-01 Jason Merrill <jason@redhat.com>
1557 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
1558 a COND_EXPR with constant condition.
1560 2016-11-01 Jakub Jelinek <jakub@redhat.com>
1562 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
1563 and its initialization.
1565 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1567 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
1570 2016-11-01 Jakub Jelinek <jakub@redhat.com>
1572 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
1573 argument, don't call add_linkage_name if it is true.
1574 (gen_variable_die): For C++ inline static data members, consider the
1575 initial call when old_die is NULL to be declaration and call
1576 add_name_and_src_coords_attributes in that case with true as
1577 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
1578 (gen_member_die): For C++ inline static data members, emit a
1579 definition DIE right away in DW_TAG_compile_unit context.
1581 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
1584 * config/pa/pa.md: Add new shift/add patterns to handle
1585 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
1587 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
1589 * config/xtensa/xtensa-protos.h
1590 (xtensa_use_return_instruction_p): New prototype.
1591 * config/xtensa/xtensa.c (xtensa_current_frame_size,
1592 xtensa_callee_save_size): Remove.
1593 (struct machine_function): Add new fields: current_frame_size,
1594 callee_save_size, frame_laid_out and epilogue_done.
1595 (compute_frame_size, xtensa_expand_prologue,
1596 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
1597 cfun->machine->callee_save_size and xtensa_current_frame_size
1598 with cfun->machine->current_frame_size.
1599 (compute_frame_size): Update cfun->machine->frame_laid_out and
1600 don't update frame layout after reload completion.
1601 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
1602 instead of zeroing xtensa_current_frame_size.
1603 (xtensa_use_return_instruction_p): New function.
1604 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
1606 (INITIAL_ELIMINATION_OFFSET): Use return value of
1607 compute_frame_size instead of xtensa_current_frame_size value.
1608 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
1609 function xtensa_use_return_instruction_p instead of inline code.
1611 2016-11-01 Jakub Jelinek <jakub@redhat.com>
1613 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
1614 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
1615 * dwarf2out.c (rnglist_idx): New variable.
1616 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
1617 (DEBUG_RNGLISTS_SECTION): Define.
1618 (ranges_base_label): New variable.
1619 (size_of_die) <case dw_val_class_range_list>: If using
1620 DW_FORM_rnglistx, count size of uleb128 of range list index.
1621 (value_format) <case dw_val_class_range_list>: For
1622 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
1623 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
1624 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
1625 (add_ranges_num): Remove useless prototype. Don't multiply
1626 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
1627 for new fields added to dw_ranges struct.
1628 (add_ranges): Add maybe_new_sec argument and pass it
1629 through to add_ranges_num.
1630 (note_rnglist_head): New function.
1631 (add_ranges_by_labels): Pass true as maybe_new_sec to
1632 add_ranges_num, call note_rnglist_head on the head of the list.
1633 (output_ranges): Add function comment. Switch to
1634 .debug_ranges section here and emit .Ldebug_ranges0 label.
1635 (index_rnglists, output_rnglists): New functions.
1636 (gen_subprogram_die): Formatting fixes.
1637 (add_high_low_attributes): Don't divide offsets
1638 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
1639 first list element or when pointing into the middle of
1640 a list. Pass true as second argument to add_ranges on the
1641 first block fragment after cold/hot section switch.
1642 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
1643 section instead of .debug_ranges. Initialize
1644 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
1645 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
1646 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
1647 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
1648 Call output_rnglists for -gdwarf-5.
1649 (dwarf2out_c_finalize): Clear rnglist_idx.
1651 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
1653 * combine.c (simplify_compare_const): Add gcc_fallthrough.
1655 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
1656 Tamar Christina <tamar.christina@arm.com>
1658 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
1659 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
1660 (vmaxnmq_f32): Likewise.
1661 (vminnm_f32): Likewise.
1662 (vminnmq_f32): Likewise.
1663 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
1665 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
1668 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1670 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
1671 binary floating point types supported by the hardware except for
1673 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
1674 vector instruction for optimizing extracting a SImode from a
1675 V4SImode vector and converting it to floating point.
1676 (vsx_xvcvuxwdp_df): Likewise.
1677 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
1678 registers to be any VSX register. Move stores to the end of the
1680 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
1681 to optimize extracting a SImode from a V4SImode vector and
1682 converting it to a binary floating point type supported by the
1683 hardware. Use the vector converts instead of extracting the
1684 element, sign extending it, and then converting it to double.
1685 Other floating point types than double first convert to double,
1686 then the double is converted to that type.
1687 (vsx_extract_si_<uns>float_<mode>): Likewise.
1689 2016-10-31 Andrew Pinski <apinski@cavium.com>
1691 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
1692 Rewrite handling of part num to handle the case where
1693 multiple implementers share the same part num.
1695 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1696 Jakub Jelinek <jakub@redhat.com>
1698 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
1699 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
1701 2016-10-31 Jakub Jelinek <jakub@redhat.com>
1703 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
1704 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
1705 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
1706 (is_cu_die, is_unit_die): Likewise.
1707 (should_move_die_to_comdat, break_out_comdat_types): Adjust
1708 comments for DWARF5 DW_UT_type units.
1709 (output_compilation_unit_header): Add UT argument, output
1710 start of DWARF5 .debug_info section header.
1711 (output_comp_unit): Add dwo_id argument. Adjust
1712 output_compilation_unit_header caller, for DW_UT_split_compile
1713 emit dwo_id field, otherwise padding1. Emit padding2 field.
1714 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
1715 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
1716 (output_skeleton_debug_sections): Add dwo_id argument, for
1717 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
1718 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
1719 DW_UT_type or DW_UT_split_type units rather than .debug_types.
1720 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
1721 DW_TAG_compile_unit for skeleton unit die. Don't add
1722 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
1723 address to output_comp_unit and output_skeleton_debug_sections.
1725 * dwarf2out.c (debug_line_str_section): New variable.
1726 (debug_line_str_hash): Likewise.
1727 (DEBUG_LINE_STR_SECTION): Define.
1728 (set_indirect_string): Handle DW_FORM_line_strp like
1730 (find_string_form): Fix up formatting.
1731 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
1733 (output_die): Handle DW_FORM_line_strp.
1734 (DWARF5_USE_DEBUG_LINE_STR): Define.
1735 (output_line_string): New function.
1736 (output_file_names): Add -gdwarf-5 support.
1737 (output_line_info): Likewise.
1738 (init_sections_and_labels): Initialize debug_line_str_section.
1739 (output_indirect_string): Change 2nd argument from void *
1740 to enum dwarf_form form, compare with form rather than
1742 (output_indirect_strings): Pass DW_FORM_strp to
1743 output_indirect_string traversion.
1744 (dwarf2out_finish): Output .debug_line_str strings.
1745 (dwarf2out_c_finalize): Clear debug_line_str_section and
1746 debug_line_str_hash.
1748 2016-10-31 Tom Tromey <tom@tromey.com>
1751 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
1752 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
1753 DW_OP_GNU_push_tls_address case.
1754 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
1756 2016-10-31 Jakub Jelinek <jakub@redhat.com>
1758 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
1759 for frame_offset_rel bit.
1760 (struct array_descr_info): Add rank field.
1761 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
1762 and placeholder_seen fields.
1763 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
1764 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
1765 DW_OP_pick 1 into DW_OP_over.
1766 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
1767 gen_variant_part): Clear placeholder_{arg,seen}.
1768 (loc_list_from_tree_1): Drop const from context argument.
1769 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
1770 (loc_list_for_address_of_addr_expr_of_indirect_ref,
1771 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
1773 (add_scalar_info): Drop const from context argument. Handle
1774 context->placeholder_arg.
1775 (add_bound_info): Drop const from context argument.
1776 (gen_descr_array_type_die): Drop const from ctx variable.
1777 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
1778 attribute and use a single DW_TAG_generic_subrange instead of
1779 7 DW_TAG_subrange_type for assumed rank arrays.
1781 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
1782 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
1783 from bool to 1-bit uchar bitfield. Add num_assigned and
1784 offset_emitted bitfields.
1785 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
1786 for dw_val_class_lineptr and dw_val_class_macptr. Handle
1787 dw_val_class_loclistsptr.
1788 (new_addr_loc_descr): Fix up formatting.
1789 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
1790 (add_AT_low_high_pc): Fix up formatting.
1791 (add_AT_loclistsptr): New function.
1792 (AT_lbl): Allow dw_val_class_loclistsptr.
1793 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
1794 Handle dw_val_class_loclistsptr.
1795 (loc_list_idx): New variable.
1796 (output_loclists_offsets, assign_location_list_indexes): New
1798 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
1799 add size_of_uleb128 of the index. Drop never used
1800 dwarf_split_debug_info AT_index handling. Handle
1801 dw_val_class_loclistsptr.
1802 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
1803 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
1804 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
1805 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
1806 DW_FORM_loclistx indexes.
1807 (output_attr_index_or_value): Fix up formatting. Don't handle
1808 dw_val_class_loc_list here.
1809 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
1810 For dw_val_class_loc_list call output_loc_list_offset rather than
1811 output_attr_index_or_value.
1812 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
1813 or .debug_loclists.dwo section name for debug_loc_section.
1814 (resolve_addr_in_expr): Formatting fix.
1815 (index_location_lists): Likewise.
1816 (dwarf2out_finish): If there are any location lists, for
1817 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
1818 index_location_lists only if have_location_lists. Call
1819 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
1820 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
1821 -gsplit-dwarf also emit offset table.
1823 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
1824 (size_of_die, value_format, output_die): Use
1825 DW_FORM_data16 for 128-bit dw_val_class_const_double or
1826 dw_val_class_wide_int.
1828 * dwarf2out.c (dwarf_op): Renamed to ...
1829 (dwarf_OP): ... this.
1830 (convert_descriptor_to_mode, scompare_loc_descriptor,
1831 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
1832 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
1834 (dwarf_AT, dwarf_TAG): New functions.
1835 (check_die): Disallow DW_AT_call_all_calls next to
1836 DW_AT_GNU_all_call_sites.
1837 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
1838 and attributes instead of the corresponding GNU tag and attributes.
1839 (gen_subprogram_die): Likewise. Emit call site information even
1840 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
1841 DW_AT_defaulted in comment.
1842 (resolve_addr): Handle DW_AT_call_origin attribute on
1843 DW_TAG_call_site DIE like DW_AT_abstract_origin on
1844 DW_TAG_GNU_call_site DIE.
1846 * dwarf2out.c (dwarf_op): New function.
1847 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
1848 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
1849 (output_loc_operands, output_loc_operands_raw): Likewise.
1850 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
1851 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
1852 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
1853 if dwarf_version < 5.
1854 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
1856 (scompare_loc_descriptor, ucompare_loc_descriptor,
1857 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
1858 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
1859 optimize_location_into_implicit_ptr): Likewise. Only punt for
1860 !dwarf_strict if dwarf_version < 5.
1861 (string_cst_pool_decl): Adjust comment.
1862 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
1864 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
1865 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
1866 (struct dw_val_node): Add val_file_implicit field.
1867 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
1868 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
1869 output_die): Handle dw_val_class_const_implicit,
1870 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
1871 (abbrev_die_table): Change into va_gc vec.
1872 (abbrev_die_table_allocated, abbrev_die_table_in_use,
1873 ABBREV_DIE_TABLE_INCREMENT): Remove.
1874 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
1875 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
1877 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
1878 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
1880 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
1882 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
1884 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
1886 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
1887 unit. Call optimize_abbrev_table.
1888 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
1889 abbrev_die_table being a va_gc vec.
1891 PR tree-optimization/77860
1892 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
1893 also integral complex and vector constants.
1895 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
1896 optimize_macinfo_range, save_macinfo_strings): Replace
1897 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
1898 (output_macinfo): Likewise. Emit .debug_macro* rather than
1899 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
1900 (init_sections_and_labels): Use .debug_macro* labels rather than
1901 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
1902 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
1903 or DW_AT_GNU_macros for -gdwarf-5.
1905 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
1907 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
1909 2016-09-11 Le-Chun Wu <lcwu@google.com>
1910 Mark Wielaard <mjw@redhat.com>
1912 * common.opt (Wshadow=global): New option. Default for -Wshadow.
1913 (Wshadow=local): New option.
1914 (Wshadow-local): Hidden alias for -Wshadow=local.
1915 (Wshadow=compatible-local): New option.
1916 (Wshadow-compatible-local): Hidden alias for
1917 -Wshadow=compatible-local.
1918 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
1919 Wshadow=compatible-local.
1921 2016-10-31 Bin Cheng <bin.cheng@arm.com>
1923 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
1924 Check slp defs for COND_EXPR by swapping/inverting operands if the
1925 new parameter SWAP indicates so.
1926 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
1927 is isomorphic to the first stmt via swapping/inverting. Store swap
1928 information in the new parameter SWAP.
1929 (vect_build_slp_tree): New local array SWAP and pass it to function
1930 vect_build_slp_tree_1. Cleanup result handling code for function
1931 call to vect_get_and_check_slp_defs. Skip operand swapping if the
1932 order of operands has been fixed as indicated by SWAP[i].
1934 2016-10-31 Bin Cheng <bin.cheng@arm.com>
1936 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
1937 unnecessary data dependence check after visited store stmt.
1939 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1941 PR tree-optimization/71915
1942 PR tree-optimization/71490
1943 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
1945 (find_basis_for_base_expr): Require stride types to match when
1947 (alloc_cand_and_find_basis): Record the stride type.
1948 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
1949 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
1950 the expressions having those types.
1951 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
1952 (create_mul_ssa_cand): Likewise.
1953 (create_mul_imm_cand): Likewise.
1954 (create_add_ssa_cand): Likewise.
1955 (create_add_imm_cand): Likewise.
1956 (legal_cast_p_1): Change interface to accept types rather than the
1957 expressions having those types.
1958 (legal_cast_p): Pass types to legal_cast_p_1.
1959 (slsr_process_cast): Pass stride type to
1960 alloc_cand_and_find_basis.
1961 (slsr_process_copy): Likewise.
1962 (dump_candidate): Display stride type when a cast exists.
1963 (create_add_on_incoming_edge): Introduce a cast when necessary for
1965 (analyze_increments): Change the code checking for invalid casts
1966 to rely on the stride type, and update the documentation and
1967 example. Change the code checking for pointer multiplies to rely
1969 (insert_initializers): Introduce a cast when necessary for the
1970 stride type. Use the stride type for the type of the initializer.
1972 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1974 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
1976 2016-10-29 Jakub Jelinek <jakub@redhat.com>
1978 PR rtl-optimization/77919
1979 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
1980 into memory if both modes are complex and their inner modes have the
1981 same precision. If the two modes are different complex modes, convert
1982 each part separately and generate a new CONCAT.
1984 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
1986 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
1988 2016-10-29 Jakub Jelinek <jakub@redhat.com>
1991 * gimple-ssa-store-merging.c
1992 (imm_store_chain_info::output_merged_store): Use build_aligned_type
1993 instead of SET_TYPE_ALIGN on shared integral type.
1995 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
1997 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1998 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
2001 2016-10-28 Jeff Law <law@redhat.com>
2003 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
2004 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
2006 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
2008 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
2010 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
2012 * target.def (min_arithmetic_precision): New hook.
2013 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
2014 * doc/tm.texi: Regenerate.
2015 * internal-fn.c (expand_arith_overflow): Adjust handling of target
2016 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
2017 * targhooks.c (default_min_arithmetic_precision): New function.
2018 * targhooks.h (default_min_arithmetic_precision): Declare.
2019 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
2020 (sparc_min_arithmetic_precision): New function.
2022 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
2025 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
2026 Swap commutative operands in new RTL if needed. Handle zero_ext
2028 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
2031 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2032 Kugan Vivekanandarajah <kuganv@linaro.org>
2033 Jim Wilson <jim.wilson@linaro.org>
2035 PR tree-optimization/43721
2036 * target.def: New hook expand_divmod_libfunc.
2037 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
2038 * doc/tm.texi: Regenerate.
2039 * internal-fn.def: Add new entry for DIVMOD ifn.
2040 * internal-fn.c (expand_DIVMOD): New.
2041 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
2043 (widen_mul_stats): Add new field divmod_calls_inserted.
2044 (target_supports_divmod_p): New.
2045 (divmod_candidate_p): Likewise.
2046 (convert_to_divmod): Likewise.
2047 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
2048 renumber_gimple_stmt_uids at beginning of function. Call
2049 convert_to_divmod and record stats for divmod.
2050 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
2051 TARGET_EXPAND_DIVMOD_LIBFUNC.
2052 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
2055 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
2056 Segher Boessenkool <segher@kernel.crashing.org>
2058 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
2059 swapping the arms of the branch.
2060 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
2061 sequence for the generic signed-signed-signed case.
2063 2016-10-28 Jeff Law <law@redhat.com>
2065 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
2067 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2069 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
2071 PR rtl-optimization/78029
2072 * function.c (prologue_contains, epilogue_contains): New functions.
2073 (record_prologue_seq, record_epilogue_seq): New functions.
2074 * function.h (prologue_contains, epilogue_contains,
2075 record_prologue_seq, record_epilogue_seq): New declarations.
2076 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
2077 mixing prologue and epilogue insns.
2078 (init_deps): Initialize the new fields in struct deps_desc.
2079 * sched-int.h (struct deps_desc): New fields last_prologue,
2080 last_epilogue, and last_logue_was_epilogue.
2081 * shrink-wrap.c (emit_common_heads_for_components): Record all
2082 emitted prologue and epilogue insns.
2083 (emit_common_tails_for_components): Ditto.
2084 (insert_prologue_epilogue_for_components): Ditto.
2086 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2089 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
2090 * common.opt (fstore-merging): New Optimization option.
2091 * opts.c (default_options_table): Add entry for
2092 OPT_ftree_store_merging.
2093 * fold-const.h (can_native_encode_type_p): Declare prototype.
2094 * fold-const.c (can_native_encode_type_p): Define.
2095 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
2096 (PARAM_MAX_STORES_TO_MERGE): Likewise.
2097 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
2098 * passes.def: Insert pass_tree_store_merging.
2099 * tree-pass.h (make_pass_store_merging): Declare extern
2101 * gimple-ssa-store-merging.c: New file.
2102 * doc/invoke.texi (Optimization Options): Document
2104 (--param documentation): Document store-merging-allow-unaligned
2105 and max-stores-to-merge.
2107 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
2110 * gimplify.c (gimplify_init_constructor): Move emit of constructor
2111 assignment to earlier in the if/else logic.
2113 2016-10-28 Richard Biener <rguenther@suse.de>
2117 * fold-const.c (make_bit_field_ref): Only adjust alias set
2118 when the original alias set was zero.
2120 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2122 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
2123 (s390_adjust_loops): New function.
2124 (s390_reorg): Invoke s390_adjust_loops.
2125 * config/s390/s390.md: (UNSPEC_OSC_BREAK): New constant.
2126 ("osc_break"): New insn definition.
2128 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2130 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
2131 * config.gcc: Support alternate archXX cpu levels with
2132 --with-arch= and --with-tune=.
2133 * config/s390/linux.h: Translate new archXX cpu levels to the
2134 original names when calling GAS.
2135 * config/s390/tpf.h: Likewise.
2136 * doc/invoke.texi: Document the alternate cpu level names.
2138 2016-10-28 Jakub Jelinek <jakub@redhat.com>
2140 PR rtl-optimization/77919
2141 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
2142 MEM if mode1 is not a complex mode.
2144 PR rtl-optimization/78132
2145 * ree.c (combine_reaching_defs): Give up if copy_needed and
2146 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
2148 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
2150 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
2152 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
2154 * config/rs6000/constraints.md (wH constraint): Add new
2155 constraints for allowing 32-bit integers (and eventually 8/16-bit
2156 integers) into the vector registers.
2157 (wI constraint): Likewise.
2158 (wJ constraint): Likewise.
2159 (wK constraint): Likewise.
2160 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
2161 -mvsx-small-integer as a default option for ISA 2.07
2163 (POWERPC_MASKS): Likewise.
2164 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
2165 switch to turn off small integer support in vector registers.
2166 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
2167 test for -mupper-regs-di, since it is already done with the
2168 reg_add[mode].scalar_in_vsx_p. Add support for the switch
2169 -mvsx-small-integer.
2170 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
2172 (rs6000_setup_reg_addr_masks): Likewise.
2173 (rs6000_init_hard_regno_mode_ok): Likewise.
2174 (rs6000_option_override_internal): Add consistency checks for
2175 -mvsx-small-integer.
2176 (rs6000_secondary_reload_simple_move): SImode is a simple move if
2177 -mvsx-small-integer.
2178 (rs6000_secondary_reload): Use std::swap.
2179 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
2180 VSX_REGS for small integers in vector registers, since there is no
2181 D-FORM address mode for such types.
2182 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
2183 (rs6000_opt_masks): Add -mvsx-small-integer.
2184 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
2186 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
2187 extracts can be done on ISA 2.07.
2188 (vsx_extract_<mode>): Add support for small integers in vsx
2190 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
2191 longer support V4SImode in this pattern.
2192 (vsx_extract_si): New insn to support extraction of SImode in ISA
2193 2.07 using either xxextractuw or vspltw.
2194 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
2195 longer support V4SImode in this pattern.
2196 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
2197 wJ, and wK constraints.
2198 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
2199 storing SDmode with VSX instructions.
2200 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
2201 GPR load and before the FPR and VSX loads. Remove ??, ! from the
2202 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
2203 small integers in vector registers.
2204 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
2205 load and before the FPR and VSX loads. Remove ??, ! from the
2206 constraints. Add VEXTSW2D support for small integers in vector
2208 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
2209 integers in vector registers.
2210 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
2211 move instead of using an UNSPEC.
2212 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
2213 integers in vector registers.
2214 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
2215 move instead of using an UNSPEC.
2216 (movsi_internal1): Add support for -mvsx-small-integer. Align
2217 columns so that it is more readable.
2218 (SImode splitter for ISA 3.0 constants): Add splitter for
2219 -128..127 constants that can easily be constructed on ISA 3.0.
2220 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
2223 2016-10-27 Jakub Jelinek <jakub@redhat.com>
2226 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
2229 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
2231 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
2232 PIC_OFFSET_TABLE_REGNUM twice.
2234 2016-10-27 Bin Cheng <bin.cheng@arm.com>
2236 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
2237 support for constant operand for OP.
2239 2016-10-27 Jakub Jelinek <jakub@redhat.com>
2241 * dwarf2out.c (gen_member_die): Only reparent_child instead of
2242 splice_child_die if child doesn't have DW_AT_specification attribute.
2244 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2246 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
2247 (TARGET_HAVE_LDREXBH): Likewise.
2248 (TARGET_HAVE_LDACQ): Likewise.
2250 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2252 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
2253 logic to to decide whether to copy over old value to register for new
2255 * config/arm/sync.md: Add comments explaning why mode and code
2256 attribute are not defined in iterators.md
2257 (thumb1_atomic_op_str): New code attribute.
2258 (thumb1_atomic_newop_str): Likewise.
2259 (thumb1_atomic_fetch_op_str): Likewise.
2260 (thumb1_atomic_fetch_newop_str): Likewise.
2261 (thumb1_atomic_fetch_oldop_str): Likewise.
2262 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
2263 mirror the more restrictive constraints of the Thumb-1 insns after
2264 split compared to Thumb-2 counterpart insns.
2265 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
2266 in sync with non atomic version.
2267 (atomic_nand<mode>): Likewise.
2268 (atomic_fetch_<sync_optab><mode>): Likewise.
2269 (atomic_fetch_nand<mode>): Likewise.
2270 (atomic_<sync_optab>_fetch<mode>): Likewise.
2271 (atomic_nand_fetch<mode>): Likewise.
2272 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
2273 in sync with atomic version.
2274 (thumb1_subsi3_insn): Likewise.
2275 (thumb1_andsi3_insn): Likewise.
2276 (thumb1_iorsi3_insn): Likewise.
2277 (thumb1_xorsi3_insn): Likewise.
2279 2016-10-27 Nick Clifton <nickc@redhat.com>
2281 * plugin.c (register_plugin_info): Produce an error message if the
2282 plugin is not found in the hash table.
2284 2016-10-27 Bin Cheng <bin.cheng@arm.com>
2286 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
2289 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
2292 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
2293 define builtin functions from the bdesc_spe_predicates or
2294 bdesc_spe_evsel arrays if the builtin mask is not compatible with
2295 the current compiler configuration.
2296 (paired_init_builtins): Modify loop to not define define builtin
2297 functions from the bdesc_paried_preds array if the builtin mask is
2298 not compatible with the current compiler configuration.
2299 (altivec_init_builtins): Modify loops to not define the
2300 __builtin_altivec_stxvl function nor the builtin functions from
2301 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
2302 builtin mask is not compatible with the current compiler
2305 2016-10-26 Jeff Law <law@redhat.com>
2307 * config/sh/sh.c (output_branch): Add missing fallthru comments.
2308 (gen_shl_and): Likewise.
2309 * config/sh/sh.md (movsicc): Add missing fallthru comments.
2311 * config/mips/mips.c (mips16_constant_cost): Add missing
2313 (mips16_build_call_stub): Increase buffer size. Adjust
2316 2016-10-26 David Malcolm <dmalcolm@redhat.com>
2318 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
2319 INSN_UIDs for all insns in compact mode.
2320 (rtx_writer::print_rtx): Likewise.
2321 * print-rtl.h (rtx_writer::flag_compact): Update comment.
2322 * rtl-tests.c (selftest::test_dumping_insns): Update expected
2323 output to include INSN_UID.
2324 (selftest::test_uncond_jump): Likewise.
2326 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
2328 * haifa-sched.c (call_used_regs_num): Rename to...
2329 (call_saved_regs_num): ...this.
2330 (fixed_regs_num): New variable.
2331 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
2333 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
2335 2016-10-26 David Malcolm <dmalcolm@redhat.com>
2337 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
2339 * print-rtl.c (outfile): Delete global.
2340 (sawclose): Likewise.
2342 (in_call_function_usage): Likewise.
2343 (flag_compact): Likewise.
2344 (flag_simple): Likewise.
2345 (rtx_writer::rtx_writer): New ctor.
2346 (print_rtx_operand_code_0): Convert to...
2347 (rtx_writer::print_rtx_operand_code_0): ...this.
2348 (print_rtx_operand_code_e): Convert to...
2349 (rtx_writer::print_rtx_operand_code_e): ...this.
2350 (print_rtx_operand_codes_E_and_V): Convert to...
2351 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
2352 (print_rtx_operand_code_i): Convert to...
2353 (rtx_writer::print_rtx_operand_code_i): ...this.
2354 (print_rtx_operand_code_r): Convert to...
2355 (rtx_writer::print_rtx_operand_code_r): ...this.
2356 (print_rtx_operand_code_u): Convert to...
2357 (rtx_writer::print_rtx_operand_code_u): ...this.
2358 (print_rtx_operand): Convert to...
2359 (rtx_writer::print_rtx_operand): ...this.
2360 (print_rtx): Convert to...
2361 (rtx_writer::print_rtx): ...this.
2362 (print_inline_rtx): Rewrite in terms of class rtx_writer.
2363 (debug_rtx): Likewise.
2364 (print_rtl): Convert to...
2365 (rtx_writer::print_rtl): ...this.
2366 (print_rtl): Reimplement in terms of class rtx_writer.
2367 (print_rtl_single): Rewrite in terms of class rtx_writer.
2368 (print_rtl_single_with_indent): Convert to..
2369 (rtx_writer::print_rtl_single_with_indent): ...this.
2370 (print_simple_rtl): Rewrite in terms of class rtx_writer.
2371 * print-rtl.h (flag_compact): Delete decl.
2372 (class rtx_writer): New class.
2373 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
2376 2016-10-26 Jeff Law <law@redhat.com>
2378 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
2381 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
2382 (check_if_valid_sleep_operand): Add missing fallthru comment.
2383 (arc_register_move_cost): Increase buffer size.
2384 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
2386 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
2388 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
2389 comment. Add gcc_unreachable for path that should never happen.
2391 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
2394 2016-10-26 Jakub Jelinek <jakub@redhat.com>
2395 Martin Liska <mliska@suse.cz>
2398 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
2399 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
2400 on outer context if any.
2402 2016-10-26 Jakub Jelinek <jakub@redhat.com>
2404 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
2405 by increment rather than double it.
2406 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
2407 emit a space before args[4].
2408 (END): Don't emit a space before with_arg.
2410 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2412 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
2413 Baseline only alternatives to (i) hold store atomic success value in a
2414 return register rather than a scratch register, (ii) use a low register
2415 for it and to (iii) ensure the cbranchsi insn generated by the split
2416 respect the constraints of Thumb-1 cbranchsi4_insn and
2418 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
2419 constraints must match those in atomic_compare_and_swap.
2420 (cbranchsi4_scratch): Likewise.
2422 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2424 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
2425 variable. Add the new parameter to the insn generator. Set that
2426 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
2427 return value from the negation of that parameter for Thumb-1, keeping
2428 the logic unchanged otherwise except for using bdst as the destination
2429 register of the compare_and_swap insn.
2430 (arm_split_compare_and_swap): Add explanation about how is the value
2431 returned to the function comment. Rename scratch variable to
2432 neg_bval. Adapt initialization of variables holding operands to the
2433 new operand numbers. Use return register to hold result of store
2434 exclusive for Thumb-1, scratch register otherwise. Construct the
2435 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
2436 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
2437 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
2438 for strongly ordered compare_and_swap.
2439 * config/arm/predicates.md (cc_register_operand): New predicate.
2440 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
2441 match_operand with the new predicate to accept either the CC flag or a
2442 destination register for the boolean return value, restricting it to
2443 CC flag only via constraint. Adapt operand numbers accordingly.
2445 2016-10-26 Jeff Law <law@redhat.com>
2447 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
2449 * config/frv/frv.c (comparison_string): Do not fall through after
2452 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
2454 (expand_one_builtin): Add missing break.
2456 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
2457 (m32c_legitimate_address_p): Likewise.
2459 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
2461 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
2463 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
2466 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
2469 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
2471 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
2473 (rl78_asm_ctor_dtor): Increase buffer size.
2475 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
2477 (xstormy16_asm_output_constructor): Likewise.
2479 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
2482 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
2483 comment to silence warning.
2485 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
2486 (spu_legitimate_address_p): Fix logic error and add missing fallthru
2489 2016-10-26 Michael Matz <matz@suse.de>
2491 PR tree-optimization/78060
2492 PR tree-optimization/78061
2493 PR tree-optimization/78088
2494 * tree-ssa-loop-split.c (easy_exit_values): New function.
2495 (tree_ssa_split_loops): Use it.
2496 (compute_new_first_bound): Change order of operations,
2497 fix invalid use of types.
2499 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
2501 gen-pass-instances.awk is sensitive to the order in which
2502 passes are added; passes that appear later have to be added first.
2506 * config/avr/avr-passes.def: Swap order of directives for
2507 gen-pass-instances.awk.
2509 2016-10-25 Jeff Law <law@redhat.com>
2511 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
2512 (vax_notice_update_cc): Likewise.
2514 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
2516 * config.gcc (sparc*-*-solaris2*): Adjust.
2517 (sparc64-*-linux*): Likewise.
2518 * config/sparc/default-64.h: Rename to...
2519 * config/sparc/default64.h: ...this.
2520 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
2522 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
2523 * config/sparc/sparc.h: Minor tweaks.
2524 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
2525 TARGET_ARCH32 throughout. Minor various tweaks throughout.
2527 2016-10-25 David Malcolm <dmalcolm@redhat.com>
2529 * input.c (fcache::file_patch): Add comment about lifetime.
2530 (selftest::cpp_reader_ptr): New class.
2531 (selftest::lexer_test): Convert m_parser from cpp_reader *
2532 to a cpp_reader_ptr, and move m_tempfile to after it.
2533 (selftest::lexer_test::lexer_test): Update for above reordering.
2534 (lexer_test::~lexer_test): Move cleanup of m_parser to
2535 cpp_reader_ptr's dtor.
2537 2016-10-25 David Malcolm <dmalcolm@redhat.com>
2539 * toplev.c (toplev::main): Remove call to
2540 location_adhoc_data_fini.
2542 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
2544 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
2545 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
2547 2016-10-25 David Malcolm <dmalcolm@redhat.com>
2549 * ggc-tests.c (forcibly_ggc_collect): Rename to...
2550 (selftest::forcibly_ggc_collect): ...this, and remove "static".
2551 (test_basic_struct): Update for above renaming.
2552 (test_length): Likewise.
2553 (test_union): Likewise.
2554 (test_finalization): Likewise.
2555 (test_deletable_global): Likewise.
2556 (test_inheritance): Likewise.
2557 (test_chain_next): Likewise.
2558 (test_user_struct): Likewise.
2559 (test_tree_marking): Likewise.
2560 * selftest-run-tests.c (selftest::run_tests): Call
2561 selftest::forcibly_ggc_collect at the end of the selftests.
2562 * selftest.h (selftest::forcibly_ggc_collect): New decl.
2564 2016-10-25 Jakub Jelinek <jakub@redhat.com>
2567 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
2568 * optabs.c (expand_vec_cond_expr): For comparison codes
2569 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
2570 (expand_vec_cmp_expr): For comparison codes
2571 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
2572 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
2573 Add enum tree_code argument.
2574 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
2576 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
2577 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
2579 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
2580 NE_EXPR, attempt to use vcondeq_optab as fallback.
2581 * tree-vect-generic.c (expand_vector_comparison,
2582 expand_vector_divmod, expand_vector_condition): Adjust
2583 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
2584 * tree-vect-stmts.c (vectorizable_condition,
2585 vectorizable_comparison): Likewise.
2586 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
2587 check_bool_pattern, search_type_for_mask_1): Likewise.
2588 * expr.c (do_store_flag): Likewise.
2589 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
2590 @code{vcondeq@var{m}@var{n}}): Document.
2591 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
2594 2016-10-25 Jeff Law <law@redhat.com>
2596 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
2598 (v850_output_aligned_bss): Add missing break.
2600 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
2602 2016-10-25 Martin Liska <mliska@suse.cz>
2605 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
2606 statements as they can also contain possibly a freeing call.
2608 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
2609 Martin Liska <mliska@suse.cz>
2612 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
2613 * ipa-icf.c (sem_function::get_hash): Add target optimization
2616 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
2619 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
2620 Remove partial overlap check for shift by 1.
2621 (ashldi3_neon): Likewise.
2623 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
2625 * config/arm/constraints.md (Q constraint): Document its use for
2627 (Pf constraint): New constraint for relaxed, consume or relaxed memory
2629 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
2630 alternatives to allow any register when memory model matches Pf and
2631 thus lda is used, but only low registers otherwise. Use unpredicated
2632 output template for Thumb-1 targets.
2633 (atomic_store<mode>): Likewise for stl.
2634 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
2635 whose output template does not have predication.
2636 (arm_load_acquire_exclusive<mode>): Likewise.
2637 (arm_load_exclusivesi): Likewise.
2638 (arm_load_acquire_exclusivesi): Likewise.
2639 (arm_store_release_exclusive<mode>): Likewise.
2640 (arm_store_exclusive<mode>): Use unpredicated output template for
2643 2016-10-25 Jakub Jelinek <jakub@redhat.com>
2645 * internal-fn.def (LAUNDER): New internal function.
2646 * internal-fn.c (expand_LAUNDER): New function.
2648 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
2649 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2651 New avr target pass to work around performance loss by PR fix.
2655 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
2656 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
2657 * config/avr/predicates.md (extend_operator): New.
2658 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
2659 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
2660 (make_avr_pass_casesi): New prototypes.
2661 * config/avr/avr.c (print-rtl.h): Include it.
2662 (pass_data avr_pass_data_casesi): Data for new pass.
2663 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
2664 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
2665 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
2666 (avr_optimize_casesi): New functions.
2668 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
2669 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
2673 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
2675 2016-10-24 Jakub Jelinek <jakub@redhat.com>
2677 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
2678 DW_AT_rvalue_reference attributes.
2680 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
2682 * doc/invoke.text (Wint-in-bool-context): Update documentation.
2683 * value-prof.c (stringop_block_profile): Fix a warning.
2685 2016-10-24 Martin Sebor <msebor@redhat.com>
2688 * builtins.c (string_length): New function.
2689 (c_strlen): Use string_length. Correctly handle wide strings.
2690 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
2692 (target_int_max): Call target_max_value.
2693 (format_result::knownrange): New data member.
2694 (fmtresult::fmtresult): Define default constructor.
2695 (format_integer): Use it and set format_result::knownrange.
2696 Handle global constants.
2697 (format_floating_max): Add third argument.
2698 (format_floating): Recompute maximum value for %a for each argument.
2699 (get_string_length): Use fmtresult default ctor.
2700 (format_string): Set format_result::knownrange.
2701 (format_directive): Check format_result::knownrange.
2702 (add_bytes): Same. Correct caret placement in diagnostics.
2703 (pass_sprintf_length::compute_format_length): Set
2704 format_result::knownrange.
2705 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
2707 2016-10-24 Jakub Jelinek <jakub@redhat.com>
2709 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
2710 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
2712 2016-10-24 Ximin Luo <infinity0@pwned.gg>
2715 * dwarf2out.c (file_table_relative_p): Remove.
2716 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
2717 also for absolute paths.
2718 * doc/tm.texi: Update.
2719 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
2720 * target.def (force_at_comp_dir): Remove hook.
2721 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
2723 2016-10-24 Richard Biener <rguenther@suse.de>
2725 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
2726 backedges when identifying the single predecessor to take
2727 conditional info from. Use SCEV to get at ranges for loop IVs.
2728 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
2729 avoid false warning.
2731 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
2734 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
2735 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
2736 (avr_address_tiny_absdata_p): New static function.
2737 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
2738 it to determine validity of constant addresses.
2739 (avr_attribute_table) [absdata]: New variable attribute...
2740 (avr_handle_absdata_attribute): ...and handler.
2741 (avr_decl_absdata_p): New static function.
2742 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
2743 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
2744 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
2746 2016-10-24 Richard Biener <rguenther@suse.de>
2748 PR tree-optimization/78076
2749 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
2750 also on the loop tree root.
2752 2016-10-24 Jakub Jelinek <jakub@redhat.com>
2754 * config/i386/i386.c (ix86_fold_builtin): Handle
2755 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
2756 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
2757 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
2758 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
2760 2016-10-24 Martin Liska <mliska@suse.cz>
2763 * opts.c (finish_options): Skip conditionally.
2765 2016-10-23 Martin Sebor <msebor@redhat.com>
2768 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
2769 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
2771 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
2773 * config/sparc/sparc.md (cpu_feature): Minor tweak.
2774 (enabled): Likewise.
2775 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
2776 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
2777 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
2778 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
2779 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
2780 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
2782 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
2784 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
2785 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
2787 2016-10-21 Andrew Pinski <apinski@cavium.com>
2789 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
2791 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
2792 implementer_id to unsigned char.
2793 Change part_no to unsigned int.
2794 (AARCH64_BIG_LITTLE): New define.
2795 (INVALID_IMP): New define.
2796 (INVALID_CORE): New define.
2797 (cpu_data): Change the last element's implementer_id and part_no to
2799 (valid_bL_string_p): Rewrite to ..
2800 (valid_bL_core_p): this for integers instead of strings.
2801 (parse_field): New function.
2802 (contains_string_p): Rewrite to ...
2803 (contains_core_p): this for integers and only for the part_no.
2804 (host_detect_local_cpu): Rewrite handling of implementation and
2805 par num to be integers; simplifying the code.
2807 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
2809 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
2810 value range for pointers in more cases.
2812 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
2814 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
2815 Add extra argument to allow emitting the move immediate.
2816 Use add/sub with positive immediate.
2817 (aarch64_add_constant): Add inline function.
2818 (aarch64_add_sp): Likewise.
2819 (aarch64_sub_sp): Likewise.
2820 (aarch64_expand_prologue): Call aarch64_sub_sp.
2821 (aarch64_expand_epilogue): Call aarch64_add_sp.
2822 Decide when to leave out move.
2823 (aarch64_output_mi_thunk): Call aarch64_add_constant.
2825 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
2827 * config/aarch64/aarch64.c (aarch64_layout_frame):
2828 Align FP callee-saves.
2830 2016-10-21 Jakub Jelinek <jakub@redhat.com>
2832 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
2833 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
2835 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
2836 _rdseed64_step): Likewise.
2837 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
2840 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
2841 and tree-ssanames.h.
2842 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
2843 with INTEGER_CST argument.
2844 (ix86_gimple_fold_builtin): New function.
2845 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
2847 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
2848 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
2849 (ranges_table_allocated, ranges_table_in_use,
2850 ranges_by_label_allocated, ranges_by_label_in_use,
2851 RANGES_TABLE_INCREMENT): Removed.
2852 (add_ranges_num): Use vec_safe_push into ranges_table.
2853 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
2854 (output_ranges): Adjust for ranges_table and ranges_by_label
2855 conversion from arrays to vec.
2856 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
2857 conversion from arrays to vec.
2858 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
2859 ranges_table_in_use, ranges_by_label_allocated and
2860 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
2862 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
2863 if needed. Re-add origin_die variable and its initialization.
2865 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
2866 even for -fstack-reuse=none, or for volatile vars etc.
2868 2016-10-21 David Malcolm <dmalcolm@redhat.com>
2870 * print-rtl-function.c (flag_compact): Move extern decl to...
2871 * print-rtl.h (flag_compact): ...here.
2872 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
2873 (ASSERT_RTL_DUMP_EQ): New macro.
2874 (selftest::test_dumping_regs): New function.
2875 (selftest::test_dumping_insns): New function.
2876 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
2878 (selftest::rtl_tests_c_tests): Call the new test functions.
2880 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2882 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
2883 (outgoing_edges_match): Likewise.
2884 (try_crossjump_to_edge): Likewise.
2885 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2886 (rtl_tidy_fallthru_edge): Likewise.
2887 * rtl.h (tablejump_p): Adjust prototype.
2888 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
2890 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2892 * rtl.h (label_ref_label): New function.
2893 (set_label_ref_label): New function.
2894 (LABEL_REF_LABEL): Delete.
2895 * alias.c (rtx_equal_for_memref_p): Adjust.
2896 * cfgbuild.c (make_edges): Likewise.
2897 (purge_dead_tablejump_edges): Likewise.
2898 * cfgexpand.c (convert_debug_memory_address): Likewise.
2899 * cfgrtl.c (patch_jump_insn): Likewise.
2900 * combine.c (distribute_notes): Likewise.
2901 * cse.c (hash_rtx_cb): Likewise.
2902 (exp_equiv_p): Likewise.
2903 (fold_rtx): Likewise.
2904 (check_for_label_ref): Likewise.
2905 * cselib.c (rtx_equal_for_cselib_1): Likewise.
2906 (cselib_hash_rtx): Likewise.
2907 * emit-rtl.c (mark_label_nuses): Likewise.
2908 * explow.c (convert_memory_address_addr_space_1): Likewise.
2909 * final.c (output_asm_label): Likewise.
2910 (output_addr_const): Likewise.
2911 * gcse.c (add_label_notes): Likewise.
2912 * genconfig.c (walk_insn_part): Likewise.
2913 * genrecog.c (validate_pattern): Likewise.
2914 * ifcvt.c (cond_exec_get_condition): Likewise.
2915 (noce_emit_store_flag): Likewise.
2916 (noce_get_alt_condition): Likewise.
2917 (noce_get_condition): Likewise.
2918 * jump.c (maybe_propagate_label_ref): Likewise.
2919 (mark_jump_label_1): Likewise.
2920 (redirect_exp_1): Likewise.
2921 (rtx_renumbered_equal_p): Likewise.
2922 * lra-constraints.c (operands_match_p): Likewise.
2923 * print-rtl.c (print_value): Likewise.
2924 * reload.c (find_reloads): Likewise.
2925 * reload1.c (set_label_offsets): Likewise.
2926 * reorg.c (get_branch_condition): Likewise.
2927 * rtl-tests.c (test_uncond_jump): Likewise.
2928 * rtl.c (rtx_equal_p_cb): Likewise.
2929 (rtx_equal_p): Likewise.
2930 * rtlanal.c (reg_mentioned_p): Likewise.
2931 (rtx_referenced_p): Likewise.
2932 (get_condition): Likewise.
2933 * varasm.c (const_hash_1): Likewise.
2934 (compare_constant): Likewise.
2935 (const_rtx_hash_1): Likewise.
2936 (output_constant_pool_1): Likewise.
2938 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2941 * reload.c (find_valid_class_1): Allow regclass if atleast one
2942 regno in regclass is ok. Compute and use rclass size based on
2943 actually available regnos for mode in rclass.
2945 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
2947 * config/sparc/sparc-modes.def (CCV): New.
2949 * config/sparc/predicates.md (v_comparison_operator): New.
2950 (icc_comparison_operator): Add support for CCV/CCXV.
2951 (xcc_comparison_operator): Likewise.
2952 * config/sparc/sparc.c (output_cbranch): Likewise.
2953 (sparc_print_operand): Likewise.
2954 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
2955 (uaddvdi4): New expander.
2956 (addvdi4): Likewise.
2957 (uaddvdi4_sp32): New instruction.
2958 (addvdi4_sp32): Likewise.
2959 (uaddvsi4): New expander.
2960 (addvsi4): Likewise.
2961 (cmp_ccc_plus_sltu_set): New instruction.
2962 (cmp_ccv_plus): Likewise.
2963 (cmp_ccxv_plus): Likewise.
2964 (cmp_ccv_plus_set): Likewise.
2965 (cmp_ccxv_plus_set): Likewise.
2966 (cmp_ccv_plus_sltu_set): Likewise.
2967 (uaddvdi4): New expander.
2968 (subvdi4): Likewise.
2969 (usubdi4_sp32): New instruction.
2970 (subvdi4_sp32): Likewise.
2971 (usubvsi4): New expander.
2972 (subvsi4): Likewise.
2973 (cmpsi_minus_sltu_set): New instruction.
2974 (cmp_ccv_minus): Likewise.
2975 (cmp_ccxv_minus): Likewise.
2976 (cmp_ccv_minus_set): Likewise.
2977 (cmp_ccxv_minus_set): Likewise.
2978 (cmp_ccv_minus_sltu_set): Likewise.
2979 (unegvdi3): New expander.
2980 (negvdi3): Likewise.
2981 (unegdi3_sp32): New instruction.
2982 (negvdi3_sp32): Likewise.
2983 (unegvsi3): New expander.
2984 (negvsi3): Likewise.
2985 (cmp_ccc_neg_sltu_set): New instruction.
2986 (cmp_ccv_neg): Likewise.
2987 (cmp_ccxv_neg): Likewise.
2988 (cmp_ccv_neg_set): Likewise.
2989 (cmp_ccxv_neg_set): Likewise.
2990 (cmp_ccv_neg_sltu_set): Likewise.
2992 * tree-ssa-loop-split.c: Remove trailing spaces.
2993 * match.pd: Likewise.
2995 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2997 PR rtl-optimization/78038
2998 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
2999 be deduced to set REG through the RTL structure.
3000 (make_defs_and_copies_lists): Return false on a failing get_defs call.
3002 2016-10-21 Richard Biener <rguenther@suse.de>
3004 PR tree-optimization/78051
3005 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
3006 and mark replaced if folding did something.
3008 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
3010 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
3011 and "protected" in visibility types.
3012 (rs6000_xcoff_declare_function_name): Fix formatting.
3013 (rs6000_xcoff_declare_object_name): Fix formatting.
3015 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
3017 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
3018 and IX86_BUILTIN_HUGE_VALQ here ...
3019 (ix86_expand_builtin): ... not here.
3021 2016-10-20 Jakub Jelinek <jakub@redhat.com>
3023 * doc/gty.texi (for_user): Use @item next to @findex.
3025 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
3028 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
3029 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
3030 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
3031 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
3032 __builtin_ia32_lzcnt_u16.
3033 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
3034 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
3035 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
3036 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
3037 (bmi_tzcnt_<mode>): New expander.
3038 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
3039 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
3040 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
3041 (lzcnt_<mode>): New expander.
3042 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
3043 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
3044 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
3045 (UINT64_FTYPE_UINT64): New.
3046 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
3047 (__builtin_ia32_lzcnt_u16): New description.
3048 (__builtin_ia32_lzcnt_u32): Ditto.
3049 (__builtin_ia32_lzcnt_u64): Ditto.
3050 (__builtin_ctzs): Remove description.
3051 (__builtin_ia32_tzcnt_u16): New description.
3052 (__builtin_ia32_tzcnt_u32): Ditto.
3053 (__builtin_ia32_tzcnt_u64): Ditto.
3054 * config/i386/i386.c (ix86_expand_args_builtin): Handle
3055 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
3057 2016-10-20 Martin Liska <mliska@suse.cz>
3060 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
3061 comparison with STMT_UID_NOT_IN_RANGE.
3062 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
3065 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
3067 * compare-elim.c (conforming_compare): Accept UNSPECs.
3068 (find_comparison_dom_walker::before_dom_children): Deal with
3069 instructions both using and killing the flags register.
3070 (equivalent_reg_at_start): New function extracted from...
3071 (try_eliminate_compare): ...here. Use it and add support for
3072 registers and UNSPECs as second operand of the compare.
3073 * config/visium/visium-modes.def (CCV): New.
3074 * config/visium/predicates.md (visium_v_comparison_operator): New.
3075 (visium_branch_operator): Deal with CCV mode.
3076 * config/visium/visium.c (visium_select_cc_mode): Likewise.
3077 (output_cbranch): Likewise.
3078 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
3079 (uaddv<mode>4): New expander.
3080 (addv<mode>4): Likewise.
3081 (add<mode>3_insn_set_carry): New instruction.
3082 (add<mode>3_insn_set_overflow): Likewise.
3083 (addsi3_insn_set_overflow): Likewise.
3084 (usubv<mode>4): New expander.
3085 (subv<mode>4): Likewise.
3086 (sub<mode>3_insn_set_carry): New instruction.
3087 (sub<mode>3_insn_set_overflow): Likewise.
3088 (subsi3_insn_set_overflow): Likewise.
3089 (unegv<mode>3): New expander.
3090 (negv<mode>3): Likewise.
3091 (neg<mode>2_insn_set_overflow): New instruction.
3092 (addv_tst<mode>): Likewise.
3093 (subv_tst<mode>): Likewise.
3094 (negv_tst<mode>): Likewise.
3095 (cbranch<mode>4_addv_insn): New splitter and instruction.
3096 (cbranch<mode>4_subv_insn): Likewise.
3097 (cbranch<mode>4_negv_insn): Likewise.
3099 2016-10-20 Richard Biener <rguenther@suse.de>
3101 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
3102 Handle decls possibly not bound.
3103 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
3104 nothing_id for decls that might not be bound if we are interested
3106 (get_constraint_for_component_ref): Deal with that.
3108 2016-10-20 Michael Matz <matz@suse.de>
3111 * common.opt (-fsplit-loops): New flag.
3112 * passes.def (pass_loop_split): Add.
3113 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
3114 (enable_fdo_optimizations): Add loop splitting.
3115 * timevar.def (TV_LOOP_SPLIT): Add.
3116 * tree-pass.h (make_pass_loop_split): Declare.
3117 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
3118 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
3119 * tree-ssa-loop-split.c: New file.
3120 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
3121 * doc/invoke.texi (fsplit-loops): Document.
3122 * doc/passes.texi (Loop optimization): Add paragraph about loop
3125 2016-10-20 Richard Biener <rguenther@suse.de>
3127 * cgraphunit.c (analyze_functions): Set node->definition to
3128 false to signal symbol removal to debug_hooks->late_global_decl.
3129 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
3130 WPA signal symbol removal to the debuginfo machinery.
3131 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
3132 using early_finised to guard the we're called for symbol
3133 removal case look at the symtabs definition flag.
3134 (gen_variable_die): Remove redundant check.
3136 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3138 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
3140 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3142 PR tree-optimization/53979
3143 * match.pd ((a ^ b) | a -> a | b): New pattern.
3145 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
3147 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
3148 config/pa/pa64-hpux-lib.h.
3149 (PA_CRTBEGIN_HACK): Likewise.
3150 (DTOR_LIST_BEGIN): Likewise.
3152 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3154 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
3155 register only if "in" and "out" are different registers.
3157 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
3159 * omp-low.c (pass_oacc_device_lower::gate): New method.
3160 (execute): Always call execute_oacc_device_lower.
3162 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3164 PR tree-optimization/77916
3165 PR tree-optimization/77937
3166 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
3168 (insert_initializers): Requirement of initializer for -1 should be
3169 based on pointer-typedness of the candidate basis.
3171 2016-10-19 Bin Cheng <bin.cheng@arm.com>
3173 PR tree-optimization/78005
3174 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
3175 upper (included) bound for niters of prolog loop.
3176 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
3177 Compute niters of scalar loop above which vectorized loop is
3178 preferred, as well as the upper (included) bound for the niters.
3179 (vect_do_peeling): Record niter bound for loops accordingly.
3181 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
3184 * tree-core.h (enum tree_index): Put the complex types after their
3186 * tree-streamer.c (verify_common_node_recorded): New function.
3187 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
3189 2016-10-19 Martin Liska <mliska@suse.cz>
3191 * cgraph.h (cgraph_edge::binds_to_current_def_p):
3192 Replace NULL with false as a return value.
3194 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
3196 PR tree-optimization/78024
3197 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
3198 don't clear BB_VISITED after processing.
3200 2016-10-19 Richard Biener <rguenther@suse.de>
3202 * domwalk.c (dom_walker::walk): Use RPO order.
3204 2016-10-19 Richard Biener <rguenther@suse.de>
3206 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
3208 (evrp_dom_walker::~evrp_dom_walker): Free it.
3209 (evrp_dom_walker::stmts_to_remove): Add.
3210 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
3211 whose output we fully propagate for removal. Propagate
3212 into BB destination PHI arguments.
3213 (execute_early_vrp): Remove queued stmts. Dump value ranges
3214 before stmt removal.
3216 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
3218 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
3219 * passes.def: Add two instances of pass_walloca.
3220 * tree-pass.h (make_pass_walloca): New.
3221 * gimple-ssa-warn-alloca.c: New file.
3222 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
3223 -Wvla-larger-than= options.
3225 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
3227 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
3228 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
3230 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
3232 * config/rs6000/altivec.h (vec_xl_len): New macro.
3233 (vec_xst_len): New macro.
3234 (vec_cmpnez): New macro.
3235 (vec_cntlz_lsbb): New macro.
3236 (vec_cnttz_lsbb): New macro.
3237 (vec_xlx): New macro.
3238 (vec_xrx): New macro.
3239 (vec_all_nez): New C++ predicate template.
3240 (vec_any_eqz): New C++ predicate template.
3241 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
3242 conditional compilation.
3243 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
3244 conditional compilation.
3245 (vec_all_nez): New macro.
3246 (vec_any_eqz): New macro.
3247 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
3249 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
3251 * config/rs6000/vector.md (VI): Moved this mode iterator
3252 definition from altivec.md to vector.md.
3253 (UNSPEC_NEZ_P): New value.
3254 (vector_ne_<mode>_p): New expansion for implementation of
3255 vec_all_ne and vec_any_eq built-in functions.
3256 (vector_nez_<mode>_p): New expansion for implementation of
3257 vec_all_nez and vec_any_eqz built-in functions.
3258 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
3259 and vec_any_eq built-in function.
3260 (cr6_test_for_zero): New commentary to explain this expansion.
3261 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
3262 (cr6_test_for_lt): New commentary to explain this expansion.
3263 (cr6_test_for_lt_reverse): New commentary to explain this
3265 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3266 overloaded function prototypes for vec_all_ne, vec_all_nez,
3267 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
3268 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
3270 (altivec_resolve_overloaded_builtin): Modify the handling of
3271 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
3272 the compiler is configured to support TARGET_P9_VECTOR.
3273 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
3274 to explain the special processing that is given to predicate
3275 built-ins introduced using this macro.
3276 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
3277 the special processing given to predicate built-ins introduced
3279 (BU_VSX_P): Likewise.
3280 (BU_P8V_AV_P): Likewise.
3281 (BU_P9V_AV_P): Likewise.
3282 (BU_P9V_AV_X): New macro.
3283 (BU_P9V_64BIT_AV_X): New macro.
3284 (BU_P9V_VSX_3): New macro.
3285 (BU_P9V_OVERLOAD_P): New macro.
3286 (LXVL): New BU_P9V_64BIT_VSX_2.
3287 (VEXTUBLX): New BU_P9V_AV_2.
3288 (VEXTUBRX): Likewise.
3289 (VEXTUHLX): Likewise.
3290 (VEXTUHRX): Likewise.
3291 (VEXTUWLX): Likewise.
3292 (VEXTUWRX): Likewise.
3293 (STXVL): New BU_P9V_64BIT_AV_X.
3294 (VCLZLSBB): New BU_P9V_AV_1.
3295 (VCTZLSBB): Likewise.
3296 (CMPNEB): New BU_P9V_AV_2.
3301 (VCMPNEB_P): New BU_P9V_AV_P.
3302 (VCMPNEH_P): Likewise.
3303 (VCMPNEW_P): Likewise.
3304 (VCMPNED_P): Likewise.
3305 (VCMPNEFP_P): Likewise.
3306 (VCMPNEDP_P): Likewise.
3307 (CMPNEZB): New BU_P9V_AV_2.
3308 (CMPNEZH): Likewise.
3309 (CMPNEZW): Likewise.
3310 (VCMPNEZB_P): New BU_P9V_AV_P.
3311 (VCMPNEZH_P): Likewise.
3312 (VCMPNEZW_P): Likewise.
3313 (LXVL): New BU_P9V_OVERLOAD_2.
3314 (STXVL): New BU_P9V_OVERLOAD_3.
3315 (VEXTULX): New BU_P9V_OVERLOAD_2.
3316 (VEXTURX): Likewise.
3318 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
3319 (VCMPNE_P): Likewise.
3320 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
3321 (VCTZLSBB): Likewise.
3322 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
3323 comment to explain mode used for scratch register.
3324 (altivec_expand_stxvl_builtin): New function.
3325 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
3326 (altivec_init_builtins): Add initialized variable
3327 void_ftype_v16qi_pvoid_long and use this type to define the
3328 built-in function __builtin_altivec_stxvl.
3329 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
3330 (UNSPEC_STXVL): New value.
3331 (UNSPEC_VCLZLSBB): New value.
3332 (UNSPEC_VCTZLSBB): New value.
3333 (UNSPEC_VEXTUBLX): New value.
3334 (UNSPEC_VEXTUHLX): New value.
3335 (UNSPEC_VEXTUWLX): New value.
3336 (UNSPEC_VEXTUBRX): New value.
3337 (UNSPEC_VEXTUHRX): New value.
3338 (UNSPEC_VEXTUWRX): New value.
3339 (UNSPEC_VCMPNEB): New value.
3340 (UNSPEC_VCMPNEZB): New value.
3341 (UNSPEC_VCMPNEH): New value.
3342 (UNSPEC_VCMPNEZH): New value.
3343 (UNSPEC_VCMPNEW): New value.
3344 (UNSPEC_VCMPNEZW): New value.
3345 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
3346 vector of integer modes.
3347 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
3348 vector of float or double modes.
3349 (*vector_nez_<mode>_p): New insn for vector test all not equal or
3351 (lxvl): New expand for load VSX vector with length.
3352 (*lxvl): New insn for load VSX vector with length.
3353 (stxvl): New expand for store VSX vector with length.
3354 (*stxvl): New insn for store VSX vector with length.
3355 (vcmpneb): New insn for vector of byte compare not equal.
3356 (vcmpnezb): New insn for vector of byte compare not equal or zero.
3357 (vcmpneh): New insn for vector of half word compare not equal.
3358 (vcmpnezh): New insn for vector of half word compare not equal or
3360 (vcmpnew): New insn for vector of word compare not equal.
3361 (vcmpne<VSs>): New insn for vector of float or double compare not
3363 (vcmpnezw): New insn for vector of word compare not equal or zero.
3364 (vclzlsbb): New insn for vector count leading zero
3365 least-significant bits byte.
3366 (vctzlsbb): New insn for vector count trailing zero least
3367 signficant bits byte.
3368 (vextublx): New insn for vector extract unsigned byte left
3370 (vextubrx): New insn for vector extract unsigned byte right
3372 (vextuhlx): New insn for vector extract unsigned half word left
3374 (vextuhrx): New insn for vector extract unsigned half word right
3376 (vextuwlx): New insn for vector extract unsigned word left
3378 (vextuwrx): New insn for vector extract unsigned word right
3380 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
3381 clarify intent of this constant.
3382 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
3383 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
3384 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
3385 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
3386 and vec_xrx functions.
3388 2016-10-18 Andrew Pinski <apinski@cavium.com>
3391 * predict.c (is_exit_with_zero_arg): New function.
3392 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
3395 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
3398 * config/i386/i386.c (legitimize_tls_address)
3399 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
3400 convert dest to Pmode if different than Pmode.
3402 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3404 PR tree-optimization/77916
3405 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
3406 stopgap fix, as pointers with -1 increment are still broken.
3408 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
3410 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
3411 mapping class decoration from here...
3412 (rs6000_xcoff_encode_section): ...to here.
3414 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
3415 if shrink-wrapping and optimizing for speed.
3417 2016-10-18 Richard Biener <rguenther@suse.de>
3419 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
3420 not visited but non-executable predecessors. Return taken edge.
3421 Simplify conditions and refactor propagation vs. folding step.
3423 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
3425 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
3426 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
3427 (rs6000_get_separate_components): Assert we do not have those
3428 strategies selected.
3430 2016-10-18 Richard Biener <rguenther@suse.de>
3432 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
3433 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
3435 (substitute_and_fold_dom_walker): Adjust constructor.
3436 (substitute_and_fold_dom_walker::before_dom_children): Remove
3437 do_dce flag and handling (always true).
3438 (substitute_and_fold): Likewise.
3439 * tree-vrp.c (vrp_finalize): Adjust.
3440 (execute_early_vrp): Remove final BB_VISITED clearing.
3441 * tree-ssa-ccp.c (ccp_finalize): Adjust.
3442 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3443 * ira.c (ira): Call clear_bb_flags.
3445 2016-10-18 Richard Biener <rguenther@suse.de>
3447 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
3448 get at the operand to look at with TREE_OPERAND for generic
3451 2016-10-18 David Malcolm <dmalcolm@redhat.com>
3453 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
3455 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
3456 (write_test_expr): Use rtx_reader_ptr for calls to
3458 (write_attr_value): Likewise.
3459 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
3460 call to print_md_ptr_loc.
3461 (write_one_condition): Likewise for calls to print_c_condition.
3462 * genconstants.c: Include "statistics.h" and "vec.h".
3463 (main): Update for conversion to member functions.
3464 * genemit.c (emit_c_code): Use rtx_reader_ptr for
3465 call to print_md_ptr_loc.
3466 * genenums.c: Include "statistics.h" and "vec.h".
3467 (main): Update for conversion of traverse_enum_types to a method.
3468 * genmddeps.c: Include "statistics.h" and "vec.h".
3469 * genoutput.c (process_template): Use rtx_reader_ptr for call to
3471 * genpreds.c (write_predicate_subfunction): Likewise.
3472 (write_predicate_expr): Likewise for calls to print_c_condition.
3473 * genrecog.c (print_test): Likewise.
3474 * gensupport.c (process_rtx): Likewise for calls to
3475 copy_md_ptr_loc and join_c_conditions.
3476 (alter_test_for_insn): Likewise for call to join_c_conditions.
3477 (process_substs_on_one_elem): Likewise.
3478 (gen_mnemonic_setattr): Update for move of string_obstack to a
3479 field of rtx_reader.
3480 (mnemonic_htab_callback): Likewise. Fix formatting.
3481 (gen_mnemonic_attr): Likewise.
3482 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
3483 to print_c_condition.
3484 * read-md.c: Include "statistics.h" and "vec.h".
3485 (string_obstack): Convert this global to field "m_string_obstack"
3486 of class rtx_reader.
3487 (ptr_locs): Likewise, as "m_ptr_locs".
3488 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
3489 (joined_conditions): Likewise, as "m_joined_conditions".
3490 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
3491 (md_constants): Likewise, as "m_md_constants".
3492 (enum_types): Likewise, as "m_enum_types".
3493 (set_md_ptr_loc): Convert to...
3494 (rtx_reader::set_md_ptr_loc): ...member function.
3495 (get_md_ptr_loc): Convert to...
3496 (rtx_reader::get_md_ptr_loc): ...member function.
3497 (copy_md_ptr_loc): Convert to...
3498 (rtx_reader::copy_md_ptr_loc): ...member function.
3499 (fprint_md_ptr_loc): Convert to...
3500 (rtx_reader::fprint_md_ptr_loc): ...member function.
3501 (print_md_ptr_loc): Convert to...
3502 (rtx_reader::print_md_ptr_loc): ...member function.
3503 (join_c_conditions): Convert to...
3504 (rtx_reader::join_c_conditions): ...member function.
3505 (fprint_c_condition): Convert to...
3506 (rtx_reader::fprint_c_condition): ...member function.
3507 (print_c_condition): Convert to...
3508 (rtx_reader::print_c_condition): ...member function.
3509 (read_name): Convert to...
3510 (rtx_reader::read_name): ...member function.
3511 (read_escape): Convert to...
3512 (rtx_reader::read_escape): ...member function.
3513 (read_quoted_string): Convert to...
3514 (rtx_reader::read_quoted_string): ...member function.
3515 (read_braced_string): Convert to...
3516 (rtx_reader::read_braced_string): ...member function.
3517 (read_string): Convert to...
3518 (rtx_reader::read_string): ...member function.
3519 (read_skip_construct): Convert to...
3520 (rtx_reader::read_skip_construct): ...member function.
3521 (handle_constants): Convert to...
3522 (rtx_reader::handle_constants): ...member function.
3523 (traverse_md_constants): Convert to...
3524 (rtx_reader::traverse_md_constants): ...member function.
3525 (handle_enum): Convert to...
3526 (rtx_reader::handle_enum): ...member function.
3527 (lookup_enum_type): Convert to...
3528 (rtx_reader::lookup_enum_type): ...member function.
3529 (traverse_enum_types): Convert to...
3530 (rtx_reader::traverse_enum_types): ...member function.
3531 (rtx_reader::rtx_reader): Move initializations
3532 of various former global data from rtx_reader::read_md_files to
3533 here, as fields, along with the call to unlock_std_streams.
3534 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
3536 (rtx_reader::read_md_files): Move initializations of various
3537 global data from here to the ctor.
3538 * read-md.h (read_name): Convert to...
3539 (rtx_reader::read_name): ...member function.
3540 (rtx_reader::read_escape): New method decl.
3541 (read_quoted_string): Convert to...
3542 (rtx_reader::read_quoted_string): ...member function.
3543 (rtx_reader::read_braced_string): New method decl.
3544 (read_string): Convert to...
3545 (rtx_reader::read_string): ...member function.
3546 (rtx_reader::read_skip_construct): New method decl.
3547 (rtx_reader::set_md_ptr_loc): New method decl.
3548 (rtx_reader::get_md_ptr_loc): New method decl.
3549 (copy_md_ptr_loc): Convert to...
3550 (rtx_reader::copy_md_ptr_loc): ...member function.
3551 (fprint_md_ptr_loc): Convert to...
3552 (rtx_reader::fprint_md_ptr_loc): ...member function.
3553 (print_md_ptr_loc): Convert to...
3554 (rtx_reader::print_md_ptr_loc): ...member function.
3555 (rtx_reader::lookup_enum_type): New method decl.
3556 (rtx_reader::traverse_enum_types): New method decl.
3557 (rtx_reader::handle_constants): New method decl.
3558 (traverse_md_constants): Convert to...
3559 (rtx_reader::traverse_md_constants): ...member function.
3560 (rtx_reader::handle_enum): New method decl.
3561 (rtx_reader::join_c_conditions): New method decl.
3562 (fprint_c_condition): Convert to...
3563 (rtx_reader::fprint_c_condition): ...member function.
3564 (print_c_condition): Convert to...
3565 (rtx_reader::print_c_condition): ...member function.
3566 (rtx_reader::apply_iterator_to_string): New method decl.
3567 (rtx_reader::copy_rtx_for_iterators): New method decl.
3568 (rtx_reader::read_conditions): New method decl.
3569 (rtx_reader::record_potential_iterator_use): New method decl.
3570 (rtx_reader::read_mapping): New method decl.
3571 (rtx_reader::read_rtx): New method decl.
3572 (rtx_reader::read_rtx_code): New method decl.
3573 (rtx_reader::read_rtx_operand): New method decl.
3574 (rtx_reader::read_nested_rtx): New method decl.
3575 (rtx_reader::read_rtx_variadic): New method decl.
3576 (rtx_reader::get_string_obstack): New method.
3577 (rtx_reader::get_md_constants): New method.
3578 (string_obstack): Convert global variable decl to...
3579 (rtx_reader::m_string_obstack): ...this new field.
3580 (rtx_reader::m_ptr_locs): New field.
3581 (rtx_reader::m_ptr_loc_obstack): New field.
3582 (rtx_reader::m_joined_conditions): New field.
3583 (rtx_reader::m_joined_conditions_obstack): New field.
3584 (rtx_reader::m_md_constants): New field.
3585 (rtx_reader::m_enum_types): New field.
3586 * read-rtl.c (apply_iterator_to_string): Convert to...
3587 (rtx_reader::apply_iterator_to_string): ...member function.
3588 (copy_rtx_for_iterators): Convert to...
3589 (rtx_reader::copy_rtx_for_iterators): ...member function.
3590 (add_condition_to_string): Use rtx_reader_ptr for
3591 calls join_c_conditions.
3592 (apply_iterators): Use rtx_reader_ptr for calls to
3593 join_c_conditions and copy_rtx_for_iterators.
3594 (read_conditions): Convert to...
3595 (rtx_reader::read_conditions): ...member function.
3596 (record_potential_iterator_use): Convert to...
3597 (rtx_reader::record_potential_iterator_use): ...member function.
3598 (read_mapping): Convert to...
3599 (rtx_reader::read_mapping): ...member function.
3600 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
3601 (read_rtx): Convert to...
3602 (rtx_reader::read_rtx): ...member function.
3603 (read_rtx_code): Convert to...
3604 (rtx_reader::read_rtx_code): ...member function.
3605 (read_rtx_operand): Convert to...
3606 (rtx_reader::read_rtx_operand): ...member function. Update for move
3607 of string_obstack to a field.
3608 (read_nested_rtx): Convert to..
3609 (rtx_reader::read_nested_rtx): ...member function.
3610 (read_rtx_variadic): Convert to..
3611 (rtx_reader::read_rtx_variadic): ...member function.
3613 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
3615 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
3617 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
3619 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
3620 for pointer type too.
3621 (ipcp_update_vr): set_ptr_nonnull for pointer.
3623 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
3625 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
3626 pt_solution_singleton_p.
3627 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
3628 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
3629 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
3630 pointer nonnull computed by VRP.
3631 Also Conservatively set pt.null to 1.
3632 (pt_solution_reset): Conservatively set pt.null to 1.
3633 (pt_solution_singleton_or_null_p): Renamed from
3634 pt_solution_singleton_p.
3635 * tree-ssanames.h (set_ptr_nonnull): Declare.
3636 (get_ptr_nonnull): Likewise.
3637 * tree-ssanames.c (set_ptr_nonnull): New.
3638 (get_ptr_nonnull): Likewise.
3639 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
3640 (evrp_dom_walker::before_dom_children): Likewise.
3642 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
3644 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
3645 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
3646 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
3647 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
3648 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
3649 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
3650 (rs6000_option_override_internal): Clear it if ABI_AIX.
3651 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
3652 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
3654 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3656 * gimple-ssa-strength-reduction.c (record_increment): Remove
3659 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
3661 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
3662 that the result is non-zero if it is true.
3663 (maybe_expand_shift): New wrapper around expand_shift_1.
3664 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
3666 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3668 PR tree-optimization/77916
3669 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
3670 Don't allow a MINUS_EXPR for pointer arithmetic for either known
3672 (record_increment): Increments of -1 for unknown strides just use
3673 a multiply initializer like other negative values.
3674 (analyze_increments): Remove stopgap solution for -1 increment
3675 applied to pointer arithmetic.
3677 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
3679 * dominance.c (dom_info::dom_info): Add new constructor for region
3680 which is vector of basic blocks.
3681 (dom_init): New method to initialize members common for both
3683 (dom_info::dom_info): Invoke dom_init for partial initialization.
3684 (dom_info::get_idom): Add check to corner cases on basic blocks which
3686 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
3687 to detect unreachable bbs.
3688 (dom_info::calc_idoms): Likewise.
3689 (compute_dom_fast_query_in_region): New function.
3690 (calculate_dominance_info_for_region): Likewise.
3691 (free_dominance_info_for_region): Likewise.
3692 * dominance.h: Add prototypes for introduced region-based functions
3693 tree-if-conv.c: (build_region): New function.
3694 (if_convertible_loop_p_1): Invoke local version of post-dominators
3695 calculation before basic block predication with subsequent freeing
3696 post-dominator info.
3697 (tree_if_conversion): Remove free of post-dominator info
3698 (pass_if_conversion::execute): Delete detection of infinite loops
3699 and fake edges to exit block since post-dominator calculation is
3700 performed per if-converted loop only.
3702 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
3705 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
3706 register explicitly.
3707 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
3708 optimizing for size.
3710 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3712 * config/aarch64/aarch64.c: Delete inclusion of
3713 cortex-a57-fma-steering.h.
3714 (aarch64_override_options): Delete call
3715 to aarch64_register_fma_steering.
3716 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
3717 * config/aarch64/cortex-a57-fma-steering.h: Delete.
3718 * config/aarch64/aarch64-passes.def: New file.
3719 * config/aarch64/cortex-a57-fma-steering.c
3720 (aarch64_register_fma_steering): Delete definition.
3721 (make_pass_fma_steering): Remove static qualifier.
3722 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
3723 (cortex-a57-fma-steering.o): Remove dependency on
3724 cortex-a57-fma-steering.h.
3726 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
3728 * explow.c (validize_mem): Do not modify the argument in-place.
3730 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
3732 * tree-streamer.c (record_common_node): Explicitly list expected
3735 2016-10-17 Richard Biener <rguenther@suse.de>
3737 PR tree-optimization/77988
3738 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
3740 2016-10-17 Marek Polacek <polacek@redhat.com>
3742 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
3744 2016-10-17 Richard Biener <rguenther@suse.de>
3746 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
3749 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3751 PR tree-optimization/71636
3752 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
3754 2016-10-17 Richard Biener <rguenther@suse.de>
3756 * gimplify.c (gimplify_function_tree): Do not move the outer
3759 2016-10-17 Jakub Jelinek <jakub@redhat.com>
3761 * langhooks.h (struct lang_hooks_for_decls): Remove
3762 function_decl_explicit_p, function_decl_deleted_p and
3763 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
3764 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
3765 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
3766 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
3767 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
3768 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
3769 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
3770 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
3771 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
3772 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
3773 * langhooks.c (lhd_decl_dwarf_attribute): New function.
3774 * dwarf2out.c (gen_subprogram_die): Use
3775 lang_hooks.decls.decl_dwarf_attribute instead of
3776 lang_hooks.decls.function_decl_*.
3778 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
3782 * common.opt (-ftrampolines): New option.
3783 * doc/invoke.texi (Code Gen Options): Document it.
3784 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
3785 * doc/tm.texi: Regenerate.
3786 * builtins.def: Add init_descriptor and adjust_descriptor.
3787 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
3788 on platforms with descriptors.
3789 (expand_builtin_init_descriptor): New function.
3790 (expand_builtin_adjust_descriptor): Likewise.
3791 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
3792 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
3793 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
3794 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
3795 Set STATIC_CHAIN_REG_P on the static chain register, if any.
3796 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
3797 (expand_call): Likewise. Move around call to prepare_call_address
3798 and pass all flags to it.
3799 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
3800 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
3801 (gimple_call_set_by_descriptor): New setter.
3802 (gimple_call_by_descriptor_p): New getter.
3803 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
3804 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
3805 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
3806 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3807 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
3808 * rtl.h (STATIC_CHAIN_REG_P): New macro.
3809 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
3810 * target.def (custom_function_descriptors): New POD hook.
3811 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
3812 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
3813 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
3814 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
3815 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
3816 (build_common_builtin_nodes): Initialize init_descriptor and
3818 * tree-nested.c: Include target.h.
3819 (struct nesting_info): Add 'any_descr_created' field.
3820 (get_descriptor_type): New function.
3821 (lookup_element_for_decl): New function extracted from...
3822 (create_field_for_decl): Likewise.
3823 (lookup_tramp_for_decl): ...here. Adjust.
3824 (lookup_descr_for_decl): New function.
3825 (convert_tramp_reference_op): Deal with descriptors.
3826 (build_init_call_stmt): New function extracted from...
3827 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
3828 * defaults.h (FUNCTION_ALIGNMENT): Define.
3829 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
3830 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
3831 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
3832 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
3833 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
3835 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
3837 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
3838 constants in CONST_VECTORs.
3840 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
3842 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
3843 register as destination of bmask.
3844 (vector_init_bshuffle): Likewise.
3845 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3846 (bmaskdi_vis): Enable only in 64-bit mode.
3848 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
3850 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
3851 make LR a separately shrink-wrapped component unless savres_strategy
3852 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
3853 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
3854 wrapping when not both {SAVE,REST}_INLINE_GPRS.
3856 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
3858 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
3859 and keep looping on failure.
3861 2016-10-14 David Malcolm <dmalcolm@redhat.com>
3863 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
3865 (print_rtx_function): Update example in comment for...
3866 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
3867 non-virtual pseudos with a '%' sigil followed by the regno, offset
3868 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
3869 pseudo is dumped as "%0".
3871 2016-10-14 Jakub Jelinek <jakub@redhat.com>
3874 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
3877 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
3879 * config/sparc/sparc-passes.def: New file.
3880 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
3881 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
3882 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
3884 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
3886 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
3887 loop peel to loops with exit test at the beginning.
3889 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
3891 PR rtl-optimization/68212
3892 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
3893 frequency when computing scale factor for peeled copies.
3894 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
3895 values for switch/peel blocks/edges.
3897 2016-10-14 Pedro Alves <palves@redhat.com>
3899 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
3901 2016-10-14 Catherine Moore <clm@codesourcery.com>
3903 * config/mips/mips.c (mips_prepare_pch_save): Initialize
3904 micromips_globals to zero.
3906 2016-10-14 Richard Biener <rguenther@suse.de>
3908 PR tree-optimization/77979
3909 * tree-vrp.c (compare_name_with_value): Handle released SSA names
3910 in the equivalency sets.
3911 (compare_names): Likewise.
3913 2016-10-14 Martin Liska <mliska@suse.cz>
3915 * builtins.h(target_char_cst_p): Declare the function.
3916 * builtins.c (fold_builtin_memchr): Remove.
3917 (target_char_cst_p): Move the function from gimple-fold.c.
3918 (fold_builtin_3): Do not call the function.
3919 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
3920 (gimple_fold_builtin): Call the function.
3921 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
3923 2016-10-14 Martin Liska <mliska@suse.cz>
3925 * builtins.c (fold_builtin_strcmp): Remove function.
3926 (fold_builtin_strncmp): Likewise.
3927 (fold_builtin_2): Remove call of the function.
3928 (fold_builtin_3): Likewise.
3929 * fold-const-call.c (fold_const_call): Add constant folding
3930 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
3931 * fold-const-call.h (build_cmp_result): Declare the function.
3932 * gimple-fold.c (gimple_load_first_char): New function.
3933 (gimple_fold_builtin_string_compare): Likewise.
3934 (gimple_fold_builtin): Call the function.
3936 2016-10-14 Nathan Sidwell <nathan@acm.org>
3938 * gcov-io.c (gcov_open): Deconstify 'mode'.
3940 2016-10-14 Martin Liska <mliska@suse.cz>
3942 * fold-const.c (c_getstr): Support of properly \0-terminated
3943 string constants. New argument is added.
3944 * fold-const.h: New argument is added.
3946 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3948 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
3950 (aarch64_print_hint_for_core): Likewise.
3951 (aarch64_print_hint_for_arch): Likewise.
3952 (aarch64_validate_march): Use it. Fix indentation in type signature.
3953 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
3954 (aarch64_validate_mtune): Likewise.
3955 (aarch64_handle_attr_arch): Likewise.
3956 (aarch64_handle_attr_cpu): Likewise.
3957 (aarch64_handle_attr_tune): Likewise.
3959 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3961 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
3964 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
3966 * config/m68k/m68k.c (m68k_option_override): Check
3967 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
3968 instead of stack_limit_rtx.
3970 2016-10-13 Jakub Jelinek <jakub@redhat.com>
3972 * dwarf2out.c (gen_member_die): Handle inline static data member
3975 2016-10-13 Nathan Sidwell <nathan@acm.org>
3977 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
3978 gcov_var.mode. Remove unnecessary fstat.
3980 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
3983 * function.c (thread_prologue_and_epilogue_insns): Call all
3984 make_*logue_seq in the same order as traditional. Call them
3985 all a second time if shrink_wrapped_separate.
3987 2016-10-13 Marek Polacek <polacek@redhat.com>
3989 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
3990 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
3993 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3995 PR tree-optimization/77937
3996 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
3997 to infinite when we have a pointer with an increment of -1.
3999 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
4001 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
4003 * memmodel.h: This file.
4004 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
4005 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
4006 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
4007 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
4008 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
4009 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
4010 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
4011 compare-elim.c, config/aarch64/aarch64-builtins.c,
4012 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
4013 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
4014 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
4015 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
4016 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
4017 config/darwin.c, config/epiphany/epiphany.c,
4018 config/epiphany/mode-switch-use.c,
4019 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
4020 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
4021 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
4022 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
4023 config/m68k/m68k.c, config/mcore/mcore.c,
4024 config/microblaze/microblaze.c, config/mmix/mmix.c,
4025 config/mn10300/mn10300.c, config/moxie/moxie.c,
4026 config/msp430/msp430.c, config/nds32/nds32-cost.c,
4027 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
4028 config/nds32/nds32-memory-manipulation.c,
4029 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
4030 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
4031 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
4032 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
4033 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
4034 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
4035 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
4036 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
4037 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
4038 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
4039 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
4040 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
4041 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
4042 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
4043 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
4044 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
4045 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
4046 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
4047 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
4048 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
4049 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
4050 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
4051 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
4052 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
4053 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
4054 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
4055 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
4056 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
4057 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
4058 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
4059 var-tracking.c, varasm.c: Include memmodel.h.
4060 * genattrtab.c (write_header): Include memmodel.h in generated file.
4061 * genautomata.c (main): Likewise.
4062 * gengtype.c (open_base_files): Likewise.
4063 * genopinit.c (main): Likewise.
4064 * genconditions.c (write_header): Include memmodel.h earlier in
4066 * genemit.c (main): Likewise.
4067 * genoutput.c (output_prologue): Likewise.
4068 * genpeep.c (main): Likewise.
4069 * genpreds.c (write_insn_preds_c): Likewise.
4070 * genrecog.c (write_header): Likewise.
4071 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
4073 2016-10-13 David Malcolm <dmalcolm@redhat.com>
4075 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
4076 for new "compact" param of print_rtx_function. Check for "cinsn"
4078 * print-rtl-function.c (flag_compact): New decl.
4079 (print_rtx_function): Add param "compact" and use it to set
4080 flag_compact, adding a description of the effect to the leading
4081 comment, and updating the example output.
4082 * print-rtl.c (flag_compact): New variable.
4083 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
4085 (print_rtx_operand_code_i): When printing source locations, wrap
4086 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
4087 (print_rtx_operand_code_r): Don't print regnos for hard regs and
4088 virtuals in compact mode.
4089 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
4090 apart from in LABEL_REFs.
4091 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
4092 Don't print basic block ids in compact mode.
4093 (print_rtx): In compact mode, prefix the code of insns with "c",
4094 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
4095 * print-rtl.h (print_rtx_function): Add "compact" param.
4097 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
4099 * arm.h (TARGET_VFP): Delete.
4100 (TARGET_VFPD32): Remove references to TARGET_VFP.
4101 (TARGET_VFP3, TARGET_VFP5): Likewise.
4102 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
4103 (TARGET_NEON_FP16): Likewise.
4104 (TARGET_FMA): Likewise.
4105 (TARGET_CRYPTO): Likewise.
4106 (TARGET_NEON): Likewise.
4107 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
4108 (FUNCTION_ARG_REGNO_P): Likewise.
4109 * arm.c (arm_option_check_internal): Likewise.
4110 (arm_option_override): Likewise.
4111 (use_return_insn): Likewise.
4112 (arm_function_value_regno_p): Likewise.
4113 (arm_apply_result_size): Likewise.
4114 (use_vfp_abi): Likewise.
4115 (arm_legitimate_address_outer_p): Likewise.
4116 (thumb2_legitimate_address_p): Likewise.
4117 (arm_legitimate_index_p): Likewise.
4118 (thumb2_legitimate_index_p): Likewise.
4119 (arm_legitimate_address): Likewise.
4120 (arm_get_vfp_saved_size): Likewise.
4121 (arm_emit_vfp_multi_reg_pop): Likewise.
4122 (arm_get_frame_offsets): Likewise.
4123 (arm_save_coproc_regs): Likewise.
4124 (arm_hard_regno_mode_ok): Likewise.
4125 (arm_expand_epilogue_apcs_frame): Likewise.
4126 (arm_expand_epilogue): Likewise.
4127 (arm_file_start): Likewise.
4128 (arm_conditional_register_usage): Likewise.
4129 (arm_validize_comparison): Use vfp_compare_operand directly.
4130 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
4131 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
4133 (arm_atomic_assign_expand_fenv): Likewise.
4134 * arm.md (divsf3): Likewise.
4135 (arm_negsi2): Likewise.
4137 (arm_movdi): Likewise.
4138 (arm_movt): Likewise.
4139 (cbranchsf4): Change predicate to vfp_compare_operand.
4140 (cbranchdf4): Change predicate to vfp_compare_operand.
4141 (cstorehf4): Change predicate to vfp_compare_operand.
4142 (cstoresf4): Change predicate to vfp_compare_operand.
4143 (cstoredf4): Change predicate to vfp_compare_operand.
4144 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
4145 (movhi_insn_arch4, movhi_bytes): Likewise.
4146 * constraints.md (Dt): Likewise.
4148 * iterators.md (SDF): Likewise.
4149 * predicates.md (arm_float_compare_operand): Delete.
4150 (const_double_vcvt_power_of_two_reciprocal): Remove references to
4152 (const_double_vcvt_power_of_two): Likewise.
4153 * thumb2.md thumb2_movsi_insn): Likewise.
4154 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
4155 (movhf_vfp): Likewise.
4156 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
4157 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
4158 (movsf_vfp, thumb2_movsf_vfp): Likewise.
4159 (movdf_vfp, thumb2_movdf_vfp): Likewise.
4160 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
4161 (subsf3_vfp, divsf3_vfp): Likewise.
4162 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
4163 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
4164 (mulsf3negsfsubsf_vfp): Likewise.
4165 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
4166 (floatunssisf2, sqrtsf2_vfp): Likewise.
4167 (movcc_vfp): Likewise.
4168 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
4169 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
4170 (push_multi_vfp): Likewise.
4171 (set_fpscr, get_fpscr): Likewise.
4172 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
4174 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
4176 * arm.h (TARGET_VFP): Unconditionally define to 1.
4177 (arm_fpu_desc): Remove 'model' field.
4178 (TARGET_FPU_MODEL): Delete.
4179 * arm.c (all_fpus): Don't initialize the model field.
4180 (arm_can_inline_p): Don't check the FPU model.
4181 * arm-fpus.def: Remove redundant model field from all FPU
4184 2016-10-13 Richard Biener <rguenther@suse.de>
4187 * genmatch.c (struct capture): Add value_match member.
4188 (commutate): Preserve value_match.
4189 (lower_opt_convert): Likewise.
4190 (lower_cond): Likewise.
4191 (replace_id): Likewise.
4192 (struct dt_operand): Add value_match member.
4193 (decision_tree::cmp_node): Compare it.
4194 (decision_tree::insert_operand): Honor it when finding and
4195 when appending a DT_MATCH.
4196 (dt_operand::gen_match_op): Generate a type check after
4197 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
4198 (parser::get_internal_capture_id): New helper.
4199 (parser::finish_match_operand): New function lowering @@<id>.
4200 (parser::parse_capture): Parse @@<id> as value-match.
4201 (parser::parse_expr): Use get_internal_capture_id.
4202 (parser::parse_simplify): Call finish_match_operand.
4203 (walk_captures): New helper.
4204 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
4206 ((X /[ex] A) * A -> X): Likewise.
4207 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
4208 convert[12] and value-matching.
4209 ((A | B) & (A | C) -> A | (B & C)): Likewise.
4210 ((X | Y) | Y -> X | Y): Likewise.
4211 ((X ^ Y) ^ Y -> X): Likewise.
4212 (A - (A & B) -> ~B & A): Likewise.
4213 ((T)(P + A) - (T)P -> (T) A): Likewise.
4214 ((T)P - (T)(P + A) -> -(T) A): Likewise.
4215 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
4216 * doc/match-and-simplify.texi: Amend capture section.
4218 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
4220 * config/arc/arc.md (umul_600): Remove predicated variant.
4221 (umul64_600): Likewise.
4223 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
4225 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
4227 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4229 * tree-vect-loop.c (loop_niters_no_overflow): New func.
4230 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
4231 no-overflow information to vect_do_peeling_for_loop_bound and
4232 vect_gen_vector_loop_niters.
4234 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4236 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
4239 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4241 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
4242 adjust_vec automatically.
4243 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
4244 param exit_bb to guard_to.
4245 (slpeel_checking_verify_cfg_after_peeling):
4246 (set_prologue_iterations):
4247 (create_lcssa_for_virtual_phi): New func which is factored out from
4248 slpeel_tree_peel_loop_to_edge.
4249 (slpeel_tree_peel_loop_to_edge):
4250 (iv_phi_p): New func.
4251 (vect_can_advance_ivs_p): Call iv_phi_p.
4252 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
4253 new gimple stmts in basic block.
4254 (vect_gen_niters_for_prolog_loop): Rename to...
4255 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
4256 adjust implementation.
4257 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
4258 sizetype if necessary.
4259 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
4260 it to external function.
4261 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
4262 (vect_gen_vector_loop_niters_mult_vf): New.
4263 (slpeel_update_phi_nodes_for_loops): New.
4264 (slpeel_update_phi_nodes_for_guard1): Reimplement.
4265 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
4266 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
4267 * tree-vect-loop.c (vect_build_loop_niters): Move to file
4268 tree-vect-loop-manip.c
4269 (vect_generate_tmps_on_preheader): Delete.
4270 (vect_transform_loop): Rename vectorization_factor to vf. Call
4271 vect_do_peeling instead of vect_do_peeling-* functions.
4272 * tree-vectorizer.h (vect_do_peeling): New decl.
4273 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
4274 (vect_do_peeling_for_loop_bound): Delete.
4275 (vect_do_peeling_for_alignment): Delete.
4277 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4279 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
4280 duplicated loop after its preheader and after the original loop.
4282 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4284 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
4285 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
4287 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4289 * tree-vect-loop.c (vectorizable_live_operation): Support handling
4290 for live variable outside loop but not in lcssa form.
4292 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4294 * cfg.c (reset_original_copy_tables): New func.
4295 * cfg.h (reset_original_copy_tables): New decl.
4297 2016-10-13 Jakub Jelinek <jakub@redhat.com>
4300 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
4302 * varasm.c (default_binds_local_p_3): Formatting fix.
4304 2016-10-13 Bin Cheng <bin.cheng@arm.com>
4306 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
4308 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
4309 Remove useless code.
4311 2016-10-13 Martin Liska <mliska@suse.cz>
4313 PR tree-optimization/77943
4314 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
4315 a different EH landing pads.
4317 2016-10-13 Jakub Jelinek <jakub@redhat.com>
4320 * hooks.h (hook_tree_void_null): Declare.
4321 * hooks.c (hook_tree_void_null): New function.
4322 * langhooks.c (lhd_return_null_tree_v): Remove.
4323 * langhooks-def.h (lhd_return_null_tree_v): Remove.
4324 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
4325 set y to const0_rtx.
4326 * function.c (stack_protect_epilogue): Likewise.
4327 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
4328 if TARGET_THREAD_SSP_OFFSET is defined.
4329 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
4330 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
4331 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
4332 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
4333 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
4334 (ix86_stack_protect_guard): New function.
4336 2016-10-13 Richard Biener <rguenther@suse.de>
4338 * dwarf2out.c (tree_add_const_value_attribute): Do not try
4339 rtl_for_decl_init during early phase.
4340 (gen_variable_die): Do not create locations during early phase.
4341 (gen_label_die): Likewise.
4342 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
4345 2016-10-12 Richard Biener <rguenther@suse.de>
4347 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
4348 try_add_new_range and made to eturn new range.
4349 (evrp_dom_walker::before_dom_children): Push op1 value range before
4350 pushing op0 value range.
4352 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4354 PR tree-optimization/77937
4355 * gimple-ssa-strength-reduction.c (analyze_increments): Use
4356 POINTER_TYPE_P on the candidate type to determine whether
4357 candidates in this chain require pointer arithmetic.
4359 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
4361 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
4362 correction if the type is smaller than a word.
4363 (visium_select_cc_mode): Add ... fall through ... comment.
4365 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
4367 * config/rs6000/rs6000.c (machine_function): Add new fields
4368 gpr_is_wrapped_separately and lr_is_wrapped_separately.
4369 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
4370 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
4371 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
4372 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
4373 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
4374 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
4375 (rs6000_get_separate_components): New function.
4376 (rs6000_components_for_bb): New function.
4377 (rs6000_disqualify_components): New function.
4378 (rs6000_emit_prologue_components): New function.
4379 (rs6000_emit_epilogue_components): New function.
4380 (rs6000_set_handled_components): New function.
4381 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
4382 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
4383 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
4384 (rs6000_emit_epilogue): Don't emit GPR restores if
4385 gpr_is_wrapped_separately for that register. Don't make a
4386 REG_CFA_RESTORE note for registers we did not restore, either.
4388 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
4390 * function.c (thread_prologue_and_epilogue_insns): Call
4391 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
4392 if it has possibly changed. Compute the split_prologue_seq and
4393 epilogue_seq later, too.
4394 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
4395 (dump_components): New function.
4396 (struct sw): New struct.
4398 (init_separate_shrink_wrap): New function.
4399 (fini_separate_shrink_wrap): New function.
4400 (place_prologue_for_one_component): New function.
4401 (spread_components): New function.
4402 (disqualify_problematic_components): New function.
4403 (emit_common_heads_for_components): New function.
4404 (emit_common_tails_for_components): New function.
4405 (insert_prologue_epilogue_for_components): New function.
4406 (try_shrink_wrapping_separate): New function.
4407 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
4409 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
4411 * regrename.c (build_def_use): Invalidate chains that have a
4412 REG_CFA_RESTORE on some instruction.
4414 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
4416 * dce.c (delete_unmarked_insns): Don't delete instructions with
4417 a REG_CFA_RESTORE note.
4419 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
4421 * common.opt (-fshrink-wrap-separate): New flag.
4422 * doc/invoke.texi: Document it.
4423 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
4424 * doc/tm.texi: Regenerate.
4425 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
4426 * target.def (shrink_wrap): New hook vector.
4427 (get_separate_components, components_for_bb, disqualify_components,
4428 emit_prologue_components, emit_epilogue_components,
4429 set_handled_components): New hooks.
4431 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
4433 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
4434 vector return by reference only if -Wpsabi.
4435 (rs6000_pass_by_reference): Similarly, for argument passing.
4437 2016-10-12 David Malcolm <dmalcolm@redhat.com>
4439 * function-tests.c: Include "print-rtl.h".
4440 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
4441 function, and verify what is dumped.
4442 * print-rtl-function.c (print_edge): New function.
4443 (begin_any_block): New function.
4444 (end_any_block): New function.
4445 (can_have_basic_block_p): New function.
4446 (print_rtx_function): Track the basic blocks of insns in the
4447 chain, wrapping those that are within blocks within "(block)"
4448 directives. Remove the "(cfg)" directive.
4450 2016-10-12 David Malcolm <dmalcolm@redhat.com>
4452 * selftest.c (selftest::read_file): New function.
4453 (selftest::test_read_file): New function.
4454 (selftest::selftest_c_tests): Call test_read_file.
4455 * selftest.h (selftest::read_file): New decl.
4457 2016-10-12 Richard Biener <rguenther@suse.de>
4460 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
4463 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
4465 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
4467 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
4468 dwarf2out_assembly_start.
4470 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
4472 * Makefile.in (SELFTEST_FLAGS): New variable.
4473 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
4475 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
4478 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
4480 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
4481 dumped in RTL dumps.
4483 2016-10-12 Martin Liska <mliska@suse.cz>
4485 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
4486 (gimple_fold_builtin_memory_op): Use the function.
4487 (gimple_fold_builtin_strchr): Likewise.
4488 (gimple_fold_builtin_strcat): Likewise.
4489 (gimple_build): Likewise.
4491 2016-10-12 Nathan Sidwell <nathan@acm.org>
4493 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
4495 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
4497 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
4498 equivalent 32-bit constant (modulo 2**32) when that yields
4499 smaller instructions.
4500 (size_of_int_loc_descriptor): Update accordingly.
4502 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
4504 * dwarf2out.c (dwarf2out_early_global_decl): For nested
4505 functions, call dwarf2out_decl on the parent function first.
4507 2016-10-12 Richard Biener <rguenther@suse.de>
4509 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
4512 2016-10-12 Richard Biener <rguenther@suse.de>
4514 * tree-ssa-propagate.c
4515 (substitute_and_fold_dom_walker::before_dom_children): Do not
4516 ignore ASSERT_EXPRs but only preserve them.
4517 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
4518 that have been propagated into.
4519 (vrp_finalize): Enable DCE for substitute_and_fold.
4521 2016-10-12 Richard Biener <rguenther@suse.de>
4523 PR tree-optimization/77920
4524 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
4525 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
4526 (simplify_abs_using_ranges): Likewise.
4527 (simplify_conversion_using_ranges): Likewise.
4528 (simplify_stmt_using_ranges): Adjust.
4530 2016-10-12 Jakub Jelinek <jakub@redhat.com>
4532 PR tree-optimization/77929
4533 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
4534 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
4536 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4539 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
4540 needs a base register for arg 1.
4542 2016-10-12 Jakub Jelinek <jakub@redhat.com>
4544 * common.opt (Wimplicit-fallthrough) Turn into alias to
4545 -Wimplicit-fallthrough=3. Remove EnabledBy.
4546 (Wimplicit-fallthrough=): New option.
4547 * gimplify.c (warn_implicit_fallthrough_r): Use
4548 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
4549 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
4550 to -Wimplicit-fallthrough=3.
4551 (-Wimplicit-fallthrough=): Document.
4553 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
4555 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
4556 and GEU in DImode if TARGET_SUBXC.
4557 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
4558 (seqdi<W:mode>_zero_subxc): Delete.
4559 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
4560 (neg_seqdi<W:mode>_zero_vis3): Delete.
4561 (plus_seqdi<W:mode>_zero): Likewise.
4562 (minus_seqdi<W:mode>_zero): Likewise.
4563 (plus_plus_sltu<W:mode>): Accept only register.
4564 (addx<W:mode>): Likewise.
4565 (plus_sltu<W:mode>_vis3): Likewise.
4566 (plus_plus_sltu<W:mode>_vis3): Likewise.
4567 (neg_sgeu<W:mode>_vis3): Delete.
4568 (minus_sgeu<W:mode>_vis3): Likewise.
4569 (addxc<W:mode>): Accept only registers.
4570 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
4571 (minus_neg_sltu<W:mode>_subxc): Accept only register.
4572 (neg_plus_sltu<W:mode>_subxc): Likewise.
4573 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
4574 (minus_minus_sltu<W:mode>_subxc): Accept only register.
4575 (sgeu<W:mode>_insn_subxc): Delete.
4576 (plus_sgeu<W:mode>_subxc): Likewise.
4577 (subxc<W:mode>): Accept only register.
4578 (scc splitter): Split always GEU again.
4580 2016-10-11 Jeff Law <law@redhat.com>
4582 PR tree-optimization/77424
4583 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
4584 dead conditionals. Assert that all e->aux fields are NULL.
4586 2016-10-11 David Malcolm <dmalcolm@redhat.com>
4588 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
4589 operand-printing "switch" statement into...
4590 (print_rtx_operand_code_0): ...this new function, ...
4591 (print_rtx_operand_code_e): ...this new function, ...
4592 (print_rtx_operand_codes_E_and_V): ...this new function, ...
4593 (print_rtx_operand_code_i): ...this new function, ...
4594 (print_rtx_operand_code_r): ...this new function, ...
4595 (print_rtx_operand_code_u): ...this new function, ...
4596 (print_rtx_operand): ...and this new function.
4598 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
4600 * config/alpha/alpha-passes.def: New file.
4601 * config/alpha/t-alpha: New file.
4602 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
4603 (make_pass_handle_trap_shadows): New prototype.
4604 (make_pass_align_insns): Ditto.
4605 * config/alpha/alpha.c (alpha_option_override): Don't register
4607 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
4609 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4612 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
4613 distinct __ibm128 IBM extended double type if long doubles are
4614 128-bits and the default format for long double is IEEE 128-bit.
4616 2016-10-11 Richard Biener <rguenther@suse.de>
4618 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
4619 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
4620 (verify_die): New function.
4621 (dwarf2out_finish): Call it.
4622 (output_line_info): Handle case of -gsplit-dwarf without
4623 DWARF2_ASM_LINE_DEBUG_INFO.
4625 2016-10-11 Richard Biener <rguenther@suse.de>
4628 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
4629 sub-chains of BLOCK_VARS and gimple_bind_vars.
4631 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4633 * config/i386/znver1.md : Fix imov/imovx load type reservations.
4635 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
4637 * config/sparc/sparc.opt (msubxc): New option.
4638 * doc/invoke.texi (SPARC options): Document it and tidy up.
4639 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
4640 * doc/tm.texi: Regenerate.
4641 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
4643 (CCX_NOOV): Rename into...
4647 * config/sparc/predicates.m (fcc_register_operand): Simplify.
4648 (fcc0_register_operand): Likewise.
4649 (icc_register_operand): New.
4650 (icc_or_fcc_register_operand): Simplify.
4651 (nz_comparison_operator): New.
4652 (c_comparison_operator): Likewise.
4653 (noov_compare_operator): Rename into...
4654 (icc_comparison_operator): ...this. Use above predicates.
4655 (noov_compare64_operator): Rename into...
4656 (v9_comparison_operator): ...this and tidy up.
4657 (fcc_comparison_operator): New.
4658 (icc_or_fcc_comparison_operator): Likewise.
4659 (v9_register_compare_operator): Rename info...
4660 (v9_register_comparison_operator): ...this.
4661 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
4662 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
4664 (sparc_fixed_condition_code_regs): New function.
4665 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
4666 renaming and add support for CCC/CCXC.
4667 (output_cbranch): Likewise.
4668 (sparc_print_operand): Likewise.
4669 (gen_v9_scc): Remove obsolete assertion.
4670 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
4671 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
4672 (output_cbcond): Remove bogus handling of CC modes.
4673 (sparc_register_move_cost): Return 100 for NO_REGS.
4674 * config/sparc/sparc.md (W): New mode iterator.
4675 (length): Adjust for noov_compare64_operator renaming.
4676 (cmpsi_sne): New instruction.
4677 (cmpdi_sne): Likewise.
4678 (seqdi_special): Delete.
4679 (seqdi_special): Likewise.
4680 (snesi<P:mode>_special): Likewise.
4681 (snedi_special): Likewise.
4682 (snedi_special_vis3): Likewise.
4683 (snesi patterns): Use W iterator.
4684 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
4685 (sltu patterns): Likewise.
4686 (sgeu patterns): Likewise.
4687 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
4688 (normal_branch): Use icc_comparison_operator predicate.
4689 (inverted_branch): Likewise.
4690 (cbcond_sp32): Use comparison_operator predicate.
4691 (cbcond_sp64): Likewise.
4692 (normal_int_branch_sp64): Adjust for renaming
4693 (inverted_int_branch_sp64): Likewise.
4694 (mov<I:mode>_cc_reg_sp64): Likewise.
4695 (movsf_cc_reg_sp6): Likewise.
4696 (movdf_cc_reg_sp64): Likewise.
4697 (movtf_cc_reg_hq_sp64): Likewise.
4698 (movtf_cc_reg_sp64): Likewise.
4699 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
4700 (movsf_cc_v9): Likewise.
4701 (movdf_cc_v9): Likewise.
4702 (movtf_cc_hq_v9): Likewise.
4703 (movtf_cc_v9): Likewise.
4704 (adddi3): Call gen_adddi3_sp32.
4705 (adddi3_insn_sp32): Rename to...
4706 (adddi3_sp32): ...this. Accept only register_operand as operand #1
4707 and use CCCmode for the carry.
4708 (addx_extend_sp32): Use CCCmode for the carry.
4709 (addx_extend_sp64): Delete.
4710 (adddi3_extend_sp32): Use CCCmode for the carry.
4711 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
4712 (subdi3): Call gen_subdi3_sp32.
4713 (subdi3_insn_sp32): Rename to...
4714 (subdi3_sp32): ...this and use CCmode for the carry.
4715 (subx_extend_sp32): Use CCCmode for the carry.
4716 (subx_extend_sp64): Delete.
4717 (subdi3_extend_sp32): Use CCmode for the carry.
4718 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
4719 (negdi3): Call gen_negdi3_sp32.
4720 (negdi3_sp32): Use CCCmode for the carry.
4721 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
4722 (cmp_nz_ashift_1): Use CCNZ mode.
4723 (cmp_nz_set_ashift_1): Likewise.
4724 (ctrapsi4): Use comparison_operator predicate.
4725 (ctrapdi4): Likewise.
4726 (trapsi_insn): Use icc_comparison_operator predicate.
4727 (trapdi_insn): Likewise.
4728 (edge8 patterns): Use CCNZmode.
4729 (edge16 patterns): Likewise.
4730 (edge32 patterns): Likewise.
4732 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
4734 * config/visium/visium-modes.def (CC_NOOV): Rename into...
4736 (CC_BTST): Rename into...
4738 * config/visium/predicates.md (real_add_operand): New.
4739 (visium_btst_operator): Rename into...
4740 (visium_equality_comparison_operator): ...this.
4741 (visium_noov_operator): Rename into...
4742 (visium_nz_comparison_operator): ...this.
4743 (visium_c_comparison_operator): New.
4744 (visium_branch_operator): Adjust and deal with all CC modes.
4745 * config/visium/visium.c (visium_adjust_cost): Adjust.
4746 (visium_split_double_add): Use the *_set_carry patterns.
4747 (visium_select_cc_mode): Add support for CCC mode and adjust.
4748 (output_cbranch): Adjust and use the carry-based operators for
4749 floating-point comparisons.
4750 * config/visium/visium.md (flags_subst_arith): Adjust.
4751 (addsi3_insn_set_carry): New instruction.
4752 (subsi3_insn_set_carry): Likewise.
4753 (negsi2_insn_set_carry): Likewise.
4755 (cmp<mode>_sne): Likewise.
4756 (cbranch<mode>4): Use ordered_comparison_operator.
4757 (cbranch<mode>4_insn): Likewise.
4758 (cbranchsi4_btst_insn): Adjust.
4760 2016-10-11 Tom de Vries <tom@codesourcery.com>
4763 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
4766 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
4768 * tree.h (build_complex_type): Add second parameter with default.
4769 * tree.c (build_complex_type): Add NAMED second parameter and adjust
4770 recursive call. Create a TYPE_DECL only if NAMED is true.
4771 (build_common_tree_nodes): Pass true in calls to build_complex_type.
4773 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
4775 New avr-passes.def to register AVR specific passes.
4777 * config/avr/avr-passes.def: New file.
4778 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
4779 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
4780 (make_avr_pass_recompute_note): New proto.
4781 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
4782 (avr_pass_recompute_notes): Use anonymous namespace.
4783 (avr_register_passes): Remove function...
4784 (avr_option_override): ...and its call.
4786 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
4788 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
4789 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
4790 PTF_AVOID_BRANCHLIKELY_SPEED for others.
4791 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
4793 * config/mips/mips.c (mips_option_override): Enable the branch
4794 likely depending on the tune flags and optimization level.
4795 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
4796 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
4797 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
4798 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
4800 2016-10-11 Richard Biener <rguenther@suse.de>
4802 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
4803 (output_function): Properly stream the whole block tree.
4804 * lto-streamer-in.c (input_function): Likewise.
4806 2016-10-11 Marek Polacek <polacek@redhat.com>
4808 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
4810 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4812 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
4813 (evrp_dom_walker::before_dom_children): Infer and push new value
4814 ranges for x in y < x.
4816 2016-10-10 Joseph Myers <joseph@codesourcery.com>
4819 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
4820 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4821 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
4822 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
4823 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4824 (IA64_NO_LIBGCC_TFMODE): Likewise.
4826 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
4828 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
4831 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
4833 * config.gcc: Add aarch64-*-freebsd* support.
4834 * config.host: Likewise.
4835 * config/aarch64/aarch64-freebsd.h: New file.
4836 * config/aarch64/t-aarch64-freebsd: Ditto.
4838 2016-10-10 Jeff Law <law@redhat.com>
4840 PR tree-optimization/71947
4841 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
4842 B with A within a single statement.
4844 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4846 PR tree-optimization/77824
4847 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
4848 zero cost for copies.
4849 (find_candidates_dom_walker::before_dom_children): Replace
4850 MODIFY_EXPR with SSA_NAME.
4851 (replace_mult_candidate): Likewise.
4852 (replace_profitable_candidates): Likewise.
4854 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4856 * config/s390/s390.h: Wrap more macros args in brackets and fix
4858 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
4860 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
4862 2016-10-10 Andreas Schwab <schwab@suse.de>
4865 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
4866 pseudo is not DImode.
4868 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
4870 * common/config/arc/arc-common.c (arc_option_optimization_table):
4871 Remove compact casesi option.
4872 * config/arc/arc.c (arc_override_options): Use compact casesi
4873 option only for pre-ARCv2 cores.
4874 * doc/invoke.texi (mcompact-casesi): Update text.
4876 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4878 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
4879 Add macro to say we can efficiently handle overlapping unaligned
4881 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
4882 poor code for processors older than p8.
4884 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
4886 * gen-pass-instances.awk: Remove GNUism.
4888 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4890 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
4891 NULL of (*ipcp_transformations)][node->uid].
4893 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
4895 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
4896 (MALLOC_ABI_ALIGNMENT): Define.
4898 2016-10-09 Jakub Jelinek <jakub@redhat.com>
4900 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
4901 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
4902 VAR_OR_FUNCTION_DECL_P macros.
4903 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
4904 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
4905 chkp_find_bounds_1): Likewise.
4906 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
4907 * hsa-gen.c (get_symbol_for_decl): Likewise.
4908 * cgraphunit.c (check_global_declaration, analyze_functions,
4909 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
4911 * gimple-fold.c (can_refer_decl_in_current_unit_p,
4912 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
4914 * tree.c (set_decl_section_name, copy_node_stat,
4915 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
4916 merge_dllimport_decl_attributes, handle_dll_attribute,
4917 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
4918 verify_type): Likewise.
4919 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
4920 find_explicit_erroneous_behavior): Likewise.
4921 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
4922 * ipa.c (process_references): Likewise.
4923 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
4924 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
4925 notice_global_symbol, assemble_variable, mark_decl_referenced,
4926 build_constant_desc, output_constant_def_contents, do_assemble_alias,
4927 make_decl_one_only, default_section_type_flags,
4928 categorize_decl_for_section, default_encode_section_info): Likewise.
4929 * trans-mem.c (requires_barrier): Likewise.
4930 * gimple-expr.c (mark_addressable): Likewise.
4931 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
4932 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
4933 expand_debug_expr): Likewise.
4934 * tree-dump.c (dequeue_and_dump): Likewise.
4935 * ubsan.c (instrument_bool_enum_load): Likewise.
4936 * tree-pretty-print.c (print_declaration): Likewise.
4937 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4938 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
4939 * asan.c (asan_protect_global, instrument_derefs): Likewise.
4940 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
4941 pass_build_ssa::execute): Likewise.
4942 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
4943 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
4945 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
4947 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
4948 can_be_nonlocal, remap_decls, copy_debug_stmt,
4949 initialize_inlined_parameters, add_local_variables,
4950 reset_debug_binding, replace_locals_op): Likewise.
4951 * dse.c (can_escape): Likewise.
4952 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
4954 * tree-diagnostic.c (default_tree_printer): Likewise.
4955 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
4956 unpack_ts_decl_with_vis_value_fields,
4957 lto_input_ts_decl_common_tree_pointers): Likewise.
4958 * builtins.c (builtin_save_expr, fold_builtin_expect,
4959 readonly_data_expr): Likewise.
4960 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
4961 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
4963 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
4964 * gimplify.c (force_constant_size, gimplify_bind_expr,
4965 gimplify_decl_expr, gimplify_var_or_parm_decl,
4966 gimplify_compound_lval, gimplify_init_constructor,
4967 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
4968 gimplify_type_sizes): Likewise.
4969 * cgraphbuild.c (record_reference, record_type_list, mark_address,
4970 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
4971 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
4972 remove_unused_locals): Likewise.
4973 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
4974 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
4975 * function.c (instantiate_expr, instantiate_decls_1,
4976 setjmp_vars_warning, add_local_decl): Likewise.
4977 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
4979 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
4980 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
4981 optimize_va_list_gpr_fpr_size): Likewise.
4982 * tree-nrv.c (pass_nrv::execute): Likewise.
4983 * tsan.c (instrument_expr): Likewise.
4984 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
4985 * vtable-verify.c (verify_bb_vtables): Likewise.
4986 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
4987 get_ref_base_and_extent): Likewise.
4988 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
4990 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
4991 analyze_all_variable_accesses): Likewise.
4992 * tree-nested.c (get_nonlocal_debug_decl,
4993 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
4994 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
4995 get_local_debug_decl, convert_local_omp_clauses,
4996 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
4998 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
4999 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
5000 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
5001 dbxout_symbol, dbxout_common_check): Likewise.
5002 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
5003 string_constant): Likewise.
5004 * hsa.c (hsa_get_declaration_name): Likewise.
5005 * passes.c (rest_of_decl_compilation): Likewise.
5006 * tree-ssanames.c (make_ssa_name_fn): Likewise.
5007 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
5008 pack_ts_decl_with_vis_value_fields,
5009 write_ts_decl_common_tree_pointers): Likewise.
5010 * stor-layout.c (place_field): Likewise.
5011 * symtab.c (symtab_node::maybe_create_reference,
5012 symtab_node::verify_base, symtab_node::make_decl_local,
5013 symtab_node::copy_visibility_from,
5014 symtab_node::can_increase_alignment_p): Likewise.
5015 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
5016 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
5017 fortran_common, add_location_or_const_value_attribute,
5018 add_scalar_info, add_linkage_name, set_block_abstract_flags,
5019 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
5020 optimize_one_addr_into_implicit_ptr,
5021 optimize_location_into_implicit_ptr): Likewise.
5022 * gimple-low.c (record_vars_into): Likewise.
5023 * ipa-visibility.c (update_vtable_references): Likewise.
5024 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
5026 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
5027 DFS::DFS_write_tree_body, write_symbol): Likewise.
5028 * langhooks.c (lhd_warn_unused_global_decl,
5029 lhd_set_decl_assembler_name): Likewise.
5030 * attribs.c (decl_attributes): Likewise.
5031 * except.c (output_ttype): Likewise.
5032 * varpool.c (varpool_node::get_create, ctor_for_folding,
5033 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
5034 * fold-const.c (fold_unary_loc): Likewise.
5035 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
5036 ipa_find_agg_cst_from_init): Likewise.
5037 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
5038 expand_omp_target, lower_omp_regimplify_p,
5039 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
5040 find_link_var_op): Likewise.
5041 * tree-chrec.c (chrec_contains_symbols): Likewise.
5042 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
5043 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
5044 execute_fixup_cfg): Likewise.
5046 PR tree-optimization/77901
5047 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
5048 if ranges[i].exp is SSA_NAME when looking for >= and only when
5049 ranges[i].exp is NULL or SSA_NAME when looking for the other
5052 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5054 * ipa-cp.c (ipcp_alignment_lattice): Remove.
5055 (ipcp_param_lattices): Remove field alignment.
5056 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
5057 (set_all_contains_variable): Remove call to
5058 ipcp_alignment_lattice::set_to_bottom.
5059 (initialize_node_lattices): Likewise.
5060 (propagate_alignment_accross_jump_function): Remove.
5061 (propagate_constants_accross_call): Remove call to
5062 propagate_alignment_accross_jump_function.
5063 (ipcp_store_alignment_results): Remove.
5064 (ipcp_driver): Remove call to ipcp_store_alignment_results.
5065 (propagate_bits_accross_jump_function): Handle ancestor jump function.
5066 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
5067 pretty-printing of alignment jump function.
5068 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
5069 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
5070 alignments and remove computing ipa_alignment jump function.
5071 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
5072 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
5073 (ipa_read_jump_function): Remove reading of ipa_alignment.
5074 (write_ipcp_transformation_info): Remove streaming for alignment
5075 propagation summary.
5076 (read_ipcp_transformation_info): Remove reading of alignment
5077 propagation summary.
5078 (ipcp_update_alignments): Remove.
5079 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
5081 (ipcp_transform_function): Remove call to ipcp_update_alignments()
5082 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
5083 * ipa-prop.h (ipa_alignment): Remove.
5084 (ipa_jump_func): Remove field alignment.
5085 (ipcp_transformation_summary): Remove field alignments.
5086 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
5087 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
5088 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
5090 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
5092 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
5094 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
5096 (visium_expand_fp_cstore): Likewise.
5098 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5100 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
5101 * diagnostic.c (warning_at_rich_loc_n): New function.
5102 (diagnostic_n_impl_richloc): Likewise.
5103 (diagnostic_n_impl): Move most of the function to
5104 diagnostic_n_impl_richloc and call it.
5106 2016-10-08 Jakub Jelinek <jakub@redhat.com>
5108 * gen-pass-instances.awk: Rewritten.
5109 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
5110 $(PASSES_EXTRA) after passes.def to the script.
5111 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
5112 * config/i386/i386-passes.def: New file.
5113 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
5114 make_pass_stv): Declare.
5115 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
5117 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
5119 (pass_stv::clone, pass_stv::set_pass_param): New methods.
5120 (pass_stv::timode_p): New non-static data member.
5121 (ix86_option_override): Don't register passes here.
5123 * doc/invoke.texi: Document accepting Else, fallthrough.
5125 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
5128 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
5129 FALLTHRU comment styles.
5131 2016-10-07 Andrew Pinski <apinski@cavium.com>
5133 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
5134 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
5135 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
5137 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
5139 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
5141 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
5142 (AARCH64_ARCH): Likewise.
5143 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
5145 (AARCH64_CORE): Likewise.
5146 (AARCH64_ARCH): Likewise.
5147 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
5148 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
5149 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
5150 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
5151 (AARCH64_ARCH): Likewise.
5152 (AARCH64_CORE): Likewise.
5153 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
5154 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
5155 (AARCH64_CORE): Likewise.
5156 (AARCH64_ARCH): Likewise.
5158 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5160 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
5161 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
5162 floating point type infrastructre, and -mfloat128 that enables the
5163 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
5164 if -mfloat128-type. Define __ibm128 to be long double by default.
5165 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
5166 the IEEE 128-bit floating point type infrastructure should
5167 automatically be enabled.
5168 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
5169 instead of -mfloat128 to enable KFmode.
5170 (rs6000_option_override_internal): Split the option -mfloat128
5171 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
5172 systems, automatically set -mfloat128-type, but don't enable it on
5173 other operating systems. Move setting the long double size and
5174 IEEE quad support before the IEEE 128-bit floating point changes.
5175 (rs6000_init_builtins): Do not create a unique type for __ibm128
5176 if long double is IBM extended double, instead rely on __ibm128
5177 being defined as 'long double'. If -mfloat128-type and not
5178 -mfloat128, create the KFmode type with an undocumented __ieee128
5180 (rs6000_init_libfuncs): Use -mfloat128-type instead of
5181 -mfloat128 for tests about the types, but keep tests for
5182 -mfloat128 to enable the keyword support.
5183 (rs6000_complex_function_value): Likewise.
5184 (rs6000_scalar_mode_supported_p): Likewise.
5185 (rs6000_floatn_mode): Likewise.
5186 (rs6000_c_mode_for_suffix): Likewise.
5187 (rs6000_opt_masks): Add -mfloat128-type.
5188 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
5189 -mfloat128-type being split from -mfloat128. Add
5190 -mfloat128-hardware, which was missing.
5191 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
5192 -mfloat128 and -mfloat128-type:
5193 (-mfloat128-type): Likewise.
5194 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
5195 that 64-bit Linux systems with enable -mfloat128-type by default
5197 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
5198 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
5199 -mfloat128-type instead of -mfloat128.
5200 (FLOAT128_2REG_P): Likewise.
5201 (MASK_FLOAT128_TYPE): Likewise.
5202 (ALTIVEC_ARG_MAX_RETURN): Likewise.
5203 (RS6000_BTM_FLOAT128): Likewise.
5204 (TARGET_FLOAT128): Poison old identifiers.
5205 (OPTION_MASK_FLOAT128): Likewise.
5206 (MASK_FLOAT128): Likewise.
5207 * config/rs6000/rs6000.md (FP): Likewise.
5208 (FLOAT128): Likewise.
5209 (fix_trunc<mode>di2): Likewise.
5210 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
5211 (floatdi<mode>2): Likewise.
5212 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
5213 (neg<mode>2, FLOAT128 iterator): Likewise.
5214 (abs<mode>2, FLOAT128 iterator): Likewise.
5215 (ieee_128bit_negative_zero): Likewise.
5216 (ieee_128bit_vsx_neg<mode>2): Likewise.
5217 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
5218 (ieee_128bit_vsx_abs<mode>2): Likewise.
5219 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
5220 (ieee_128bit_vsx_nabs<mode>2): Likewise.
5221 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
5222 (extendiftf2): Likewise.
5223 (extendifkf2): Likewise.
5224 (extendtfkf2): Likewise.
5225 (trunciftf2): Likewise.
5226 (truncifkf2): Likewise.
5227 (trunckftf2): Likewise.
5228 (trunctfif2): Likewise.
5229 (extendkftf2): Likewise.
5230 (trunctfkf2): Likewise.
5232 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5234 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
5235 before merging in bytes to pass down to real_from_target.
5237 2016-10-07 Richard Biener <rguenther@suse.de>
5239 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
5241 (substitute_and_fold_dom_walker::before_dom_children):
5242 Substitute and fold before pass specific folding to avoid
5243 feeding that with SSA names that will be later released.
5244 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
5245 introduced by folding and visited by evaluate_stmt called during
5247 (likely_value): Likewise.
5248 (evaluate_stmt): Likewise.
5249 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
5250 (simplify_div_or_mod_using_ranges): Likewise.
5251 (simplify_min_or_max_using_ranges): Likewise.
5252 (simplify_abs_using_ranges): Likewise.
5253 (simplify_conversion_using_ranges): Likewise.
5254 (simplify_float_conversion_using_ranges): Likewise.
5255 (simplify_stmt_using_ranges): Likewise.
5257 2016-10-07 Marek Polacek <polacek@redhat.com>
5259 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
5260 FALLTHROUGH_LABEL_P here...
5261 (warn_implicit_fallthrough_r): ...not here.
5263 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
5265 PR tree-optimization/77880
5266 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
5269 2016-10-07 Marek Polacek <polacek@redhat.com>
5272 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
5274 2016-10-07 Richard Biener <rguenther@suse.de>
5276 * bitmap.h: Document constraints on bitmap modification while
5279 2016-10-07 Richard Biener <rguenther@suse.de>
5281 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
5282 * bitmap.h (bmp_iter_set): When advancing to the next element
5283 check that we didn't remove the current one.
5284 (bmp_iter_and): Likewise.
5285 (bmp_iter_and_compl): Likewise.
5286 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
5287 we currently iterate on but keep a one-level queue.
5288 * sched-deps.c (remove_from_deps): Do not clear current bit
5289 but keep a one-level queue.
5291 2016-10-07 Jakub Jelinek <jakub@redhat.com>
5293 PR tree-optimization/77664
5294 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
5295 for the other ranges.
5296 (optimize_range_tests_diff): Fix up formatting.
5297 (optimize_range_tests_var_bound): New function.
5298 (optimize_range_tests): Use it.
5300 2016-10-07 Martin Liska <mliska@suse.cz>
5302 * coverage.c (build_gcov_exit_decl): Fix priority what
5303 should be really 99.
5305 2016-10-07 Richard Biener <rguenther@suse.de>
5307 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
5308 vars in gimple_bind_vars but not in BLOCK_VARS.
5310 2016-10-07 Richard Biener <rguenther@suse.de>
5312 PR tree-optimization/77879
5313 * tree-ssa-structalias.c (handle_const_call): Properly handle
5315 (handle_pure_call): Likewise.
5317 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
5319 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
5320 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
5323 2016-10-06 Andrew Pinski <apinski@cavium.com>
5325 * config/aarch64/aarch64-cores.def: Add a comment before each
5328 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
5330 PR tree-optimization/77862
5331 * tree-vrp.c (add_equivalence): Use get_value_range so that
5332 num_vr_values is checked before accessing vr_values.
5334 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
5336 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
5339 2016-10-05 Jeff Law <law@redhat.com>
5341 PR tree-optimization/71661
5342 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
5343 removal of a forwarder exposes a new natural loop.
5345 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
5347 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
5348 Introduce ssesuffix variable.
5349 (<mask_codefor><code><mode>3<mask_name>): Ditto.
5350 (*<code><mode>3): Ditto.
5352 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
5354 * postreload.c (reload_cse_simplify): Skip also USE when detecting
5357 2016-10-06 Richard Biener <rguenther@suse.de>
5359 PR tree-optimization/77855
5360 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
5361 instead of removing the current item while iterating over the set
5364 2016-10-06 James Clarke <jrtc27@jrtc27.com>
5365 Eric Botcazou <ebotcazou@adacore.com>
5368 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
5369 (classify_registers): Don't set it
5370 (function_arg_slotno): Don't initialize and test it. Tidy up.
5372 2016-10-06 Richard Biener <rguenther@suse.de>
5374 PR tree-optimization/77839
5375 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
5378 2016-10-06 Martin Liska <mliska@suse.cz>
5380 * gcc.c: Set -fprofile-update=atomic when profiling is
5381 enabled and -pthread is set. Warn when one combines
5382 -pthread and -fprofile-update=single for an app using
5385 2016-10-06 Martin Liska <mliska@suse.cz>
5388 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
5389 * gimple-ssa-strength-reduction.c (slsr_process_cast):
5390 Initialize a pointer to NULL.
5391 (slsr_process_copy): Likewise.
5392 * input.c (location_get_source_line): Likewise.
5393 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
5395 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
5397 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
5398 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
5399 (ix86_handle_option): Deleted handle of OPT_mpcommit.
5400 * config.gcc: Deleted pcommitintrin.h
5401 * config/i386/pcommitintrin.h: Deleted file.
5402 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
5403 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
5405 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
5407 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
5408 (PTA_PCOMMIT): Deleted define.
5409 (ix86_option_override_internal): Deleted handle of option.
5410 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
5411 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
5412 __builtin_ia32_pcommit): Deleted.
5413 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
5414 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
5415 (pcommit): Deleted instruction.
5416 * config/i386/i386.opt: Mention -mpcommit deprecation.
5417 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
5419 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
5422 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
5423 Remove wrong assert.
5424 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
5425 Use <round_constraint> as operand 1 constraint.
5427 2016-10-05 Jakub Jelinek <jakub@redhat.com>
5430 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
5431 (ubsan_instrument_float_cast): And not here.
5434 * ubsan.c (ubsan_ids): New GTY(()) array.
5435 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
5436 instead of static local counters.
5438 2016-10-05 Martin Sebor <msebor@redhat.com>
5441 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
5442 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
5443 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
5444 (default_printf_pointer_format): Define function.
5445 * targhooks.c (linux_printf_pointer_format): Define new function.
5446 * targhooks.h (linux_printf_pointer_format): Declare.
5447 (gnu_libc_printf_pointer_format): Remove declaration.
5449 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5451 * fold-const.c (native_encode_real): Fix logic for selecting offset
5452 to write to when BYTES_BIG_ENDIAN.
5454 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
5456 * builtins.c (fold_builtin_strchr): Remove function.
5457 (fold_builtin_strrchr): Likewise.
5458 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
5459 * gimple-fold.c (target_char_cst_p): New function.
5460 (gimple_fold_builtin_strchr) Add more foldings.
5461 (gimple_fold_builtin): Add index, strrchr, rindex cases.
5463 2016-10-05 Richard Biener <rguenther@suse.de>
5466 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
5467 capture ids in c-exprs.
5469 2016-10-05 Richard Biener <rguenther@suse.de>
5472 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
5473 with types_match for GIMPLE code gen to handle type mismatched
5475 (dt_operand::gen): Adjust.
5476 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
5479 2016-10-05 Richard Biener <rguenther@suse.de>
5481 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
5483 2016-10-05 Richard Biener <rguenther@suse.de>
5486 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
5488 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
5490 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
5491 version check to protect only DW_TAG_imported_module generation.
5493 2016-10-05 Richard Biener <rguenther@suse.de>
5496 * match.pd (min(a,-a) -> -abs(a)): New pattern.
5498 2016-10-04 Ian Lance Taylor <iant@golang.org>
5500 * explow.c (allocate_dynamic_stack_space): Call
5501 do_pending_stack_adjust before handling flag_split_stack.
5503 2016-10-04 David Malcolm <dmalcolm@redhat.com>
5505 * genattrtab.c (make_internal_attr): Supply dummy column number to
5508 * genoutput.c (init_insn_for_nothing): Likewise.
5509 * gensupport.c (add_define_attr): Likewise.
5510 * read-md.c (message_at_1): Print column number.
5511 (fatal_with_file_and_line): Likewise.
5512 (rtx_reader::read_char): Track column numbers.
5513 (rtx_reader::unread_char): Likewise.
5514 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
5515 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
5516 (rtx_reader::handle_file): Initialize m_read_md_colno.
5517 (rtx_reader::get_current_location): Supply column number to
5519 * read-md.h (struct file_location): Add field "colno".
5520 (file_location::file_location): Likewise.
5521 (rtx_reader::get_colno): New accessor.
5522 (rtx_reader::m_read_md_colno): New field.
5523 (rtx_reader::m_last_line_colno): New field.
5525 2016-10-04 Jakub Jelinek <jakub@redhat.com>
5527 * doc/extend.texi (Java Exceptions): Remove.
5528 (java_interface): Remove.
5530 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
5532 PR tree-optimization/77808
5533 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
5534 and addr are different before copying points-to information.
5536 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
5538 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
5539 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
5540 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
5541 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
5543 2016-10-04 Richard Biener <rguenther@suse.de>
5545 PR tree-optimization/77399
5546 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
5547 verify the target can convert.
5549 2016-10-04 Richard Biener <rguenther@suse.de>
5552 * explow.c (plus_constant): Verify the mode of the constant
5553 pool offset before calling plus_constant.
5555 2016-10-04 Richard Biener <rguenther@suse.de>
5558 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
5559 type support, mark with :C.
5560 (X / -X -> -1): Mark with :C.
5562 2016-10-04 Jakub Jelinek <jakub@redhat.com>
5564 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
5565 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
5566 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
5567 * doc/tm.texi: Regenerated.
5568 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
5569 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
5570 * config/darwin.h (JCR_SECTION_NAME): Remove.
5571 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
5572 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
5573 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
5574 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
5575 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
5576 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
5578 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5580 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
5581 between "because" and "param" in dump message in call to fprintf.
5583 2016-10-03 Jeff Law <law@redhat.com>
5585 PR tree-optimization/71550
5586 PR tree-optimization/71403
5587 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
5588 (profitable_jump_thread_path): Also return boolean indicating if
5589 the realized path will create an irreducible loop.
5590 Remove loop depth tests from 71403.
5591 (fsm_find_control_statement_thread_paths): Remove loop depth tests
5592 from 71403. If threading will create an irreducible loop, then
5593 throw away loop iteration and related information.
5595 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
5597 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
5598 -Woverloaded-virtual checks for warning options.
5599 * configure: Regenerate.
5601 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5603 PR preprocessor/77699
5604 * input.c (maybe_grow): Don't allocate one byte extra headroom.
5605 (get_next_line): Return false on error.
5606 (read_next_line): Removed, use get_next_line instead.
5607 (read_line_num): Don't copy the line.
5608 (location_get_source_line): Don't use static data.
5609 (selftest::test_reading_source_line): Add more test cases.
5611 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5614 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5616 * ifcvt.c (noce_try_avoid_const_materialization): New function.
5617 (noce_process_if_block): Use it.
5619 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
5621 * doc/invoke.texi: Update -Wint-in-bool-context.
5623 2016-10-02 Jakub Jelinek <jakub@redhat.com>
5625 * dwarf2out.c (output_fde, output_call_frame_info,
5626 dwarf2out_do_cfi_startproc, set_indirect_string,
5627 gen_internal_sym, output_die, output_line_info): Use
5628 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
5629 ASM_GENERATE_INTERNAL_LABEL output.
5631 2016-10-01 Richard Biener <rguenther@suse.de>
5634 * genmatch.c (get_operand_type): Add operand position arg
5635 and handle COND_EXPR comparison operand with fixed boolean_type_node.
5636 (expr::gen_transform): Adjust.
5637 (dt_simplify::gen_1): Likewise.
5639 2016-10-01 Jakub Jelinek <jakub@redhat.com>
5641 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
5642 comments. Simplify asserts, remove unnecessary conditions.
5644 (*<code><mode>3): Likewise.
5646 2016-09-30 Jakub Jelinek <jakub@redhat.com>
5648 * doc/invoke.texi (-Wregister): Document.
5650 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5652 * configure.ac: Split CHECKING_P into CHECKING_P and
5653 ENABLE_EXTRA_CHECKING.
5654 * configure: Regenerated.
5655 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
5656 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
5658 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
5661 * gcc.c (process_command): For @filename handling, output
5662 the correct name if the file does not exist.
5664 2016-09-30 Marek Polacek <polacek@redhat.com>
5666 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
5667 * config/alpha/predicates.md: Likewise.
5669 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5671 * ifcvt.c (noce_try_avoid_const_materialization): New function.
5672 (noce_process_if_block): Use it.
5674 2016-09-30 Martin Liska <mliska@suse.cz>
5676 * doc/invoke.texi: Document asan-use-after-return that
5677 it's disabled by default in runtime.
5679 2016-09-30 Richard Biener <rguenther@suse.de>
5681 * tree-vrp.c (intersect_ranges): If we failed to handle
5682 the intersection choose a constant singleton range if available.
5684 2016-09-30 Richard Biener <rguenther@suse.de>
5686 PR tree-optimization/77399
5687 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
5688 float <-> int conversions.
5690 2016-09-30 Alan Modra <amodra@gmail.com>
5692 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
5694 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
5696 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
5697 ext_level before calling CPUID with 0x80000008.
5698 Simplify xgetbv checks.
5700 2016-09-29 David Malcolm <dmalcolm@redhat.com>
5702 * Makefile.in (OBJS): Add print-rtl-function.o.
5703 * print-rtl-function.c: New file.
5704 * print-rtl.h (print_rtx_function): New decl.
5706 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
5709 * config/i386/cpuid.h (__get_cpuid_count): New.
5710 (__get_cpuid): Rename __level to __leaf.
5712 2016-09-29 Marek Polacek <polacek@redhat.com>
5714 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
5716 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
5719 * builtins.c (expand_builtin_memcmp): Don't swap args unless
5720 result is only being compared with zero.
5722 2016-09-29 Marek Polacek <polacek@redhat.com>
5724 * dwarf2out.c (loc_descriptor): Add fall through comment.
5725 (add_const_value_attribute): Likewise.
5727 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
5729 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
5730 with "v6t2". Move "arch" attribute above "pool_range".
5731 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
5733 (*thumb2_movhi_vfp): Likewise.
5734 (*arm_movhi_fp16): Likewise.
5735 (*thumb2_movhi_fp16): Likewise.
5736 (*arm_movsi_vfp): Remove "arch" attribute.
5737 (*thumb2_movsi_vfp): Likewise.
5739 2016-09-29 Martin Liska <mliska@suse.cz>
5741 * doc/extend.texi: Remove limitation of Objective C for
5742 __attribute__((constructor)) and __attribute__((destructor)).
5744 2016-09-29 Richard Biener <rguenther@suse.de>
5746 PR tree-optimization/77768
5747 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5748 Handle stores to readonly memory when removing redundant stores.
5750 2016-09-29 Richard Biener <rguenther@suse.de>
5753 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
5754 X / -X -> -1 simplifications.
5756 2016-09-29 Richard Biener <rguenther@suse.de>
5759 * match.pd: Add max(a,-a) -> abs(a) pattern.
5760 * tree-ssa-phiopt.c (minmax_replacement): Disable for
5761 HONOR_SIGNED_ZEROS types.
5763 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
5765 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
5766 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
5768 2016-09-29 Richard Biener <rguenther@suse.de>
5770 * tree-vrp.c (set_defs_to_varying): New helper avoiding
5771 writing to vr_const_varying.
5772 (vrp_initialize): Call it.
5773 (vrp_visit_stmt): Likewise.
5774 (evrp_dom_walker::before_dom_children): Likewise.
5776 2016-09-29 Richard Biener <rguenther@suse.de>
5778 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
5779 constructors with vector elements.
5781 2016-09-29 Richard Biener <rguenther@suse.de>
5783 PR tree-optimization/77768
5784 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
5785 with stores to a place we know has a constant value.
5787 2016-09-29 Alan Modra <amodra@gmail.com>
5789 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
5790 * doc/invoke.texi: Document it.
5791 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
5792 (rs6000_passes_float): Comment.
5793 (rs6000_passes_long_double): New static var.
5794 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
5795 (init_cumulative_args): Set up to emit fp .gnu_attribute for
5796 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
5797 to include fp values returned in vectors.
5798 Set rs6000_passes_long_double.
5799 (rs6000_function_arg_advance_1): Likewise for function args.
5800 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
5801 and SPE. Emit long double tag value too.
5802 (rs6000_opt_vars): Add gnu-attr.
5803 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
5804 * configure: Regenerate.
5805 * config.in: Regenerate.
5807 2016-09-28 Jakub Jelinek <jakub@redhat.com>
5809 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
5811 (format_floating, format_string, format_directive,
5812 get_destination_size, pass_sprintf_length::handle_gimple_call):
5815 2016-09-28 Jakub Jelinek <jakub@redhat.com>
5817 * gimple-ssa-sprintf.c: Fix comment formatting.
5818 (format_integer): Use is_gimple_assign.
5819 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
5820 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
5821 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
5822 (pass_sprintf_length::execute): Use is_gimple_call.
5824 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
5826 * gimple-fold.c (gimple_fold_builtin): After failing to fold
5827 strchr, also try the generic folding.
5829 2016-09-28 Martin Sebor <msebor@redhat.com>
5832 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
5835 2016-09-28 Martin Sebor <msebor@redhat.com>
5838 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
5839 length modifier is not expected.
5840 (format_floating): Ignore l length modifier and fail gracefuly
5841 when it isn't one of the other expected ones.
5843 2016-09-28 Martin Sebor <msebor@redhat.com>
5846 * varasm.c (assemble_addr_to_section): Increase local buffer size.
5848 2016-09-27 Richard Biener <rguenther@suse.de>
5850 * dwarf2out.c (cu_die_list): New global.
5851 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
5852 main_comp_unit_die to cu_die_list if we created it.
5853 Move break_out_includes ...
5854 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
5857 2016-09-28 Richard Biener <rguenther@suse.de>
5859 * dwarf2out.c (struct die_struct): Add removed flag.
5860 (lookup_type_die): If the DIE is marked as removed, clear
5861 TYPE_SYMTAB_DIE and return NULL.
5862 (lookup_decl_die): If the DIE is marked as removed, remove it
5863 from the hash and return NULL.
5864 (mark_removed): New helper.
5865 (prune_unused_types_prune): Call it for removed DIEs.
5866 (gen_subprogram_die): Move the premark_used_types call to after
5867 DIEs for the functions scopes are generated.
5868 (process_scope_var): Do not re-create pruned types or type decls.
5869 Make sure to also re-parent type decls.
5870 (dwarf2out_finish): Move unused type pruning and debug_types
5872 (dwarf2out_early_finish): ... here.
5874 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
5876 * config/arc/arc-c.c: New file.
5877 * config/arc/arc-c.def: Likewise.
5878 * config/arc/t-arc: Likewise.
5879 * config.gcc: Include arc-c.o as c and cpp object.
5880 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
5881 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
5882 arc_cpu_cpp_builtins.
5884 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
5886 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
5887 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
5889 2016-09-28 Nathan Sidwell <nathan@acm.org>
5891 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
5894 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
5896 PR tree-optimization/61056
5897 * gimple-fold.c (gimple_fold_builtin_strchr):
5898 New function to optimize strchr (s, 0) to strlen.
5899 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
5901 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
5903 PR tree-optimization/77724
5904 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
5905 Add tree_fits_shwi_p check.
5907 2016-09-27 Jakub Jelinek <jakub@redhat.com>
5909 * auto-inc-dec.c (try_merge): Remove break after return.
5910 * cselib.c (autoinc_split): Likewise.
5911 * explow.c (promote_mode): Likewise.
5912 * fixed-value.c (fixed_arithmetic): Likewise.
5913 * hsa.c (hsa_internal_fn::get_arity): Likewise.
5914 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
5915 * trans-mem.c (get_attrs_for): Likewise.
5916 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
5917 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
5918 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
5919 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
5920 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
5921 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
5922 * config/cris/cris.c (cris_op_str): Likewise.
5923 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
5924 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
5926 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
5928 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
5929 IFN_GOACC_REDUCTION_CODES): New.
5930 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
5931 ifn_goacc_reduction_kind): Use them.
5932 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
5933 of internal functions, when applicable.
5935 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
5937 * config/mips/constraints.md (d): Fix documentation.
5938 * doc/md.texi (Machine Constraints): Update accordingly.
5940 2016-09-27 Richard Biener <rguenther@suse.de>
5942 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
5943 cur_line_info_table initialization ...
5944 (dwarf2out_assembly_start): ... here.
5946 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
5948 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
5949 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
5950 (*thumb2_movhi_vfp): Likewise.
5951 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
5952 template. Expand predicable attribute to mark VMOV.F16 as not
5953 predicable. Add "arch" attribute.
5954 (*thumb2_movhi_fp16): Likewise.
5955 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
5956 (*thumb2_movsi_vfp): Add "arch" attribute.
5958 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
5960 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
5963 2016-09-27 Marek Polacek <polacek@redhat.com>
5965 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
5968 * config/c6x/c6x.h: Adjust fall through comment.
5969 * config/sh/sh.c (final_prescan_insn): Likewise.
5970 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
5971 (visium_expand_fp_cstore): Likewise.
5973 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5975 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
5976 expected by -Wimplicit-fallthrough.
5977 (thumb1_size_rtx_costs): Likewise.
5978 (thumb2_reorg): Likewise.
5979 (tls_mentioned_p): Add "Fall through" comment.
5980 (thumb2_reorg): Likewise.
5981 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
5982 comment form expected by -Wimplicit-fallthrough.
5984 2016-09-27 Martin Liska <mliska@suse.cz>
5986 PR gcov-profile/46266
5987 * input.h (RESERVED_LOCATION_P): New macro.
5988 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
5989 instread of comparison with UNKNOWN_LOCATION.
5991 2016-09-27 Richard Biener <rguenther@suse.de>
5993 PR tree-optimization/77745
5994 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5995 When removing redundant stores make sure to check compatibility
5996 of the TBAA state for downstream accesses.
5997 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
5998 value-numbering virtual operands for store matches.
6000 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6003 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
6004 movrt patterns. Match them before anything else in the SET case.
6006 2016-09-27 Martin Liska <mliska@suse.cz>
6008 PR gcov-profile/7970
6009 PR gcov-profile/16855
6010 PR gcov-profile/44779
6011 * coverage.c (build_gcov_exit_decl): New function.
6012 (coverage_obj_init): Call the function and generate __gcov_exit
6014 * doc/gcov.texi: Document when __gcov_exit function is called.
6016 2016-09-27 Marek Polacek <polacek@redhat.com>
6019 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
6020 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
6021 -Wno-error instead of -Wno-implicit-fallthrough.
6023 2016-09-27 Martin Liska <mliska@suse.cz>
6026 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
6028 2016-09-27 Jakub Jelinek <jakub@redhat.com>
6030 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
6031 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
6032 comments. Remove break after return.
6033 (ix86_fp_compare_code_to_integer, has_dispatch,
6034 ix86_simd_clone_usable): Remove break after return.
6036 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6038 PR rlt-optimization/77714
6039 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
6042 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
6045 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
6046 extract_range_from_unary_expr to convert value_range.
6047 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
6048 (extract_range_from_unary_expr): This.
6049 * tree-vrp.h (extract_range_from_unary_expr): Declare.
6051 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
6053 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
6055 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6057 * config/i386/i386.c (ix86_print_operand)
6058 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
6059 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
6060 (epilogue_renumber): Likewise.
6062 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
6065 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
6066 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
6068 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6070 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
6071 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
6072 is_mm_seq_cst, is_mm_sync): Move to ...
6073 * memmodel.h: This. New file.
6074 * builtins.c: Include memmodel.h.
6075 * optabs.c: Likewise.
6077 * config/aarch64/aarch64.c: Likewise.
6078 * config/alpha/alpha.c: Likewise.
6079 * config/arm/arm.c: Likewise.
6080 * config/i386/i386.c: Likewise.
6081 * config/ia64/ia64.c: Likewise.
6082 * config/mips/mips.c: Likewise.
6083 * config/rs6000/rs6000.c: Likewise.
6084 * config/sparc/sparc.c: Likewise.
6085 * genconditions.c: Include memmodel.h in generated file.
6086 * genemit.c: Likewise.
6087 * genoutput.c: Likewise.
6088 * genpeep.c: Likewise.
6089 * genpreds.c: Likewise.
6090 * genrecog.c: Likewise.
6092 2016-09-26 David Malcolm <dmalcolm@redhat.com>
6094 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
6095 "c" instead when parsing characters. Move operand parsing into...
6096 (read_rtx_operand): ...this new function, renaming "i" to "idx",
6097 and tightening the scope of various locals.
6099 2016-09-26 Liu Hao <lh_mouse@126.com>
6101 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
6103 2016-09-26 Marek Polacek <polacek@redhat.com>
6105 * system.h: Use __has_attribute to check whether the fallthrough
6106 attribute is supported.
6108 2016-09-26 Marek Polacek <polacek@redhat.com>
6110 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
6111 gimple_call_internal_p.
6112 * ipa-split.c (find_return_bb): Likewise.
6113 (execute_split_functions): Likewise.
6114 * omp-low.c (dump_oacc_loop_part): Likewise.
6115 (oacc_loop_xform_head_tail): Likewise.
6116 * predict.c (predict_loops): Likewise.
6117 * sanopt.c (pass_sanopt::execute): Likewise.
6118 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
6119 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
6120 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
6121 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
6122 (expand_ifn_va_arg): Likewise.
6123 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6124 (optimize_mask_stores): Likewise.
6125 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
6126 (vect_transform_stmt): Likewise.
6127 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
6128 * tsan.c (instrument_memory_accesses): Likewise.
6130 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6131 Alexander Monakov <amonakov@ispras.ru>
6133 * regrename.c (rename_chains): Check
6134 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
6135 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
6136 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6138 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6140 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
6141 (s390_sched_score): Likewise.
6143 2016-09-26 Martin Liska <mliska@suse.cz>
6145 * doc/gcov.texi: Update program output of gcov tool.
6147 2016-09-26 Martin Liska <mliska@suse.cz>
6149 PR gcov-profile/23332
6150 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
6151 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
6152 * value-prof.c (dump_histogram_value): Do not handle
6153 HIST_TYPE_CONST_DELTA.
6154 (stream_in_histogram_value): Likewise.
6155 (gimple_find_values_to_profile): Likewise.
6156 * value-prof.h (enum hist_type): Likewise.
6158 2016-09-26 Martin Liska <mliska@suse.cz>
6160 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
6161 from default sanitize recover values.
6162 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
6163 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
6164 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
6166 * opts.c (finish_options): Do a generic loop over options
6167 that can be recovered.
6168 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
6170 (common_handle_option): Likewise.
6171 * opts.h: Declare can_recover to sanitizer_opts_s.
6173 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
6175 * target.def(elf_flags_numeric): Change documentation to present tense.
6176 * doc/tm.texi: Regenerate.
6178 2016-09-26 Marek Polacek <polacek@redhat.com>
6181 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
6182 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
6183 -Wno-switch-fallthrough.
6184 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
6185 (expand_builtin): Likewise.
6186 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
6187 * convert.c (convert_to_real_1): Likewise.
6188 (convert_to_integer_1): Likewise.
6189 * final.c (output_alternate_entry_point): Likewise.
6190 * genattrtab.c (make_canonical): Likewise.
6191 (write_test_expr): Likewise.
6192 * genpreds.c (validate_exp): Likewise.
6193 * gimple-ssa-strength-reduction.c
6194 (find_candidates_dom_walker::before_dom_children): Likewise.
6195 * godump.c (go_format_type): Likewise.
6196 * reload1.c (elimination_effects): Likewise.
6197 * resource.c (mark_referenced_resources): Likewise.
6198 (mark_set_resources): Likewise.
6199 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
6200 * varasm.c (output_addressed_constants): Likewise.
6202 2016-09-26 Marek Polacek <polacek@redhat.com>
6205 * common.opt (Wimplicit-fallthrough): New option.
6206 * doc/extend.texi: Document statement attributes and the fallthrough
6208 * doc/invoke.texi: Document -Wimplicit-fallthrough.
6209 * gimple.h (gimple_call_internal_p): New function.
6210 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
6211 (struct label_entry): New struct.
6212 (find_label_entry): New function.
6213 (case_label_p): New function.
6214 (collect_fallthrough_labels): New function.
6215 (last_stmt_in_scope): New function.
6216 (should_warn_for_implicit_fallthrough): New function.
6217 (warn_implicit_fallthrough_r): New function.
6218 (maybe_warn_implicit_fallthrough): New function.
6219 (expand_FALLTHROUGH_r): New function.
6220 (expand_FALLTHROUGH): New function.
6221 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
6222 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
6223 (gimplify_label_expr): New function.
6224 (gimplify_case_label_expr): Set location.
6225 (gimplify_expr): Call gimplify_label_expr.
6226 * internal-fn.c (expand_FALLTHROUGH): New function.
6227 * internal-fn.def (FALLTHROUGH): New internal function.
6228 * langhooks.c (lang_GNU_OBJC): New function.
6229 * langhooks.h (lang_GNU_OBJC): Declare.
6230 * system.h (gcc_fallthrough): Define.
6231 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
6232 * tree.h (FALLTHROUGH_LABEL_P): Define.
6234 2016-09-26 Richard Biener <rguenther@suse.de>
6236 * dwarf2out.c (stripattributes): Remove unused function.
6237 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
6238 Push dwarf_split_debug_info handling into init_sections_and_labels.
6239 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
6240 (DEBUG_MACRO_SECTION_FLAGS): Remove.
6241 (debug_macinfo_section_name): New global.
6242 (output_macinfo): Use debug_macinfo_section_name.
6243 (init_sections_and_labels): Split out section and label generation
6244 from dwarf2out_init. Set debug_macinfo_section_name.
6245 (dwarf2out_init): Move text section label generation and emission
6247 (dwarf2out_assembly_start): ... here.
6248 (dwarf2out_finish): Call init_sections_and_labels before DWARF
6251 2016-09-26 Richard Biener <rguenther@suse.de>
6254 * cgraphunit.c (analyze_functions): Before early removing
6255 global vars calls the late_global_decl debug handler mark
6256 the variable as readonly.
6258 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
6261 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
6262 (sh_rtx_costs): Handle SET of movt and movrt patterns.
6263 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
6264 declare new overloads.
6265 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
6268 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6270 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
6271 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
6273 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
6275 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
6276 * configure: Regenerate.
6278 2016-09-24 Marek Polacek <polacek@redhat.com>
6281 * doc/invoke.texi: Document -Wbool-operation.
6283 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
6285 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
6286 * config/rs6000/rs6000.c (expand_block_compare): New function used by
6287 cmpmemsi pattern to do builtin expansion of memcmp ().
6288 (compute_current_alignment): Add helper function for
6289 expand_block_compare used to compute alignment as the compare proceeds.
6290 (select_block_compare_mode): Used by expand_block_compare to select
6291 the mode used for reading the next chunk of bytes in the compare.
6292 (do_load_for_compare): Used by expand_block_compare to emit the load
6293 insns for the compare.
6294 (rs6000_emit_dot_insn): Moved this function to avoid a forward
6295 reference from expand_block_compare ().
6296 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
6297 prototype for this function.
6298 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
6299 target option for controlling how much code inline expansion of
6300 memcmp() will be allowed to generate.
6302 2016-09-23 Jakub Jelinek <jakub@redhat.com>
6304 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
6305 hook_bool_mode_false, hook_bool_mode_true,
6306 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
6307 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
6308 hook_bool_const_rtx_insn_const_rtx_insn_true,
6309 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
6310 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
6311 hook_bool_const_tree_hwi_hwi_const_tree_false,
6312 hook_bool_const_tree_hwi_hwi_const_tree_true,
6313 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
6314 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
6315 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
6316 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
6317 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
6318 hook_bool_const_tree_true, hook_bool_tree_tree_false,
6319 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
6320 hook_bool_rtx_insn_true, hook_bool_rtx_false,
6321 hook_bool_uintp_uintp_false,
6322 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
6323 hook_rtx_tree_int_null, hook_uint_mode_0,
6324 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
6325 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
6326 hook_constcharptr_const_rtx_insn_null,
6327 hook_constcharptr_const_tree_const_tree_null,
6328 hook_constcharptr_int_const_tree_null,
6329 hook_constcharptr_int_const_tree_const_tree_null,
6330 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
6331 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
6332 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
6334 * vec.h (vNULL): Extend comment to say = vNULL initialization
6335 isn't needed for static vars.
6337 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
6338 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
6339 = vNULL initialization of file scope vec.
6340 * passes.c (pass_tab, enabled_pass_uid_range_tab,
6341 disabled_pass_uid_range_tab): Likewise.
6342 * haifa-sched.c (sched_luids, h_i_d): Likewise.
6343 * tree-chkp-opt.c (check_infos): Likewise.
6344 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
6346 * vec.h (vnull::operator vec): Add constexpr keyword for
6349 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
6351 PR tree-optimization/77654
6352 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
6353 to duplicate_ssa_name_ptr_info.
6355 2016-09-23 David Malcolm <dmalcolm@redhat.com>
6357 PR preprocessor/77672
6358 * input.c (selftest::test_lexer_string_locations_simple): Update
6359 test to expect location information of the terminator character
6360 at the location of the final closing quote.
6361 (selftest::test_lexer_string_locations_hex): Likewise.
6362 (selftest::test_lexer_string_locations_oct): Likewise.
6363 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
6364 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
6365 (selftest::test_lexer_string_locations_ucn4): Likewise.
6366 (selftest::test_lexer_string_locations_ucn8): Likewise.
6367 (selftest::test_lexer_string_locations_u8): Likewise.
6368 (selftest::test_lexer_string_locations_utf8_source): Likewise.
6369 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
6370 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
6371 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
6372 (selftest::test_lexer_string_locations_macro): Likewise.
6373 (selftest::test_lexer_string_locations_long_line): Likewise.
6375 2016-09-23 Richard Biener <rguenther@suse.de>
6377 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
6378 virtual definition to virtual use if the call devirtualizes
6379 to a const or pure function.
6380 (visit_use): Also visit calls we can devirtualize to a
6381 const or pure function.
6383 2016-09-23 Richard Biener <rguenther@suse.de>
6385 PR tree-optimization/77697
6386 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
6387 signal error if we have sth ternary or unhandled.
6389 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6391 * config/arm/arm_neon.h (vabd_f16): New.
6425 (vcvt_f16_s16): New.
6426 (vcvt_f16_u16): New.
6427 (vcvt_s16_f16): New.
6428 (vcvt_u16_f16): New.
6429 (vcvtq_f16_s16): New.
6430 (vcvtq_f16_u16): New.
6431 (vcvtq_s16_f16): New.
6432 (vcvtq_u16_f16): New.
6433 (vcvta_s16_f16): New.
6434 (vcvta_u16_f16): New.
6435 (vcvtaq_s16_f16): New.
6436 (vcvtaq_u16_f16): New.
6437 (vcvtm_s16_f16): New.
6438 (vcvtm_u16_f16): New.
6439 (vcvtmq_s16_f16): New.
6440 (vcvtmq_u16_f16): New.
6441 (vcvtn_s16_f16): New.
6442 (vcvtn_u16_f16): New.
6443 (vcvtnq_s16_f16): New.
6444 (vcvtnq_u16_f16): New.
6445 (vcvtp_s16_f16): New.
6446 (vcvtp_u16_f16): New.
6447 (vcvtpq_s16_f16): New.
6448 (vcvtpq_u16_f16): New.
6449 (vcvt_n_f16_s16): New.
6450 (vcvt_n_f16_u16): New.
6451 (vcvtq_n_f16_s16): New.
6452 (vcvtq_n_f16_u16): New.
6453 (vcvt_n_s16_f16): New.
6454 (vcvt_n_u16_f16): New.
6455 (vcvtq_n_s16_f16): New.
6456 (vcvtq_n_u16_f16): New.
6470 (vmul_lane_f16): New.
6473 (vmulq_lane_f16): New.
6495 (vrsqrteq_f16): New.
6499 (vrsqrtsq_f16): New.
6503 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6505 * config.gcc (extra_headers): Add arm_fp16.h
6506 * config/arm/arm_fp16.h: New.
6507 * config/arm/arm_neon.h: Include "arm_fp16.h".
6509 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6511 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
6513 (vmulf): New (v8hf, v4hf variants).
6514 (vfma): New (v8hf, v4hf variants).
6515 (vfms): New (v8hf, v4hf variants).
6516 (vsub): New (v8hf, v4hf variants).
6517 (vcage): New (v8hf, v4hf variants).
6518 (vcagt): New (v8hf, v4hf variants).
6519 (vcale): New (v8hf, v4hf variants).
6520 (vcalt): New (v8hf, v4hf variants).
6521 (vceq): New (v8hf, v4hf variants).
6522 (vcgt): New (v8hf, v4hf variants).
6523 (vcge): New (v8hf, v4hf variants).
6524 (vcle): New (v8hf, v4hf variants).
6525 (vclt): New (v8hf, v4hf variants).
6526 (vceqz): New (v8hf, v4hf variants).
6527 (vcgez): New (v8hf, v4hf variants).
6528 (vcgtz): New (v8hf, v4hf variants).
6529 (vcltz): New (v8hf, v4hf variants).
6530 (vclez): New (v8hf, v4hf variants).
6531 (vabd): New (v8hf, v4hf variants).
6532 (vmaxf): New (v8hf, v4hf variants).
6533 (vmaxnm): New (v8hf, v4hf variants).
6534 (vminf): New (v8hf, v4hf variants).
6535 (vminnm): New (v8hf, v4hf variants).
6536 (vpmaxf): New (v4hf variant).
6537 (vpminf): New (v4hf variant).
6538 (vpadd): New (v4hf variant).
6539 (vrecps): New (v8hf, v4hf variants).
6540 (vrsqrts): New (v8hf, v4hf variants).
6541 (vabs): New (v8hf, v4hf variants).
6542 (vneg): New (v8hf, v4hf variants).
6543 (vrecpe): New (v8hf, v4hf variants).
6544 (vrnd): New (v8hf, v4hf variants).
6545 (vrnda): New (v8hf, v4hf variants).
6546 (vrndm): New (v8hf, v4hf variants).
6547 (vrndn): New (v8hf, v4hf variants).
6548 (vrndp): New (v8hf, v4hf variants).
6549 (vrndx): New (v8hf, v4hf variants).
6550 (vrsqrte): New (v8hf, v4hf variants).
6551 (vmul_lane): Add v4hf and v8hf variants.
6552 (vmul_n): Add v4hf and v8hf variants.
6553 (vext): New (v8hf, v4hf variants).
6554 (vcvts): New (v8hi, v4hi variants).
6555 (vcvts): New (v8hf, v4hf variants).
6556 (vcvtu): New (v8hi, v4hi variants).
6557 (vcvtu): New (v8hf, v4hf variants).
6558 (vcvts_n): New (v8hf, v4hf variants).
6559 (vcvtu_n): New (v8hi, v4hi variants).
6560 (vcvts_n): New (v8hi, v4hi variants).
6561 (vcvtu_n): New (v8hf, v4hf variants).
6562 (vbsl): New (v8hf, v4hf variants).
6563 (vcvtas): New (v8hf, v4hf variants).
6564 (vcvtau): New (v8hf, v4hf variants).
6565 (vcvtms): New (v8hf, v4hf variants).
6566 (vcvtmu): New (v8hf, v4hf variants).
6567 (vcvtns): New (v8hf, v4hf variants).
6568 (vcvtnu): New (v8hf, v4hf variants).
6569 (vcvtps): New (v8hf, v4hf variants).
6570 (vcvtpu): New (v8hf, v4hf variants).
6572 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6574 * config/arm/arm-builtins.c (hf_UP): New.
6576 (vfp_builtin_data): New. Update comment.
6577 (enum arm_builtins): Include "arm_vfp_builtins.def".
6578 (ARM_BUILTIN_VFP_PATTERN_START): New.
6579 (arm_init_vfp_builtins): New.
6580 (arm_init_builtins): Add arm_init_vfp_builtins.
6581 (arm_expand_vfp_builtin): New.
6582 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
6584 * config/arm/arm_vfp_builtins.def: New file.
6585 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
6586 (arm-builtins.o): Likewise.
6588 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
6591 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
6592 from constant while creating value range.
6594 2016-09-23 Renlin Li <renlin.li@arm.com>
6596 * ira.c (ira): Move ira_use_lra_p initialization code to ...
6597 (ira_init_once): Here.
6599 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
6600 Jakub Jelinek <jakub@redhat.com>
6602 * hooks.h (hook_uint_uintp_false): Rename to...
6603 (hook_bool_uint_uintp_false): ... this.
6604 * hooks.c (hook_uint_uintp_false): Rename to...
6605 (hook_bool_uint_uintp_false): ... this.
6606 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
6607 instead of hook_uint_uintp_false.
6609 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6611 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
6612 (arm_init_builtins): Move body of a loop to the standalone
6613 function arm_init_neon_builtin.
6614 (arm_expand_neon_builtin_1): New. Update comment. Function body
6615 moved from arm_neon_builtin with some white-space fixes.
6616 (arm_expand_neon_builtin): Move code into the standalone function
6617 arm_expand_neon_builtin_1.
6619 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6621 * config/arm/iterators.md (VCVTHI): New.
6622 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
6626 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
6627 (V_HALF): Add V4HF. Fix white-space.
6628 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
6629 (V_s_elem): Likewise.
6630 (V_sz_elem): Fix white-space.
6631 (V_elem_ch): Likewise.
6633 (scalar_mul_constraint): Add V8HF and V4HF.
6634 (Is_float_mode): Fix white-space.
6635 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
6636 (q): Add HF. Fix white-space.
6639 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
6640 (neon_vfm_lane_as): New.
6641 * config/arm/neon.md (add<mode>3_fp16): New.
6642 (sub<mode>3_fp16): New.
6643 (mul<mode>3add<mode>_neon): New.
6644 (fma<VH:mode>4_intrinsic): New.
6645 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
6646 (fmsub<VH:mode>4_intrinsic): New.
6647 (<absneg_str><mode>2): New.
6648 (neon_v<absneg_str><mode>): New.
6649 (neon_v<fp16_rnd_str><mode>): New.
6650 (neon_vrsqrte<mode>): New.
6651 (neon_vpaddv4hf): New.
6652 (neon_vadd<mode>): New.
6653 (neon_vsub<mode>): New.
6654 (neon_vmulf<mode>): New.
6655 (neon_vfma<VH:mode>): New.
6656 (neon_vfms<VH:mode>): New.
6657 (neon_vc<cmp_op><mode>): New.
6658 (neon_vc<cmp_op><mode>_fp16insn): New
6659 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
6660 (neon_vca<cmp_op><mode>): New.
6661 (neon_vca<cmp_op><mode>_fp16insn): New.
6662 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
6663 (neon_vc<cmp_op>z<mode>): New.
6664 (neon_vabd<mode>): New.
6665 (neon_v<maxmin>f<mode>): New.
6666 (neon_vp<maxmin>fv4hf: New.
6667 (neon_<fmaxmin_op><mode>): New.
6668 (neon_vrecps<mode>): New.
6669 (neon_vrsqrts<mode>): New.
6670 (neon_vrecpe<mode>): New (VH variant).
6671 (neon_vdup_lane<mode>_internal): New.
6672 (neon_vdup_lane<mode>): New.
6673 (neon_vcvt<sup><mode>): New (VCVTHI variant).
6674 (neon_vcvt<sup><mode>): New (VH variant).
6675 (neon_vcvt<sup>_n<mode>): New (VH variant).
6676 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
6677 (neon_vcvt<vcvth_op><sup><mode>): New.
6678 (neon_vmul_lane<mode>): New.
6679 (neon_vmul_n<mode>): New.
6680 * config/arm/unspecs.md (UNSPEC_VCALE): New
6681 (UNSPEC_VCALT): New.
6682 (UNSPEC_VFMA_LANE): New.
6683 (UNSPECS_VFMS_LANE): New.
6685 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
6687 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
6688 ("*extzv<mode><clobbercc_or_nocc>"):
6689 Correct a typo in a comment.
6691 ("*insv<mode>_zEC12", "*insv<mode>_z10")
6692 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
6693 ("*insv<mode>_zEC12_appendbitsleft")
6694 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
6695 ("*insv<mode>_z10_appendbitsleft"): Ditto.
6696 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
6697 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
6698 Provide pattern with operands switched.
6699 ("*pre_z10_extv<mode>"):
6700 Use new subst patterns.
6701 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
6702 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
6703 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
6704 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
6705 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
6706 ("*<risbg_n>_sidi_ior_and_lshiftrt")
6707 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
6709 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
6710 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
6711 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
6713 ("SINT"): New mode_iterator with SI, HI, QI.
6714 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
6715 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
6718 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
6720 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
6721 new interface of s390_contiguous_bitmask_p.
6722 ("contiguous_bitmask_nowrap_operand"): New predicate.
6723 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
6724 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
6725 of s390_contiguous_bitmask_p.
6726 ("NxxDw"): Rename NxxDq constraint to NxxDw.
6727 ("NxxSw"): New constraint.
6728 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
6729 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
6731 (s390_contiguous_bitmask_nowrap_p): Export.
6732 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
6733 former s390_contiguous_bitmask_p.
6734 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
6735 detect contiguous bit ranges with wraparound. Change signature to
6736 return START and END position instead of POS and LENGTH.
6737 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
6738 ranges with wraparound.
6739 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
6740 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
6741 Adapt to new signature of s390_contiguous_bitmask_p.
6743 2016-09-23 Bin Cheng <bin.cheng@arm.com>
6745 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
6746 (create_intersect_range_checks): New.
6747 (vect_create_cond_for_alias_checks): Call above function.
6749 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6751 * config/arm/iterators.md (Code iterators): Fix some white-space
6755 (FCVT): Moved from vfp.md.
6756 (VCVT_HF_US_N): New.
6757 (VCVT_SI_US_N): New.
6762 (FCVTI32typename): Moved from vfp.md.
6763 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
6764 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
6765 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
6766 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
6767 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
6769 (fp16_rnd_str): New.
6770 (fp16_rnd_insn): New.
6771 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
6772 (UNSPEC_VCVT_HF_U_N): New.
6773 (UNSPEC_VCVT_SI_S_N): New.
6774 (UNSPEC_VCVT_SI_U_N): New.
6775 (UNSPEC_VCVTH_S): New.
6776 (UNSPEC_VCVTH_U): New.
6777 (UNSPEC_VCVTA_S): New.
6778 (UNSPEC_VCVTA_U): New.
6779 (UNSPEC_VCVTM_S): New.
6780 (UNSPEC_VCVTM_U): New.
6781 (UNSPEC_VCVTN_S): New.
6782 (UNSPEC_VCVTN_U): New.
6783 (UNSPEC_VCVTP_S): New.
6784 (UNSPEC_VCVTP_U): New.
6785 (UNSPEC_VCVTP_S): New.
6786 (UNSPEC_VCVTP_U): New.
6788 (UNSPEC_VRNDA): New.
6789 (UNSPEC_VRNDI): New.
6790 (UNSPEC_VRNDM): New.
6791 (UNSPEC_VRNDN): New.
6792 (UNSPEC_VRNDP): New.
6793 (UNSPEC_VRNDX): New.
6794 * config/arm/vfp.md (<absneg_str>hf2): New.
6796 (neon_v<fp16_rnd_str>hf): New.
6797 (neon_vrndihf): New.
6802 (*mulsf3neghf_vfp): New.
6803 (*negmulhf3_vfp): New.
6804 (*mulsf3addhf_vfp): New.
6805 (*mulhf3subhf_vfp): New.
6806 (*mulhf3neghfaddhf_vfp): New.
6807 (*mulhf3neghfsubhf_vfp): New.
6810 (fmsubhf4_fp16): New.
6814 (neon_vsqrthf): New.
6815 (neon_vrsqrtshf): New.
6816 (FCVT): Move to iterators.md.
6817 (FCVTI32typename): Likewise.
6818 (neon_vcvth<sup>hf): New.
6819 (neon_vcvth<sup>si): New.
6820 (neon_vcvth<sup>_nhf_unspec): New.
6821 (neon_vcvth<sup>_nhf): New.
6822 (neon_vcvth<sup>_nsi_unspec): New.
6823 (neon_vcvth<sup>_nsi): New.
6824 (neon_vcvt<vcvth_op>h<sup>si): New.
6825 (neon_<fmaxmin_op>hf): New.
6827 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
6829 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
6830 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
6831 ("*insv<mode>_zEC12_appendbitsleft")
6832 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
6833 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
6835 2016-09-23 Jakub Jelinek <jakub@redhat.com>
6837 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
6838 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
6839 construct values without normalization.
6840 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
6841 static local lhs_ops to vNULL.
6843 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6844 Jiong Wang <jiong.wang@arm.com>
6846 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
6847 available when FP16 instructions are available.
6848 (output_move_vfp): Add support for 16-bit data moves.
6849 (arm_validize_comparison): Fix some white-space. Support HFmode
6850 by conversion to SFmode.
6851 * config/arm/arm.md (truncdfhf2): Fix a comment.
6852 (extendhfdf2): Likewise.
6854 (movsicc): Fix some white-space.
6856 (movsfcc): Fix some white-space.
6858 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
6859 instructions are available.
6860 (*thumb2_movhi_vfp): Likewise.
6861 (*arm_movhi_fp16): New.
6862 (*thumb2_movhi_fp16): New.
6863 (*movhf_vfp_fp16): New.
6864 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
6865 (*movhf_vfp): Likewise.
6866 (extendhfsf2): Enable when VFP FP16 instructions are available.
6867 (truncsfhf2): Enable when VFP FP16 instructions are available.
6869 2016-09-23 Martin Liska <mliska@suse.cz>
6871 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
6873 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6875 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
6877 (arm_evpc_neon_vtrn): Likewise.
6878 (arm_evpc_neon_vrev): Likewise.
6879 (arm_evpc_neon_vext): Likewise.
6880 * config/arm/arm_neon.h (vbsl_f16): New.
6884 (vdup_lane_f16): New.
6885 (vdupq_lane_f16): New.
6898 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
6899 (vdup_lane): New (v8hf, v4hf variants).
6900 (vext): New (v8hf, v4hf variants).
6901 (vbsl): New (v8hf, v4hf variants).
6902 * config/arm/iterators.md (VDQWH): New.
6904 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
6905 (Scalar_mul_8_16): Fix white-space.
6906 (Is_d_reg): Add V4HF and V8HF.
6907 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
6908 (neon_vdup_lane<mode>): New.
6909 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
6910 (*neon_vtrn<mode>_insn): Likewise.
6911 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
6912 (*neon_vzip<mode>_insn): Likewise
6913 (neon_vuzp<mode>_internal): Likewise.
6914 (*neon_vuzp<mode>_insn): Likewise
6915 * config/arm/vec-common.md (vec_perm_const<mode>): New.
6917 2016-09-23 Jiong Wang <jiong.wang@arm.com>
6918 Matthew Wahab <matthew.wahab@arm.com>
6920 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
6921 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
6922 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
6923 available. Also fix some white-space.
6924 * config/arm/vfp.md (*arm_movhi_vfp): New.
6925 (*thumb2_movhi_vfp): New.
6927 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6929 * config/arm/arm-c.c (arm_cpu_builtins): Define
6930 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
6931 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
6933 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6935 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
6936 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
6937 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
6938 arm_v8_2a_fp16_neon_hw.
6939 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
6942 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6944 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
6945 arm_fp16_alternative_ok and arm_fp16_none_ok.
6947 2016-09-23 Martin Liska <mliska@suse.cz>
6949 * ipa-icf.c (sem_variable::merge): Replace adress with address.
6951 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
6953 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
6955 ("armv8.2-a+fp16"): New.
6956 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
6957 (FL2_FP16INST): New.
6958 (FL2_FOR_ARCH8_2A): New.
6959 * config/arm/arm-tables.opt: Regenerate.
6960 * config/arm/arm.c (arm_arch8_2): New.
6961 (arm_fp16_inst): New.
6962 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
6963 for incompatible fp16-format settings.
6964 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
6965 (TARGET_NEON_FP16INST): New.
6966 (arm_arch8_2): Declare.
6967 (arm_fp16_inst): Declare.
6968 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
6969 march=armv8.2-a and march=armv8.2-a+fp16.
6970 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
6972 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
6973 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
6975 2016-09-23 Martin Liska <mliska@suse.cz>
6977 * doc/extend.texi: Remove fused-madd from i386 target options.
6979 2016-09-23 Martin Liska <mliska@suse.cz>
6981 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
6984 2016-09-23 Martin Liska <mliska@suse.cz>
6986 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
6989 2016-09-23 Martin Liska <mliska@suse.cz>
6992 * config/i386/i386.c (ix86_option_override_internal): Change
6993 signature and return false when there's an error related to
6995 (release_options_strings): New function.
6996 (ix86_valid_target_attribute_tree): Call the function.
6998 2016-09-23 Jakub Jelinek <jakub@redhat.com>
7000 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
7001 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
7002 (gen_hsa_ctor_assignment): Likewise.
7003 * print-tree.c (print_node): Likewise.
7004 * tree-dump.c (dequeue_and_dump): Likewise.
7005 * tree-sra.c (sra_modify_constructor_assign): Likewise.
7006 * expr.c (store_constructor): Likewise.
7007 * fold-const.c (operand_equal_p): Likewise.
7008 * tree-pretty-print.c (dump_generic_node): Likewise.
7009 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
7010 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
7012 2016-09-23 Richard Biener <rguenther@suse.de>
7014 * hooks.h (hook_uint_uintp_false): Declare.
7016 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7018 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
7019 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
7021 2016-09-22 Martin Sebor <msebor@redhat.com>
7024 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
7025 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
7026 (target_int_min): Correct computation.
7027 (format_integer): Use long long as the argument for the ll length
7029 (format_floating): Use target_int_max().
7030 (get_string_length): Same.
7031 (format_string): Avoid setting the bounded flag for strings
7033 (try_substitute_return_value): Avoid setting range info when
7034 the result isn't bounded.
7035 * varasm.c (assemble_name): Increase buffer size.
7037 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
7038 Terry Guo <terry.guo@arm.com>
7040 * target.def (elf_flags_numeric): New target hook.
7041 * targhooks.h (default_asm_elf_flags_numeric): New.
7042 * varasm.c (default_asm_elf_flags_numeric): New.
7043 (default_elf_asm_named_section): Use new target hook.
7044 * config/arm/arm.opt (mpure-code): New.
7045 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
7046 * config/arm/arm.c (arm_asm_init_sections): Add section
7047 attribute to default text section if -mpure-code.
7048 (arm_option_check_internal): Diagnose use of option with
7049 non supported targets and/or options.
7050 (arm_asm_elf_flags_numeric): New.
7051 (arm_function_section): New.
7052 (arm_elf_section_type_flags): New.
7053 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
7055 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
7056 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
7058 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
7060 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
7062 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7064 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
7065 * rtl.h: Adjust prototype.
7067 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7069 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
7070 (prev_active_insn): Likewise.
7071 (active_insn_p): Likewise.
7072 * rtl.h: Adjust prototypes.
7073 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7074 * config/arc/arc.md: Likewise.
7075 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
7076 (branch_needs_nop_p): Likewise.
7077 (use_skip_p): Likewise.
7078 * config/sh/sh.c (gen_block_redirect): Likewise.
7079 (split_branches): Likewise.
7080 * reorg.c (optimize_skip): Likewise.
7081 (fill_simple_delay_slots): Likewise.
7082 (fill_slots_from_thread): Likewise.
7083 (relax_delay_slots): Likewise.
7084 * resource.c (mark_target_live_regs): Likewise.
7086 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7088 * config/cris/cris.c (cris_asm_output_case_end): Change argument
7090 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
7091 (prev_nonnote_nondebug_insn): Likewise.
7092 * config/cris/cris-protos.h: Adjust prototype.
7094 * jump.c (rtx_renumbered_equal_p): Adjust.
7096 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7098 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
7099 * rtl.h: Adjust prototype.
7100 * config/sh/sh.md: Adjust.
7101 * dwarf2out.c (add_var_loc_to_decl): Likewise.
7103 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7105 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
7106 (prev_nondebug_insn): Likewise.
7107 * loop-doloop.c (doloop_condition_get): Likewise.
7108 * rtl.h: Adjust prototype.
7109 * cfgloop.h: Likewise.
7111 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7113 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
7114 (prev_nonnote_insn): Likewise.
7115 * jump.c (reversed_comparison_code_parts): Likewise.
7116 (reversed_comparison): Likewise.
7117 * rtl.h: Adjust prototypes.
7118 * config/arc/arc.md: Adjust.
7119 * cse.c (find_comparison_args): Likewise.
7120 * reorg.c (redundant_insn): Change return type to rtx_insn *.
7121 (fix_reg_dead_note): Change argument type to rtx_insn *.
7122 (delete_prior_computation): Likewise.
7123 (delete_computation): Likewise.
7124 (fill_slots_from_thread): Adjust.
7125 (relax_delay_slots): Likewise.
7126 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
7127 (simplify_relational_operation_1): Likewise.
7128 (simplify_ternary_operation): Likewise.
7130 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7132 * config/arc/arc-protos.h (arc_label_align): Change type of
7133 variables from rtx to rtx_insn *.
7134 * config/arc/arc.c (arc_label_align): Likewise.
7135 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
7136 * config/bfin/bfin.c (workaround_speculation): Likewise.
7137 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
7138 (find_last_same_clock): Likewise.
7139 (reorg_split_calls): Likewise.
7140 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
7141 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
7142 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
7143 (same_cmp_following_p): Likewise.
7144 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
7145 (same_cmp_following_p): Likwise.
7146 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
7147 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
7148 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
7149 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
7150 (rl78_alloc_physical_registers_cmp): Likewise.
7151 (rl78_alloc_physical_registers_umul): Likewise.
7152 (rl78_calculate_death_notes): Likewise.
7153 * config/s390/s390-protos.h (s390_label_align): Likewise.
7154 * config/s390/s390.c (s390_label_align): Likewise.
7155 * config/sh/sh.c (barrier_align): Likewise.
7156 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
7157 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
7158 (emit_cbcond_nop): Likewise.
7160 2016-09-22 Martin Liska <mliska@suse.cz>
7163 * ipa-icf.c (sem_variable::merge): Yield merge operation if
7164 alias address matters, not necessarily address of original.
7166 2016-09-22 Richard Biener <rguenther@suse.de>
7169 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
7172 2016-09-22 Richard Biener <rguenther@suse.de>
7175 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
7176 from constant folding results.
7177 (gimple_resimplify2): Likewise.
7178 (gimple_resimplify3): Likewise.
7180 2016-09-22 Richard Biener <rguenther@suse.de>
7183 * expr.c (expand_expr_real_1): Guard array access against negative
7186 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7188 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
7190 (format_floating): Likewise.
7192 2016-09-22 Jakub Jelinek <jakub@redhat.com>
7195 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
7196 for all IFN_GOMP_SIMD_* internal fns, not just for
7197 IFN_GOMP_SIMD_ORDERED_*.
7199 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
7202 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
7203 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
7204 instructions when you want to invert the test.
7205 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
7206 correct order for XXSEL.
7207 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
7208 for using XSCMP{EQ,GT,GE}DP.
7210 2016-09-21 David Malcolm <dmalcolm@redhat.com>
7212 * genconstants.c (main): Introduce noop_reader and convert call
7213 to read_md_files to a method call.
7214 * genenums.c (main): Likewise.
7215 * genmddeps.c (main): Likewise.
7216 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
7217 rtx_reader_ptr->get_top_level_filename ().
7218 (write_tm_preds_h): Likewise.
7219 (write_insn_preds_c): Likewise.
7220 * gensupport.c (class gen_reader): New subclass of rtx_reader.
7221 (rtx_handle_directive): Convert to...
7222 (gen_reader::handle_unknown_directive): ...this.
7223 (init_rtx_reader_args_cb): Convert return type from bool to
7224 rtx_reader *. Create a gen_reader instance, using it for the
7225 call to read_md_files. Return it if no errors occur.
7226 (init_rtx_reader_args): Convert return type from bool to
7228 * gensupport.h (init_rtx_reader_args_cb): Likewise.
7229 (init_rtx_reader_args_cb): Likewise.
7230 * read-md.c (struct file_name_list): Move to class rtx_reader.
7231 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
7232 (read_md_filename): Delete in favor of
7233 rtx_reader::m_read_md_filename.
7234 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
7235 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
7236 (base_dir): Delete in favor of rtx_reader::m_base_dir.
7237 (first_dir_md_include): Delete in favor of
7238 rtx_reader::m_first_dir_md_include.
7239 (last_dir_md_include_ptr): Delete in favor of
7240 rtx_reader::m_last_dir_md_include_ptr.
7241 (max_include_len): Delete.
7242 (rtx_reader_ptr): New.
7243 (fatal_with_file_and_line): Use get_filename and get_lineno
7244 accessors of rtx_reader_ptr.
7245 (require_char_ws): Likewise.
7246 (rtx_reader::read_char): New method, based on ::read_char.
7247 (rtx_reader::unread_char): New method, based on ::unread_char.
7248 (read_escape): Use get_filename and get_lineno accessors of
7250 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
7251 (read_string): Use get_filename and get_lineno accessors of
7253 (rtx_reader::rtx_reader): New ctor.
7254 (rtx_reader::~rtx_reader): New dtor.
7255 (handle_include): Convert from a function to...
7256 (rtx_reader::handle_include): ...this method, converting
7257 handle_directive from a callback to a virtual function.
7258 (handle_file): Likewise, converting to...
7259 (rtx_reader::handle_file): ...this method.
7260 (handle_toplevel_file): Likewise, converting to...
7261 (rtx_reader::handle_toplevel_file): ...this method.
7262 (rtx_reader::get_current_location): New method.
7263 (parse_include): Convert from a function to...
7264 (rtx_reader::add_include_path): ...this method, dropping redundant
7265 update to unused max_include_len.
7266 (read_md_files): Convert from a function to...
7267 (rtx_reader::read_md_files): ...this method, converting
7268 handle_directive from a callback to a virtual function.
7269 (noop_reader::handle_unknown_directive): New method.
7270 * read-md.h (directive_handler_t): Delete this typedef.
7272 (read_md_file): Delete.
7273 (read_md_lineno): Delete.
7274 (read_md_filename): Delete.
7275 (class rtx_reader): New class.
7276 (rtx_reader_ptr): New decl.
7277 (class noop_reader): New subclass of rtx_reader.
7278 (read_char): Reimplement in terms of rtx_reader::read_char.
7279 (unread_char): Reimplement in terms of rtx_reader::unread_char.
7280 (read_md_files): Delete.
7281 * read-rtl.c (read_rtx_code): Update for deletion of globals
7282 read_md_filename and read_md_lineno.
7284 2016-09-21 Jason Merrill <jason@redhat.com>
7286 * input.h (from_macro_definition_at): New.
7288 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
7290 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
7292 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7294 PR tree-optimization/77550
7295 * tree-vect-stmts.c (create_array_ref): Change parameters.
7296 (get_group_alias_ptr_type): New function.
7297 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
7299 2016-09-21 Marek Polacek <polacek@redhat.com>
7301 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
7302 Add falls through comment.
7304 2016-09-21 Richard Biener <rguenther@suse.de>
7306 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
7307 (replace_child): Likewise.
7308 (remove_child_TAG): Adjust.
7309 (move_marked_base_types): Likewise.
7310 (prune_unused_types_prune): Clear die_sib of removed children.
7312 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
7315 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
7316 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
7318 2016-09-21 Richard Biener <rguenther@suse.de>
7320 PR tree-optimization/77648
7321 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
7323 (make_transitive_closure_constraints): Adjust comment.
7324 (make_any_offset_constraints): New function.
7325 (handle_rhs_call): Make sure to first expand a pointer to all
7326 subfields before transitively closing it.
7327 (handle_const_call): Likewise. Properly expand returned
7329 (handle_pure_call): Likewise.
7331 2016-09-21 Richard Biener <rguenther@suse.de>
7332 Jakub Jelinek <jakub@redhat.com>
7334 PR tree-optimization/77621
7335 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
7336 group at non-vectorizable stmts.
7338 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7340 PR tree-optimization/72835
7341 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
7342 (make_new_ssa_for_all_defs): Likewise.
7343 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
7345 2016-09-20 Martin Sebor <msebor@redhat.com>
7348 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
7349 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
7350 * config/linux.c (gnu_libc_printf_pointer_format): New function.
7351 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
7352 * config/sol2.c (solaris_printf_pointer_format): New function.
7353 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
7355 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
7356 * doc/tm.texi: Regenerate.
7357 * gimple-fold.h (get_range_strlen): New function.
7358 (get_maxval_strlen): Declare existing function.
7359 * gimple-fold.c (get_range_strlen): Add arguments and compute both
7360 maximum and minimum.
7361 (get_range_strlen): Define overload.
7362 (get_maxval_strlen): Adjust.
7363 * gimple-ssa-sprintf.c: New file and pass.
7364 * passes.def (pass_sprintf_length): Add new pass.
7365 * targhooks.h (default_printf_pointer_format): Declare new function.
7366 (gnu_libc_printf_pointer_format): Same.
7367 (solaris_libc_printf_pointer_format): Same.
7368 * targhooks.c (default_printf_pointer_format): Define new function.
7369 * tree-pass.h (make_pass_sprintf_length): Declare new function.
7370 * print-tree.c: Increase buffer size.
7372 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7374 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
7376 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7378 * common.opt: New option -fipa-vrp.
7379 * ipa-cp.c (ipa_get_vr_lat): New.
7380 (ipcp_vr_lattice::print): Likewise.
7381 (print_all_lattices): Call ipcp_vr_lattice::print.
7382 (ipcp_vr_lattice::meet_with): New.
7383 (ipcp_vr_lattice::meet_with_1): Likewise.
7384 (ipcp_vr_lattice::top_p): Likewise.
7385 (ipcp_vr_lattice::bottom_p): Likewsie.
7386 (ipcp_vr_lattice::set_to_bottom): Likewise.
7387 (set_all_contains_variable): Call VR set_to_bottom.
7388 (initialize_node_lattices): Init VR lattices.
7389 (propagate_vr_accross_jump_function): New.
7390 (propagate_constants_accross_call): Call
7391 propagate_vr_accross_jump_function.
7392 (ipcp_store_vr_results): New.
7393 (ipcp_driver): Handle VR.
7394 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
7395 (ipa_set_jf_unknown): Likewise.
7396 (ipa_compute_jump_functions_for_edge): Likewise.
7397 (ipa_node_params_t::duplicate): Likewise.
7398 (ipa_write_jump_function): Likewise.
7399 (ipa_read_jump_function): Likewise.
7400 (write_ipcp_transformation_info): Likewise.
7401 (read_ipcp_transformation_info): Likewise.
7402 (ipcp_update_vr): New.
7403 (ipcp_transform_function): Handle VR.
7404 * ipa-prop.h (struct ipa_vr): New.
7405 * cgraph.c: Include tree-vrp.h.
7406 * cgraphunit.c: Likewise.
7407 * ipa-utils.c: Likewise.
7410 * toplev.c: Likewise.
7411 * ipa-devirt.c: Likewise.
7412 * ipa-inline-transform.c: Likewise.
7413 * ipa-inline.c: Likewise.
7414 * ipa-profile.c: Likewise.
7416 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7418 * doc/invoke.texi: Document -fdump-tree-evrp.
7419 * passes.def: Define new pass_early_vrp.
7420 * timevar.def: Define new TV_TREE_EARLY_VRP.
7421 * tree-pass.h (make_pass_early_vrp): New.
7422 * tree-ssa-propagate.c: Make replace_uses_in non static.
7423 * tree-ssa-propagate.h: Export replace_uses_in.
7424 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
7425 (extract_range_from_assert): Factor out
7426 extract_range_for_var_from_comparison_expr.
7427 (vrp_initialize_lattice): New.
7428 (vrp_initialize): Factor out vrp_initialize_lattice.
7429 (vrp_valueize): Fix it to reject complex value ranges.
7430 (vrp_free_lattice): New.
7431 (evrp_dom_walker::before_dom_children): Likewise.
7432 (evrp_dom_walker::after_dom_children): Likewise.
7433 (evrp_dom_walker::push_value_range): Likewise.
7434 (evrp_dom_walker::pop_value_range): Likewise.
7435 (execute_early_vrp): Likewise.
7436 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
7437 (make_pass_early_vrp): New.
7439 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
7441 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
7442 instead of exact_log2.
7444 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
7447 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
7448 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
7449 (ix86_add_stmt_cost): Penalize DFmode vector operations
7450 for !TARGET_VECTORIZE_DOUBLE.
7452 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
7454 * doc/invoke.texi (Warning Options): Simplify language.
7455 (Optimize Options): Complete sentence.
7457 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
7459 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
7462 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7465 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
7466 inits on power8 and above, use the VMRGEW instruction instead of a
7469 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
7470 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
7473 2016-09-20 Tamar Christina <tamar.christina@arm.com>
7475 * config/aarch64/arm_neon.h
7476 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
7477 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
7478 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
7480 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7482 * config/var/vax.h (ELIMINABLE_REGS): Define.
7483 (INITIAL_ELIMINATION_OFFSET): Define.
7485 2016-09-20 Jakub Jelinek <jakub@redhat.com>
7488 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
7489 cast to void * if the cast is from some other pointer type.
7491 2016-09-20 Richard Biener <rguenther@suse.de>
7493 PR tree-optimization/77646
7494 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
7497 2016-09-20 Tamar Christina <tamar.christina@arm.com>
7499 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
7500 attributes to all inlined functions and make them extern.
7502 2016-09-20 Richard Biener <rguenther@suse.de>
7504 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
7506 * debug.c (do_nothing_debug_hooks): Adjust.
7507 * dbxout.c (dbx_debug_hooks): Likewise.
7508 * sdbout.c (sdb_debug_hooks): Likewise.
7509 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
7510 (dwarf2out_finish): Move producer, filename and
7512 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
7513 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
7515 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7518 * doc/invoke.texi: Document -Wint-in-bool-context.
7521 * dwarf2out.c (output_loc_operands): Fix an assertion.
7523 2016-09-19 Joseph Myers <joseph@codesourcery.com>
7525 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
7526 (CR_DECIMAL_DIG): New macro.
7528 2016-09-19 Joseph Myers <joseph@codesourcery.com>
7530 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
7533 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
7535 PR rtl-optimization/77416
7536 * lra-remat.c (operand_to_remat): Process hard coded insn
7539 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7541 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
7542 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
7544 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
7546 * target.def (lra_p): Wordsmithing.
7547 * doc/tm.texi: Regenerate.
7549 2016-09-19 Jakub Jelinek <jakub@redhat.com>
7550 Jan Hubicka <jh@suse.cz>
7553 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
7554 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
7555 Call ultimate_alias_target just once, not up to 4 times.
7557 2016-09-19 Richard Biener <rguenther@suse.de>
7559 * dwarf2out.c (early_dwarf_finished): New global.
7560 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
7562 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
7563 if called from LTO exit early.
7564 (dwarf2out_late_global_decl): When being during the early
7565 debug phase do not add locations but only const value attributes.
7566 Adjust the way we generate early DIEs for LTO.
7568 2016-09-19 Richard Biener <rguenther@suse.de>
7571 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
7572 proper niter to bound the loops.
7574 2016-09-19 Richard Biener <rguenther@suse.de>
7576 PR tree-optimization/77514
7577 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
7578 search for folded stmt.
7580 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
7582 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
7583 * tree-pass.h (make_pass_early_thread_jumps): Declare.
7584 * tree-ssa-threadbackward.c (fsm_find_thread_path,
7585 fsm_find_thread_path, profitable_jump_thread_path,
7586 fsm_find_control_statement_thread_paths,
7587 find_jump_threads_backwards): Add speed_p parameter.
7588 (pass_data_early_thread_jumps): New pass.
7589 (make_pass_early_thread_jumps): New function.
7591 2016-09-17 Andreas Schwab <schwab@suse.de>
7593 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
7594 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
7596 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
7598 * recog.c (rest_of_handle_split_after_reload): Delete.
7599 (pass_split_after_reload::gate): New method.
7600 (pass_split_after_reload::execute): Call split_all_insns directly.
7602 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
7604 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
7605 parameters for functions taking long long arguments.
7607 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7610 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
7611 splat with truncate.
7613 2016-09-16 Jason Merrill <jason@redhat.com>
7615 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
7617 * hwint.c (exact_log2): Use pow2p_hwi.
7618 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
7619 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
7620 * builtins.c (get_object_alignment_2, get_object_alignment)
7621 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
7623 * calls.c (compute_argument_addresses, store_one_arg): Use
7625 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
7626 * combine.c (force_to_mode): Use least_bit_hwi.
7627 (contains_muldiv, find_split_point, combine_simplify_rtx)
7628 (simplify_if_then_else, simplify_set, force_to_mode)
7629 (if_then_else_cond, simplify_and_const_int_1)
7630 (simplify_compare_const): Use pow2p_hwi.
7631 * cse.c (fold_rtx): Use pow2p_hwi.
7632 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
7634 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
7635 (init_expmed_one_conv): Use pow2p_hwi.
7636 * expr.c (is_aligning_offset): Use pow2p_hwi.
7637 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
7638 (fold_binary_loc): Use pow2p_hwi.
7639 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
7640 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
7641 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
7642 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
7644 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
7645 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
7646 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
7647 * omp-low.c (oacc_loop_fixed_partitions)
7648 (oacc_loop_auto_partitions): Use least_bit_hwi.
7649 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
7650 * stor-layout.c (place_field): Use least_bit_hwi.
7651 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
7652 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
7653 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
7654 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
7655 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
7656 * tree-vect-data-refs.c (vect_analyze_group_access_1)
7657 (vect_grouped_store_supported, vect_grouped_load_supported)
7658 (vect_permute_load_chain, vect_shift_permute_load_chain)
7659 (vect_transform_grouped_load): Use pow2p_hwi.
7660 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
7661 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
7662 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
7664 * tsan.c (instrument_expr): Use least_bit_hwi.
7665 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
7667 2016-09-16 Andreas Schwab <schwab@suse.de>
7669 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
7671 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
7673 2016-09-16 Jakub Jelinek <jakub@redhat.com>
7676 * combine.c (rest_of_handle_combine): If any edges have been purged,
7677 free dominators if available.
7679 2016-09-16 Jakub Jelinek <jakub@redhat.com>
7680 Eric Botcazou <ebotcazou@adacore.com>
7683 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
7684 through into expand_addsub_overflow after expand_neg_overflow.
7686 2016-09-15 David Malcolm <dmalcolm@redhat.com>
7688 * diagnostic-show-locus.c
7689 (selftest::test_fixit_insert_containing_newline): New function.
7690 (selftest::test_fixit_replace_containing_newline): New function.
7691 (selftest::diagnostic_show_locus_c_tests): Call the above.
7693 2016-09-15 Bin Cheng <bin.cheng@arm.com>
7695 PR tree-optimization/77503
7696 * tree-vect-loop.c (vectorizable_reduction): Record reduction
7697 code for CONST_COND_REDUCTION at analysis stage and use it at
7699 * tree-vectorizer.h (struct _stmt_vec_info): New field.
7700 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
7701 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
7704 2016-09-15 Richard Biener <rguenther@suse.de>
7707 * fold-const.c (split_tree): Do not split constant ~X.
7709 2016-09-15 Jakub Jelinek <jakub@redhat.com>
7711 PR rtl-optimization/77425
7712 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
7716 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
7717 use %qs instead of %s where desirable, use argument instead of arg in
7718 the diagnostic wording, add list of supported strategies and
7720 (ix86_option_override_internal): Emit target("m...") instead of
7721 option("m...") in the diagnostic. Use %qs instead of %s in invalid
7722 -march/-mtune option diagnostic. Add list of supported arches/tunings
7723 and spellcheck hint. Remove prefix, suffix and sw variables, use
7724 main_args_p ? "..." : "..." in diagnostics to make translation
7727 2016-09-15 Richard Biener <rguenther@suse.de>
7729 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
7730 extra offset argument.
7731 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
7732 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
7733 to reflect new offset parameter.
7734 * doc/tm.texi: Regenerate.
7735 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
7736 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
7738 (darwin_asm_output_dwarf_offset): Likewise.
7739 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
7741 (darwin_asm_output_dwarf_offset): Pass offset argument through.
7742 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
7743 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
7745 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
7748 * ipa-icf.c (set_alias_uids): New function.
7749 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
7750 all the merged variable's referring aliases.
7752 2016-09-15 Richard Biener <rguenther@suse.de>
7754 PR tree-optimization/77514
7755 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
7756 only forced_stmts sequence.
7758 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
7760 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
7761 * cfgexpand.c (update_alias_info_with_stack_vars): Use
7762 FOR_EACH_SSA_NAME to iterate over SSA variables.
7763 (pass_expand::execute): Likewise.
7764 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
7765 * tree-cfg.c (dump_function_to_file): Likewise.
7766 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
7767 (update_ssa): Likewise.
7768 * tree-ssa-alias.c (dump_alias_info): Likewise.
7769 * tree-ssa-ccp.c (ccp_finalize): Likewise.
7770 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
7771 (create_outofssa_var_map): Likewise.
7772 (coalesce_ssa_name): Likewise.
7773 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
7774 * tree-ssa-pre.c (compute_avail): Likewise.
7775 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
7776 (scc_vn_restore_ssa_info): Likewise.
7777 (free_scc_vn): Likwise.
7778 (run_scc_vn): Likewise.
7779 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
7780 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
7781 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7782 * tree-ssa.c (verify_ssa): Likewise.
7784 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
7786 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
7787 and mips64r2 as default 32-bit and 64-bit architectures.
7788 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
7789 as default 32-bit and 64-bit architectures.
7791 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
7793 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
7796 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7798 * target.def (lra_p): Change commentary (for the manual) for the
7800 * doc/tm.texi: Regenerate.
7802 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7804 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
7805 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
7806 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
7807 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
7809 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7811 * targhooks.c (default_lra_p): Return true instead of false.
7813 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7815 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
7816 hook_bool_void_false.
7817 * config/avr/avr.c: Ditto.
7818 * config/bfin/bfin.c: Ditto.
7819 * config/c6x/c6x.c: Ditto.
7820 * config/cr16/cr16.c: Ditto.
7821 * config/cris/cris.c: Ditto.
7822 * config/epiphany/epiphany.c: Ditto.
7823 * config/fr30/fr30.c: Ditto.
7824 * config/frv/frv.c: Ditto.
7825 * config/h8300/h8300.c: Ditto.
7826 * config/ia64/ia64.c: Ditto.
7827 * config/iq2000/iq2000.c: Ditto.
7828 * config/lm32/lm32.c: Ditto.
7829 * config/m32c/m32c.c: Ditto.
7830 * config/m32r/m32r.c: Ditto.
7831 * config/m68k/m68k.c: Ditto.
7832 * config/mcore/mcore.c: Ditto.
7833 * config/microblaze/microblaze.c: Ditto.
7834 * config/mmix/mmix.c: Ditto.
7835 * config/mn10300/mn10300.c: Ditto.
7836 * config/moxie/moxie.c: Ditto.
7837 * config/msp430/msp430.c: Ditto.
7838 * config/nios2/nios2.c: Ditto.
7839 * config/nvptx/nvptx.c: Ditto.
7840 * config/pa/pa.c: Ditto.
7841 * config/pdp11/pdp11.c: Ditto.
7842 * config/rl78/rl78.c: Ditto.
7843 * config/sparc/sparc.c: Ditto.
7844 * config/spu/spu.c: Ditto.
7845 * config/stormy16/stormy16.c: Ditto.
7846 * config/tilegx/tilegx.c: Ditto.
7847 * config/tilepro/tilepro.c: Ditto.
7848 * config/v850/v850.c: Ditto.
7849 * config/vax/vax.c: Ditto.
7850 * config/visium/visium.c: Ditto.
7851 * config/xtensa/xtensa.c: Ditto.
7853 2016-09-14 Jakub Jelinek <jakub@redhat.com>
7856 * tsan.c: Include target.h.
7857 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
7858 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
7859 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
7860 BUILT_IN_ATOMIC_TEST_AND_SET entries.
7861 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
7863 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7864 Martin Liska <mliska@suse.cz>
7867 * predict.c (force_edge_cold): Add braces to a condition.
7869 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
7871 PR rtl-optimization/77289
7872 * lra-constraints.c (get_final_hard_regno): Removed.
7873 (get_hard_regno): Add new parameter final_p.
7874 (get_reg_class): Directly call lra_get_elimination_hard_regno.
7875 (operands_match_p): Adjust call to get_hard_regno.
7876 (uses_hard_regs_p): Likewise.
7877 (process_alt_operands): Likewise.
7879 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
7882 * config/msp430/msp430.c (msp430_start_function): Emit an error
7883 if a function is both weak and specifies an interrupt number.
7885 2016-09-13 Jakub Jelinek <jakub@redhat.com>
7887 PR tree-optimization/77454
7888 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
7889 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
7892 2016-09-13 Tamar Christina <tamar.christina@arm.com>
7894 * config/aarch64/aarch64-builtins.c
7895 (aarch64_init_simd_builtins): Fix builtin type signature printing.
7897 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
7899 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
7900 SFmode and SCmode arguments by reference.
7902 2016-09-13 David Malcolm <dmalcolm@redhat.com>
7904 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
7906 (selftest::test_one_liner_fixit_insert_before): ...this, and update
7907 for renaming of add_fixit_insert to add_fixit_insert_before.
7908 (selftest::test_one_liner_fixit_insert_after): New function.
7909 (selftest::test_one_liner_fixit_validation_adhoc_locations):
7910 Update for renaming of add_fixit_insert to add_fixit_insert_before.
7911 (selftest::test_one_liner_many_fixits): Likewise.
7912 (selftest::test_diagnostic_show_locus_one_liner): Update for
7913 renaming, call new test function.
7914 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
7915 renaming of add_fixit_insert to add_fixit_insert_before.
7916 (selftest::test_fixit_consolidation): Likewise.
7917 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
7919 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
7920 (selftest::test_applying_fixits_insert_before): ...this.
7921 (selftest::test_applying_fixits_insert): Update for renaming of
7922 add_fixit_insert to add_fixit_insert_before.
7923 (selftest::test_applying_fixits_insert_after): New function.
7924 (selftest::test_applying_fixits_insert_after_at_line_end): New
7926 (selftest::test_applying_fixits_insert_after_failure): New function.
7927 (selftest::test_applying_fixits_multiple): Update for renaming of
7928 add_fixit_insert to add_fixit_insert_before.
7929 (selftest::change_line): Likewise.
7930 (selftest::test_applying_fixits_unreadable_file): Likewise.
7931 (selftest::test_applying_fixits_line_out_of_range): Likewise.
7932 (selftest::test_applying_fixits_column_validation): Likewise.
7933 (selftest::test_applying_fixits_column_validation): Likewise.
7934 (selftest::edit_context_c_tests): Update for renamed test function;
7935 call new test functions.
7937 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
7939 PR tree-optimization/77536
7940 PR rtl-optimization/68212
7941 * config/rs6000/rs6000.md (div->recip splitter): Remove
7942 optimize_insn_for_speed_p condition.
7944 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
7946 * optabs.c (prepare_cmp_insn): Update documentation comment.
7948 2016-09-13 Jakub Jelinek <jakub@redhat.com>
7949 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7952 * opts.h (candidates_list_and_hint): Declare.
7953 * opts-common.c (candidates_list_and_hint): New function.
7954 (cmdline_handle_error): Use it.
7956 2016-09-12 David Malcolm <dmalcolm@redhat.com>
7958 * edit-context.c (edited_line::get_len): New accessor.
7959 (edited_file::print_diff): Split out hunk-printing into...
7960 (edited_file::print_diff_hunk): New method.
7961 (edited_file::print_diff_line): New method.
7963 2016-09-12 Andrew Pinski <apinski@cavium.com>
7965 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
7967 * config/aarch64/aarch64.c (thunderx_tunings): Enable
7968 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
7969 (aarch64_operands_ok_for_ldpstp): Return false if
7970 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
7971 was SImode and the alignment is less than 8 byte.
7972 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
7974 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
7977 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
7979 2016-09-12 Marek Polacek <polacek@redhat.com>
7981 * doc/extend.texi: Use lowercase "boolean".
7982 * doc/invoke.texi: Likewise.
7983 * doc/md.texi: Likewise.
7984 * target.def: Likewise.
7985 * doc/tm.texi: Regenerated.
7987 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7990 * expmed.c (synth_mult): Delete duplicate mode check.
7992 2016-09-10 Tom de Vries <tom@codesourcery.com>
7995 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
7997 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
7998 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
8000 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
8002 PR rtl-optimization/77289
8003 * lra-constraints.c (get_final_hard_regno): Add support for non hard
8004 register numbers. Remove support for subregs.
8005 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
8006 (get_reg_class): Delete removed get_final_hard_regno() argument.
8007 (uses_hard_regs_p): Call get_final_hard_regno().
8009 2016-09-09 Martin Sebor <msebor@redhat.com>
8013 * pretty-print.c (pp_quoted_string): New function.
8014 (pp_format): Call it for %c and %s directives.
8016 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
8018 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
8019 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
8020 INITIAL_ELIMINATION_OFFSET) : Update documentation.
8021 * target.def (frame_pointer_required, can_eliminate): Likewise.
8022 * doc/tm.texi: Regenerated.
8023 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
8025 * df-scan.c (df_hard_reg_init): Likewise.
8026 * ira.c (ira_setup_eliminable_regset): Likewise.
8027 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
8028 init_elim_table): Likewise.
8029 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
8030 set_initial_elim_offsets, update_eliminables,
8031 init_elim_table): Likewise.
8032 * rtlanal.c (get_initial_register_offset): Likewise.
8033 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
8034 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
8035 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
8036 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
8037 * config/fr30/fr30.h: Fix comment.
8038 * config/frv/frv.c: Likewise.
8039 * config/frv/frv.h: Likewise.
8040 * config/ft32/ft32.h: Likewise.
8041 * config/visium/visium.h: Likewise.
8042 * config/pa/pa64-linux.h: Likewise.
8043 * config/v850/v850.h: Likewise.
8044 * config/cris/cris.c: Likewise.
8045 * config/ia64/ia64.h: Likewise.
8046 * config/moxie/moxie.h: Likewise.
8047 * config/m32r/m32r.h: Likewise.
8049 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
8052 * config.in: Regenerate.
8053 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
8055 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
8056 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
8057 static-libmpxwrappers case.
8058 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
8059 MPX_LD_AS_NEEDED_GUARD_POP.
8060 * configure: Regenerate.
8061 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
8062 defined if linker support "--push-state"/"--pop-state".
8064 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8066 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
8068 2016-09-09 Joseph Myers <joseph@codesourcery.com>
8070 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
8071 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
8072 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
8073 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
8074 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
8075 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
8076 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
8078 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
8079 width macros from TS 18661-1.
8080 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
8082 2016-09-08 Jakub Jelinek <jakub@redhat.com>
8085 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
8086 OMP_CLAUSE_SAFELEN_EXPR.
8088 2016-09-07 David Malcolm <dmalcolm@redhat.com>
8090 * Makefile.in (OBJS): Add substring-locations.o.
8091 * langhooks-def.h (class substring_loc): New forward decl.
8092 (lhd_get_substring_location): New decl.
8093 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
8094 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
8095 * langhooks.c (lhd_get_substring_location): New function.
8096 * langhooks.h (class substring_loc): New forward decl.
8097 (struct lang_hooks): Add field get_substring_location.
8098 * substring-locations.c: New file, taking definition of
8099 format_warning_va and format_warning_at_substring from
8100 c-family/c-format.c, making them non-static.
8101 * substring-locations.h (class substring_loc): Move class here
8102 from c-family/c-common.h. Add and rewrite comments.
8103 (format_warning_va): New decl.
8104 (format_warning_at_substring): New decl.
8105 (get_source_location_for_substring): Add comment.
8107 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
8109 * config/i386/i386.c: Add 'U' suffix to processor feature bits
8110 to avoid -Wnarrowing warning.
8111 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
8112 * opts.c: Likewise for SANITIZER_OPT bitmasks.
8114 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
8116 * config/aarch64/aarch64.c (aarch64_legitimize_address):
8117 Avoid use of base_offset if offset already in range.
8119 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
8121 * config/sh/sh-protos.h (struct sh_atomic_model,
8122 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
8123 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
8124 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
8125 * config/sh/sh.h (struct sh_atomic_model,
8126 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
8127 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
8128 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
8129 Guard with __cplusplus.
8131 2016-09-06 Jakub Jelinek <jakub@redhat.com>
8134 * config/i386/i386.c (ix86_expand_builtin): For builtin with
8135 unsupported or unknown ISA, use expand_call.
8137 2016-09-06 Martin Liska <mliska@suse.cz>
8139 PR gcov-profile/77378
8140 PR gcov-profile/77466
8141 * tree-profile.c (tree_profiling): Detect whether target can use
8142 -fprofile-update=atomic.
8144 2016-09-06 Richard Biener <rguenther@suse.de>
8146 PR tree-optimization/77479
8147 * tree-vrp.c (update_value_range): Extend overflow handling to
8150 2016-09-05 Jakub Jelinek <jakub@redhat.com>
8153 * config/i386/i386.md (isa): Add x64_avx512bw.
8154 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
8155 (kmov_isa): New mode attr.
8156 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
8157 (*zero_extend<mode>si2): Likewise.
8158 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
8160 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
8162 * doc/invoke.texi (SPU Options): nops -> NOPs.
8163 (x86 Options): Ditto.
8165 2016-09-05 Jakub Jelinek <jakub@redhat.com>
8168 * toplev.c (process_options): Temporarily set input_location
8169 to UNKNOWN_LOCATION around targetm.target_option.override () call.
8171 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
8173 PR rtl-optimization/77452
8174 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
8175 inner-mode reference to a CONST_VECTOR constant in the constant pool.
8177 2016-09-05 Marek Polacek <polacek@redhat.com>
8180 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
8182 2016-09-05 Jakub Jelinek <jakub@redhat.com>
8185 * gensupport.c (alter_output_for_subst_insn): Remove redundant
8186 *insn_out == '*' test. Don't copy unnecessary to yet another
8187 memory buffer, and don't leak it.
8189 PR rtl-optimization/77425
8190 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
8192 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
8194 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
8196 2016-09-02 David Malcolm <dmalcolm@redhat.com>
8198 * common.opt (fdiagnostics-generate-patch): New option.
8199 * diagnostic.c: Include "edit-context.h".
8200 (diagnostic_initialize): Initialize context->edit_context_ptr.
8201 (diagnostic_finish): Delete context->edit_context_ptr.
8202 (diagnostic_report_diagnostic): Add fix-it hints from the
8203 diagnostic to context->edit_context_ptr, if any.
8204 * diagnostic.h (class edit_context): Add forward decl.
8205 (struct diagnostic_context): Add field "edit_context_ptr".
8206 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8207 -fdiagnostics-generate-patch.
8208 (-fdiagnostics-generate-patch): New item.
8209 * toplev.c: Include "edit-context.h".
8210 (process_options): Set global_dc->edit_context_ptr to a new
8211 edit_context if the options need one.
8212 (toplev::main): Handle -fdiagnostics-generate-patch by using
8213 global_dc->edit_context_ptr.
8215 2016-09-02 Jakub Jelinek <jakub@redhat.com>
8218 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
8219 map and firstprivate clauses on target construct for _Atomic
8221 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
8222 on target construct for _Atomic qualified decls.
8223 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
8225 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
8226 _Atomic qualified arguments not mentioned in uniform clause.
8228 2016-09-02 David Malcolm <dmalcolm@redhat.com>
8230 * Makefile.in (OBJS-libcommon): Add edit-context.o.
8231 * diagnostic-color.c (color_dict): Add "diff-filename",
8232 "diff-hunk", "diff-delete", and "diff-insert".
8233 (parse_gcc_colors): Update default value of GCC_COLORS in comment
8234 to reflect above changes.
8235 * doc/invoke.texi (-fdiagnostics-color): Update description of
8236 default GCC_COLORS, and of the supported capabilities.
8237 * edit-context.c: New file.
8238 * edit-context.h: New file.
8239 * input.c (struct fcache): Add field "missing_trailing_newline".
8240 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
8242 (add_file_to_cache_tab): Likewise.
8243 (fcache::fcache): Likewise.
8244 (get_next_line): Update c->missing_trailing_newline.
8245 (location_missing_trailing_newline): New function.
8246 * input.h (location_missing_trailing_newline): New decl.
8247 * selftest-run-tests.c (selftest::run_tests): Call
8248 edit_context_c_tests.
8249 * selftest.h (edit_context_c_tests): New decl.
8251 2016-09-02 Jakub Jelinek <jakub@redhat.com>
8252 Richard Biener <rguenth@suse.de>
8254 PR tree-optimization/77444
8255 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
8256 as steptype, remove redundant initialization.
8258 2016-09-02 Jakub Jelinek <jakub@redhat.com>
8261 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
8262 (sanopt_optimize_walker): Optimize away
8263 __asan_before_dynamic_init (...) followed by
8264 __asan_after_dynamic_init () without intervening memory loads/stores.
8265 * ipa-pure-const.c (special_builtin_state): Handle
8266 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
8267 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
8269 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8271 * cfg.c (free_original_copy_tables): Replace second assignment of
8272 bb_copy = NULL by bb_original = NULL.
8274 2016-09-02 Jakub Jelinek <jakub@redhat.com>
8277 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
8278 assignment added in r216794.
8280 2016-09-02 David Malcolm <dmalcolm@redhat.com>
8282 * Makefile.in (OBJS): Add typed-splay-tree.o.
8283 * selftest-run-tests.c (selftest::run_tests): Call
8284 typed_splay_tree_c_tests.
8285 * selftest.h (typed_splay_tree_c_tests): New decl.
8286 * typed-splay-tree.c: New file.
8287 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
8288 (typed_splay_tree::max): New method.
8289 (typed_splay_tree::min): New method.
8290 (typed_splay_tree::foreach): New method.
8291 (typed_splay_tree::closure): New struct.
8292 (typed_splay_tree::inner_foreach_fn): New function.
8294 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8296 * ipa-cp.c (ipcp_store_bits_results): Change option name from
8297 -fipa-cp-bit to -fipa-bit-cp.
8299 2016-09-01 Martin Sebor <msebor@redhat.com>
8301 PR tree-optimization/71831
8302 * tree-object-size.h: Return bool instead of the size and add
8303 argument for the size.
8304 * tree-object-size.c (compute_object_offset): Update signature.
8305 (addr_object_size): Same.
8306 (compute_builtin_object_size): Return bool instead of the size
8307 and add argument for the size. Handle POINTER_PLUS_EXPR when
8308 optimization is disabled.
8309 (expr_object_size): Adjust.
8310 (plus_stmt_object_size): Adjust.
8311 (pass_object_sizes::execute): Adjust.
8312 * builtins.c (fold_builtin_object_size): Adjust.
8313 * doc/extend.texi (Object Size Checking): Update.
8314 * ubsan.c (instrument_object_size): Adjust.
8316 2016-09-01 Martin Sebor <msebor@redhat.com>
8318 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
8319 it fits the output of the formatted function regardless of its
8321 * genmodes.c (parser::parse_expr): Same.
8322 * gimplify.c (gimplify_asm_expr): Same.
8323 * passes.c (pass_manager::register_one_dump_file): Same.
8324 * print-tree.c (print_node): Same.
8326 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
8328 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
8330 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
8332 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
8334 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
8336 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
8337 * config/rs6000/vector.md: Ditto.
8338 * config/rs6000/vsx.md: Ditto.
8340 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
8342 * ipa-inline-analysis.c (param_change_prob): Get to the base object
8345 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
8347 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
8348 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
8349 *return_and_restore_gpregs_<mode>_r11,
8350 *return_and_restore_gpregs_<mode>_r12,
8351 *return_and_restore_gpregs_<mode>_r1,
8352 *return_and_restore_fpregs_<mode>_r11,
8353 *return_and_restore_fpregs_<mode>_r12,
8354 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
8355 directly instead of via the "l" constraint. Renumber operands.
8358 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
8360 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
8361 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
8362 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
8363 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
8364 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
8365 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
8366 *call_value_nonlocal_darwin64, reload_macho_picbase,
8367 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
8368 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
8369 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
8370 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
8371 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
8372 *save_fpregs_<mode>_r1): Ditto.
8373 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
8374 *return_and_restore_gpregs_spe): Ditto.
8376 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
8378 * config/rs6000/rs6000.md
8379 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
8380 the use of the link register.
8381 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
8383 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8384 Michael Meissner <meissner@linux.vnet.ibm.com>
8387 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
8388 reg+reg addressing for TImode.
8389 (rs6000_legitimate_address_p): Only allow register indirect
8390 addressing for TImode, even without TARGET_QUAD_MEMORY.
8392 2016-09-01 Richard Biener <rguenther@suse.de>
8395 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
8396 check whether the result fits the desired result type.
8398 2016-09-01 Nathan Sidwell <nathan@acm.org>
8400 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
8402 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
8404 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
8406 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
8408 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8410 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
8411 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
8412 for comparisons of integer ZERO_EXTEND against zero.
8414 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
8416 * config/i386/i386.c (ix86_option_override_internal): Also disable the
8417 STV pass if -mstackrealign is enabled.
8419 2016-08-31 Ilya Verbin <iverbin@gmail.com>
8421 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
8424 2016-08-31 David Malcolm <dmalcolm@redhat.com>
8426 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
8427 (layout_range::intersects_line_p): New method.
8428 (test_range_contains_point_for_single_point): Rename to...
8429 (test_layout_range_for_single_point): ...this, and add testing
8430 for layout_range::intersects_line_p.
8431 (test_range_contains_point_for_single_line): Rename to...
8432 (test_layout_range_for_single_line): ...this, and add testing
8433 for layout_range::intersects_line_p.
8434 (test_range_contains_point_for_multiple_lines): Rename to...
8435 (test_layout_range_for_multiple_lines): ...this, and add testing
8436 for layout_range::intersects_line_p.
8437 (layout::layout): Populate m_fixit_hints.
8438 (layout::get_expanded_location): Handle the case of a line-span
8440 (layout::validate_fixit_hint_p): New method.
8441 (get_line_span_for_fixit_hint): New function.
8442 (layout::calculate_line_spans): Add spans for fixit-hints.
8443 (layout::should_print_annotation_line_p): New method.
8444 (layout::print_any_fixits): Drop param "richloc", instead using
8445 validated fixits in m_fixit_hints. Add "const" to hint pointers.
8446 (diagnostic_show_locus): Avoid printing blank annotation lines.
8447 (selftest::test_diagnostic_context::test_diagnostic_context):
8448 Initialize show_column and start_span.
8449 (selftest::test_diagnostic_context::start_span_cb): New static
8451 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
8452 (selftest::diagnostic_show_locus_c_tests): Update for function
8453 renamings. Call test_diagnostic_show_locus_fixit_lines.
8455 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
8457 PR tree-optimization/73714
8458 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
8460 2016-08-31 David Malcolm <dmalcolm@redhat.com>
8462 * selftest.c: Move "namespace selftest {" to top of file,
8463 removing explicit "selftest::" qualifiers throughout.
8465 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
8467 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
8469 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
8470 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
8471 Replace builtin with vector extension.
8472 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
8474 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
8475 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
8476 Replace builtin with vector extension.
8477 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
8478 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
8479 Replace builtin with vector extension.
8480 * config/i386/xmmintrin.h (__m128_u): New type.
8481 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
8482 (_mm_load_ps, _mm_store_ps): Simplify.
8484 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
8486 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
8488 2016-08-30 David Malcolm <dmalcolm@redhat.com>
8490 * diagnostic-show-locus.c (colorizer::begin_state): Support more
8491 than 3 ranges per diagnostic by alternating between color 1 and
8493 (layout::layout): Replace use of rich_location::MAX_RANGES
8494 with richloc->get_num_locations ().
8495 (layout::calculate_line_spans): Replace use of
8496 rich_location::MAX_RANGES with m_layout_ranges.length ().
8497 (layout::print_annotation_line): Handle arbitrary numbers of
8498 ranges in caret-printing by defaulting to '^'.
8499 (selftest::test_one_liner_many_fixits): New function.
8500 (test_diagnostic_show_locus_one_liner): Call it.
8501 * diagnostic.c (diagnostic_initialize): Update for renaming
8502 of rich_location::MAX_RANGES to
8503 rich_location::STATICALLY_ALLOCATED_RANGES.
8504 * diagnostic.h (struct diagnostic_context): Likewise.
8506 2016-08-30 David Malcolm <dmalcolm@redhat.com>
8508 * selftest.c (selftest::named_temp_file::named_temp_file): New
8510 (selftest::temp_source_file::~temp_source_file): Move to...
8511 (selftest::named_temp_file::~named_temp_file): ...here.
8512 (selftest::test_named_temp_file): New function.
8513 (selftest::selftest_c_tests): Call test_named_temp_file.
8514 * selftest.h (class named_temp_file): New class.
8515 (class temp_source_file): Convert to a subclass of named_temp_file.
8517 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
8519 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
8520 USEs of LR_REGNO in returns and sibcalls.
8521 (rs6000_output_mi_thunk): Similar.
8522 (rs6000_sibcall_aix): Similar.
8523 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
8524 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
8525 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
8526 Remove the USE of LR_REGNO from the patterns as well. Delete an
8528 (return_internal_<mode>): Delete.
8530 2016-08-30 Tamar Christina <tamar.christina@arm.com>
8532 * config/aarch64/aarch64-simd.md
8533 (aarch64_ld2<mode>_dreg_le): New.
8534 (aarch64_ld2<mode>_dreg_be): New.
8535 (aarch64_ld2<mode>_dreg): Removed.
8536 (aarch64_ld3<mode>_dreg_le): New.
8537 (aarch64_ld3<mode>_dreg_be): New.
8538 (aarch64_ld3<mode>_dreg): Removed.
8539 (aarch64_ld4<mode>_dreg_le): New.
8540 (aarch64_ld4<mode>_dreg_be): New.
8541 (aarch64_ld4<mode>_dreg): Removed.
8542 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
8544 2016-08-30 David Malcolm <dmalcolm@redhat.com>
8546 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
8547 redundant location param.
8548 (test_one_liner_fixit_remove): Likewise.
8549 (test_one_liner_fixit_replace): Likewise.
8550 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
8551 * gcc-rich-location.c
8552 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
8553 get_range_from_loc. Drop overload taking a const char *.
8554 * gcc-rich-location.h
8555 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
8558 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
8560 * config/linux.c (linux_libc_has_function): Return true on musl.
8562 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
8564 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
8566 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
8568 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
8569 used for abnormal egdes.
8571 2016-08-30 Jakub Jelinek <jakub@redhat.com>
8573 PR tree-optimization/72866
8574 * tree-vect-patterns.c (search_type_for_mask): Turn into
8575 a small wrapper, move all code to ...
8576 (search_type_for_mask_1): ... this new function. Add caching
8577 and adjust recursive calls.
8580 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
8581 instead of lookup_type_die (type_main_variant (type)) even for array
8585 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
8586 constant pool reference return x instead of c.
8588 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
8590 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
8593 2016-08-29 David Malcolm <dmalcolm@redhat.com>
8596 (selftest::test_make_location_nonpure_range_endpoints): Fix
8599 2016-08-29 David Malcolm <dmalcolm@redhat.com>
8601 * diagnostic-show-locus.c
8602 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
8604 (selftest::test_diagnostic_show_locus_one_liner): Call it.
8605 * input.c (get_pure_location): Move to libcpp/line-map.c.
8606 * input.h (get_pure_location): Convert decl to an inline function
8607 calling implementation in libcpp.
8609 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
8612 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
8613 template for intel asm dialect.
8614 (vec_set_hi_<mode><mask_name>): Ditto.
8616 2016-08-29 David Malcolm <dmalcolm@redhat.com>
8618 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
8619 (selftest::fail_formatted): Likewise.
8621 2016-08-29 David Malcolm <dmalcolm@redhat.com>
8623 * input.c (make_location): Call get_start and get_finish
8624 on the endpoints to avoid storing packed ranges or ad-hoc
8626 (selftest::test_make_location_nonpure_range_endpoints): New function.
8627 (selftest::input_c_tests): Call it.
8628 * input.h (get_start): New inline function.
8630 2016-08-29 Tom de Vries <tom@codesourcery.com>
8633 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
8636 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
8638 * Makefile.in (gcov-iov.h): Add dummy recipe.
8640 2016-08-29 Nathan Sidwell <nathan@acm.org>
8642 * config/nvptx/nvptx.c: #include tree-vrp.h.
8644 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
8647 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
8648 HIGH+LO construct during reload.
8650 2016-08-28 Tom de Vries <tom@codesourcery.com>
8653 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
8654 'sysv_abi va_list' attribute.
8655 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
8656 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
8659 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8661 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
8662 * emit-rtl.c (unshare_all_rtl_1): Adjust.
8663 (unshare_all_rtl_again): Likewise.
8664 * function.c (assign_stack_local_1): Likewise.
8665 (assign_stack_temp_for_type): Likewise.
8667 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8669 * cfgbuild.c (make_edges): Adjust.
8670 * cfgrtl.c (can_delete_label_p): Likewise.
8671 * dwarf2cfi.c (create_trace_edges): Likewise.
8672 * except.c (sjlj_emit_dispatch_table): Likewise.
8673 * function.h (struct expr_status): make x_forced_labels a vector.
8674 * jump.c (rebuild_jump_labels_1): Adjust.
8675 * reload1.c (set_initial_label_offsets): Likewise.
8676 * stmt.c (force_label_rtx): Likewise.
8677 (expand_label): Likewise.
8679 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8681 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
8683 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
8685 PR tree-optimization/71077
8686 PR tree-optimization/68542
8687 * fold-const.c (fold_relational_const): Fix folding of
8688 VECTOR_CST comparisons that have a scalar boolean result type.
8689 (selftest::test_vector_folding): New static function.
8690 (selftest::fold_const_c_tests): Call it.
8692 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
8694 * doc/extend.texi (SPU Built-in Functions): Remove stale
8695 references to material formerly at IBM and Sony.
8697 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
8700 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
8702 2016-08-26 David Malcolm <dmalcolm@redhat.com>
8704 * diagnostic-show-locus.c
8705 (selftest::test_fixit_consolidation): New function.
8706 (selftest::diagnostic_show_locus_c_tests): Call it.
8707 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
8708 constructor based on source_range.
8710 2016-08-26 David Malcolm <dmalcolm@redhat.com>
8712 * diagnostic-color.c (color_dict): Add "fixit-insert" and
8714 (parse_gcc_colors): Update description of default GCC_COLORS.
8715 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
8716 (colorizer::set_fixit_insert): New method.
8717 (colorizer::set_fixit_delete): New method.
8718 (colorizer::get_color_by_name): New method.
8719 (colorizer::STATE_FIXIT_INSERT): New constant.
8720 (colorizer::STATE_FIXIT_DELETE): New constant.
8721 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
8722 fields in favor of new field "m_stop_color". Add fields
8723 "m_fixit_insert" and "m_fixit_delete".
8724 (colorizer::colorizer): Update for above changes. Replace
8725 colorize_start calls with calls to get_color_by_name.
8726 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
8727 STATE_FIXIT_DELETE. Update for field renamings.
8728 (colorizer::finish_state): Simplify by using m_stop_color,
8729 rather than multiple identical "*_ce" fields.
8730 (colorizer::get_color_by_name): New method.
8731 (layout::print_any_fixits): Print insertions and replacements
8732 using the "fixit-insert" color, and deletions using the
8733 "fixit-delete" color.
8734 * doc/invoke.texi (-fdiagnostics-color): Update description of
8735 default GCC_COLORS, and of the supported capabilities.
8737 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
8739 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
8740 current_function_static_stack_size variable with the static
8741 stack frame size of the current function when
8742 flag_stack_usage_info is enabled.
8744 2016-08-26 Nathan Sidwell <nathan@acm.org>
8746 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
8747 assignment inside if condition.
8749 2016-08-26 Richard Biener <rguenther@suse.de>
8751 PR tree-optimization/69047
8752 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
8753 extracts similar to what FRE does.
8754 (non_rewritable_mem_ref_base): Likewise.
8756 2016-08-26 Joseph Myers <joseph@codesourcery.com>
8758 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
8759 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
8760 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
8761 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
8762 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
8764 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
8765 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
8766 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
8767 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
8768 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
8770 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8773 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
8774 reservation duration to 15 cycles.
8775 (cortex_a8_vfp_macs): Likewise.
8776 (cortex_a8_vfp_macd): Likewise.
8777 (cortex_a8_vfp_divs): Likewise.
8778 (cortex_a8_vfp_divd): Likewise.
8780 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8782 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
8783 (aarch_macro_fusion_pair_p): Use above to avoid early return.
8785 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8786 Martin Jambhor <mjambor@suse.cz>
8788 * common.opt: New option -fipa-bit-cp.
8789 * doc/invoke.texi: Document -fipa-bit-cp.
8790 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
8791 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
8792 * tree-ssa-ccp.h: New header file.
8793 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
8794 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
8795 Replace all occurences of tree parameter by two new params: signop, int.
8796 (bit_value_unop_1): Change to bit_value_unop and export it.
8797 Replace all occurences of tree parameter by two new params: signop,
8799 (bit_value_binop): Change call from bit_value_binop_1 to
8801 (bit_value_assume_aligned): Likewise.
8802 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
8803 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
8805 (ccp_finalize): Skip processing if val->mask == 0.
8806 * ipa-cp.c: Include tree-ssa-ccp.h
8807 (ipcp_bits_lattice): New class.
8808 (ipcp_param_lattice (bits_lattice): New member.
8809 (print_all_lattices): Call ipcp_bits_lattice::print.
8810 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
8811 (initialize_node_lattices): Likewise.
8812 (propagate_bits_accross_jump_function): New function.
8813 (propagate_constants_accross_call): Call
8814 propagate_bits_accross_jump_function.
8815 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
8816 (ipcp_store_bits_results): New function.
8817 (ipcp_driver): Call ipcp_store_bits_results.
8818 * ipa-prop.h (ipa_bits): New struct.
8819 (ipa_jump_func): Add new member bits of type ipa_bits.
8820 (ipa_param_descriptor): Change decl to decl_or_type.
8821 (ipa_get_param): Change decl to decl_or_type and assert on
8823 (ipa_get_type): New function.
8824 (ipcp_transformation_summary): New member bits.
8825 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
8826 (ipa_populate_param_decls): Likewise.
8827 (ipa_dump_param): Likewise.
8828 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
8830 (ipa_set_jf_unknown): Set ipa_bits::known to false.
8831 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
8833 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
8834 (ipa_write_jump_function): Add streaming for ipa_bits.
8835 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
8836 (write_ipcp_transformation_info): Add streaming for ipa_bits
8838 (read_ipcp_transfomration_info): Add support for reading streamed
8840 (ipcp_update_bits): New function.
8841 (ipcp_transform_function): Call ipcp_update_bits.
8843 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
8845 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
8846 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
8848 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
8850 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
8852 2016-08-25 Richard Biener <rguenther@suse.de>
8854 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
8855 Only add locations in late dwarf.
8856 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
8857 (dwarf2out_early_finish): But do it here.
8859 2016-08-24 Michael Collison <michael.collison@linaro.org>
8860 Michael Collison <michael.collison@arm.com>
8862 * config/arm/arm-modes.def: Add new condition code mode CC_V
8863 to represent the overflow bit.
8864 * config/arm/arm.c (maybe_get_arm_condition_code):
8865 Add support for CC_Vmode.
8866 (arm_gen_unlikely_cbranch): New function to generate common
8867 rtl conditional branches for overflow patterns.
8868 * config/arm/arm-protos.h: Add prototype for
8869 arm_gen_unlikely_cbranch.
8870 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
8871 addsi3_compareV_upper): New patterns to support signed
8872 builtin overflow add operations.
8873 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
8874 New patterns to support unsigned builtin add overflow operations.
8875 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
8876 builtin overflow subtract operations,
8877 (usubv<mode>4): New patterns to support unsigned builtin subtract
8878 overflow operations.
8879 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
8880 to support builtin overflow negate operations.
8882 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8885 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8887 * explow.c (get_dynamic_stack_size): Take known alignment of stack
8888 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
8891 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
8893 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
8894 MULTILIB_OPTIONS should be used. Small wording fixes.
8895 * genmultilib: Memorize set of all option combinations in
8896 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
8897 found in MULTILIB_OPTIONS by checking if option set is listed in
8898 combination_space. Output new and existing error message to stderr.
8900 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
8902 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
8903 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
8904 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
8905 (MULTILIB_REUSE): Remove reuse rules for option set including
8906 -mfpu=fp-armv8 and -mfpu=vfpv4
8908 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
8910 * config/arm/t-rtems: Add vfp multilib.
8912 2016-08-23 Ian Lance Taylor <iant@golang.org>
8914 * config/s390/s390.c (s390_asm_file_start): Call
8917 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
8919 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
8920 initialization of all 0's to the 0 constant, instead of directly
8921 generating XOR. Add support for V4SImode vector initialization on
8922 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
8923 initialization. Change variables used in V4SFmode vector
8924 intialization. For V4SFmode vector splat on ISA 3.0, make sure
8925 any memory addresses are in index form. Add support for using
8926 VSPLTH/VSPLTB to initialize vector short and vector char vectors
8927 with all of the same element.
8928 (regno_or_subregno): New helper function to return a register
8929 number for either REG or SUBREG.
8930 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
8931 Use regno_or_subregno where possible.
8932 (rs6000_split_v4si_init_di_reg): New helper function to build up a
8933 DImode value from two SImode values in order to generate V4SImode
8934 vector initialization on 64-bit systems with direct move.
8935 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
8937 (rtx_is_swappable_p): V4SImode vector initialization insn is not
8939 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
8941 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
8942 attributes to initialize V8HImode and V16QImode vectors with the
8944 (VSX_SPLAT_COUNT): Likewise.
8945 (VSX_SPLAT_SUFFIX): Likewise.
8946 (UNSPEC_VSX_VEC_INIT): New unspec.
8947 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
8948 Allow SFmode values to come from Altivec registers.
8949 (vsx_init_v4si): New insn/split for V4SImode vector initialization
8950 on 64-bit systems with direct move.
8951 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
8952 vector initializations, to allow V4SImode vector initializations
8953 on 64-bit systems with direct move.
8954 (vsx_splat_v4si): Likewise.
8955 (vsx_splat_v4si_di): Likewise.
8956 (vsx_splat_v4sf): Likewise.
8957 (vsx_splat_v4sf_internal): Likewise.
8958 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
8960 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
8961 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
8962 initializing V8HImode and V16QImode vectors with the same
8964 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
8965 optimization if -maltivec=be.
8967 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
8969 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
8970 attribute for alternatives 3 and 4.
8972 2016-08-23 David Malcolm <dmalcolm@redhat.com>
8974 * selftest.c (selftest::assert_str_contains): New function.
8975 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
8976 * selftest.h (selftest::assert_str_contains): New decl.
8977 (ASSERT_STR_CONTAINS): New macro.
8979 2016-08-23 Richard Biener <rguenther@suse.de>
8981 PR tree-optimization/77286
8982 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
8984 (vect_transform_loop): Split exit edges of loop and scalar
8985 loop if required and at the appropriate time.
8987 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8989 * explow.c (get_dynamic_stack_size): Take known alignment of stack
8990 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
8992 Correct a typo in a comment.
8994 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
8996 * config/s390/s390.md ("*andc_split"): New splitter for and with
8999 2016-08-23 Richard Biener <rguenther@suse.de>
9001 PR tree-optimization/27336
9002 * tree-vrp.c (infer_value_range): Handle stmts that can throw
9003 by looking for a non-EH edge.
9004 (process_assert_insertions_for): Likewise.
9006 2016-08-23 Richard Biener <rguenther@suse.de>
9009 * statistics.c (statistics_counter_event): Robustify against
9012 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9014 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
9015 for targets amdfam10 and barcelona.
9017 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
9019 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
9020 (zero_extend<mode>di2): Ditto.
9021 (*zero_extend<mode>si2): Ditto.
9022 (*zero_extendqihi2): Ditto.
9024 2016-08-22 Joseph Myers <joseph@codesourcery.com>
9027 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
9028 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
9030 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
9032 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
9033 identical consecutive elements.
9034 [SSA_NAME]: Print the name's def stmt on its own line. When printing
9035 the node's def stmt, avoid printing an unwanted trailing newline by
9036 replacing the call to print_gimple_stmt() with its inlined body and
9037 adjusting it to not set pp_needs_newline and to call pp_flush()
9038 instead of pp_newline_and_flush().
9040 2016-08-22 Joseph Myers <joseph@codesourcery.com>
9042 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
9043 (float32_type_node, float64_type_node, float32x_type_node)
9044 (float128x_type_node): New macros.
9045 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
9046 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
9047 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
9048 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
9049 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
9050 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
9051 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
9052 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
9053 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
9054 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
9055 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
9056 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
9057 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
9058 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
9059 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
9060 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
9061 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
9062 (copysign, fabs, huge_val, inf, nan, nans): Use it.
9063 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
9065 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
9066 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
9067 * doc/extend.texi (Other Builtins): Document these built-in
9069 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
9072 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
9074 * doc/install.texi (Binaries): www.opencsw.org now uses https.
9076 2016-08-22 Richard Biener <rguenther@suse.de>
9078 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
9080 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
9083 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
9084 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
9085 non-SSE2 athlons only, otherwise prefer SSE prefetches.
9087 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9089 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
9090 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
9091 (vrp_visit_switch_stmt): Likewise.
9092 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
9093 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
9094 (vrp_visit_stmt): Use extract_range_from_stmt.
9095 (vrp_visit_phi_node): Use extract_range_from_phi_node.
9097 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9099 * Makefile.in: Add tree-vrp.h to GTFILES.
9100 * gengtype.c (open_base_files): Add tree-vrp.h.
9101 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
9102 * builtins.c: Likewise.
9103 * fold-const.c: Likewise.
9104 * gimple-builder.c: Likewise.
9105 * gimple-laddress.c: Likewise.
9106 * hsa-gen.c: Likewise.
9107 * internal-fn.c: Likewise.
9109 * targhooks.c: Liewise,
9110 * tree-ssa-address.c: Likewise.
9111 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
9112 * tree-vrp.c (struct value_range): Move to tree-vrp.h
9113 * tree-vrp.h: New file.
9115 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
9117 PR tree-optimization/61839
9118 * tree-vrp.c (two_valued_val_range_p): New.
9119 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
9120 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
9121 Also Convert VAR BINOP CST where VAR is two-valued to
9122 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
9124 2016-08-19 David Malcolm <dmalcolm@redhat.com>
9126 * diagnostic-show-locus.c
9127 (layout::annotation_line_showed_range_p): New method.
9128 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
9129 Reimplement case fixit_hint::REPLACE to cover removals, and
9130 replacements where the range of the replacement isn't one
9131 of the ranges in the rich_location.
9132 (test_one_liner_fixit_replace): Likewise.
9133 (selftest::test_one_liner_fixit_replace_non_equal_range): New
9135 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
9137 (selftest::test_diagnostic_show_locus_one_liner): Call the new
9139 * diagnostic.c (print_parseable_fixits): Remove case
9142 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
9145 * config/i386/i386.c (ix86_option_override_internal): Remove
9146 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
9147 Enable SSE prefetch also for TARGET_PREFETCHWT1.
9148 Do not try to enable TARGET_PRFCHW ISA flag here.
9149 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
9150 Rewrite expander function body.
9151 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
9153 2016-08-19 Joseph Myers <joseph@codesourcery.com>
9156 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
9157 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
9158 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
9159 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
9160 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
9161 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
9162 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
9163 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
9164 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
9166 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
9168 (struct floatn_type_info): New structure type.
9169 (floatn_nx_types): New variable declaration.
9170 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
9171 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
9172 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
9173 * tree.c (floatn_nx_types): New variable.
9174 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
9175 corresponding complex types.
9176 * target.def (floatn_mode): New hook.
9177 * targhooks.c: Include "real.h".
9178 (default_floatn_mode): New function.
9179 * targhooks.h (default_floatn_mode): New prototype.
9180 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
9182 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
9183 effective-target and dg-add-options keywords.
9184 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
9185 Document new effective-target keywords.
9186 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
9187 * doc/tm.texi: Regenerate.
9188 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
9189 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
9190 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
9192 * real.h (struct real_format): Add field ieee_bits.
9193 * real.c (ieee_single_format, mips_single_format)
9194 (motorola_single_format, spu_single_format, ieee_double_format)
9195 (mips_double_format, motorola_double_format)
9196 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
9197 (ieee_extended_intel_128_format)
9198 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
9199 (mips_extended_format, ieee_quad_format, mips_quad_format)
9200 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
9201 (decimal_double_format, decimal_quad_format, ieee_half_format)
9202 (arm_half_format, real_internal_format: Initialize ieee_bits
9204 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
9205 float128_type_node. Set float80_type_node to float64x_type_node
9206 if appropriate and long_double_type_node not appropriate.
9207 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
9208 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
9209 Initialize ieee_bits field.
9210 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
9211 (rs6000_init_builtins): Set ieee128_float_type_node to
9213 (rs6000_floatn_mode): New function.
9215 2016-08-19 Jakub Jelinek <jakub@redhat.com>
9217 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
9218 _rdseed64_step): Uglify argument names and/or local variable names
9219 in inline functions.
9220 * config/i386/rtmintrin.h (_xabort): Likewise.
9221 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
9222 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
9223 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
9224 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
9225 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
9226 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
9227 _mm_maskz_ternarylogic_epi32): Likewise.
9228 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
9229 __lwpins32, __lwpins64): Likewise.
9230 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
9231 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
9232 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
9233 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
9234 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
9235 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
9236 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
9237 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
9238 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
9239 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
9240 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
9241 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
9242 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
9243 _mm256_mask_i64gather_epi32): Likewise.
9244 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
9245 * config/i386/ia32intrin.h (__writeeflags): Likewise.
9246 * config/i386/pkuintrin.h (_wrpkru): Likewise.
9247 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
9248 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
9249 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
9250 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
9251 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
9252 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
9253 _mm512_mask_prefetch_i64scatter_ps): Likewise.
9254 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
9255 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
9256 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
9257 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
9258 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
9259 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
9260 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
9261 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
9263 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
9265 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
9266 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
9268 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
9269 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
9271 (_rdpkru_u32): Add space after function name.
9273 * config/i386/t-i386 (i386-c.o): Don't depend on
9274 i386-builtin-types.inc.
9275 (i386.o): Depend on i386-builtin-types.inc.
9277 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
9280 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
9281 Use const_vec_duplicate to check for duplicated elements.
9283 2016-08-19 Richard Biener <rguenther@suse.de>
9285 PR tree-optimization/77290
9286 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9287 Fix flag_tree_parallelize_loops check.
9289 2016-08-19 Richard Biener <rguenther@suse.de>
9291 * match.pd (x | 0 -> x): Add.
9293 2016-08-19 Richard Biener <rguenther@suse.de>
9295 PR tree-optimization/77286
9296 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
9297 Deal with virtual PHIs being out-of-order.
9299 2016-08-18 David Malcolm <dmalcolm@redhat.com>
9301 * doc/invoke.texi (fverbose-asm): Note that source code lines
9302 are emitted, and provide an example.
9303 * final.c (asm_show_source): New function.
9304 (final_scan_insn): Call asm_show_source.
9306 2016-08-18 David Malcolm <dmalcolm@redhat.com>
9308 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
9309 param with diagnostic_kind.
9310 (class colorizer): Similarly replace field m_diagnostic with
9312 (colorizer::colorizer): Replace diagnostic
9313 param with diagnostic_kind.
9314 (colorizer::begin_state): Update for above field change.
9315 (layout::layout): Replace diagnostic param with rich_location *
9316 and diagnostic_kind.
9317 (diagnostic_show_locus): Replace diagnostic param with richloc
9318 and diagnostic_kind.
9319 (class selftest::test_diagnostic_context): New class.
9320 (selftest::test_diagnostic_show_locus_unknown_location): New
9322 (selftest::test_one_liner_simple_caret): New function.
9323 (selftest::test_one_liner_caret_and_range): New function.
9324 (selftest::test_one_liner_multiple_carets_and_ranges): New
9326 (selftest::test_one_liner_fixit_remove): New function.
9327 (selftest::test_one_liner_fixit_replace): New function.
9328 (selftest::test_diagnostic_show_locus_one_liner): New function.
9329 (selftest::diagnostic_show_locus_c_tests): Call the new test
9331 * diagnostic.c (diagnostic_initialize): Initialize
9332 colorize_source_p, show_ruler_p and parseable_fixits_p.
9333 (default_diagnostic_finalizer): Update for change to
9334 diagnostic_show_locus.
9335 (diagnostic_append_note): Likewise.
9336 * diagnostic.h (diagnostic_show_locus): Replace
9337 const diagnostic_info * param with location * and diagnostic_t.
9339 2016-08-18 David Malcolm <dmalcolm@redhat.com>
9341 * input.c (saved_line_table): New global.
9342 (class selftest::temp_line_table): Rename to line_table_test and
9343 move declaration to selftest.h, and drop field m_old_line_table.
9344 (selftest::temp_line_table::temp_line_table): Rename ctor to...
9345 (selftest::line_table_test::line_table_test): ...this. Add a
9346 default ctor. Store current value of line_table within
9348 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
9349 (selftest::line_table_test::~line_table_test): ...this, and
9350 restore line_table from the saved_line_table, rather than
9352 (selftest::test_accessing_ordinary_linemaps): Update for above
9354 (selftest::test_lexer): Likewise.
9355 (struct selftest::lexer_test): Likewise.
9356 (selftest::lexer_test::lexer_test): Likewise.
9357 (selftest::input_c_tests): Move the looping over test cases from
9359 (selftest::for_each_line_table_case): New function.
9360 * input.h (saved_line_table): New decl.
9361 * selftest.h (struct selftest::line_table_case): New forward decl.
9362 (class selftest::line_table_test): New class, moved here from
9363 selftest::temp_line_table in input.c, and renamed.
9364 (selftest::for_each_line_table_case): New decl.
9366 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
9369 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
9371 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
9374 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
9375 enclosing parallel construct for reduction variables on OpenACC loop
9378 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
9380 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
9381 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
9383 (function_to_dwarf_procedure): Update comment.
9385 2016-08-18 David Malcolm <dmalcolm@redhat.com>
9387 * input.c (diagnostics_file_cache_forcibly_evict_file): New
9389 * input.h (diagnostics_file_cache_forcibly_evict_file): New
9391 * selftest.c (selftest::temp_source_file::~temp_source_file):
9392 Evict m_filename from the diagnostic file cache.
9394 2016-08-18 Richard Biener <rguenther@suse.de>
9396 * tree-pass.h (make_pass_materialize_all_clones): Declare.
9397 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
9398 make_pass_materialize_all_clones): New simple IPA pass encapsulating
9399 clone materialization.
9400 * passes.def (all_late_ipa_passes): Start with
9401 pass_materialize_all_clones.
9402 * cgraphunit.c (symbol_table::compile): Remove call to
9403 materialize_all_clones.
9404 * tree-into-ssa.c: Include statistics.h.
9405 (update_ssa): Count number of times we do incremental/rewrite
9408 2016-08-18 Richard Biener <rguenther@suse.de>
9410 PR tree-optimization/77282
9411 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9412 When doing auto-parallelizing also prevent use of PHIs that
9413 carry dependences across loop backedges.
9415 2016-08-18 Tamar Christina <tamar.christina@arm.com>
9416 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9418 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
9420 2016-08-18 Richard Biener <rguenther@suse.de>
9422 * ssa-iterators.h (ssa_vuse_operand): New inline.
9423 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
9424 (predicate_all_scalar_phis): Use remove_phi_node to remove
9425 phi nodes predicated. Delay removing virtual PHIs.
9426 (predicate_mem_writes): Update virtual operands.
9427 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
9428 (tree_if_conversion): Do not rewrite virtual SSA form.
9429 * tree-phinodes.c (release_phi_node): Make static.
9430 * tree-phinodes.h (release_phi_node): Remove.
9432 2016-08-18 Jakub Jelinek <jakub@redhat.com>
9434 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
9435 codes that appear in bdesc_* arrays, instead include i386-builtin.def
9436 twice to define those.
9437 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
9438 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
9439 bdesc_multi_arg): Define by including i386-builtin.def the third time.
9440 * config/i386/i386-builtin.def: New file.
9442 2016-08-17 David Malcolm <dmalcolm@redhat.com>
9444 * input.c (get_source_range_for_char): Rename to...
9445 (selftest::get_source_range_for_char): ...this, and move within
9446 the #if CHECKING_P guard.
9447 (get_num_source_ranges_for_substring): Rename to...
9448 (selftest::get_num_source_ranges_for_substring): ...this, move
9449 within the #if CHECKING_P guard, and make static.
9450 (selftest::assert_num_substring_ranges): Initialize
9453 2016-08-18 Alan Modra <amodra@gmail.com>
9455 PR rtl-optimization/72771
9456 * reload.c (find_reloads): Don't assume that a subreg mem is OK
9457 when find_reloads_toplev returns address_reloaded==-1.
9458 (alternative_allows_const_pool_ref): Update comment.
9460 2015-08-17 Alan Hayward <alan.hayward@arm.com>
9462 PR tree-optimization/71752
9463 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
9464 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
9466 2016-08-17 Jakub Jelinek <jakub@redhat.com>
9468 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
9469 instead of testing ECF_NORETURN bit in gimple_call_flags.
9470 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
9471 * predict.c (tree_bb_level_predictions): Likewise.
9472 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
9475 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
9476 turning a call into __builtin_unreachable-like noreturn call, adjust
9477 gimple_call_set_fntype.
9478 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
9479 gimple_call_fntype has void return type.
9481 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
9483 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
9484 maybe_lookup_decl, to handle nested acc loop directives.
9486 2016-08-17 Richard Biener <rguenther@suse.de>
9488 PR tree-optimization/76490
9489 * tree-vrp.c (update_value_range): Preserve overflow infinities
9490 when intersecting with ranges from get_range_info.
9491 (operand_less_p): Handle overflow infinities correctly.
9492 (value_range_constant_singleton): Use vrp_operand_equal_p
9493 to handle overflow max/min correctly.
9494 (vrp_valueize): Likewise.
9495 (union_ranges): Likewise.
9496 (intersect_ranges): Likewise.
9497 (vrp_visit_phi_node): Improve iteration limitation to only
9498 apply when we'll possibly re-visit the PHI via a changed argument
9501 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
9503 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
9504 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
9505 rather than those that should not be built.
9507 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
9510 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
9512 2016-08-17 Richard Biener <rguenther@suse.de>
9514 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
9515 (verify_vssa): New function verifying virtual SSA form.
9516 (verify_ssa): Call it.
9517 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
9518 Do not apply loop-closed SSA handling to virtuals.
9519 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
9520 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
9521 when rewriting their symbol.
9522 (prepare_def_site_for): Likewise.
9523 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
9524 operands of moved stmts.
9526 2016-08-17 Richard Biener <rguenther@suse.de>
9528 PR tree-optimization/23855
9529 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
9530 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
9531 find guards to hoist. Do not update SSA form but rewrite virtuals
9532 into loop closed SSA.
9533 (find_loop_guard): Adjust to skip already hoisted guards. Do
9534 not mark virtuals for renaming or update SSA form.
9536 2016-08-17 Martin Liska <mliska@suse.cz>
9538 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
9539 a LONG_LONG_TYPE_SIZE comparison.
9540 * gcov-io.h: Remove macro definitions.
9541 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
9542 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
9545 2016-08-16 Jakub Jelinek <jakub@redhat.com>
9547 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
9548 that builtins not mentioned in bdesc_* arrays come first, then
9549 the ones mentioned in bdesc_* arrays in the order they appear in
9550 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
9551 IX86_BUILTIN__BDESC_*_LAST enumerator.
9552 (bdesc_mpx): Fix up a comment typo.
9553 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
9554 __builtin_ia32_vpcomneu[bwdq] builtins.
9555 (BDESC_VERIFY, BDESC_VERIFYS): Define.
9556 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
9557 enum ix86_builtins ordering.
9558 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
9559 for direct bdesc_* array member access instead of searching all the
9560 arrays until an fcode match is found.
9562 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
9564 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
9565 pattern as define_insn_and_split. Split insn before reload to
9567 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
9568 <shift_insn><mode>3_1.
9569 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
9570 <rotate_insn><mode>3_1.
9572 2016-08-16 David Malcolm <dmalcolm@redhat.com>
9575 * input.c (get_source_range_for_substring): Rename to...
9576 (get_source_location_for_substring): ...this, adding param
9577 "caret_idx", and converting output param from source_range * to
9579 (get_source_range_for_char): New function.
9580 (get_num_source_ranges_for_substring): Update comment to reflect
9582 (assert_char_at_range): Update to use get_source_range_for_char
9583 rather than get_source_range_for_substring.
9584 (test_lexer_string_locations_concatenation_2): Likewise.
9585 * substring-locations.h (get_source_range_for_substring): Rename
9587 (get_source_location_for_substring): ...this, and adding param
9588 "caret_idx", and converting output param from source_range * to
9591 2016-08-16 David Malcolm <dmalcolm@redhat.com>
9593 * input.c (class selftest::temp_source_file): Move to
9595 (selftest::temp_source_file::temp_source_file): Move to
9597 (selftest::temp_source_file::~temp_source_file): Likewise.
9598 * selftest.c (selftest::temp_source_file::temp_source_file): Move
9600 (selftest::temp_source_file::~temp_source_file): Likewise.
9601 * selftest.h (class selftest::temp_source_file): Move here from
9604 2016-08-16 Jakub Jelinek <jakub@redhat.com>
9607 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
9608 inlining, add cgraph edge for the added __builtin_unreachable call.
9611 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
9612 only cast it to SHWI for the final comparison.
9614 2016-08-16 Martin Liska <mliska@suse.cz>
9616 PR gcov-profile/36412
9617 * doc/gcov.texi: Document --hash-filenames(-x).
9618 * gcov.c (print_usage): Add the option.
9619 (process_args): Process the option, sort options alphabetically.
9620 (md5sum_to_hex): New function.
9621 (make_gcov_file_name): Do the md5sum and append it to a
9624 2016-08-16 Bin Cheng <bin.cheng@arm.com>
9626 PR tree-optimization/69848
9627 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
9628 and swtich operands to avoid additional NOT instruction.
9629 (vcond<v_cmp_mixed><mode>): Ditto.
9630 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
9632 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
9634 * doc/install.texi (*-*-solaris2*): Adjust latest change.
9636 2016-08-16 Richard Biener <rguenther@suse.de>
9638 PR tree-optimization/76783
9639 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
9640 BB visited flags at start.
9642 2016-08-16 Bin Cheng <bin.cheng@arm.com>
9644 PR tree-optimization/72817
9645 PR tree-optimization/73450
9646 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
9647 multiple_of_p for adjusted IV.base.
9649 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
9652 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
9653 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
9654 for !flag_finite_math_only or flag_signed_zeros.
9655 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
9656 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
9657 depend on flag_finite_math_only.
9658 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
9660 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
9661 (*ieee_smin<mode>3): Ditto.
9662 (*ieee_smax<mode>3): Ditto.
9663 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
9664 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
9666 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
9667 depend on flag_finite_math_only.
9668 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
9669 (*mmx_<code>v2sf3): Remove.
9670 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
9671 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
9672 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
9674 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
9676 PR rtl-optimization/73650
9677 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
9678 it is not a simple move.
9680 2016-08-15 Martin Liska <mliska@suse.cz>
9683 * gcc.c (do_spec_1): Call save_string with the right size.
9684 (save_string): Do an assert about string we copy.
9686 2016-08-15 Richard Biener <rguenther@suse.de>
9688 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
9689 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
9691 (pass_data_stv): Likewise.
9693 2016-08-15 Richard Biener <rguenther@suse.de>
9695 PR tree-optimization/73434
9696 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
9697 TBAA info on the base when forwarding a non-invariant address.
9699 2016-08-15 Jakub Jelinek <jakub@redhat.com>
9701 * dwarf2out.c (struct checksum_attributes): Add
9702 at_string_length_bit_size and at_string_length_byte_size fields.
9703 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
9704 and DW_AT_string_length_byte_size.
9705 (die_checksum_ordered): Handle at_string_length_bit_size and
9706 at_string_length_byte_size.
9707 (gen_array_type_die): For dwarf_version >= 5 emit
9708 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
9709 (adjust_string_types): For dwarf_version >= 5 remove
9710 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
9711 (resolve_addr): Likewise.
9714 * dwarf2out.c (string_types): New variable.
9715 (gen_array_type_die): Change early_dwarf handling of
9716 DW_AT_string_length, create DW_OP_call4 referencing the
9717 length var temporarily. Handle parameters that are pointers
9719 (adjust_string_types): New function.
9720 (gen_subprogram_die): Temporarily set string_types to local var,
9721 call adjust_string_types if needed.
9722 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
9724 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
9726 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
9728 * doc/install.texi (*-*-solaris2*): Fix version number and document
9729 requirement on GNU make for building libjava with the Solaris linker.
9731 2016-08-15 Martin Liska <mliska@suse.cz>
9732 Jakub Jelinek <jakub@redhat.com>
9734 PR tree-optimization/72824
9735 * tree-loop-distribution.c (const_with_all_bytes_same)
9736 <case VECTOR_CST>: Fix a typo.
9738 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
9741 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
9742 Renamed from _mm512_undefined_si512.
9743 (_mm_undefined_si512): New definition.
9745 2016-08-13 Richard Biener <rguenther@suse.de>
9747 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
9748 into PHIs and update the lattice for its def.
9750 2016-08-12 Jakub Jelinek <jakub@redhat.com>
9753 * ubsan.c (instrument_si_overflow): Pass true instead of false
9755 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
9756 of bbs. Return TODO_cleanup_cfg if any returned true.
9758 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9760 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
9761 ISA 3.0 MTVSRDD instruction.
9762 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
9765 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
9767 PR tree-optimization/71083
9768 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
9769 bitfield access when possible.
9771 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
9774 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
9775 sign-changing cast from a shorter unsigned type to a wider
9778 2016-08-12 Jakub Jelinek <jakub@redhat.com>
9780 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
9781 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
9782 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
9784 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9786 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
9787 Correct costs for vec_construct.
9789 2016-08-12 Bin Cheng <bin.cheng@arm.com>
9791 PR tree-optimization/69848
9792 * tree-vectorizer.h (enum vect_def_type): New condition reduction
9793 type CONST_COND_REDUCTION.
9794 * tree-vect-loop.c (vectorizable_reduction): Support new condition
9795 reudction type CONST_COND_REDUCTION.
9797 2016-08-12 Richard Biener <rguenther@suse.de>
9799 PR tree-optimization/57326
9800 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
9801 returning an SSA name.
9802 (phi_translate_1): When fully_constant_expression returns a NAME
9803 make sure we have a leader for it.
9805 2016-08-12 Martin Liska <mliska@suse.cz>
9806 Adam Fineman <afineman@afineman.com>
9808 * gcov.c (process_file): Create .gcov file when .gcda
9811 2016-08-12 Marek Polacek <polacek@redhat.com>
9814 * alias.c (find_base_value): Adjust fall through comment.
9815 * cfgexpand.c (expand_debug_expr): Likewise.
9816 * combine.c (find_split_point): Likewise.
9817 (expand_compound_operation): Likewise. Add FALLTHRU.
9818 (make_compound_operation): Adjust fall through comment.
9819 (canon_reg_for_combine): Add FALLTHRU.
9820 (force_to_mode): Adjust fall through comment.
9821 (simplify_shift_const_1): Likewise.
9822 (simplify_comparison): Likewise.
9823 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
9825 * config/aarch64/predicates.md: Likewise.
9826 * config/i386/i386.c (function_arg_advance_32): Likewise.
9827 (ix86_gimplify_va_arg): Likewise.
9828 (print_reg): Likewise.
9829 (ix86_print_operand): Likewise.
9830 (ix86_build_const_vector): Likewise.
9831 (ix86_expand_branch): Likewise.
9832 (ix86_sched_init_global): Adjust fall through comment.
9833 (ix86_expand_args_builtin): Add FALLTHRU.
9834 (ix86_expand_builtin): Likewise.
9835 (ix86_expand_vector_init_one_var): Likewise.
9836 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
9837 (rs6000_adjust_cost): Likewise.
9838 (insn_must_be_first_in_group): Likewise.
9839 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
9840 * dbxout.c (dbxout_symbol): Adjust fall through comment.
9841 * df-scan.c (df_uses_record): Likewise.
9842 * dojump.c (do_jump): Add FALLTHRU.
9843 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
9845 (resolve_args_picking_1): Adjust fall through comment.
9846 (loc_list_from_tree_1): Likewise.
9847 * expmed.c (make_tree): Likewise.
9848 * expr.c (expand_expr_real_2): Add FALLTHRU.
9849 (expand_expr_real_1): Likewise. Adjust fall through comment.
9850 * fold-const.c (const_binop): Adjust fall through comment.
9851 (fold_truth_not_expr): Likewise.
9852 (fold_cond_expr_with_comparison): Add FALLTHRU.
9853 (fold_binary_loc): Likewise.
9854 (contains_label_1): Adjust fall through comment.
9855 (multiple_of_p): Likewise.
9856 * gcov-tool.c (process_args): Add FALLTHRU.
9857 * genattrtab.c (check_attr_test): Likewise.
9858 (write_test_expr): Likewise.
9859 * genconfig.c (walk_insn_part): Likewise.
9860 * genpreds.c (validate_exp): Adjust fall through comment.
9861 (needs_variable): Likewise.
9862 * gensupport.c (get_alternatives_number): Add FALLTHRU.
9863 (subst_dup): Likewise.
9864 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
9865 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
9866 (gimplify_scan_omp_clauses): Add FALLTHRU.
9867 (goa_stabilize_expr): Likewise.
9868 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
9870 * hsa-gen.c (get_address_from_value): Likewise.
9871 * ipa-icf.c (sem_function::hash_stmt): Likewise.
9872 * ira.c (ira_setup_alts): Add FALLTHRU.
9873 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
9875 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
9876 * opts.c (common_handle_option): Likewise.
9877 * read-rtl.c (read_rtx_code): Likewise.
9878 * real.c (round_for_format): Likewise.
9879 * recog.c (asm_operand_ok): Likewise.
9880 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
9881 * reload1.c (set_label_offsets): Likewise.
9882 (eliminate_regs_1): Likewise.
9883 (reload_reg_reaches_end_p): Likewise.
9884 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
9885 (rtx_cost): Likewise.
9886 * sched-rgn.c (is_exception_free): Likewise.
9887 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
9888 * stor-layout.c (int_mode_for_mode): Likewise.
9889 * toplev.c (print_to_asm_out_file): Likewise.
9890 (print_to_stderr): Likewise.
9891 * tree-cfg.c (gimple_verify_flow_info): Likewise.
9892 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
9893 (chrec_fold_multiply): Likewise.
9894 (evolution_function_is_invariant_rec_p): Likewise.
9895 (for_each_scev_op): Likewise.
9896 * tree-data-ref.c (siv_subscript_p): Likewise.
9897 (get_references_in_stmt): Likewise.
9898 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
9899 (substitute_in_expr): Likewise.
9900 (type_cache_hasher::equal): Likewise.
9901 (walk_type_fields): Likewise.
9902 * var-tracking.c (adjust_mems): Add FALLTHRU.
9903 (set_dv_changed): Adjust fall through comment.
9904 * varasm.c (default_function_section): Add FALLTHRU.
9906 2016-08-12 Marek Polacek <polacek@redhat.com>
9909 * tree-complex.c (expand_complex_division): Add missing break.
9911 2016-08-12 Richard Biener <rguenther@suse.de>
9913 * passes.c (execute_todo): Do not push/pop TV_TODO.
9914 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
9915 (execute_one_pass): Likewise.
9916 * common.opt (ftime-report-details): New switch.
9917 * doc/invoke.texi (ftime-report-details): Document.
9918 * timevar.h (timer::print_row): Adjust signature.
9919 (timer::all_zero): New static helper.
9920 (timer::child_map_t): New typedef.
9921 (timer::time_var_def): Add children field.
9922 * timevar.c (timer::named_items::print): Adjust.
9923 (timer::~timer): Free timevar recorded children.
9924 (timer::pop_internal): When -ftime-report-details record
9925 time spent in sub-timevars.
9926 (timer::print_row): Adjust.
9927 (timer::print): Print sub-timevar stats, use all_zero.
9928 * timevar.def (TV_TODO): Remove.
9930 2016-08-12 Richard Biener <rguenther@suse.de>
9932 PR tree-optimization/72851
9933 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
9934 worklists to use bitmaps indexed in execution order.
9935 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
9936 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
9937 (cfg_blocks): Make a bitmap.
9938 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
9940 (cfg_blocks_empty_p): Adjust.
9941 (cfg_blocks_add): Likewise.
9942 (cfg_blocks_get): Likewise.
9943 (add_ssa_edge): Likewise.
9944 (add_control_edge): Likewise.
9945 (simulate_stmt): Likewise.
9946 (process_ssa_edge_worklist): Likewise.
9947 (simulate_block): Likewise.
9948 (ssa_prop_init): Compute PRE order and stmt UIDs.
9949 (ssa_prop_fini): Adjust.
9950 (ssa_propagate): Adjust.
9952 2016-08-12 Richard Biener <rguenther@suse.de>
9954 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
9955 the currently executable edges have fixed ranges. Always
9956 go through update_value_range.
9958 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
9962 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
9963 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
9964 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
9965 (LANG_HOOKS_DECLS): Add it.
9966 * langhooks.h (struct lang_hooks_for_decls): Add
9967 function_decl_defaulted. Const_tree-ify
9968 function_decl_explicit_p and function_decl_deleted_p.
9969 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
9970 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
9971 also at strict DWARF v5.
9974 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
9975 TYPE_QUAL_CONST in reference-typed decls.
9978 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
9979 in DW_OP_pieces, just enough to handle pointers to member
9981 (gen_remaining_tmpl_value_param_die_attribute): Use a location
9982 expression on DWARFv5 if a constant value doesn't work.
9984 2016-08-11 David Malcolm <dmalcolm@redhat.com>
9986 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
9987 * selftest.c (selftest::test_assertions): New function.
9988 (selftest::selftest_c_tests): New function.
9989 * selftest.h (selftest::selftest_c_tests): New declaration.
9991 2016-08-11 Richard Biener <rguenther@suse.de>
9992 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9994 PR rtl-optimization/72855
9995 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
9997 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10000 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
10001 (vsx_store_<mode>): Likewise.
10003 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
10005 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
10006 TImode CONST_WIDE_INT store.
10007 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
10009 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
10011 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
10012 mode if unaligned SSE load and store are optimal.
10014 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
10016 PR tree-optimization/71083
10017 * tree-predcom.c (ref_at_iteration): Correctly align the
10020 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10022 * config/s390/s390-builtin-types.def: Add INT128 types.
10023 * config/s390/s390-builtins.def: Add INT128 variants for the add
10024 sub low-level builtins dealing with TImode.
10025 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
10026 via subreg when expanding a builtin.
10027 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
10028 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
10030 * config/s390/vecintrin.h: Adjust builtin names accordingly.
10031 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
10032 ("vec_addc<mode>", "vec_addc_u128"): Merge to
10033 "vacc<bhfgq>_<mode>".
10034 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
10035 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
10036 ("vec_subc<mode>", "vec_subc_u128"): Merge to
10037 "vscbi<bhfgq>_<mode>".
10038 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
10039 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
10041 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10043 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
10045 2016-08-11 Bin Cheng <bin.cheng@arm.com>
10047 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
10048 unused declaration.
10049 (vcond<v_cmp_mixed><mode>): Ditto.
10050 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
10052 2016-08-11 Bin Cheng <bin.cheng@arm.com>
10054 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
10055 variable explicitly, also assert on it before use.
10057 2016-08-11 Richard Biener <rguenther@suse.de>
10059 PR tree-optimization/72772
10060 * cfgloopmanip.c (create_preheader): Use split_edge if there
10061 is a single loop entry, avoiding degenerate PHIs.
10063 2016-08-11 Richard Biener <rguenther@suse.de>
10065 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
10066 unconditional TODO_cleanup_cfg.
10067 (pass_thread_jumps::execute): Initialize loops, perform a CFG
10068 cleanup only if we threaded a jump.
10070 2016-08-11 Alan Modra <amodra@gmail.com>
10073 * lra-constraints.c (simplify_operand_subreg): Allow subreg
10074 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
10075 slow. Emit two reloads for slow mem case, first loading in
10076 fast innermode, then converting to required mode.
10078 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
10080 * config/rs6000/altivec.h (vec_extract_exp): New macro.
10081 (vec_extract_sig): New macro.
10082 (vec_insert_exp): New macro.
10083 (vec_test_data_class): New macro.
10084 (scalar_extract_exp): New macro.
10085 (scalar_extract_sig): New macro.
10086 (scalar_insert_exp): New macro.
10087 (scalar_test_data_class): New macro.
10088 (scalar_test_neg): New macro.
10089 (scalar_cmp_exp_gt): New macro.
10090 (scalar_cmp_exp_lt): New macro.
10091 (scalar_cmp_exp_eq): New macro.
10092 (scalar_cmp_exp_unordered): New macro.
10093 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
10094 to enforce constraint that operand is a 7-bit unsigned literal.
10095 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
10096 for power9 built-ins.
10097 (BU_P9V_VSX_2): Likewise.
10098 (BU_P9V_64BIT_VSX_2): Likewise.
10099 (VSEEDP): Add scalar extract exponent support.
10100 (VSEESP): Add scalar extract signature support.
10101 (VSTDCNDP): Add scalar test negative support.
10102 (VSTDCNSP): Likewise.
10103 (VSIEDP): Add scalar insert exponent support.
10104 (VSCEDPGT): Add scalar compare exponent greater than support.
10105 (VSCEDPLT): Add scalar compare exponent less than support.
10106 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
10107 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
10108 (VSTDCDP): Add scalar test data class support.
10109 (VSTDCSP): Likewise.
10110 (VSEEDP): Add overload support for scalar extract exponent
10112 (VSESDP): Add overload support for scalar extract signature
10114 (VSTDCN): Add overload support for scalar test negative
10116 (VSTDCNDP): Add overload support for scalar test negative
10118 (VSTDCNSP): Add overload support for scalar test negative
10120 (VSIEDP): Add overload support for scalar insert exponent
10122 (VSTDC): Add overload support for scalar test data class
10124 (VSTDCDP): Add overload support for scalar test data class
10126 (VSTDCSP): Add overload support for scalar test data class
10128 (VSCEDPGT): Add overload support for scalar compare exponent
10129 greater than operation.
10130 (VSCEDPLT): Add overload support for scalar compare exponent
10131 less than operation.
10132 (VSCEDPEQ): Add overload support for scalar compare exponent
10133 test-for-equality operation.
10134 (VSCEDPUO): Add overload support for scalar compare exponent
10135 test-for-unordered operation.
10136 (VEEDP): Add vector extract exponent support.
10138 (VESDP): Add vector extract significand support.
10140 (VIEDP): Add vector insert exponent support.
10142 (VTDCDP): Add vector test data class support.
10143 (VTDCSP): Likewise.
10144 (VES): Add overload support for vector extract significand operation.
10147 (VEE): Add overload support for vector extract exponent operation.
10150 (VTDC): Add overload support for vector test data class operation.
10151 (VTDCDP): Likewise.
10152 (VTDCSP): Likewise.
10153 (VIE): Add overload support for vector insert exponent operation.
10156 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10157 overloaded binary floating point functions.
10158 (altivec_resolve_overloaded_builtin): Improve error messages to
10159 distinguish between functions not supported in the current
10160 compiler configuration and functions that were invoked with an
10161 invalid parameter combination, and include the built-in function
10162 name in both error messages.
10163 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
10165 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
10167 (rs6000_expand_binop_builtin): Add check to enforce that argument
10168 2 of the test data class operations is a 7-bit unsigned literal.
10169 (rs6000_invalid_builtin): Add code to issue an error message if a
10170 built-in function that requires the power9_vector and -m32
10171 command-line options is compiled without these options.
10172 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
10173 (UNSPEC_VSX_SXSIGDP): New value.
10174 (UNSPEC_VSX_SXSIGPDP): New value.
10175 (UNSPEC_VSX_SIEXPDP): New value.
10176 (UNSPEC_VSX_SCMPEXPDP): New value.
10177 (UNSPEC_VSX_STSTDC): New value.
10178 (UNSPEC_VSX_VXEXP): New value.
10179 (UNSPEC_VSX_VXSIG): New value.
10180 (UNSPEC_VSX_VIEXP): New value.
10181 (UNSPEC_VSX_VTSTDC): New value.
10182 (xsxexpdp): New insn for scalar extract exponent.
10183 (xsxsigdp): New insn for scalar extract significand.
10184 (xsiexpdp): New insn for scalar insert exponent.
10185 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
10186 (*xscmpexpdp): New insn for scalar compare exponents.
10187 (xststdc<Fvsx): New expansion for both single- and
10188 double-precision scalar test data class operations.
10189 (xststdcneg<Fvsx>): New expansion for both single- and
10190 double-precision scalar test for negative value operations.
10191 (*xststdc<Fvsx>): New insn for scalar test data class
10193 (xvxexp<VSs>): New insn for single- and double-precision
10194 vector extract exponent operation.
10195 (xvxsig<VSs>): New insn for single- and double-precision
10196 vector extract significand operation.
10197 (xviexp<VSs>): New insn for single- and double-precision
10198 vector insert exponent operation.
10199 (xvtstdc<VSs>): New insn for single- and double-precision
10200 vector test data class operation.
10201 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10202 built-in functions to represent the Power9 binary floating-point
10203 support instructions.
10205 2016-08-10 bin cheng <bin.cheng@arm.com>
10207 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
10209 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
10210 Renlin Li <renlin.li@arm.com>
10211 Bin Cheng <bin.cheng@arm.com>
10213 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
10214 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
10215 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
10216 (aarch64_vcond_internal<mode><mode>): Delete pattern.
10217 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
10218 (vcond<v_cmp_result><mode>): Ditto.
10219 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
10220 (vcondu<mode><mode>): Ditto.
10221 (vcond<v_cmp_mixed><mode>): New pattern.
10222 (vcondu<mode><v_cmp_mixed>): New pattern.
10223 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
10224 of aarch64_vcond_internal.
10226 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
10227 Renlin Li <renlin.li@arm.com>
10228 Bin Cheng <bin.cheng@arm.com>
10230 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
10231 (vec_cmp<mode><v_cmp_result>): New pattern.
10232 (vec_cmpu<mode><mode>): New pattern.
10233 (vcond_mask_<mode><v_cmp_result>): New pattern.
10235 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
10237 PR tree-optimization/71734
10238 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
10239 REF_LOOP, invoke ref_indep_loop_p_1.
10240 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
10241 to ref_indep_loop_p.
10242 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
10243 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
10244 is inside LOOP, do not cache dpendence value for loops with
10246 (ref_indep_loop_p_2): Delete function.
10247 (can_sm_ref_p): Pass LOOP as additional argument to
10250 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
10253 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
10254 being an offsettable address.
10256 2016-08-10 Martin Liska <mliska@suse.cz>
10258 PR gcov-profile/58306
10259 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
10260 atomic variants of profile update functions.
10262 2016-08-10 Martin Liska <mliska@suse.cz>
10264 Cherry picked (and modified) from google-4_7 branch
10265 2012-12-26 Rong Xu <xur@google.com>
10266 * common.opt (fprofile-update): Add new flag.
10267 * coretypes.h: Define enum profile_update.
10268 * doc/invoke.texi: Document -fprofile-update.
10269 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
10270 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
10271 * tree-profile.c (gimple_init_edge_profiler): Generate
10272 also atomic profiler update.
10273 (gimple_gen_edge_profiler): Likewise.
10275 2016-08-10 David Malcolm <dmalcolm@redhat.com>
10277 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
10278 stack_usage_file to NULL after fclose calls.
10280 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10283 * reload.c (push_reload): Compute subreg_in_class for
10284 subregs of constants and plus expressions. Remove special
10285 handling of SYMBOL_REFs.
10287 2016-08-10 Alan Modra <amodra@gmail.com>
10290 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
10291 SImode for TARGET_E500_DOUBLE when given SImode.
10293 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
10295 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
10296 unused variable __O.
10298 2016-08-09 Martin Liska <mliska@suse.cz>
10300 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
10301 _gcov_reset to __gcov_reset.
10302 * doc/gcov-tool.texi: Fix typo.
10304 2016-08-09 Martin Liska <mliska@suse.cz>
10306 * value-prof.c (gimple_divmod_values_to_profile): Do not
10307 instrument MOD histogram if a value is not a SSA name.
10309 2016-08-09 Martin Liska <mliska@suse.cz>
10311 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
10314 2016-08-09 Renlin Li <renlin.li@arm.com>
10316 PR middle-end/64971
10317 * calls.c (prepare_call_address): Convert funexp to Pmode when
10319 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
10320 (sibcall_value): Likewise.
10322 2016-08-09 Marek Polacek <polacek@redhat.com>
10325 * cselib.c (cselib_expand_value_rtx_1): Add return.
10326 * gengtype.c (dbgprint_count_type_at): Likewise.
10327 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
10328 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
10330 2016-08-09 Martin Jambor <mjambor@suse.cz>
10333 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
10334 if instance is a MEM_REF.
10336 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
10339 * config/i386/i386.md (*movtf_internal): Use
10340 lra_in_progress || reload_completed instead of !can_create_pseudo_p
10341 in the insn constraint.
10342 (*movxf_internal): Ditto.
10343 (*movdf_internal): Ditto.
10344 (*movsf_internal): Ditto.
10346 2016-08-09 Bin Cheng <bin.cheng@arm.com>
10348 PR tree-optimization/72772
10349 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
10352 2016-08-09 Bin Cheng <bin.cheng@arm.com>
10354 PR tree-optimization/72772
10355 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
10357 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
10358 parameter STOP and update calls. Move expand_simple_operations
10359 function call from here...
10360 (simplify_using_initial_conditions): ...to here. Delete parameter
10362 (tree_simplify_using_condition): Delete parameter STOP.
10363 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
10364 simplify_using_initial_conditions.
10366 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
10369 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
10370 Use create_tmp_var_raw instead of create_tmp_var.
10372 2016-08-09 Richard Biener <rguenther@suse.de>
10374 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
10375 Treat same SSA names related.
10377 2016-08-09 Jakub Jelinek <jakub@redhat.com>
10379 PR tree-optimization/72824
10380 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
10381 real_zerop is not negative.
10383 2016-08-09 Richard Biener <rguenther@suse.de>
10385 PR tree-optimization/71802
10386 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
10387 all merge opportunities with the predecessor.
10389 2016-08-09 Richard Biener <rguenther@suse.de>
10392 * ipa-prop.c (ipa_modify_formal_parameters): Build
10393 parameter types with natural alignment also for the
10396 2016-08-08 Andi Kleen <ak@linux.intel.com>
10398 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
10400 2016-08-08 David Malcolm <dmalcolm@redhat.com>
10403 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
10404 do-nothing langhook.
10405 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
10406 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
10407 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
10408 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
10410 2016-08-08 David Malcolm <dmalcolm@redhat.com>
10413 * input.c: Ensure that HAVE_ICONV is defined.
10415 2016-08-08 Jakub Jelinek <jakub@redhat.com>
10417 PR middle-end/72781
10418 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
10419 private vars for lastprivate and for linear iterator.
10421 PR middle-end/68762
10422 * omp-simd-clone.c: Include varasm.h.
10423 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
10424 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
10425 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
10426 update function name.
10428 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10430 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
10431 (avr_diagnose_devicespecs_error): Remove.
10432 (avr_devicespecs_file): Remove composing absolute path for specfile
10433 and its verbose info. Remove conditions to check specs-file,
10435 2016-08-08 Jakub Jelinek <jakub@redhat.com>
10437 PR rtl-optimization/72821
10438 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
10439 just return false for them.
10441 2016-08-08 Alan Modra <amodra@gmail.com>
10444 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
10445 toc refs created during reload. Update function comment.
10447 2016-08-08 Alan Modra <amodra@gmail.com>
10450 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
10451 alternatives. Put loads first, then stores, and reg/reg moves
10452 within same class later. Delete attr length.
10454 2016-08-08 Alan Modra <amodra@gmail.com>
10457 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
10458 (mem_operand_ds_form): New predicate.
10459 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
10460 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
10461 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
10462 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
10463 (extendsfdf2_fpr): Replace o constraint with wY.
10465 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
10467 * tree-ssa-threadbackward.c: Include tree-inline.h
10468 (profitable_jump_thread_path): Use estimate_num_insns to estimate
10469 size of copied block; for cold paths reduce duplication.
10470 (find_jump_threads_backwards): Remove redundant tests.
10471 (pass_thread_jumps::gate): Enable for -Os.
10473 2016-08-07 Jakub Jelinek <jakub@redhat.com>
10476 * stor-layout.c (layout_decl): Fix up formatting.
10477 (relayout_decl): Allow DECL to be FIELD_DECL.
10479 2016-08-07 Alan Modra <amodra@gmail.com>
10481 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
10483 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10485 * data-streamer-in.c (streamer_read_wide_int): New.
10486 (streamer_read_widest_int): Renamed function.
10487 * data-streamer-out.c (streamer_write_wide_int): New
10488 (streamer_write_widest_int): Renamed function.
10489 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
10491 (input_cfg): Call renamed function.
10492 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
10494 (output_cfg): Call renamed function.
10495 * data-streamer.h: Add declarations.
10497 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10499 * tree-ssa-ccp.c (extend_mask): New param sgn.
10500 Remove ORing with wi::mask.
10501 (get_default_value): Adjust call to extend_mask to pass sign.
10502 (evaluate_stmt): Likewise.
10504 2016-08-06 Jakub Jelinek <jakub@redhat.com>
10506 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
10509 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10511 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
10512 transform if operand's type is pointer to function or method.
10514 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
10516 PR tree-optimization/18046
10517 * tree-ssa-threadedge.c: Include cfganal.h.
10518 (simplify_control_statement_condition): If simplifying a
10519 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
10520 with the dominating ASSERT_EXPR before handing it off to VRP.
10521 Mention that a CASE_LABEL_EXPR may be returned.
10522 (thread_around_empty_blocks): Adjust to handle
10523 simplify_control_statement_condition() returning a
10525 (thread_through_normal_block): Likewise.
10526 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
10527 a switch statement by trying to determine which case label
10530 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
10532 PR rtl-optimization/69847
10533 * lra-constraints.c (process_invariant_for_inheritance): Save
10534 pattern instead of src.
10535 (remove_inheritance_pseudos): Use the pattern. Add assert.
10537 2016-08-05 David Malcolm <dmalcolm@redhat.com>
10539 * input.c (string_concat::string_concat): New constructor.
10540 (string_concat_db::string_concat_db): New constructor.
10541 (string_concat_db::record_string_concatenation): New method.
10542 (string_concat_db::get_string_concatenation): New method.
10543 (string_concat_db::get_key_loc): New method.
10544 (class auto_cpp_string_vec): New class.
10545 (get_substring_ranges_for_loc): New function.
10546 (get_source_range_for_substring): New function.
10547 (get_num_source_ranges_for_substring): New function.
10548 (class selftest::lexer_test_options): New class.
10549 (struct selftest::lexer_test): New struct.
10550 (class selftest::ebcdic_execution_charset): New class.
10551 (selftest::ebcdic_execution_charset::s_singleton): New variable.
10552 (selftest::lexer_test::lexer_test): New constructor.
10553 (selftest::lexer_test::~lexer_test): New destructor.
10554 (selftest::lexer_test::get_token): New method.
10555 (selftest::assert_char_at_range): New function.
10556 (ASSERT_CHAR_AT_RANGE): New macro.
10557 (selftest::assert_num_substring_ranges): New function.
10558 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
10559 (selftest::assert_has_no_substring_ranges): New function.
10560 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
10561 (selftest::test_lexer_string_locations_simple): New function.
10562 (selftest::test_lexer_string_locations_ebcdic): New function.
10563 (selftest::test_lexer_string_locations_hex): New function.
10564 (selftest::test_lexer_string_locations_oct): New function.
10565 (selftest::test_lexer_string_locations_letter_escape_1): New function.
10566 (selftest::test_lexer_string_locations_letter_escape_2): New function.
10567 (selftest::test_lexer_string_locations_ucn4): New function.
10568 (selftest::test_lexer_string_locations_ucn8): New function.
10569 (selftest::uint32_from_big_endian): New function.
10570 (selftest::test_lexer_string_locations_wide_string): New function.
10571 (selftest::uint16_from_big_endian): New function.
10572 (selftest::test_lexer_string_locations_string16): New function.
10573 (selftest::test_lexer_string_locations_string32): New function.
10574 (selftest::test_lexer_string_locations_u8): New function.
10575 (selftest::test_lexer_string_locations_utf8_source): New function.
10576 (selftest::test_lexer_string_locations_concatenation_1): New
10578 (selftest::test_lexer_string_locations_concatenation_2): New
10580 (selftest::test_lexer_string_locations_concatenation_3): New
10582 (selftest::test_lexer_string_locations_macro): New function.
10583 (selftest::test_lexer_string_locations_stringified_macro_argument):
10585 (selftest::test_lexer_string_locations_non_string): New function.
10586 (selftest::test_lexer_string_locations_long_line): New function.
10587 (selftest::test_lexer_char_constants): New function.
10588 (selftest::input_c_tests): Call the new test functions once per
10589 case within the line_table test matrix.
10590 * input.h (struct string_concat): New struct.
10591 (struct location_hash): New struct.
10592 (class string_concat_db): New class.
10593 * substring-locations.h: New header.
10595 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
10597 PR tree-optimization/72810
10598 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
10599 the type of the case labels when truncating.
10601 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
10604 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
10605 (aarch64_fp16_ptr_type_node): Likewise.
10606 * config/aarch64/aarch64-simd-builtins.c
10607 (aarch64_fp16_ptr_type_node): Define.
10608 (aarch64_init_fp16_types): New, refactored out of...
10609 (aarch64_init_builtins): ...here, update to call
10610 aarch64_init_fp16_types.
10611 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
10613 (aapcs_vfp_sub_candidate): Likewise.
10615 2016-08-05 Martin Liska <mliska@suse.cz>
10616 Joshua Cranmer <Pidgeot18@gmail.com>
10618 * gcov.c (line_t::has_block): New function.
10619 (enum loop_type): New enum.
10620 (handle_cycle): New function.
10621 (unblock): Likewise.
10622 (circuit): Likewise.
10623 (get_cycles_count): Likewise.
10624 (accumulate_line_counts): Use new loop detection algorithm.
10626 2016-08-05 Martin Liska <mliska@suse.cz>
10628 * gcov.c (output_intermediate_file): Rename
10629 function_info::line_next to next_file_fn.
10630 (process_file): Likewise.
10631 (read_graph_file): Likewise.
10632 (accumulate_line_counts): Likewise.
10633 (output_lines): Likewise.
10635 2016-08-05 Richard Biener <rguenther@suse.de>
10637 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
10638 restriction on threading to a loop header.
10640 2016-08-05 Richard Biener <rguenther@suse.de>
10642 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
10643 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
10644 adjust loop info accordingly.
10646 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
10648 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
10649 before folding call to __builtin_constant_p with parameters to false.
10651 2016-08-05 Alan Modra <amodra@gmail.com>
10653 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
10654 code accidentally committed 2016-05-02 providing class when given
10657 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
10659 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
10660 the case label ranges that partially overlap with OP's value
10663 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
10666 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
10667 Cast builtin function result to __mmask16 instead of __mmask8.
10668 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
10669 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
10670 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
10672 2016-08-04 David Malcolm <dmalcolm@redhat.com>
10674 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
10675 (ASSERT_TRUE_AT): New macro.
10676 (ASSERT_FALSE): Reimplement in terms of...
10677 (ASSERT_FALSE_AT): New macro.
10678 (ASSERT_STREQ_AT): Fix typo in comment.
10680 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
10682 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
10683 labels are exhaustive, designate the label with the widest
10684 range to be the default label.
10686 2016-08-04 Andrew Pinski <apinski@cavium.com>
10688 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
10689 (thunderx_tunings): Use thunderx_vector_cost instead of
10690 generic_vector_cost.
10692 2016-08-04 Martin Liska <mliska@suse.cz>
10694 * gcov.c (main): Fix GNU coding style.
10695 (output_intermediate_file): Likewise.
10696 (process_file): Likewise.
10697 (generate_results): Likewise.
10698 (release_structures): Likewise.
10699 (create_file_names): Likewise.
10700 (find_source): Likewise.
10701 (read_graph_file): Likewise.
10702 (find_exception_blocks): Likewise.
10703 (canonicalize_name): Likewise.
10704 (make_gcov_file_name): Likewise.
10705 (mangle_name): Likewise.
10706 (accumulate_line_counts): Likewise.
10707 (output_branch_count): Likewise.
10708 (read_line): Likewise.
10710 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
10712 PR rtl-optimization/71779
10713 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
10714 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
10715 or if it was truncated.
10717 PR rtl-optimization/70903
10718 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
10720 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
10722 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
10723 accessing SSA_NAME_PTR_INFO.
10725 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
10728 * common/config/avr/avr-common.c (avr_option_optimization_table)
10729 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
10731 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
10734 * config/avr/avr.md: New pattern to work around do_store_flag
10735 generating shift instructions for bit extractions.
10737 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
10739 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
10741 (add_equivalence): Likewise.
10742 (get_value_range): Allocate value range with vrp_value_range_pool.
10743 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
10744 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
10746 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
10748 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
10749 the default for the rs6000 port.
10751 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10753 PR middle-end/71876
10754 * calls.c (special_function_p): Remove special handling of
10755 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
10756 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
10757 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
10759 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
10761 PR middle-end/72778
10762 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
10763 Don't stop on regular insns.
10765 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
10767 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
10768 size to DImode boundary.
10769 (nvptx_propagate): Likewise.
10771 2016-08-03 Alan Modra <amodra@gmail.com>
10773 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
10774 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
10775 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
10776 from -mefficient-unaligned-vector. Note that this affects fp too.
10778 2016-08-03 Alan Modra <amodra@gmail.com>
10780 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
10783 2016-08-03 Alan Modra <amodra@gmail.com>
10785 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
10786 to a reg. Localize vars.
10788 2016-08-03 Alan Modra <amodra@gmail.com>
10790 * config/rs6000/rs6000.opt: Remove negatives from help strings
10793 2016-08-03 Alan Modra <amodra@gmail.com>
10795 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
10796 Delete duplicated code.
10798 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
10800 PR middle-end/72778
10801 * lra-spills.c (regno_in_use_p): New.
10802 (lra_final_code_change): Use it.
10804 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
10806 PR rtl-optimization/69847
10807 * lra-int.h (struct lra-reg): Use restore_rtx instead of
10809 (lra_rtx_hash): New.
10810 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
10812 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
10813 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
10814 * lra-spills.c (lra_final_code_change): Don't delete insn when the
10815 next insn is USE with the same reg as the current insn source.
10816 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
10818 (lra_constraints_init): Call initiate_invariants.
10819 (lra_constraints_finish): Call finish_invariants.
10820 (struct invariant, invariant_t, invariant_ptr_t): New.
10821 (const_invariant_ptr_t, invariants, invariants_pool): New.
10822 (invariant_table, invariant_hash, invariant_eq_p): New.
10823 (insert_invariant, initiate_invariants, finish_invariants): New.
10824 (clear_invariants, invalid_invariant_regs): New.
10825 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
10826 instead of restore_regno.
10827 (invariant_p, process_invariant_for_inheritance): New.
10828 (inherit_in_ebb): Implement invariant inheritance.
10829 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
10830 (remove_inheritance_pseudos): Implement undoing invariant
10832 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
10833 instead of restore_regno.
10834 * lra-assigns.c (regno_live_length): New.
10835 (reload_pseudo_compare_func): Use regno_live_length.
10836 (assign_by_spills): Use restore_rtx instead of restore_regno.
10837 (lra_assign): Ditto. Initiate regno_live_length.
10839 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
10841 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
10842 __builtin_aarch64_fmindf.
10844 2016-08-02 Bin Cheng <bin.cheng@arm.com>
10846 PR tree-optimization/34114
10847 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
10848 information for more control IVs.
10850 2016-08-02 Bin Cheng <bin.cheng@arm.com>
10852 PR tree-optimization/34114
10853 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
10854 PLUS_EXPR case. Handle SSA_NAME case.
10856 2016-08-02 Tamar Christina <tamar.christina@arm.com>
10858 * config/aarch64/aarch64-simd-builtins.def
10859 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
10860 (__builtin_aarch64_fmaxdf): Likewise.
10861 (__builtin_aarch64_smin_nandf): Likewise.
10862 (__builtin_aarch64_smax_nandf): Likewise.
10863 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
10864 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
10865 (<fmaxmin><mode>3): ...this.
10866 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
10867 (vminnm_f64): Likewise.
10868 (vmin_f64): Likewise.
10869 (vmax_f64): Likewise.
10870 * config/aarch64/iterators.md (FMAXMIN): Merge with...
10871 (FMAXMIN_UNS): ...this.
10872 (fmaxmin): Merged with
10873 (fmaxmin_op): ...this...
10874 (maxmin_uns_op): ...in to this.
10876 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10878 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10879 Add support for vec_extract on vector float, vector int, vector
10880 short, and vector char vector types.
10881 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10882 vector float, vector int, vector short, and vector char
10883 optimizations on 64-bit ISA 2.07 systems for both constant and
10884 variable element numbers.
10885 (rs6000_split_vec_extract_var): Likewise.
10886 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
10887 Altivec registers on ISA 2.07 and above.
10888 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
10889 which never was matched due to the split occuring before register
10890 allocation (and the code would not have worked on little endian
10891 systems if it did match). Allow extracts to go to the Altivec
10892 registers if ISA 2.07 (power8). Change from using "" around the
10893 C++ code to using {}'s.
10894 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
10895 vec_extracts when the vector is in memory.
10896 (vsx_extract_v4sf_var): New insn to optimize vector float
10897 vec_extracts when the element number is variable on 64-bit ISA
10899 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
10900 for 64-bit ISA 2.07 as well as ISA 3.0.
10901 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
10902 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
10903 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
10904 optimize vector int, vector short, and vector char vec_extracts
10905 when the vector is in memory.
10906 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
10907 optimize vector int, vector short, and vector char vec_extracts
10908 when the element number is variable.
10910 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
10913 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
10914 does not overlap with other symbol flags.
10916 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
10918 * config/aarch64/aarch64.h (aarch64_frame):
10919 Remove padding0 and hardfp_offset. Add locals_offset,
10920 initial_adjust, callee_adjust, callee_offset and final_adjust.
10921 * config/aarch64/aarch64.c (aarch64_layout_frame):
10922 Remove unused padding0 and hardfp_offset initializations.
10923 Choose frame layout and set frame variables accordingly.
10924 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
10925 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
10926 (aarch64_pop_regs): Likewise.
10927 (aarch64_expand_prologue): Remove all decision code, just emit
10928 prolog according to frame variables.
10929 (aarch64_expand_epilogue): Remove all decision code, just emit
10930 epilog according to frame variables.
10931 (aarch64_initial_elimination_offset): Use offset to local/arg area.
10933 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
10936 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
10937 fix_debug_reg_uses after changing source register mode to
10938 V1TImode if source register is undefined.
10940 2015-08-01 Alan Hayward <alan.hayward@arm.com>
10942 PR tree-optimization/71818
10943 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
10944 with non invariant evolutions
10946 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
10949 * config/avr/avr.md (length) [branch]: Correct insn length
10950 attribute for forward branches.
10952 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
10954 * doc/extend.texi (AVR Built-in Functions): Document
10955 __builtin_avr_nops.
10956 * config/avr/builtins.def (NOPS): New.
10957 * config/avr/avr.c (avr_expand_nops): New static function.
10958 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
10960 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10962 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
10963 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
10966 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
10968 * config/aarch64/aarch64.c (vulcan_tunings): Update
10969 vulcan L1 cache_line_size.
10971 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10973 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
10974 function that takes a vector memory address, a hard register, an
10975 element number and a temporary base register, and recreates an
10976 address that points to the appropriate element within the vector.
10977 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
10978 (rs6000_split_vec_extract_var): Add support for the target of a
10979 vec_extract with variable element number being a scalar memory
10981 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
10983 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
10984 vsx_extract_<mode>_load insn with a new insn that optimizes
10985 storing either element to a memory location, using scratch
10986 registers to pick apart the vector and reconstruct the address.
10987 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
10988 (vsx_extract_<mode>_store): Rework alternatives to more correctly
10989 support Altivec registers. Add support for ISA 3.0 Altivec d-form
10991 (vsx_extract_<mode>_var): Add support for extracting a variable
10992 element number from memory.
10994 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
10996 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
10997 when testing for compares against constants of the form 0xabab.
10999 2016-07-29 Bin Cheng <bin.cheng@arm.com>
11001 PR tree-optimization/57558
11002 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
11004 (vect_loop_versioning): Support versioning with niter assumptions.
11005 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
11006 (vect_get_loop_niters): New parameter. Reimplement to support
11007 assumptions in loop niter info.
11008 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
11009 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
11010 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
11011 Support loop versioning for niters.
11012 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
11013 (vect_free_loop_info_assumptions): New function.
11014 (vectorize_loops): Free loop niter info for loops with flag
11015 LOOP_F_ASSUMPTIONS set if vectorization failed.
11016 * tree-vectorizer.h (struct _loop_vec_info): New field
11017 num_iters_assumptions.
11018 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
11019 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
11020 (LOOP_REQUIRES_VERSIONING): New macro.
11021 (vect_free_loop_info_assumptions): New decl.
11023 2016-07-29 Bin Cheng <bin.cheng@arm.com>
11025 * cfgloop.h (struct loop): New field constraints.
11026 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
11027 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
11029 * cfgloop.c (alloc_loop): Initialize new field.
11030 * cfgloopmanip.c (copy_loop_info): Copy constraints.
11031 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
11032 Adjust niter analysis wrto loop constraints.
11033 * doc/loop.texi (@node Number of iterations): Add description for loop
11036 2016-07-29 Marek Polacek <polacek@redhat.com>
11039 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
11040 (ix86_expand_round_builtin): Likewise.
11042 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
11043 Georg-Johann Lay <avr@gjlay.de>
11045 PR rtl-optimization/71976
11046 * combine.c (get_last_value): Return 0 if the argument for which
11047 the function is called has a wider mode than the recorded value.
11049 2016-07-29 Marek Polacek <polacek@redhat.com>
11052 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
11053 (altivec_expand_st_builtin): Likewise.
11055 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
11057 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
11058 introduced in r238381.
11060 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11062 PR middle-end/68217
11063 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
11064 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
11066 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
11068 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
11070 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11071 Add support for vec_extract of vector double or vector long having
11072 a variable element number on 64-bit ISA 2.07 systems or newer.
11073 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
11075 (rs6000_split_vec_extract_var): New function to split a
11076 vec_extract built-in function with variable element number.
11077 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
11079 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
11080 (UNSPEC_VSX_EXTRACT): Likewise.
11081 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
11082 direct move instructions to be generated on 64-bit ISA 2.07
11083 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
11085 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
11086 arguments for vec_extract variable element.
11087 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
11088 vec_extract with variable element on V2DFmode and V2DImode
11090 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
11091 -mupper-regs-df requirement, since it isn't needed.
11092 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
11093 do direct moves on 64-bit systems, which allows optimization of
11094 vec_extract on 64-bit ISA 2.07 systems and newer.
11096 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
11097 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
11099 * config/aarch64/aarch64.md
11100 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
11101 statement and type.
11102 (<optab>qihi2_aarch64): Likewise, and split into two.
11103 (extendqihi2_aarch64): New.
11104 (zero_extendqihi2_aarch64): New.
11105 * config/aarch64/iterators.md (ldrxt): Remove.
11106 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
11109 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
11111 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
11113 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
11115 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
11116 (aarch64_push_reg): New function to push 1 or 2 registers.
11117 (aarch64_pop_reg): New function to pop 1 or 2 registers.
11118 (aarch64_expand_prologue): Use aarch64_push_regs.
11119 (aarch64_expand_epilogue): Use aarch64_pop_regs.
11121 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
11123 PR tree-optimization/71734
11124 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
11125 attribute instead of REF_LOOP and use it.
11126 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
11127 set it for Loops having non-zero safelen attribute.
11128 (ref_indep_loop_p): Pass zero as initial value for safelen.
11130 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
11132 PR middle-end/72657
11134 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
11135 call using chkp_gimple_call_builtin_p.
11136 (chkp_copy_bounds_for_assign): Likewise.
11138 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11140 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
11141 * config/arm/arm-protos.h (struct tune_params): Likewise.
11142 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
11143 (cortex_a9_sched_adjust_cost): Likewise.
11144 (fa726te_sched_adjust_cost): Likewise.
11145 (arm_adjust_cost): Likewise.
11146 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
11147 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
11148 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
11149 * config/i386/i386.c (ix86_adjust_cost): Likewise.
11150 * config/ia64/ia64.c: Likewise.
11151 * config/m68k/m68k.c: Likewise.
11152 * config/mep/mep.c (mep_adjust_cost): Likewise.
11153 * config/microblaze/microblaze.c (microblaze_adjust_cost):
11155 * config/mips/mips.c (mips_adjust_cost): Likewise.
11156 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
11158 * config/pa/pa.c (pa_adjust_cost): Likewise.
11159 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
11160 (rs6000_debug_adjust_cost): Likewise.
11161 * config/sh/sh.c (sh_adjust_cost): Likewise.
11162 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
11163 (hypersparc_adjust_cost): Likewise.
11164 (sparc_adjust_cost): Likewise.
11165 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
11166 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
11167 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
11169 * config/visium/visium.c (visium_adjust_cost): Likewise.
11170 * doc/tm.texi: Regenerate.
11171 * haifa-sched.c (dep_cost_1): Adjust.
11172 * target.def: Merge adjust_cost and adjust_cost_2.
11174 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11176 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
11178 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11180 * store-motion.c (struct st_expr): Make pattern_regs a vector.
11181 (extract_mentioned_regs): Append to a vector instead of
11182 returning a rtx_expr_list.
11183 (st_expr_entry): Adjust.
11184 (free_st_expr_entry): Likewise.
11185 (store_ops_ok): Likewise.
11186 (store_killed_in_insn): Likewise.
11187 (find_moveable_store): Likewise.
11189 2016-07-28 Martin Liska <mliska@suse.cz>
11191 PR gcov-profile/68025
11192 * tree-profile.c (tree_profiling): Respect
11193 no_profile_instrument_function attribute.
11194 * doc/extend.texi: Document no_profile_instrument_function
11197 2016-07-28 Martin Liska <mliska@suse.cz>
11199 PR rtl-optimization/70944
11200 * combine.c (make_compound_operation):
11201 Do not allow make_compound_operation for vector mode
11203 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
11205 PR middle-end/71994
11206 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
11207 before calling get_ops.
11209 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
11211 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
11212 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
11213 (BITS_PER_UNIT_LOG): Remove.
11214 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
11215 * expr.c (expand_assignment): Likewise.
11216 * stor-layout.c (initialize_sizetypes): Likewise.
11218 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11220 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
11221 signature of rs6000_expand_vector_extract so that the element
11222 number is a RTX instead of a constant integer.
11223 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
11225 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
11226 (altivec_expand_vec_ext_builtin): Likewise.
11227 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
11228 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
11229 MFVSRLD instruction.
11231 2016-07-27 David Malcolm <dmalcolm@redhat.com>
11233 * input.c (get_pure_location): Move here from tree.c.
11234 (make_location): Likewise. Add header comment.
11235 (selftest::test_accessing_ordinary_linemaps): Verify
11236 pure_location_p, make_location, get_location_from_adhoc_loc and
11237 get_range_from_loc.
11238 * input.h (get_pure_location): Move declaration here from tree.h.
11239 (get_finish): Likewise for inline function.
11240 (make_location): Likewise for declaration.
11241 * tree.c (get_pure_location): Move to input.c.
11242 (make_location): Likewise.
11243 * tree.h (get_pure_location): Move declaration to tree.h.
11244 (get_finish): Likewise for inline function.
11245 (make_location): Likewise for declaration.
11247 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11249 PR middle-end/71078
11250 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
11252 2016-07-27 David Malcolm <dmalcolm@redhat.com>
11254 * system.h (STATIC_ASSERT): Use static_assert if building
11255 with C++11 onwards.
11257 2016-07-27 Richard Biener <rguenther@suse.de>
11259 PR tree-optimization/72517
11260 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11261 Revert change to not compute read-read dependences.
11263 2016-07-27 Richard Biener <rguenther@suse.de>
11265 * predict.c (set_even_probabilities): Make nedges unsigned.
11267 2016-07-27 Martin Liska <mliska@suse.cz>
11269 * predict.c (set_even_probabilities): Handle unlikely edges.
11270 (combine_predictions_for_bb): Likewise.
11272 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
11275 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
11276 __float128 support when we don't have hardware support, so that
11277 the IEEE built-in functions like isgreater, first call __unordkf3
11278 to make sure neither operand is a NaN, and if both operands are
11279 ordered, do the normal comparison.
11281 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
11283 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
11285 (extract_code_and_val_from_cond_with_ops): Verify that name is
11286 either cond_op0 or cond_op1.
11288 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
11290 PR tree-optimization/18046
11291 * genmodes.c (emit_mode_size_inline): Emit an assert that
11292 verifies that mode is a valid array index.
11293 (emit_mode_nuinits_inline): Likewise.
11294 (emit_mode_inner_inline): Likewise.
11295 (emit_mode_unit_size_inline): Likewise.
11296 (emit_mode_unit_precision_inline): Likewise.
11297 * tree-vrp.c: Include params.h.
11298 (find_switch_asserts): Register edge assertions for the default
11299 label which correspond to the anti-ranges of each case label.
11300 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
11301 * doc/invoke.texi: Document it.
11303 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11305 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
11306 and unnecessary call to gimple_bb.
11308 2016-07-26 Richard Biener <rguenther@suse.de>
11310 PR rtl-optimization/71984
11311 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
11314 2016-07-26 Richard Biener <rguenther@suse.de>
11316 PR middle-end/72517
11317 * expmed.c (extract_bit_field_1): Constrain the vector mode
11318 with element size matching the extraction mode size when
11319 choosing a better vector mode to do the extraction from.
11321 2016-07-26 Richard Biener <rguenther@suse.de>
11322 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11324 PR middle-end/70920
11325 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
11328 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11330 * tree-ssa-structalias.c (struct scc_info): Change types of
11331 members to auto_sbitmap and auto_vec.
11332 (scc_info::scc_info): New constructor.
11333 (scc_info::~scc_info): New destructor.
11334 (init_scc_info): Remove.
11335 (free_scc_info): Remove.
11336 (find_indirect_cycles): Adjust.
11337 (perform_var_substitution): Likewise.
11338 (free_var_substitution_info): Likewise.
11340 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11342 * tree-outof-ssa.c (struct elim_graph): Change type of members
11343 to auto_vec and auto_sbitmap.
11344 (elim_graph::elim_graph): New constructor.
11345 (delete_elim_graph): Remove.
11346 (expand_phi_nodes): Adjust.
11348 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11350 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
11351 (new_elim_graph): Adjust.
11352 (clear_elim_graph): Likewise.
11353 (delete_elim_graph): Likewise.
11354 (elim_graph_size): Likewise.
11355 (elim_graph_add_node): Likewise.
11356 (elim_graph_add_edge): Likewise.
11357 (elim_graph_remove_succ_edge): Likewise.
11358 (eliminate_name): Likewise.
11359 (eliminate_build): Likewise.
11360 (elim_forward): Likewise.
11361 (elim_unvisited_predecessor): Likewise.
11362 (elim_backward): Likewise.
11363 (elim_create): Likewise.
11364 (eliminate_phi): Likewise.
11365 (expand_phi_nodes): Likewise.
11367 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11369 * bt-load.c (compute_out): Use auto_sbitmap class.
11370 (link_btr_uses): Likewise.
11371 * cfganal.c (mark_dfs_back_edges): Likewise.
11372 (post_order_compute): Likewise.
11373 (inverted_post_order_compute): Likewise.
11374 (pre_and_rev_post_order_compute_fn): Likewise.
11375 (single_pred_before_succ_order): Likewise.
11376 * cfgexpand.c (pass_expand::execute): Likewise.
11377 * cfgloop.c (verify_loop_structure): Likewise.
11378 * cfgloopmanip.c (fix_bb_placements): Likewise.
11379 (remove_path): Likewise.
11380 (update_dominators_in_loop): Likewise.
11381 * cfgrtl.c (break_superblocks): Likewise.
11382 * ddg.c (check_sccs): Likewise.
11383 (create_ddg_all_sccs): Likewise.
11384 * df-core.c (df_worklist_dataflow): Likewise.
11385 * dse.c (dse_step3): Likewise.
11386 * except.c (eh_region_outermost): Likewise.
11387 * function.c (thread_prologue_and_epilogue_insns): Likewise.
11388 * gcse.c (prune_expressions): Likewise.
11389 (prune_insertions_deletions): Likewise.
11390 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
11391 * graph.c (draw_cfg_nodes_no_loops): Likewise.
11392 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
11393 * lcm.c (compute_earliest): Likewise.
11394 (compute_farthest): Likewise.
11395 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
11396 (unroll_loop_runtime_iterations): Likewise.
11397 (unroll_loop_stupid): Likewise.
11398 * lower-subreg.c (decompose_multiword_subregs): Likewise.
11399 * lra-lives.c: Likewise.
11400 * lra.c (lra): Likewise.
11401 * modulo-sched.c (schedule_reg_moves): Likewise.
11402 (optimize_sc): Likewise.
11403 (get_sched_window): Likewise.
11404 (sms_schedule_by_order): Likewise.
11405 (check_nodes_order): Likewise.
11406 (order_nodes_of_sccs): Likewise.
11407 (order_nodes_in_scc): Likewise.
11408 * recog.c (split_all_insns): Likewise.
11409 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
11410 * reload1.c (reload): Likewise.
11411 * sched-rgn.c (haifa_find_rgns): Likewise.
11412 (split_edges): Likewise.
11413 (compute_trg_info): Likewise.
11414 * sel-sched.c (init_seqno): Likewise.
11415 * store-motion.c (remove_reachable_equiv_notes): Likewise.
11416 * tree-into-ssa.c (update_ssa): Likewise.
11417 * tree-ssa-live.c (live_worklist): Likewise.
11418 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
11419 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
11421 (try_peel_loop): Likewise.
11422 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
11424 * tree-ssa-pre.c (compute_antic): Likewise.
11425 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
11426 * tree-stdarg.c (reachable_at_most_once): Likewise.
11427 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
11428 * var-tracking.c (vt_find_locations): Likewise.
11430 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11432 * sbitmap.h (auto_sbitmap): New class.
11434 2016-07-26 Alan Modra <amodra@gmail.com>
11437 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
11440 2016-07-25 David Malcolm <dmalcolm@redhat.com>
11442 * input.c (selftest::temp_source_file::temp_source_file): Fix
11443 missing "%s" in fprintf.
11445 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
11447 PR middle-end/71732
11448 * cselib.c (cselib_process_insn): Invalidate argument slots for
11451 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11453 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
11454 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
11455 vmulxh_lane_f16, vmulxh_laneq_f16): New.
11457 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11459 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
11460 * config/aarch64/aarch64.md (fma, fnma): Support HF.
11461 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
11463 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11465 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
11466 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
11468 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
11469 (add<mode>3): Likewise.
11470 (sub<mode>3): Likewise.
11471 (mul<mode>3): Likewise.
11472 (div<mode>3): Likewise.
11473 (*div<mode>3): Likewise.
11474 (<fmaxmin><mode>3): Extend to HF.
11475 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
11476 (fabd<mode>3): Likewise.
11477 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
11478 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
11479 (aarch64_fmulx<mode>): Likewise.
11480 (aarch64_fac<optab><mode>): Likewise.
11481 (aarch64_frecps<mode>): Likewise.
11482 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
11483 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
11484 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
11485 (VSDQ_HSDI): Support HI.
11486 (fcvt_target, FCVT_TARGET): Likewise.
11487 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
11488 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
11489 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
11490 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
11491 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
11492 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
11493 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
11494 vrsqrtsh_f16): New.
11496 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11498 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
11499 * config/aarch64/aarch64-builtins.c (hi_UP): New.
11500 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
11501 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
11503 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
11504 (aarch64_cm<optab><mode>): Likewise.
11505 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
11506 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
11507 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
11508 (sqrt<mode>2): Likewise.
11509 (*sqrt<mode>2): Likewise.
11510 (abs<mode>2): Likewise.
11511 (<optab><mode>hf2): New pattern for HF mode.
11512 (<optab>hihf2): Likewise.
11513 * config/aarch64/arm_neon.h: Include arm_fp16.h.
11514 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
11515 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
11517 * config/aarch64/arm_fp16.h: New file.
11518 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
11519 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
11520 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
11521 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
11522 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
11523 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
11524 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
11525 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
11526 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
11527 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
11528 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
11529 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
11532 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11534 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
11535 reduc_smin_scal_): Use VDQIF_F16.
11536 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
11537 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
11539 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
11540 * config/aarch64/iterators.md (VDQIF_F16): New.
11541 (vp): Support HF modes.
11542 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
11543 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
11545 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11547 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
11548 "*aarch64_mulx_elt_from_dup<mode>".
11549 (*aarch64_mul3_elt<mode>): Update schedule type.
11550 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
11551 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
11552 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
11553 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
11554 (f, fp): Support HF modes.
11555 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
11556 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
11557 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
11558 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
11559 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
11560 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
11562 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11564 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
11565 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
11567 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
11570 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11572 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
11573 * config/aarch64/aarch64-simd.md
11574 (aarch64_rsqrts<mode>): Extend to HF modes.
11575 (fabd<mode>3): Likewise.
11576 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
11577 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
11578 (aarch64_<maxmin_uns>p<mode>): Likewise.
11579 (<su><maxmin><mode>3): Likewise.
11580 (<maxmin_uns><mode>3): Likewise.
11581 (<fmaxmin><mode>3): Likewise.
11582 (aarch64_faddp<mode>): Likewise.
11583 (aarch64_fmulx<mode>): Likewise.
11584 (aarch64_frecps<mode>): Likewise.
11585 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
11586 (add<mode>3): Extend to HF modes.
11587 (sub<mode>3): Likewise.
11588 (mul<mode>3): Likewise.
11589 (div<mode>3): Likewise.
11590 (*div<mode>3): Likewise.
11591 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
11593 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
11594 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
11595 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
11596 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
11597 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
11598 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
11599 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
11600 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
11601 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
11602 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
11603 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
11604 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
11605 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
11606 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
11608 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11610 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
11611 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
11612 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
11613 (neg<mode>2): Likewise.
11614 (abs<mode>2): Likewise.
11615 (<frint_pattern><mode>2): Likewise.
11616 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
11617 (<optab><VDQF:mode><fcvt_target>2): Likewise.
11618 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
11619 (ftrunc<VDQF:mode>2): Likewise.
11620 (<optab><fcvt_target><VDQF:mode>2): Likewise.
11621 (sqrt<mode>2): Likewise.
11622 (*sqrt<mode>2): Likewise.
11623 (aarch64_frecpe<mode>): Likewise.
11624 (aarch64_cm<optab><mode>): Likewise.
11625 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
11627 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
11628 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
11630 * config/aarch64/arm_neon.h (vdup_n_f16): New.
11631 (vdupq_n_f16): Likewise.
11632 (vld1_dup_f16): Use vdup_n_f16.
11633 (vld1q_dup_f16): Use vdupq_n_f16.
11634 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
11635 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
11636 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
11637 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
11638 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
11639 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
11640 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
11641 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
11642 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
11643 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
11644 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
11645 vsqrt_f16, vsqrtq_f16): New.
11647 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11649 * config/aarch64/aarch64-simd.md
11650 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
11651 (aarch64_ext<mode>): Likewise.
11652 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
11653 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
11654 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
11656 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
11658 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
11659 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
11660 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
11661 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
11662 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
11663 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
11664 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
11666 (vmov_n_f16): Reimplement using vdup_n_f16.
11667 (vmovq_n_f16): Reimplement using vdupq_n_f16..
11669 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11671 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
11672 "frame_related_p". Generate CFA annotation when it's necessary.
11673 (aarch64_expand_prologue): Use aarch64_add_constant.
11674 (aarch64_expand_epilogue): Likewise.
11675 (aarch64_output_mi_thunk): Pass "false" when calling
11676 aarch64_add_constant.
11678 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11680 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
11683 2016-07-25 Jiong Wang <jiong.wang@arm.com>
11685 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
11686 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
11687 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
11688 (aarch64_build_constant): Delete.
11690 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
11693 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
11695 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
11696 flag_toplevel_reorder.
11698 2016-07-25 Richard Biener <rguenther@suse.de>
11700 * cgraph.c (cgraph_node::verify_node): Compare against builtin
11701 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
11702 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
11703 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
11704 (streamer_get_builtin_tree): Likewise.
11705 (streamer_write_builtin): Likewise.
11706 * lto-streamer.h (LTO_builtin_decl): Remove.
11707 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
11708 (lto_input_scc): Remove LTO_builtin_decl handling.
11709 (lto_input_tree_1): Liekwise.
11710 * lto-streamer-out.c (lto_output_tree_1): Remove special
11711 handling of builtins.
11712 (DFS::DFS): Likewise.
11713 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
11714 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
11716 (streamer_write_builtin): Remove.
11718 2016-07-25 Martin Liska <mliska@suse.cz>
11720 * lto-cgraph.c (input_symtab): Don't call get_working_sets
11721 if flag_auto_profile is set to true.
11723 2016-07-25 Martin Liska <mliska@suse.cz>
11725 PR gcov-profile/71868
11726 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
11727 have a function with multiple latches, count them all.
11729 2016-07-25 Martin Liska <mliska@suse.cz>
11731 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
11733 2016-07-25 Martin Liska <mliska@suse.cz>
11735 PR tree-optimization/71987
11736 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
11737 just for SSA_NAMEs. Fix GNU coding style.
11739 2016-07-25 Martin Liska <mliska@suse.cz>
11741 PR gcov-profile/64874
11742 * gcov-io.h: Update command about file format.
11743 * gcov-iov.c (main): Adapt the numbering scheme.
11745 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
11747 PR middle-end/66726
11748 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
11749 whose result is used in PHI.
11750 (final_range_test_p): Likewise.
11751 (maybe_optimize_range_tests): Likewise.
11753 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
11755 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11756 Reformat two multi-line strings.
11758 2016-07-22 Martin Sebor <msebor@redhat.com>
11760 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
11762 2016-07-22 Martin Sebor <msebor@redhat.com>
11765 * doc/extend.texi (Compound Literals): Correct and clarify.
11766 (Cast to Union): Same.
11768 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
11770 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
11771 comments to explain why certain error messages make mention of
11772 undocumented options.
11773 (rs6000_invalid_builtin): Change error messages to replace mention
11774 of undocumented options with mention of the -mcpu=power9 option
11775 that enables those undocumented options.
11776 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
11777 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
11778 definition of this macro to correct an existing error.
11779 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
11780 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
11781 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
11782 descriptions of built-in functions so that they depend on
11783 -mcpu=power9 instead of on the corresponding undocumented flags.
11784 * doc/invoke.texi (Option Summary): Remove all mention of newly
11785 undocumented flags.
11786 (IBM RS/6000 and PowerPC Options): Likewise.
11787 * doc/md.texi (Constraints for Particuliar Machines): Remove all
11788 mention of newly undocumented flags.
11790 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
11792 * ipa-cp.c (determine_versionability): Do not create constprop clones,
11793 when target_clones attribute is set.
11795 2016-07-22 Bin Cheng <bin.cheng@arm.com>
11797 * common.opt (funsafe-loop-optimizations): Mark ignore.
11798 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
11799 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
11801 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
11802 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
11804 2016-07-22 Bin Cheng <bin.cheng@arm.com>
11806 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
11808 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
11810 (number_of_iterations_exit): Warn missed loop optimization for
11811 possible infinite loops.
11813 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
11816 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
11817 when to emit a ".machine" pseudo-op.
11819 2016-07-22 Martin Liska <mliska@suse.cz>
11821 PR gcov-profile/69028
11822 PR gcov-profile/62047
11823 * coverage.c (coverage_compute_lineno_checksum): Do not
11824 calculate checksum for fns w/o xloc.file.
11825 (coverage_compute_profile_id): Likewise.
11827 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
11829 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
11830 (avr_secondary_reload): ...and implementation.
11831 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
11832 * config/avr/avr.md (reload_in<mode>): Remove insns.
11833 (adjust_len) [lpm]: Remove insn attribute value.
11834 * config/avr/predicates.md (flash_operand): Remove insn predicate.
11836 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11838 PR middle-end/71876
11839 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
11841 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
11842 * calls.c (special_function_p): Remove the special handling of the
11843 "__builtin_" prefix.
11845 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11847 PR middle-end/71876
11848 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
11849 if STMT may be an alloca call.
11850 (gimple_alloca_call_p, alloca_call_p): Return only true for the
11851 builtin alloca call.
11852 * calls.h (gimple_maybe_alloca_call_p): New function.
11853 * tree-inline.c (inline_forbidden_p_stmt): Use
11854 gimple_maybe_alloca_call_p here.
11856 2016-07-21 David Malcolm <dmalcolm@redhat.com>
11858 * spellcheck-tree.c (best_macro_match::best_macro_match):
11859 Explictly specify the template arguments when invoking the base
11860 class constructor, to help older C++ compilers.
11862 2016-07-21 Jakub Jelinek <jakub@redhat.com>
11865 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
11866 before builtin_decl_implicit.
11868 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
11870 * optabs.c (emit_condiitonal_move): Short circuit for identical
11873 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
11875 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
11876 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
11877 (noce_conversion_profitable_p): New.
11878 (noce_try_store_flag_constants): Use it.
11879 (noce_try_addcc): Likewise.
11880 (noce_try_store_flag_mask): Likewise.
11881 (noce_try_cmove): Likewise.
11882 (noce_try_cmove_arith): Likewise.
11883 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
11885 (noce_convert_multiple_sets): Move cost model to here, from...
11886 (bb_ok_for_noce_convert_multiple_sets) ...here.
11887 (noce_process_if_block): Update calls for above changes.
11888 (noce_find_if_block): Record new noce_if_info parameters.
11890 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
11892 * target.def (max_noce_ifcvt_seq_cost): New.
11893 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
11894 * doc/tm.texi: Regenerate.
11895 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
11896 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
11897 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
11898 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
11899 * doc/invoke.texi: Document new params.
11901 2016-07-21 Richard Biener <rguenther@suse.de>
11903 PR tree-optimization/71947
11904 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
11905 ranges have useful limit_vr information.
11907 2016-07-21 Richard Biener <rguenther@suse.de>
11909 * function-tests.c (build_trivial_generic_function): Set
11910 BLOCK_SUPERCONTEXT of DECL_INITIAL.
11911 * omp-low.c (create_omp_child_function): Likewise.
11912 (grid_expand_target_grid_body): Likewise.
11913 * cgraphunit.c (init_lowered_empty_function): Likewise.
11914 (cgraph_node::expand_thunk): Likewise.
11915 * tree-parloops.c (create_loop_fn): Likewise.
11916 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
11918 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11920 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
11923 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
11925 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
11926 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
11927 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
11928 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
11929 values for insn attribute.
11930 * config/avr/avr.c (avr_out_insert_notbit): New function.
11931 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
11932 ADJUST_LEN_INSV_NOTBIT_0/_7.
11933 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
11935 2016-07-21 Bin Cheng <bin.cheng@arm.com>
11937 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
11938 (chrec_convert_1, chrec_convert): Ditto.
11939 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
11940 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
11941 * tree-vrp.c (adjust_range_with_scev): Ditto.
11942 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
11943 (scev_var_range_cant_overflow): New function.
11944 (scev_probably_wraps_p): New parameter. Call above function.
11945 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
11947 2016-07-21 Bin Cheng <bin.cheng@arm.com>
11949 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
11950 by removing computation of may_be_zero.
11952 2016-07-21 Jakub Jelinek <jakub@redhat.com>
11954 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
11956 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
11958 Improving concepts performance and diagnostics.
11959 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
11960 for constraint satisfaction and subsumption.
11961 * timevar.h (auto_timevar): New constructor that matches the push/pop
11962 pattern of usage in pt.c.
11964 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
11966 * hwint.h (HOST_WIDE_INT_0): New define.
11967 (HOST_WIDE_INT_0U): Ditto.
11968 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
11969 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
11970 * simplify-rtx.c: Ditto.
11971 * tree-object-size.c: Ditto.
11973 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11975 * config/s390/s390.c (s390_encode_section_info): Remove mode size
11978 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
11980 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
11981 * combine.c: Use HOST_WIDE_INT_M1U instead of
11982 ~(unsigned HOST_WIDE_INT) 0.
11983 * double-int.h: Ditto.
11985 * dwarf2asm.c:Ditto.
11987 * genmodes.c: Ditto.
11989 * read-rtl.c: Ditto.
11990 * tree-ssa-loop-ivopts.c: Ditto.
11991 * tree-ssa-loop-prefetch.c: Ditto.
11992 * tree-vect-generic.c: Ditto.
11993 * tree-vect-patterns.c: Ditto.
11996 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
11998 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
11999 constant addresses outside [0,0xc0] into a register.
12000 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
12001 cases where the base address register is unused after.
12002 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
12003 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
12004 (avr_out_store_psi_reg_disp_tiny): Same.
12006 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
12008 Implement attribute progmem on reduced Tiny cores by adding
12009 flash offset 0x4000 to respective symbols.
12012 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
12013 documentation how it works on reduced Tiny cores.
12014 (AVR Named Address Spaces): No support for reduced Tiny.
12015 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
12016 (avr_address_tiny_pm_p): New static function.
12017 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
12018 if the address is in progmem.
12019 (avr_assemble_integer): Same.
12020 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
12021 for symbol_ref in progmem.
12022 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
12023 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
12024 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
12026 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
12028 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
12029 * configure: Regenerate.
12030 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
12031 (USE_THIN_ARCHIVES): New variable.
12032 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
12033 this archive as a thin archive.
12035 2016-07-20 David Malcolm <dmalcolm@redhat.com>
12037 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
12038 same location as last time, don't skip if we have fix-it hints.
12039 Clarify the skipping logic by converting it from one "if" clause
12040 to repeated "if" clauses.
12041 * spellcheck-tree.c: Include "cpplib.h".
12042 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
12043 (best_macro_match::best_macro_match): New constructor.
12044 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
12045 Move here from c/c-decl.c.
12046 (class best_macro_match): Move here from c/c-decl.c, converting
12047 from a typedef to a subclass, gaining a ctor.
12049 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
12051 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
12052 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
12054 (avr_addr_space_diagnose_usage): ...and implementation.
12055 (avr_addr_space_supported_p): New function.
12056 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
12057 report bad address space usage if that space is supported.
12058 (avr_insert_attributes): Same. No more complain about unsupported
12060 * config/avr/avr-c.c (tm_p.h): Include it.
12061 (avr_cpu_cpp_builtins): Only define addr-space related built-in
12062 macro if avr_addr_space_supported_p.
12064 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
12066 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
12067 flag_toplevel_reorder.
12069 2016-07-20 David Malcolm <dmalcolm@redhat.com>
12071 * gcc-rich-location.c
12072 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
12074 * gcc-rich-location.h
12075 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
12077 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
12079 * target.def (addr_space): Add new diagnose_usage to hook vector.
12080 * targhooks.c (default_addr_space_diagnose_usage): Add default
12081 implementation and...
12082 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
12083 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
12084 is some address space, call targetm.addr_space.diagnose_usage.
12085 * doc/tm.texi.in (Named Address Spaces): Add anchor for
12086 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
12087 * doc/tm.texi: Regenerate.
12089 2016-07-20 Martin Liska <mliska@suse.cz>
12091 PR middle-end/71898
12092 * graphite-isl-ast-to-gimple.c (later_of_the_two):
12093 Properly handly PHI stmts.
12095 2016-07-20 Bin Cheng <bin.cheng@arm.com>
12097 PR tree-optimization/71503
12098 PR tree-optimization/71683
12099 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
12102 2016-07-20 Martin Liska <mliska@suse.cz>
12104 * doc/invoke.texi (-fipa-ra): Document when the option is
12105 disabled. Fix a typo.
12107 2016-07-20 Martin Liska <mliska@suse.cz>
12109 * Makefile.in: Include fibonacci_heap.c
12110 * fibonacci_heap.c: New file.
12111 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
12112 (fibonacci_heap::union_with): Fix deletion of the second heap.
12113 * selftest-run-tests.c (selftest::run_tests): Incorporate
12114 fibonacci heap tests.
12115 * selftest.h: Declare fibonacci_heap_c_tests.
12117 2016-07-20 Martin Liska <mliska@suse.cz>
12119 * selftest-run-tests.c (selftest::run_tests): New function.
12120 * selftest.h (sreal_c_tests): Declare.
12121 * sreal.c (sreal_verify_basics): New function.
12122 (verify_aritmetics): Likewise.
12123 (sreal_verify_arithmetics): Likewise.
12124 (verify_shifting): Likewise.
12125 (sreal_verify_shifting): Likewise.
12126 (void sreal_c_tests): Likewise.
12128 2016-07-19 Jakub Jelinek <jakub@redhat.com>
12130 PR rtl-optimization/71916
12131 * cfgrtl.c (contains_no_active_insn_p): Return false also for
12132 bb which have a single succ fake edge.
12134 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
12137 * dwarf2out.c (gen_subprogram_die): Only call
12138 gen_unspecified_parameters_die while dumping early dwarf.
12140 2016-07-19 Jakub Jelinek <jakub@redhat.com>
12142 PR middle-end/71874
12143 * gimple-fold.c (fold_builtin_memory_op): Use
12144 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
12146 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
12148 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
12149 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
12150 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
12151 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
12152 * combine.c: Ditto.
12155 * double-int.c: Ditto.
12157 * dwarf2out.c: Ditto.
12160 * fold-const.c: Ditto.
12161 * function.c: Ditto.
12163 * genmodes.c: Ditto.
12167 * loop-doloop.c: Ditto.
12168 * loop-invariant.c: Ditto.
12169 * loop-iv.c: Ditto.
12174 * rtlanal.c: Ditto.
12175 * simplify-rtx.c: Ditto.
12176 * stor-layout.c: Ditto.
12178 * tree-ssa-loop-ivopts.c: Ditto.
12179 * tree-vect-generic.c: Ditto.
12180 * tree-vect-patterns.c: Ditto.
12185 * wide-int-print.cc: Ditto.
12186 * wide-int.cc: Ditto.
12187 * wide-int.h: Ditto.
12189 2016-07-19 David Malcolm <dmalcolm@redhat.com>
12191 * selftest.c (selftest::assert_streq): Handle NULL values of
12192 val_actual and val_expected.
12194 2016-07-19 Martin Jambor <mjambor@suse.cz>
12197 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
12198 rather than cgraph_create_node to get a call graph node.
12200 2016-07-19 Richard Biener <rguenther@suse.de>
12202 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
12203 handle all tcc_constant bases and valueize SSA names.
12204 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
12205 tcc_constant bases.
12207 2016-07-19 David Malcolm <dmalcolm@redhat.com>
12209 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
12210 the flags of the exit block and bb2, not just the entry block.
12212 2016-07-19 Richard Biener <rguenther@suse.de>
12214 PR tree-optimization/71901
12215 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12216 align member, group stuff with the bitfield.
12217 (vn_ref_op_align_unit): New inline.
12218 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
12219 record element alignment and operand 3 unchanged.
12220 (ao_ref_init_from_vn_reference): Adjust.
12221 (valueize_refs_1): Likewise.
12222 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
12224 2016-07-19 Richard Biener <rguenther@suse.de>
12226 PR tree-optimization/71908
12227 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
12228 symbolic constants in a more reliable way.
12230 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
12232 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
12234 (vect_update_inits_of_drs): Likewise.
12235 (vect_create_cond_for_alias_checks): Likewise.
12236 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
12238 2016-07-19 Richard Biener <rguenther@suse.de>
12241 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
12242 with an abstract origin that is not an inlined function outer
12243 scope add a self-reference as abstract origin.
12244 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
12246 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
12249 * config/rs6000/rs6000.c (rs6000_function_value): Fix
12250 unintentional System V.4 structure return breakage for structures
12251 with a single floating point element.
12253 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12255 PR tree-optimization/71734
12256 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
12257 contains REF, use it to check safelen, assume that safelen value
12258 must be greater 1, fix style.
12259 (ref_indep_loop_p_2): Add REF_LOOP argument.
12260 (ref_indep_loop_p): Pass LOOP as additional argument to
12261 ref_indep_loop_p_2.
12263 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
12265 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
12266 allocation in the prologue.
12267 * explow.c (get_dynamic_stack_base): New function to return an address
12268 expression for the dynamic stack base.
12269 (get_dynamic_stack_size): New function to do the required dynamic stack
12270 space size calculations.
12271 (allocate_dynamic_stack_space): Use new functions.
12272 (align_dynamic_address): Move some code from
12273 allocate_dynamic_stack_space to new function.
12274 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
12276 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12278 * config/s390/s390.c (s390_encode_section_info): Always set
12279 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
12282 2016-07-18 Richard Biener <rguenther@suse.de>
12284 PR tree-optimization/71893
12285 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
12286 for sizetype cast added by array_ref_element_size.
12287 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12289 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
12291 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
12292 register parameters. Remove code to initialize argument pointer
12293 on TARGET_64BIT. Optimize call to _mcount when it can be reached
12294 using a pc-relative branch. Cleanup conditional code.
12295 * config/pa/pa.md (call_mcount): New expander.
12296 (call_mcount_nonpic): New insn.
12297 (call_mcount_pic): New insn and split.
12298 (call_mcount_pic_post_reload): New insn.
12299 (call_mcount_64bit): New insn and split.
12300 (call_mcount_64bit_post_reload): New insn.
12302 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
12304 * config/avr/predicates.md (const_m255_to_m1_operand): New.
12305 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
12306 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
12307 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
12308 (*usum_widenqihi3, *udiff_widenqihi3)
12309 (*addhi3_zero_extend.const): New combiner insns.
12310 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
12311 just 1 bit is affected.
12312 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
12313 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
12315 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
12317 * omp-low.c (lower_omp_target): Mark data clauses with
12318 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
12319 zero-length subarrays.
12321 2016-07-15 Richard Biener <rguenther@suse.de>
12323 PR tree-optimization/71881
12324 * tree-loop-distribution.c (destroy_loop): Remove blocks in
12325 reverse DOM order to make debug temp generation happy.
12327 2016-07-15 Richard Biener <rguenther@suse.de>
12329 PR tree-optimization/71887
12330 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
12331 verify it is not zero for division / modulo handling.
12332 (value_replacement): Adjust.
12334 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
12335 Julian Brown <julian@codesourcery.com>
12337 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
12338 * config/aarch64/aarch64-cost-tables.h
12339 (vulcan_extra_costs): New variable.
12340 * config/aarch64/aarch64.c
12341 (vulcan_addrcost_table): Likewise.
12342 (vulcan_regmove_cost): Likewise.
12343 (vulcan_vector_cost): Likewise.
12344 (vulcan_branch_cost): Likewise.
12345 (vulcan_tunings): Likewise.
12347 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
12349 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
12350 (output_in_order): Loop over undefined variables too. Output them
12351 via assemble_undefined_decl. Skip variables that correspond to hard
12352 registers or have value-exprs.
12353 * varpool.c (symbol_table::output_variables): Handle undefined
12354 variables together with defined ones.
12356 2016-07-15 Richard Biener <rguenther@suse.de>
12358 * tree-ssa-pre.c (get_representative_for): Make sure to return
12359 the value number of SSA names.
12360 (phi_translate_1): get_representative_for cannot return NULL.
12361 (do_pre_regular_insertion): Remove redundant call to
12362 fully_constant_expression.
12363 (do_pre_partial_partial_insertion): Likewise.
12365 2016-07-15 Bin Cheng <bin.cheng@arm.com>
12367 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
12368 (derive_simple_iv_with_niters): New function.
12369 (simple_iv): Rewrite using simple_iv_with_niters.
12370 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
12371 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
12373 (number_of_iterations_exit): Rewrite using above function.
12374 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
12377 2016-07-15 Richard Biener <rguenther@suse.de>
12379 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
12380 vec_construct cost.
12382 2016-07-14 Jakub Jelinek <jakub@redhat.com>
12384 PR tree-optimization/71872
12385 * tree-data-ref.c (get_references_in_stmt): Ignore references
12386 with is_gimple_constant get_base_address.
12388 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
12390 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
12391 (TARGET_HAVE_LDACQD): New macro.
12392 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
12393 than TARGET_HAVE_LDACQ.
12394 (arm_load_acquire_exclusivedi): Likewise.
12395 (arm_store_release_exclusivedi): Likewise.
12397 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
12399 PR rtl-optimization/71878
12400 * lra-constraints.c (match_reload): Pass information about other
12401 output operands. Create new unique register value if matching input
12402 operand shares same register value as output operand being considered.
12403 (curr_insn_transform): Record output operands already processed.
12405 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12408 PR tree-optimization/70923
12409 * tree-vect-patterns.c: Include mult-synthesis.h.
12410 (target_supports_mult_synth_alg): New function.
12411 (synth_lshift_by_additions): Likewise.
12412 (apply_binop_and_append_stmt): Likewise.
12413 (vect_synth_mult_by_constant): Likewise.
12414 (target_has_vecop_for_code): Likewise.
12415 (vect_recog_mult_pattern): Use above functions to synthesize vector
12416 multiplication by integer constants.
12418 2016-07-14 Alan Modra <amodra@gmail.com>
12420 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
12421 gpr alternatives. Correct '*' placement on Y,r alternative.
12422 Add '*' on operand 1 of r,r alternative.
12424 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12426 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
12427 * expmed.h: ... Here.
12429 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
12431 * gimple.h (stmt_can_terminate_bb_p): New function.
12432 * tree-cfg.c (need_fake_edge_p): Rename to ...
12433 (stmt_can_terminate_bb_p): ... this; return true if stmt can
12434 throw external; handle const and pure calls.
12435 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
12437 2016-07-14 Richard Biener <rguenther@suse.de>
12439 PR tree-optimization/71866
12440 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
12441 (do_hoist_insertion): Avoid endless recursion when we
12442 didn't insert anything because we managed to simplify
12443 things down to a constant or SSA name.
12444 (fully_constant_expression): Re-write in terms of ...
12445 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
12446 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
12447 vn_nary_build_or_lookup_1.
12448 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
12449 (vn_nary_build_or_lookup): ... this which now wraps it.
12451 2016-07-14 Alan Modra <amodra@gmail.com>
12454 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
12455 with p9_vector override before power9-dform override.
12457 2016-07-13 Andi Kleen <ak@linux.intel.com>
12459 * value-prof.c (gimple_value_profile_transformations): Don't run
12460 when auto_profile is on.
12462 2016-07-13 Andi Kleen <ak@linux.intel.com>
12464 * auto-profile.c (update_inlined_ind_target,
12465 afdo_indirect_call): Print information to dump file.
12467 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
12469 * genrecog.c (special_predicate_operand_p): New function.
12470 (predicate_name): Move function.
12471 (validate_pattern): Don't warn about missing mode for all
12472 define_special_predicate predicates.
12474 2016-07-13 Bin Cheng <bin.cheng@arm.com>
12476 * tree-vect-data-refs.c (vect_no_alias_p): New function.
12477 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
12478 resolve alias checks which are known at compilation time.
12479 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
12480 alias checks are resolved. Move dump info for too many runtime
12481 alias checks to here...
12482 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
12484 2016-07-13 Richard Biener <rguenther@suse.de>
12486 PR tree-optimization/24574
12487 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
12488 position and add shift, rotate, divison and modulo support
12490 (value_replacement): Pass in argument position to absorbing_element_p.
12492 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
12495 * ipa-inline-transform.c (inline_call): Support
12496 instrumented thunks.
12498 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12500 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
12501 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
12503 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
12504 Baseline. Make initial alternative TARGET_32BIT only.
12505 (udivsi3): Likewise.
12506 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
12507 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
12510 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12512 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
12513 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
12514 availability with TARGET_HAVE_MOVT.
12515 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
12516 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
12517 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
12519 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
12520 extra instruction if MOVW is available. Use a cost variable
12521 incremented by COSTS_N_INSNS (1) when the condition match rather than
12522 returning an arithmetic expression based on COSTS_N_INSNS. Make
12523 constant with bottom half word zero cost 2 instruction if MOVW is
12525 * config/arm/arm.md (define_attr "arch"): Add v8mb.
12526 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
12527 target is ARMv8-M Baseline.
12528 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
12529 (arm_movtas_ze): Likewise.
12530 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
12531 alternative for constants satisfying j constraint.
12532 (thumb1_movsi_insn): Likewise.
12533 (movsi splitter for K alternative): Tighten condition to not trigger
12534 if movt is available and j constraint is satisfied.
12535 (Pe immediate splitter): Likewise.
12536 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
12537 constant fitting in an halfword to use MOVW.
12538 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
12541 2016-07-13 Richard Biener <rguenther@suse.de>
12543 PR middle-end/71104
12544 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
12545 gimplifying the LHS. Make sure to gimplify a returning twice
12546 call LHS without using SSA names.
12548 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12550 * tree-data-ref.c (find_data_references_in_stmt): Remove
12551 unnecessary call to vec::release.
12552 (graphite_find_data_references_in_stmt): Likewise.
12553 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
12554 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12556 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12558 * cfgexpand.c (expand_used_vars): Make the type of a local
12560 * genmatch.c (lower_for): Likewise.
12561 * haifa-sched.c (haifa_sched_init): Likewise.
12562 (add_to_speculative_block): Likewise.
12563 (create_check_block_twin): Likewise.
12564 * predict.c (handle_missing_profiles): Likewise.
12565 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
12566 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
12567 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
12569 (maybe_lower_iteration_bound): Likewise.
12570 * tree-ssa-sccvn.c (DFS): Likewise.
12571 * tree-stdarg.c (reachable_at_most_once): Likewise.
12572 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
12573 (vectorizable_store): Likewise.
12575 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12577 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
12578 (sccvn_dom_walker): make cond_stack an auto_vec.
12580 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12582 * ree.c (struct ext_state): Make type of members auto_vec.
12583 (find_and_remove_re): Adjust.
12585 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12587 * cfgexpand.c (struct stack_vars_data): Make type of fields
12589 (expand_used_vars): Adjust.
12591 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12593 * ipa.c (record_cdtor_fn): Adjust.
12594 (build_cdtor_fns): Likewise.
12595 (ipa_cdtor_merge): Make static_ctors and static_dtors local
12598 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12600 * genextract.c (struct accum_extract): Add constructor and make
12602 (gen_insn): Adjust.
12604 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12606 * tree.c (struct free_lang_data_d): Add constructor and change
12607 types of members to ones that automatically manage resources.
12608 (fld_worklist_push): Adjust.
12609 (find_decls_types): Likewise.
12610 (find_decls_types_in_eh_region): Likewise.
12611 (free_lang_data_in_cgraph): Stop manually creating and
12612 destroying members of free_lang_data_d.
12614 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
12616 PR rtl-optimization/68961
12617 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
12618 peephole variant. Use sse_reg_operand predicates.
12620 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
12622 * config/i386/predicates.md (x86_64_immediate_operand)
12623 <case CONST_INT>: Remove unneeded truncation to DImode.
12624 <case CONST>: Ditto.
12625 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
12627 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12630 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
12631 The xxperm and xxpermr instructions require that the 2nd input
12632 operand overlap with the output operand, and not the 1st.
12633 (altivec_vperm_v8hiv16qi): Likewise.
12634 (altivec_vperm_<mode>_uns_internal): Likewise.
12635 (altivec_vpermr_<mode>_internal): Likewise.
12636 (vperm_v8hiv4si): Likewise.
12637 (vperm_v16qiv8hi): Likewise.
12639 2016-07-12 Nathan Sidwell <nathan@acm.org>
12641 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
12642 when -mno-pic-data-is-text-relative is in effect, by default.
12643 * doc/invoke.texi (mpic-data-is-text-relative): Document new
12644 behavior and clarify.
12646 2016-07-12 Martin Liska <mliska@suse.cz>
12648 * params.def: Add avg-loop niter.
12649 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
12650 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
12651 * doc/invoke.texi: Document the new parameter.
12653 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12655 PR middle-end/71700
12656 * expr.c (store_constructor): Mask sign-extended bits when widening
12657 sub-word constructor element at the start of a word.
12659 2016-07-12 Martin Liska <mliska@suse.cz>
12661 * Makefile.in: Append rule for params-options.h.
12662 * params-options.h: New file.
12664 2016-07-12 Martin Liska <mliska@suse.cz>
12666 * ira-build.c (mark_loops_for_removal): Properly iterate
12669 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
12670 Richard Biener <rguenther@suse.de>
12672 PR tree-optimization/23286
12673 PR tree-optimization/70159
12674 * doc/invoke.texi: Document -fcode-hoisting.
12675 * common.opt (fcode-hoisting): New flag.
12676 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
12677 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
12678 (do_regular_insertion): Rename to ...
12679 (do_pre_regular_insertion): ... this and amend general comments
12680 on insertion strathegy.
12681 (do_partial_partial_insertion): Rename to ...
12682 (do_pre_partial_partial_insertion): ... this.
12683 (do_hoist_insertion): New function.
12684 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
12685 and call do_hoist_insertion properly.
12687 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
12688 (pass_pre::execute): Register hoist_insert stats.
12690 2016-07-12 Jakub Jelinek <jakub@redhat.com>
12692 PR middle-end/71716
12693 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
12694 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
12695 is different from mode's bitsize. Small cleanup.
12697 2016-07-12 Richard Biener <rguenther@suse.de>
12699 PR rtl-optimization/68961
12700 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
12701 to simplify to a non-constant.
12703 2016-07-11 Jakub Jelinek <jakub@redhat.com>
12705 PR middle-end/71758
12706 * omp-low.c (expand_omp_target): Gimplify device.
12708 PR tree-optimization/71823
12709 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
12710 to get vec_oprnds2 from op2.
12712 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
12714 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
12715 Hoist common subexpressions.
12716 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
12718 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
12721 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
12722 prevent generation of 'stxsiwx' on pre Power8 hardware.
12724 2016-07-11 David Malcolm <dmalcolm@redhat.com>
12726 * input.c: Include cpplib.h.
12727 (selftest::temp_source_file): New class.
12728 (selftest::temp_source_file::temp_source_file): New ctor.
12729 (selftest::temp_source_file::~temp_source_file): New dtor.
12730 (selftest::should_have_column_data_p): New function.
12731 (selftest::test_should_have_column_data_p): New function.
12732 (selftest::temp_line_table): New class.
12733 (selftest::temp_line_table::temp_line_table): New ctor.
12734 (selftest::temp_line_table::~temp_line_table): New dtor.
12735 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
12736 it to create a temp_line_table.
12737 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
12738 locations that are known to have column data.
12739 (selftest::line_table_case): New struct.
12740 (selftest::test_reading_source_line): Move tempfile handling
12741 to class temp_source_file.
12742 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
12743 (selftest::assert_token_loc_eq): New function.
12744 (ASSERT_TOKEN_LOC_EQ): New macro.
12745 (selftest::test_lexer): New function.
12746 (selftest::boundary_locations): New array.
12747 (selftest::input_c_tests): Call test_should_have_column_data_p.
12748 Loop over a test matrix of interesting values of location and
12749 default_range_bits, calling test_lexer on each case in the matrix.
12750 Move call to test_accessing_ordinary_linemaps into the matrix.
12751 * selftest.h (ASSERT_EQ): Reimplement in terms of...
12752 (ASSERT_EQ_AT): New macro.
12754 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
12757 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
12758 Don't convert TImode in debug insn.
12760 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
12762 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
12763 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
12764 (tree_type_common::lang_flag_7): New.
12765 (tree_type_common::spare): Reduce size.
12766 * tree.h (TYPE_ALIGN_OK): Remove.
12767 (TYPE_LANG_FLAG_7): New.
12768 (get_inner_reference): Adjust header.
12769 * print-tree.c (print_node): Adjust.
12770 * expr.c (get_inner_reference): Remove parameter keep_aligning.
12771 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
12772 calls to get_inner_reference.
12773 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
12774 handling of TYPE_ALIGN_OK.
12775 * builtins.c (get_object_alignment_2): Adjust call to
12776 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
12777 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
12779 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
12780 * cfgexpand.c (expand_debug_expr): Likewise.
12781 * dbxout.c (dbxout_expand_expr): Likewise.
12782 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
12783 loc_list_from_tree, fortran_common): Likewise.
12784 * fold-const.c (optimize_bit_field_compare,
12785 decode_field_reference, fold_unary_loc, fold_comparison,
12786 split_address_to_core_and_offset): Likewise.
12787 * gimple-laddress.c (execute): Likewise.
12788 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
12789 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
12790 * hsa-gen.c (gen_hsa_addr): Likewise.
12791 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
12792 * tsan.c (instrument_expr): Likewise.
12793 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
12794 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
12795 * tree-affine.c (tree_to_aff_combination,
12796 get_inner_reference_aff): Adjust calls to get_inner_reference.
12797 * tree-data-ref.c (split_constant_offset_1,
12798 dr_analyze_innermost): Likewise.
12799 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
12800 * tree-sra.c (ipa_sra_check_caller): Likewise.
12801 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
12802 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
12803 bswap_replace): Likewise.
12804 * tree-vect-data-refs.c (vect_check_gather,
12805 vect_analyze_data_refs): Likewise.
12806 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
12807 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
12810 2016-07-11 David Malcolm <dmalcolm@redhat.com>
12812 * Makefile.in (selftest-valgrind): New phony target.
12813 * function-tests.c (selftest::build_cfg): Delete pass instances
12814 created by the test.
12815 (selftest::convert_to_ssa): Likewise.
12816 (selftest::test_expansion_to_rtl): Likewise.
12817 * tree-cfg.c (selftest::test_linear_chain): Release dominator
12819 (selftest::test_diamond): Likewise.
12821 2016-07-11 Richard Biener <rguenther@suse.de>
12823 PR tree-optimization/71816
12824 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
12825 than replacing all of its operands.
12827 2016-07-11 Alan Modra <amodra@gmail.com>
12829 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
12830 (ctr<mode>): Add unspec.
12831 (ctr<mode>_internal*): Likewise.
12833 2016-07-08 James Bowman <james.bowman@ftdichip.com>
12835 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
12836 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
12838 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
12840 PR rtl-optimization/71621
12841 * lra-constraints.c (process_alt_operands): Check combination of
12842 reg class and mode.
12844 2016-07-08 Jason Merrill <jason@redhat.com>
12845 Richard Biener <rguenther@suse.de>
12847 P0145: Refining Expression Order for C++.
12848 * gimplify.c (initial_rhs_predicate_for): New.
12849 (gimplfy_modify_expr): Gimplify RHS before LHS.
12851 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12854 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12855 Allow standard error handling to take over when a wrong number
12856 of arguments is presented to __builtin_vec_ld () or
12857 __builtin_vec_st ().
12859 2016-07-08 Jiong Wang <jiong.wang@arm.com>
12861 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
12866 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
12867 __builtin_aarch64_fmaxv2sf.
12868 (vmaxnmq_f32): Likewise.
12869 (vmaxnmq_f64): Likewise.
12870 (vminnm_f32): Likewise.
12871 (vminnmq_f32): Likewise.
12872 (vminnmq_f64): Likewise.
12874 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12877 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
12878 enable -mfloat128-hardware by default.
12879 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
12880 that IEEE 128-bit hardware support needs.
12881 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
12882 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
12883 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
12884 floating point requires.
12885 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12886 -mfloat128 and -mfloat128-hardware changes.
12888 2016-07-08 Alan Hayward <alan.hayward@arm.com>
12890 PR tree-optimization/71667
12891 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
12893 2016-07-08 Martin Liska <mliska@suse.cz>
12895 PR middle-end/71606
12896 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
12897 folding produces SAVE_EXPRs, thus return false for the type.
12899 2016-07-07 Martin Liska <mliska@suse.cz>
12901 * file-find.c (remove_prefix): New function.
12902 * file-find.h (remove_prefix): Declare the function.
12903 * gcc-ar.c (main): Skip a folder of the wrapper if
12904 a wrapped binary would point to the same file.
12906 2016-07-07 Jan Hubicka <jh@suse.cz>
12908 * tree-scalar-evolution.c (iv_can_overflow_p): export.
12909 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
12910 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
12912 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
12915 * ipa-inline-analysis.c (compute_inline_parameters): Set
12916 local.can_change_signature to false for intrumentation
12919 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12921 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
12922 with TARGET_HAVE_MOVT.
12923 (TARGET_HAVE_MOVT): Define.
12924 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
12925 availability with TARGET_HAVE_MOVT.
12926 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
12928 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
12930 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
12931 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
12932 * config/arm/constraints.md (define_constraint "j"): Use
12933 TARGET_HAVE_MOVT to check MOVT availability.
12935 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12937 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
12939 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12941 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
12942 (armv8-m.main): Likewise.
12943 (armv8-m.main+dsp): Likewise.
12944 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
12945 (FL_FOR_ARCH8M_MAIN): Likewise.
12946 * config/arm/arm-tables.opt: Regenerate.
12947 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
12948 armv8-m.main+dsp to BE8_LINK_SPEC.
12949 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
12950 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
12951 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
12952 Baseline and Mainline.
12953 (arm_option_override_internal): Also disable arm_restrict_it when
12954 !arm_arch_notm. Update comment for -munaligned-access to also cover
12956 (arm_file_start): Increase buffer size for printing architecture name.
12957 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
12958 and armv8-m.main+dsp.
12959 (mno-unaligned-access): Clarify that this is disabled by default for
12960 ARMv8-M Baseline architectures as well.
12962 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
12964 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
12965 decide whether to prevent some libgcc routines being included for some
12966 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
12967 link between this condition and the one in
12968 libgcc/config/arm/lib1func.S.
12970 2016-07-07 Richard Biener <rguenther@suse.de>
12972 * tree-ssa-pre.c: Include alias.h.
12973 (compute_avail): If we have multiple VN_REFERENCEs with the
12974 same hashtable entry adjust that to make it a valid replacement
12975 for all of them with respect to alignment and aliasing
12976 when doing insertion.
12977 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
12978 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
12980 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
12984 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
12985 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
12988 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12990 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
12991 (adjust_mems): Adjust.
12992 (adjust_insn): Likewise.
12993 (prepare_call_arguments): Likewise.
12995 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12997 * gcse.c (struct ls_expr): Make stores field a vector.
12998 (ldst_entry): Adjust.
12999 (free_ldst_entry): Likewise.
13000 (print_ldst_list): Likewise.
13001 (compute_ld_motion_mems): Likewise.
13002 (update_ld_motion_stores): Likewise.
13004 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13006 * gcse.c (struct ls_expr): Remove loads field.
13007 (ldst_entry): Adjust.
13008 (free_ldst_entry): Likewise.
13009 (print_ldst_list): Likewise.
13010 (compute_ld_motion_mems): Likewise.
13012 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13014 * store-motion.c (struct st_expr): Make antic_stores a vector.
13015 (st_expr_entry): Adjust.
13016 (free_st_expr_entry): Likewise.
13017 (print_store_motion_mems): Likewise.
13018 (find_moveable_store): Likewise.
13019 (compute_store_table): Likewise.
13020 (remove_reachable_equiv_notes): Likewise.
13021 (replace_store_insn): Likewise.
13022 (build_store_vectors): Likewise.
13024 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13026 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
13027 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
13029 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
13031 PR tree-optimization/71518
13032 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
13033 misalign also for outer loops with negative step.
13035 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
13037 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
13038 (cortex_a53_shift): Add mov_shift.
13039 (cortex_a53_shift_reg): Add new reservation for register shifts.
13040 (cortex_a53_alu): Remove bfm.
13041 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
13042 (cortex_a53_alu_extr): Add new reservation for EXTR.
13043 (bypasses): Improve bypass modelling.
13045 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13048 * config/avr/avr.c (avr_asm_select_section): Strip off
13049 SECTION_DECLARED from flags when calling get_section.
13051 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
13053 * tree-vectorizer.h (vect_memory_access_type): Add
13054 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
13055 * tree-vect-stmts.c (compare_step_with_zero): New function.
13056 (perm_mask_for_reverse): Move further up file.
13057 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
13059 (get_negative_load_store_type): New function.
13060 (get_load_store_type): Call it. Add an ncopies argument.
13061 (vectorizable_mask_load_store): Update call accordingly and
13062 remove tests for negative steps.
13063 (vectorizable_store, vectorizable_load): Likewise. Handle new
13064 memory_access_types.
13066 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
13068 * tree-vectorizer.h (vect_memory_access_type): New enum.
13069 (_stmt_vec_info): Add a memory_access_type field.
13070 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
13071 (vect_model_store_cost): Take an access type instead of a boolean.
13072 (vect_model_load_cost): Likewise.
13073 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
13074 vect_model_store_cost and vect_model_load_cost.
13075 * tree-vect-stmts.c (vec_load_store_type): New enum.
13076 (vect_model_store_cost): Take an access type instead of a
13077 store_lanes_p boolean. Simplify tests.
13078 (vect_model_load_cost): Likewise, but for load_lanes_p.
13079 (get_group_load_store_type, get_load_store_type): New functions.
13080 (vectorizable_store): Use get_load_store_type. Record the access
13081 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
13082 (vectorizable_load): Likewise.
13083 (vectorizable_mask_load_store): Likewise. Replace is_store
13084 variable with vls_type.
13086 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
13088 * tree-vectorizer.h (vect_grouped_load_supported): Add a
13089 single_element_p parameter.
13090 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
13091 Check the PR65518 case here rather than in vectorizable_load.
13092 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
13093 * tree-vect-stmts.c (vectorizable_load): Likewise.
13095 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
13097 * tree-vectorizer.h (gather_scatter_info): New structure.
13098 (vect_check_gather_scatter): Return a bool rather than a decl.
13099 Replace return-by-pointer arguments with a single
13100 gather_scatter_info *.
13101 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
13102 (vect_analyze_data_refs): Update call accordingly.
13103 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13104 (vectorizable_mask_load_store): Likewise. Also record the
13105 offset dt and vectype in the gather_scatter_info.
13106 (vectorizable_store): Likewise.
13107 (vectorizable_load): Likewise.
13109 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
13111 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
13112 strided groups, use the cost of N scalar accesses instead
13113 of ncopies vector accesses.
13114 (vect_model_load_cost): Likewise.
13116 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
13118 * tree-vect-stmts.c (vect_cost_group_size): Delete.
13119 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
13120 variable to indicate when once-per-group costs are being used.
13121 (vect_model_load_cost): Likewise. Fix comment and misindented code.
13123 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
13125 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
13126 peeling-for-gaps condition.
13128 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13130 * config/s390/s390.c (s390_expand_vec_init): Force initializer
13131 element to register if it doesn't match general_operand.
13133 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13134 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13136 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
13138 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
13139 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
13140 (SIGNBIT): New mode iterator.
13141 (Fsignbit): New mode attribute.
13142 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
13143 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
13144 when direct moves are available.
13145 (signbit<mode>2_dm): New define_insn_and_split).
13146 (signbit<mode>2_dm2): New define_insn.
13148 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13150 PR rtl-optimization/71594
13151 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
13152 into subregs of appropriate mode before trying to emit a conditional
13155 2016-07-05 Jan Hubicka <jh@suse.cz>
13157 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
13158 (simple_iv): Use it.
13160 2016-07-05 Jan Hubicka <jh@suse.cz>
13162 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
13164 2016-07-05 Jiong Wang <jiong.wang@arm.com>
13166 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
13169 2016-07-05 Jan Hubicka <jh@suse.cz>
13171 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
13174 2016-07-05 Richard Biener <rguenther@suse.de>
13176 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
13177 Handle empty else block.
13178 (is_feasible_trace): Likewise.
13179 (split_paths): Likewise.
13181 2016-07-05 Richard Biener <rguenther@suse.de>
13183 * tree-loop-distribution.c (distribute_loop): Fix issue with
13184 the cost model loop.
13186 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
13188 * config/arm/neon-testgen.ml: Delete.
13189 * config/arm/neon.ml: Delete.
13191 2016-07-04 Jakub Jelinek <jakub@redhat.com>
13194 * tree.c (attribute_value_equal): Use get_attribute_name instead of
13195 directly using TREE_PURPOSE.
13197 2016-07-04 Jiong Wang <jiong.wang@arm.com>
13199 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
13200 * config/aarch64/aarch64_neon.h: Likewise.
13201 * config/aarch64/arm_neon.h: Likewise.
13202 * config/aarch64/atomics.md: Likewise.
13203 * config/aarch64/aarch64-simd-builtins.def: Likewise.
13204 * doc/invoke.texi: Likewise.
13206 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
13208 * config/s390/s390.md: Add "z13" cpu_facility.
13209 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
13210 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
13211 condition" type instructions.
13213 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
13214 Jeff Law <law@redhat.com>
13216 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
13217 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
13219 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
13221 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
13222 permutation for TARGET_AVX512F.
13223 (ix86_expand_vec_one_operand_perm_avx512): New function.
13224 (expand_vec_perm_1): Invoke introduced function.
13225 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
13226 it may be not valid after vectorization.
13228 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13231 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
13232 typo in comment. Only force to memory if it is a weak
13233 external reference.
13235 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
13236 Jiong Wang <jiong.wang@arm.com>
13238 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
13239 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
13240 (AARCH64_FL_F16): New.
13241 (AARCH64_FL_FOR_ARCH8_2): New.
13242 (AARCH64_ISA_8_2): New.
13243 (AARCH64_ISA_F16): New.
13244 (TARGET_FP_F16INST): New.
13245 (TARGET_SIMD_F16INST): New.
13246 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
13247 ("fp"): Disabling "fp" also disables "fp16".
13248 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
13249 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
13250 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
13251 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
13253 2016-07-04 Jan Beulich <jbeulich@suse.com>
13255 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
13257 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13260 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
13261 the insns, use an insn form that does not adjust the offset on
13262 little endian systems.
13264 2016-07-01 Jan Beulich <jbeulich@suse.com>
13266 * varasm.c (get_variable_section): Validate initializer in
13267 named .bss-like sections.
13269 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
13271 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
13272 Exchange the order of the second and third operands in the vpermr
13273 instruction tmeplate.
13275 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
13278 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
13279 Disallow TDmode values.
13281 2016-07-01 Alan Modra <amodra@gmail.com>
13283 PR rtl-optimization/71709
13284 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
13285 being set, not referenced.
13287 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
13289 PR tree-optimization/70729
13290 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
13291 of loop since it can be not valid after transformation.
13293 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13295 * config/arm/arm.c (thumb_reload_in_hi): Delete.
13296 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
13298 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
13300 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
13303 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
13306 * config/rs6000/constraints.md (wY constraint): New constraint to
13307 match the requirements for the LXSD and STXSD instructions.
13308 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
13309 predicate to match the requirements for the LXSD and STXSD
13311 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
13312 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
13313 to make sure that the bottom 2 bits of offset are 0, the address
13314 form is offsettable, and no updating is done in the address mode.
13315 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
13316 (movdi_internal32): Likewise
13317 (movdi_internal64): Likewise.
13319 2016-06-30 Jakub Jelinek <jakub@redhat.com>
13321 PR tree-optimization/71707
13322 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
13323 strinfo even for ADDR_EXPR ptr.
13325 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
13327 * config/rs6000/altivec.md (darn_32): Change the condition to
13328 TARGET_P9_MISC instead of TARGET_MODULO.
13329 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
13330 condition expression.
13331 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
13332 condition expression.
13333 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
13334 (DFP_TEST): New code iterator.
13335 (dfptstsfi_<code>_mode>): New define_expand.
13336 (*dfp_sgnfcnc_<mode>): New define_insn.
13337 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
13338 definition next to BU_P9_MISC_1 definition and change the MASK
13339 value to RS6000_BTM_P9_MISC.
13340 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
13341 (BU_P9_64BIT_MISC_0): Likewise.
13342 (BU_P9_DFP_MISC_0): New macro definition.
13343 (BU_P9_DFP_MISC_1): New macro definition.
13344 (BU_P9_DFP_MISC_2): New macro definition.
13345 (BU_P9_DFP_OVERLOAD_1): New macro definition.
13346 (BU_P9_DFP_OVERLOAD_2): New macro definition.
13347 (BU_P9_DFP_OVERLOAD_3): New macro definition.
13348 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
13349 (TSTSFI_LT_TD): Likewise.
13350 (TSTSFI_EQ_DD): Likewise.
13351 (TSTSFI_EQ_TD): Likewise.
13352 (TSTSFI_GT_DD): Likewise.
13353 (TSTSFI_GT_TD): Likewise.
13354 (TSTSFI_OV_DD): Likewise.
13355 (TSTSFI_OV_TD): Likewise.
13356 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
13357 (TSTSFI_LT_DD): Likewise.
13358 (TSTSFI_LT_TD): Likewise.
13359 (TSTSFI_EQ): Likewise.
13360 (TSTSFI_EQ_DD): Likewise.
13361 (TSTSFI_EQ_TD): Likewise.
13362 (TSTSFI_GT): Likewise.
13363 (TSTSFI_GT_DD): Likewise.
13364 (TSTSFI_GT_TD): Likewise.
13365 (TSTSFI_OV): Likewise.
13366 (TSTSFI_OV_DD): Likewise.
13367 (TSTSFI_OV_TD): Likewise.
13368 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13369 overloaded test significance functions.
13370 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
13371 OPTION_MASK_P9_MISC into the representation of this mask.
13372 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
13374 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
13375 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
13377 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
13378 argument is a 6-bit unsigned literal value if the icode argument
13379 represents a DFP test significance built-in call.
13380 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
13381 flag used independently and in combination with the
13382 RS6000_BTM_64BIT flag.
13383 (rs6000_opt_masks): Add entry for power9-misc command-line option.
13384 (rs6000_builtin_mask_names): Add entry for power9-misc
13385 command-line option.
13386 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
13387 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
13388 RS6000_BTM_P9_MISC macros.
13389 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
13390 option and change the description of the -mpower9-vector option to
13391 enable only vector instructions, removing its erroneously claimed
13392 support for scalar instructions.
13393 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13394 the ISA 3.0 digital floating point test significance built-in
13397 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
13399 * config/aarch64/aarch64.c (cortexa35_tunings):
13400 Enable AES fusion. Use cortexa57_branch_cost.
13401 (cortexa53_tunings): Use cortexa57_branch_cost.
13402 (cortexa72_tunings): Use cortexa57_branch_cost.
13403 Use AUTOPREFETCHER_WEAK.
13404 (cortexa73_tunings): Use cortexa57_branch_cost.
13406 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13407 James Greenhalgh <james.greenhalgh@arm.com>
13409 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
13410 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
13411 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
13412 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
13413 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
13414 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
13415 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
13416 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
13417 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
13418 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
13419 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
13420 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
13421 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
13424 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
13425 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13427 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
13429 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
13431 2016-06-30 David Malcolm <dmalcolm@redhat.com>
13434 * gcc.c (driver::build_option_suggestions): Pass "option" to
13435 add_misspelling_candidates.
13436 * opts-common.c (add_misspelling_candidates): Add "option" param;
13437 use it to avoid adding negated forms for options marked with
13439 * opts.h (add_misspelling_candidates): Add "option" param.
13441 2016-06-30 Jakub Jelinek <jakub@redhat.com>
13443 PR middle-end/71693
13444 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
13445 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
13446 first when permuting bitwise operation with rotate. Cast
13447 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
13449 2016-06-29 David Malcolm <dmalcolm@redhat.com>
13451 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
13452 for misspelled param names.
13453 * params.c: Include spellcheck.h.
13454 (find_param_fuzzy): New function.
13455 * params.h (find_param_fuzzy): New prototype.
13456 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
13457 * spellcheck.h (struct edit_distance_traits<const char *>):
13460 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
13462 * config/rs6000/predicates.md (const_0_to_7_operand): New
13463 predicate, recognize 0..7.
13464 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13465 support for doing extracts from V16QImode, V8HImode, V4SImode
13467 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
13468 vector extract support.
13469 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
13470 for ISA 3.0 vector extract.
13471 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
13472 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
13473 extracts of a constant element number from small integer vectors
13474 on 64-bit ISA 3.0 systems.
13475 (vsx_extract_<mode>_di): Likewise.
13476 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
13477 say when we can do ISA 3.0 vector extracts.
13478 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
13479 registers, using the stxsiwx instruction.
13481 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
13483 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
13484 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
13485 qdf24xx_regmove_cost, qdf24xx_tunings): New.
13486 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
13487 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
13488 * config/arm/arm.c (arm_qdf24xx_tune): New.
13490 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
13492 * config/aarch64/aarch64.c (cortexa53_tunings):
13493 Increase loop alignment to 8. Set function alignment to 16.
13494 (cortexa35_tunings): Likewise.
13495 (cortexa57_tunings): Increase loop alignment to 8.
13496 (cortexa72_tunings): Likewise.
13497 (cortexa73_tunings): Likewise.
13499 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
13501 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
13502 for arm_fp16_ok and arm_fp16_hw.
13503 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
13504 arm_fp16_alternative.
13506 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
13508 PR tree-optimization/71655
13509 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
13510 types when swapping operands.
13512 2016-06-29 Martin Liska <mliska@suse.cz>
13514 PR middle-end/71585
13515 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
13516 * ipa-inline-transform.c (inline_call): Remove unnecessary call
13517 of build_optimization_node.
13519 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
13521 PR tree-optimization/70729
13522 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
13523 independent in loops having positive safelen value.
13524 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
13525 it may be not valid after vectorization.
13527 2016-06-29 Jakub Jelinek <jakub@redhat.com>
13529 PR tree-optimization/71625
13530 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
13531 is sorted by ascending list->offset. If PTR is non-NULL and there is
13532 previous strinfo, call get_stridx_plus_constant.
13533 (get_stridx): Pass exp as second argument to get_addr_stridx.
13534 (addr_stridxptr): Add missing list = list->next, so that there can be
13535 more than one entries in the list. Bump limit from 16 to 32. Ensure
13536 the list is sorted by ascending list->offset.
13537 (get_stridx_plus_constant): Adjust so that it can be also called with
13538 ADDR_EXPR instead of SSA_NAME as PTR.
13539 (handle_char_store): Pass NULL_TREE as second argument to
13542 2016-06-29 Richard Biener <rguenther@suse.de>
13544 PR rtl-optimization/68961
13545 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
13547 2016-06-29 Richard Biener <rguenther@suse.de>
13549 PR middle-end/71002
13550 * alias.c (component_uses_parent_alias_set_from): Handle
13551 type punning through union accesses by using the union alias set.
13552 * gimple.c (gimple_get_alias_set): Remove union type punning case.
13554 2016-07-29 Richard Biener <rguenther@suse.de>
13556 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
13557 precision not matching mode precision.
13559 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
13561 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
13562 pa_output_arg_descriptor.
13563 (call_val_symref_64bit_post_reload): Likewise.
13564 (call_val_powf_64bit_post_reload): Likewise.
13565 (sibcall_internal_symref_64bit): Likewise.
13566 (sibcall_value_internal_symref_64bit): Likewise.
13568 2016-06-28 Jakub Jelinek <jakub@redhat.com>
13570 PR middle-end/71626
13571 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
13572 a constant, force its SUBREG_REG into memory or register instead
13575 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13578 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
13579 * doc/invoke.texi (AVR Options): Document it.
13581 2016-06-28 Walter Lee <walt@tilera.com>
13583 * config/tilegx/linux.h: Do not include arch/icache.h
13584 (CLEAR_INSN_CACHE): Provide inlined definition directly.
13585 * config/tilepro/linux.h: Do not include arch/icache.h
13586 (CLEAR_INSN_CACHE): Provide inlined definition directly.
13588 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
13590 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
13591 for big-endian BIT_FIELD_REF.
13593 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
13595 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
13596 ('size' attribute): Add '128'.
13598 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
13599 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
13600 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
13601 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
13602 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
13603 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
13604 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
13605 *trunc<mode>df2_odd): Set size attribute to '128'.
13606 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
13607 * config/rs6000/power6.md (power6-fp): Include dfp type.
13608 * config/rs6000/power7.md (power7-fp): Likewise.
13609 * config/rs6000/power8.md (power8-fp): Likewise.
13610 * config/rs6000/power9.md: New file.
13611 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
13612 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
13613 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
13615 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
13616 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
13617 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
13618 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
13619 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
13620 dfp_dscri_<mode>): Change type attribute to dfp.
13621 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
13622 attribute to vecsimple.
13623 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
13624 and prefetch streams.
13625 (rs6000_option_override_internal): Remove temporary code setting
13626 tuning to power8. Don't set rs6000_sched_groups for power9.
13627 (last_scheduled_insn): Change to rtx_insn *.
13628 (divide_cnt, vec_load_pendulum): New variables.
13629 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
13630 (rs6000_issue_rate): Set issue rate for Power9.
13631 (is_power9_pairable_vec_type): New.
13632 (power9_sched_reorder2): New.
13633 (rs6000_sched_reorder2): Call new function for Power9 specific
13635 (insn_must_be_first_in_group): Remove Power9.
13636 (insn_must_be_last_in_group): Likewise.
13637 (force_new_group): Likewise.
13638 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
13639 Initialize divide_cnt/vec_load_pendulum.
13640 (_rs6000_sched_context, rs6000_init_sched_context,
13641 rs6000_set_sched_context): Handle context save/restore of new
13644 2016-06-28 Richard Biener <rguenther@suse.de>
13646 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
13647 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
13648 COMPONENT_REF operand.
13649 (nonoverlapping_component_refs_p): Likewise.
13650 * stor-layout.c (start_bitfield_representative): Mark
13651 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
13653 2016-06-28 Jakub Jelinek <jakub@redhat.com>
13655 * Makefile.in: Don't cat ../stage_current if it does not exist.
13657 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
13658 last argument is a bit-field.
13660 PR rtl-optimization/71673
13661 * internal-fn.c (expand_arith_overflow_result_store): Use
13662 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
13663 expand_simple_binop.
13665 PR middle-end/66867
13666 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
13667 expand_ifn_atomic_compare_exchange): New functions.
13668 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
13669 * tree.h (build_call_expr_internal_loc): Rename to ...
13670 (build_call_expr_internal_loc_array): ... this. Fix up type of
13672 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
13673 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
13674 ATOMIC_COMPARE_EXCHANGE result.
13675 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
13676 * gimple-fold.h (optimize_atomic_compare_exchange_p,
13677 fold_builtin_atomic_compare_exchange): New prototypes.
13678 * gimple-fold.c (optimize_atomic_compare_exchange_p,
13679 fold_builtin_atomic_compare_exchange): New functions..
13680 * tree-ssa.c (execute_update_addresses_taken): If
13681 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
13682 of call when finding addressable vars, and if such var becomes
13683 non-addressable, call fold_builtin_atomic_compare_exchange.
13685 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
13688 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
13689 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
13691 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
13693 * config/rs6000/rs6000.md ('type' attribute): Add
13694 veclogical,veccmpfx,vecexts,vecmove insn types.
13695 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
13696 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
13697 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
13698 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
13699 *nabs<mode>2_hw): Change type to vecmove.
13700 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
13701 *boolcc<mode>3_internal, *eqv<mode>3_internal,
13702 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
13703 *ieee_128bit_vsx_abs<mode>2_internal,
13704 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
13705 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
13706 *ieee128_mtvsrd_32bit): Change type to veclogical.
13707 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
13708 *movdi_internal32, *movdi_internal64): Update insn types.
13709 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
13710 vsx_extract_<mode>): Change type to veclogical.
13711 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
13712 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
13713 *vsx_sign_extend_si_v2di): Change type to vecexts.
13714 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
13715 type to veclogical.
13716 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
13717 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
13718 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
13719 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
13720 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
13721 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
13722 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
13723 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
13724 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
13725 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
13726 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
13727 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
13728 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
13729 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
13730 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
13731 (ppc7450-vecsimple): Add veclogical, vecmove.
13732 (ppc7450-veccmp): Add veccmpfx.
13733 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
13735 (ppc8540_vector_compare): Add veccmpfx.
13736 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
13737 * config/rs6000/cell.md (cell-fp): Add fpsimple.
13738 (cell-vecsimple): Add veclogical, vecmove.
13739 (cell-veccmp): Add veccmpfx.
13740 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
13741 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
13743 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
13744 * config/rs6000/power4.md (power4-fp): Add fpsimple.
13745 (power4-vecsimple): Add veclogical, vecmove.
13746 (power4-veccmp): Add veccmpfx.
13747 * config/rs6000/power5.md (power5-fp): Add fpsimple.
13748 * config/rs6000/power6.md (power6-fp): Add fpsimple.
13749 (power6-vecsimple): Add veclogical, vecmove.
13750 (power6-veccmp): Add veccmpfx.
13751 * config/rs6000/power7.md (power7-fp): Add fpsimple.
13752 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
13753 * config/rs6000/power8.md (power8-fp): Add fpsimple.
13754 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
13755 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
13756 * config/rs6000/titan.md (titan_fp): Add fpsimple.
13757 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
13759 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
13761 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
13764 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
13765 OPTION_MASK_P9_DFORM_VECTOR.
13766 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
13767 disable -mpower9-dform-vector when using reload.
13768 (quad_address_p): Remove 'gpr_p' argument and all associated code.
13769 New 'strict' argument. Update all callers. Add strict addressing
13771 (rs6000_legitimate_offset_address_p): Remove call to
13772 virtual_stack_registers_memory_p.
13773 (rs6000_legitimize_reload_address): Add quad address support.
13774 (rs6000_legitimate_address_p): Move call to quad_address_p above
13775 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
13776 to account for new strict usage.
13777 (rs6000_output_move_128bit): Adjust quad_address_p args to account
13778 for new strict usage.
13779 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
13781 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
13788 * config/i386/i386.c (ix86_spill_class): Disable condition to
13789 always return NO_REGS.
13791 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
13793 * predict.c: Include gimple-pretty-print.h
13794 (predicted_by_loop_heuristics_p): Check also
13795 PRED_LOOP_EXIT_WITH_RECURSION
13796 (predict_loops): Find self recursive calls and use special purpose
13797 predictors for them; dump log about decisions.
13798 (pass_profile::execute): Dump info about #of iterations.
13799 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
13800 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
13802 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
13804 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
13805 output_asm_insn calls and shorten long lines. Output .CALL
13806 argument descriptor using pa_output_arg_descriptor. Add various
13807 inline $$dyncall and other optimizations.
13808 (pa_attr_length_indirect_call): Adjust ordering and lengths.
13810 2016-06-25 Jakub Jelinek <jakub@redhat.com>
13812 PR tree-optimization/71643
13813 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
13816 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
13817 leak a bitmap if dep_bb is NULL.
13819 PR tree-optimization/71631
13820 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
13821 to rewrite_expr_tree even if negate_result, move new_lhs var
13822 declaration and initialization earlier, for powi_result set afterwards
13823 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
13824 if new_lhs != lhs, and don't shadow gsi var.
13826 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
13828 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
13829 Add in_loop parameter.
13830 (predict_loops): Add loop guard heuristics.
13831 * predict.def (PRED_LOOP_GUARD): New heuristics.
13833 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
13835 * predict.c: Include ipa-utils.h
13836 (tree_bb_level_prediction): Predict recursive calls.
13837 (tree_estimate_probability_bb): Skip inexpensive calls for call
13839 * predict.def (PRED_RECURSIVE_CALL): New.
13841 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13843 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
13844 (BU_FLOAT128_1): Likewise.
13846 (COPYSIGNQ): Likewise.
13847 (RS6000_BUILTIN_NANQ): Likewise.
13848 (RS6000_BUILTIN_NANSQ): Likewise.
13849 (RS6000_BUILTIN_INFQ): Likewise.
13850 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
13851 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
13852 (TARGET_FOLD_BUILTIN): New #define.
13853 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
13854 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
13855 (rs6000_fold_builtin): New target hook implementation, handling
13856 folding of 128-bit NaNs and infinities.
13857 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
13858 entries are filled in to avoid problems during bootstrap
13859 self-test; define builtins for 128-bit NaNs and infinities.
13860 (rs6000_opt_mask): Add entry for float128.
13861 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
13862 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
13863 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
13864 (const_str_type_node): New #define.
13865 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
13866 to a define_expand that dispatches to either copysign<mode>3_soft
13867 or copysign<mode>3_hard.
13868 (copysign<mode>3_hard): Rename from copysign<mode>3.
13869 (copysign<mode>3_soft): New define_insn.
13870 * doc/extend.texi: Document new builtins.
13872 2016-06-24 Jakub Jelinek <jakub@redhat.com>
13874 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
13875 PRIu64 instead of lu.
13877 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
13880 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
13881 copy the type name.
13883 2016-06-24 Jakub Jelinek <jakub@redhat.com>
13885 PR tree-optimization/71647
13886 * omp-low.c (lower_rec_input_clauses): Convert
13887 omp_clause_aligned_alignment (c) to size_type_node for the
13888 last argument of __builtin_assume_aligned.
13890 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
13892 * configure.ac (calling ___tls_get_addr via GOT): New
13893 assembler/linker check.
13894 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
13895 assembler and linker supports calling ___tls_get_addr via GOT.
13896 Otherise, defined to 0.
13897 * config.in: Regenerated.
13898 * configure: Likewise.
13899 * config/i386/constraints.md (Yb): New constraint.
13900 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
13901 (REG_CLASS_NAMES): Likewise.
13902 (REG_CLASS_CONTENTS): Likewise.
13903 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
13904 the b constraint with the Yb constraint. Call ___tls_get_addr
13905 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
13907 (*tls_local_dynamic_base_32_gnu): Likewise.
13908 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
13909 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
13910 (*tls_local_dynamic_base_64_<mode>): Likewise.
13912 2016-06-24 Martin Liska <mliska@suse.cz>
13914 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
13915 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
13917 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
13918 argument to true if the expected number of iterations is
13921 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
13923 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
13924 assemble for 32bit target.
13925 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
13926 and $ld_ix86_gld_32_opt to link for 32bit target.
13927 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
13928 * configure: Regenerate.
13930 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13932 * config/arm/arm.c (int_log2): Delete definition and prototype.
13933 (shift_op): Use exact_log2 instead of int_log2.
13934 (vfp3_const_double_for_fract_bits): Likewise.
13936 2016-06-24 Jakub Jelinek <jakub@redhat.com>
13938 * internal-fn.c (expand_arith_set_overflow): New function.
13939 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
13941 (expand_arith_overflow_result_store): Likewise. Handle precision
13942 smaller than mode precision.
13943 * tree-vrp.c (extract_range_basic): For imag part, handle
13944 properly signed 1-bit precision result.
13945 * doc/extend.texi (__builtin_add_overflow): Document that last
13946 argument can't be pointer to enumerated or boolean type.
13947 (__builtin_add_overflow_p): Document that last argument can't
13948 have enumerated or boolean type.
13950 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13951 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13953 * config/rs6000/predicates.md (splat_input_operand): Rework.
13954 Don't allow constants, since the insns that use this predicate
13955 don't support constants. Constants are handled by other insns
13956 that are created via combine. During and after register
13957 allocation, only allow indexed or indirect addresses, and not
13958 general addresses. Only allow modes supported by the hardware.
13959 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
13960 comment. Move check for using VSPLTIS<x> to a common location,
13961 instead of doing it in two different places.
13963 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
13965 * config/i386/driver-i386.c (host_detect_local_cpu): Set
13966 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
13967 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
13968 signature_CENTAUR_ebx.
13970 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
13974 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
13975 (as_ix86_gas_32_opt): This.
13976 (ld_ix86_tls_ldm_opt): Renamed to ...
13977 (ld_ix86_gld_32_opt): This.
13978 (R_386_TLS_LDM reloc): Updated.
13979 (R_386_GOT32X reloc): New assembler/linker check.
13980 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
13981 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
13983 * config.in: Regenerated.
13984 * configure: Likewise.
13985 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
13986 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
13987 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
13988 if ix86_force_load_from_GOT_p returns true.
13989 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
13990 ix86_force_load_from_GOT_p returns true.
13991 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
13992 the external function address via the GOT slot.
13993 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
13994 HAVE_AS_IX86_GOT32X before returning false.
13995 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
13996 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
13998 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
14000 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
14002 2016-06-23 Andi Kleen <ak@linux.intel.com>
14004 * Makefile.in: Regenerate.
14005 * doc/install.texi: Document autoprofiledbootstrap.
14007 2016-06-23 Andi Kleen <ak@linux.intel.com>
14009 * config/i386/gcc-auto-profile: New file.
14011 2016-06-23 Martin Liska <mliska@suse.cz>
14013 PR middle-end/71619
14014 * predict.c (predict_loops): Revert the hunk that was removed
14017 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
14019 * config.gcc: Add support for arm*-*-phoenix* targets.
14020 * config/arm/t-phoenix: New.
14021 * config/phoenix.h: New.
14023 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
14024 H.J. Lu <hongjiu.lu@intel.com>
14027 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
14028 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
14029 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
14030 ix86_force_load_from_GOT_p returns true.
14031 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
14032 ix86_force_load_from_GOT_p returns true.
14033 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
14034 ix86_force_load_from_GOT_p returns true.
14035 (ix86_expand_move): Load the external function address via the
14036 GOT slot if ix86_force_load_from_GOT_p returns true.
14037 * config/i386/predicates.md (x86_64_immediate_operand): Return
14038 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
14039 (x86_64_zext_immediate_operand): Ditto.
14041 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
14043 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
14045 2016-06-22 David Malcolm <dmalcolm@redhat.com>
14048 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
14049 * diagnostic.c (pedwarn_at_rich_loc): New function.
14050 * spellcheck.h (best_match::best_match): Add a
14051 "best_distance_so_far" optional parameter.
14052 (best_match::set_best_so_far): New method.
14053 (best_match::get_best_distance): New accessor.
14054 (best_match::get_best_candidate_length): New accessor.
14056 2016-06-22 Nick Clifton <nickc@redhat.com>
14058 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
14059 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
14060 modes are accepted as well.
14061 (ucompare_loc_descriptor): Likewise.
14062 (minmax_loc_descriptor): Likewise.
14063 (clz_loc_descriptor): Likewise.
14064 (popcount_loc_descriptor): Likewise.
14065 (bswap_loc_descriptor): Likewise.
14066 (rotate_loc_descriptor): Likewise.
14067 (mem_loc_descriptor): Likewise.
14068 (loc_descriptor): Likewise.
14070 2016-06-22 David Malcolm <dmalcolm@redhat.com>
14072 * common.opt (fdiagnostics-parseable-fixits): New option.
14073 * diagnostic.c: Include "selftest.h".
14074 (print_escaped_string): New function.
14075 (print_parseable_fixits): New function.
14076 (diagnostic_report_diagnostic): Call print_parseable_fixits.
14077 (selftest::assert_print_escaped_string): New function.
14078 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
14079 (selftest::test_print_escaped_string): New function.
14080 (selftest::test_print_parseable_fixits_none): New function.
14081 (selftest::test_print_parseable_fixits_insert): New function.
14082 (selftest::test_print_parseable_fixits_remove): New function.
14083 (selftest::test_print_parseable_fixits_replace): New function.
14084 (selftest::diagnostic_c_tests): New function.
14085 * diagnostic.h (struct diagnostic_context): Add field
14086 "parseable_fixits_p".
14087 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
14088 -fdiagnostics-parseable-fixits.
14089 (-fdiagnostics-parseable-fixits): New option.
14090 * opts.c (common_handle_option): Handle
14091 -fdiagnostics-parseable-fixits.
14092 * selftest-run-tests.c (selftest::run_tests): Call
14093 selftest::diagnostic_c_tests.
14094 * selftest.h (selftest::diagnostic_c_tests): New prototype.
14096 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
14098 PR tree-optimization/71488
14099 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
14100 comparison of boolean vectors.
14101 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
14102 of boolean vectors using bitwise operations.
14104 2016-06-22 Andreas Schwab <schwab@suse.de>
14106 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
14107 Remove declaration.
14109 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
14111 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
14113 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
14115 * config/i386/i386.c (print_reg): Emit an error message on attempt to
14118 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14120 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
14121 * config/arm/arm-cores.def (cortex-a73): New entry.
14122 (cortex-a73.cortex-a35): Likewise.
14123 (cortex-a73.cortex-a53): Likewise.
14124 * config/arm/arm-tables.opt: Regenerate.
14125 * config/arm/arm-tune.md: Likewise.
14126 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
14127 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
14128 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
14129 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
14130 * doc/invoke.texi (ARM Options): Document cortex-a73,
14131 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
14133 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14135 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
14136 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
14137 (cortex-a73.cortex-a35): Likewise.
14138 (cortex-a73.cortex-a53): Likewise.
14139 * config/aarch64/aarch64-tune.md: Regenerate.
14140 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
14141 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
14144 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14146 * configure.ac (gcc_cv_as_compress_debug): Remove
14147 --compress-debug-sections as extra as switch.
14148 Handle gas --compress-debug-sections=type.
14149 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
14150 Handle gld --compress-debug-sections=type.
14151 * configure: Regenerate.
14153 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
14155 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
14157 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
14159 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
14160 (do_rewrite): likewise.
14162 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14164 * common/config/mep/mep-common.c: Remove.
14165 * config.gcc: Remove mep-* support.
14166 * config/mep/constraints.md: Remove.
14167 * config/mep/default.h: Remove.
14168 * config/mep/intrinsics.h: Remove.
14169 * config/mep/intrinsics.md: Remove.
14170 * config/mep/ivc2-template.h: Remove.
14171 * config/mep/mep-c5.cpu: Remove.
14172 * config/mep/mep-core.cpu: Remove.
14173 * config/mep/mep-default.cpu: Remove.
14174 * config/mep/mep-ext-cop.cpu: Remove.
14175 * config/mep/mep-intrin.h: Remove.
14176 * config/mep/mep-ivc2.cpu: Remove.
14177 * config/mep/mep-pragma.c: Remove.
14178 * config/mep/mep-protos.h: Remove.
14179 * config/mep/mep.c: Remove.
14180 * config/mep/mep.cpu: Remove.
14181 * config/mep/mep.h: Remove.
14182 * config/mep/mep.md: Remove.
14183 * config/mep/mep.opt: Remove.
14184 * config/mep/predicates.md: Remove.
14185 * config/mep/t-mep: Remove.
14186 * doc/install.texi: Remove mep-* documentation.
14187 * doc/md.texi: Likewise.
14189 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14191 * config.gcc: Remove support for avr-rtems.
14192 * config/avr/gen-avr-mmcu-specs.c: Likewise.
14193 * config/avr/rtems.h: Remove.
14194 * config/avr/t-rtems: Remove.
14196 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14198 * config.gcc: Remove m32r-rtems support.
14199 * config/m32r/rtems.h: Remove.
14201 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14203 * config.gcc: Remove h8300-rtems support.
14204 * config/h8300/rtems.h: Remove.
14205 * config/h8300/t-rtems: Remove.
14207 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14209 * config.gcc: Remove support for knetbsd.
14210 * configure.ac: Likewise.
14211 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
14212 * config/knetbsd-gnu.h: Remove.
14213 * configure: Regenerate.
14215 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14217 * config.gcc: Remove support for openbsd 2 and 3.
14218 * config/openbsd-oldgas.h: Remove.
14220 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14222 * config.gcc: Remove interix support.
14223 * config/i386/i386-interix.h: Remove.
14224 * config/i386/interix.opt: Remove.
14225 * config/i386/t-interix: Remove.
14226 * configure: Regenerate.
14227 * configure.ac: Remove interix support.
14228 * doc/install.texi: Remove interix documentation.
14230 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
14232 * config/rs6000/rs6000.h: Add conditional preprocessing directives
14233 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
14236 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
14238 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
14239 they are both PLACEHOLDER_EXPRs.
14241 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14243 * stor-layout.c (layout_type): Move setting complex MODE to
14244 layout_type, instead of setting it ahead of time by the caller.
14245 * tree.c (build_complex_type): Likewise.
14247 2016-06-21 Martin Liska <mliska@suse.cz>
14249 * predict.c (force_edge_cold): Replace imposisble with
14252 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
14254 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
14255 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
14257 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
14259 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
14261 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
14262 Ilya Enkovich <ilya.enkovich@intel.com>
14265 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
14266 New member function to convert V1TImode register to SUBREG
14267 TImode in debug insn.
14268 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
14269 after changing register mode to V1TImode.
14271 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
14273 * config/aarch64/aarch64-cores.def (vulcan): New core.
14274 * config/aarch64/aarch64-tune.md: Regenerate.
14275 * doc/invoke.texi: Document vulcan as an available option.
14277 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
14279 * cse.c (canon_asm_operands): New function extracted from...
14280 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
14281 either standalone or member of a PARALLEL.
14283 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
14286 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
14287 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
14288 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
14290 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
14293 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
14294 constant addresses if can_create_pseudo_p.
14296 2016-06-21 Jakub Jelinek <jakub@redhat.com>
14298 PR tree-optimization/71588
14299 * tree-ssa-strlen.c (valid_builtin_call): New function.
14300 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
14303 2016-06-20 Jakub Jelinek <jakub@redhat.com>
14305 PR middle-end/71581
14306 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
14307 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
14308 for conversion of scalar user var to complex type and use the
14309 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
14312 PR rtl-optimization/71591
14313 * toplev.c (toplev::run_self_tests): If no_backend, complain and
14314 don't run any tests.
14316 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
14319 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
14320 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
14321 space for PIC with non-v32 and the common non-PIC "jump".
14323 2016-06-20 Jakub Jelinek <jakub@redhat.com>
14326 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
14327 returned values and add UN*/LTGT/*ORDERED cases with values matching
14328 D operand modifier on vcmp for AVX.
14330 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
14332 * config/aarch64/aarch64.opt
14333 (mpc-relative-literal-loads): Rename internal option name.
14334 * config/aarch64/aarch64.c
14335 (aarch64_nopcrelative_literal_loads): Rename to
14336 aarch64_pcrelative_literal_loads.
14337 (aarch64_expand_mov_immediate): Likewise.
14338 (aarch64_secondary_reload): Likewise.
14339 (aarch64_can_use_per_function_literal_pools_p): Likewise.
14340 (aarch64_override_options_after_change_1): Rename and simplify logic.
14341 (aarch64_classify_symbol): Merge large model checks into switch,
14342 remove pc-relative load check.
14344 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
14346 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
14347 costs relative to the cost of a register move.
14349 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
14351 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
14352 (vcvt_n_f64_u64): Likewise.
14353 (vcvt_n_s64_f64): Likewise.
14354 (vcvt_n_u64_f64): Likewise.
14355 (vcvt_f64_s64): Likewise.
14356 (vrecpe_f64): Likewise.
14357 (vcvt_f64_u64): Likewise.
14358 (vrecps_f64): Likewise.
14360 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
14362 * config/aarch64/aarch64.md
14363 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
14365 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
14367 * config/aarch64/aarch64-builtins.c
14368 (aarch64_types_binop_uss_qualifiers): Delete.
14369 (TYPES_BINOP_USS): Likewise.
14370 (aarch64_types_binop_sus_qualifiers): Likewise.
14371 (TYPES_BINOP_SUS): Likewise.
14372 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
14373 (TYPES_FCVTIMM_SUS): Likewise.
14374 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
14376 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
14377 (fcvtzs): Use SHIFTIMM rather than BINOP.
14378 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
14380 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
14382 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
14383 costs relative to the cost of a register move.
14385 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
14387 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
14388 Allow scalar/single vector modes to be tieable.
14390 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
14392 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
14394 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14396 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
14398 * tree.h (TYPE_ALIGN): Likewise.
14400 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
14403 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
14405 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
14407 * config/avr/avr.c (avr_print_operand): Fix "format not a string
14408 literal" build warnings.
14409 (avr_print_operand_address): Dito.
14411 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
14414 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
14415 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
14417 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
14419 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
14421 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
14424 * reload1.c (reload): Pass 0 to finish_spills when called because
14425 update_eliminables_and_spill returns true and remove did_spill.
14426 (finish_spills): Adjust comment and document GLOBAL parameter.
14428 2016-06-17 DJ Delorie <dj@redhat.com>
14431 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
14432 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
14433 (umulqihi3_virt): Likewise.
14434 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
14435 (umulqihi3_real): Likewise.
14437 2016-06-17 Martin Liska <mliska@suse.cz>
14439 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
14441 2016-06-17 Martin Liska <mliska@suse.cz>
14443 * predict.def: PRED_LOOP_EXIT from 92 to 85.
14445 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
14447 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
14449 (vaddq_f32): Likewise.
14450 (vmul_f32): Likewise.
14451 (vmulq_f32): Likewise.
14452 (vsub_f32): Likewise.
14453 (vsubq_f32): Likewise.
14455 2016-06-17 Bin Cheng <bin.cheng@arm.com>
14457 PR tree-optimization/71347
14458 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
14459 cost for all uses in group.
14461 2016-06-17 Bin Cheng <bin.cheng@arm.com>
14463 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
14464 insert gimple seq if it's not empty.
14466 2016-06-17 Bin Cheng <bin.cheng@arm.com>
14468 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
14470 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
14471 rather than OFFSET.
14472 (comp_dr_with_seg_len_pair): Ditto.
14473 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
14474 struct dr_with_seg_len_pair against DR_OFFSET.
14475 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
14476 DR_OFFSET directly.
14478 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
14480 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
14482 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
14484 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
14485 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
14486 (pa_output_millicode_call): Likewise.
14487 (pa_output_call): Likewise.
14488 (pa_output_indirect_call): Likewise.
14489 (pa_asm_output_mi_thunk): Likewise.
14491 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14493 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
14495 2016-06-16 Martin Liska <mliska@suse.cz>
14497 * predict.c (combine_predictions_for_insn): When we find a first
14498 match predictor, we should consider just predictors with
14499 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
14500 DS theory predictor.
14501 (combine_predictions_for_bb): Likewise.
14503 2016-06-16 Jakub Jelinek <jakub@redhat.com>
14505 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
14506 with base of reference to struct.
14508 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
14510 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
14512 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14515 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
14516 progmem_swtable_section.
14517 (progmem_swtable_section): Remove.
14518 (avr_asm_function_rodata_section): Remove.
14519 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
14520 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
14522 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
14524 * config/i386/driver-i386.c (host_detect_local_cpu): Set
14525 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
14526 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
14527 signature_CENTAUR_ebx.
14528 * config/i386/i386.c (ix86_option_override_internal): Add
14529 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
14530 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
14531 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
14533 2016-06-16 Martin Liska <mliska@suse.cz>
14535 * predict.def: Add fortran loop preheader predictor.
14536 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
14537 fold IFN_BUILTIN_EXPECT with a known constant argument.
14539 2016-06-16 Martin Liska <mliska@suse.cz>
14541 * predict.def: Add 'Fortran' to display text of all
14542 PRED_FORTRAN_* predictors.
14544 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
14547 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
14548 [IA64_BUILTIN_NANSQ]: Ditto.
14549 (ia64_fold_builtin): New function.
14550 (TARGET_FOLD_BUILTIN): New define.
14551 (ia64_init_builtins) Declare const_string_type node.
14552 Add __builtin_nanq and __builtin_nansq builtin functions.
14553 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
14555 2016-06-16 Nick Clifton <nickc@redhat.com>
14557 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
14558 MSP430_HWMULT_ prefix to enum values.
14559 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
14560 * config/msp430/msp430.c: Update use of enum values.
14561 * config/msp430/msp430.md: Likewise.
14562 * config/msp430/msp430.opt: Likewise.
14564 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
14566 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
14567 of comparsions in the last iteration.
14569 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
14570 Joern Rennecke <joern.rennecke@embecosm.com>
14572 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
14574 (arc_needs_pcl_p): Add GOTOFFPC.
14575 (arc_legitimate_pic_addr_p): Likewise.
14576 (arc_output_pic_addr_const): Likewise.
14577 (arc_legitimize_pic_address): Generate a pc-relative address using
14579 (arc_output_libcall): Use @pcl syntax.
14580 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
14581 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
14582 (*movsi_insn): Use @pcl syntax.
14583 (doloop_begin_i): Likewise.
14585 2016-06-16 Martin Liska <mliska@suse.cz>
14587 * predict.def: Define a new predictor.
14589 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
14591 * config/arc/arc.opt (mtp-regno): Update text.
14593 2016-06-16 Renlin Li <renlin.li@arm.com>
14595 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
14597 2016-06-16 Jakub Jelinek <jakub@redhat.com>
14600 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
14601 (setcc + and peephole2): Likewise.
14603 PR rtl-optimization/71532
14604 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
14607 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14609 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
14610 DImode constants with XXSPLTIB in vector registers.
14611 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
14612 vsx_extract_<mode>_internal{1,2} into a single insn that handles
14613 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
14614 extraction of the element at the top of the register as a scalar
14616 (vsx_extract_<mode>_internal1): Likewise.
14617 (vsx_extract_<mode>_internal2): Likewise.
14618 * config/rs6000/constraints.md (wi constraint): Remove a comment
14619 about DImode not being allowed in Altivec registers.
14620 (wB constraint): New constraint for constants that can be
14621 generated in Altivec registers with VSPLTISW/VUPKHSW.
14622 * config/rs6000/predicates.md (xxspltib_constant_split): Update
14624 (xxspltib_constant_nosplit): Likewise.
14625 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
14626 support for -mupper-regs-di to enable DImode to go into Altivec
14628 (POWERPC_MASKS): Likewise.
14629 (power7 cpu): Likewise.
14630 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
14631 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
14632 for DImode being allowed in Altivec registers. Update wi/wj
14633 constraints. Set scalar_in_vmx_p flag.
14634 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
14635 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
14636 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
14637 (rs6000_opt_masks): Add -mupper-regs-di.
14638 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
14639 direct move to use wi and not wj.
14640 (lfiwzx): Likewise.
14641 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
14643 (floatunssi<mode>2_lfiwzx_mem): Likewise.
14644 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
14645 any VSX register, instead of just Altivec registers, to allow
14646 either operand to be an Altivec register or both.
14647 (fixuns_trunc<mode>di2_fctiduz): Likewise.
14648 (movdi_internal32): Add support for -mupper-regs-di. Add support
14649 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
14650 the alternatives and attributes to be lined up to be easier to
14652 (movdi_internal64): Likewise.
14653 (64-bit DImode splitters): Change predicates to only split loading
14654 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
14655 load constants in ISA 3.0 or ISA 2.07 respectively.
14656 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14657 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
14658 mention -mcpu=power9 sets these options.
14659 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
14662 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14665 * config/avr/avr.c (avr_set_current_function): Warn misspelled
14666 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
14667 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
14668 by default to warn misspelled interrupt/ signal handler.
14669 * doc/invoke.texi (AVR Options): Document it. Update description
14670 for -nodevicelib option.
14672 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14674 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
14675 up parentheses. Use GET_MODE_UNIT_BITSIZE.
14676 (aarch64_<sur>shll2_n<mode>): Likewise.
14678 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
14680 PR middle-end/71529
14681 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
14682 DECL_CONTEXT for copied arguments.
14684 2016-06-15 Alan Hayward <alan.hayward@arm.com>
14686 PR tree-optimization/71483
14687 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
14690 2016-06-15 Martin Liska <mliska@suse.cz>
14692 * predict.c (tree_predict_by_opcode): Call predict_edge_def
14693 instead of predict_edge w/o a probability.
14695 2016-06-15 Alan Hayward <alan.hayward@arm.com>
14697 PR tree-optimization/71439
14698 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
14701 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14703 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
14704 register subregs in SET_SRC.
14706 2016-06-15 Richard Biener <rguenther@suse.de>
14708 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
14709 store restrictions.
14711 2016-06-15 Richard Biener <rguenther@suse.de>
14713 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
14714 not consider dependences between accesses that belong to the
14716 (vect_analyze_data_ref_dependences): Do not analyze read-read
14717 or self-dependences.
14719 2016-06-14 David Malcolm <dmalcolm@redhat.com>
14721 * spellcheck-tree.c: Include spellcheck-tree.h rather than
14723 (find_closest_identifier): Reimplement in terms of
14724 best_match<tree,tree>.
14725 * spellcheck-tree.h: New file.
14726 * spellcheck.c (struct edit_distance_traits<const char *>): New
14728 (find_closest_string): Reimplement in terms of
14729 best_match<const char *, const char *>.
14730 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
14731 overload to spellcheck-tree.h.
14732 (find_closest_identifier): Likewise.
14733 (struct edit_distance_traits<T>): New template.
14734 (class best_match): New class.
14736 2016-06-14 David Malcolm <dmalcolm@redhat.com>
14738 * selftest-run-tests.c (selftest::run_tests): Call
14739 selftest::spellcheck_tree_c_tests.
14740 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
14741 * spellcheck-tree.c: Include selftest.h and stringpool.h.
14742 (selftest::test_find_closest_identifier): New function.
14743 (selftest::spellcheck_tree_c_tests): New function.
14744 * spellcheck.c (selftest::test_find_closest_string): Verify that
14745 the order of the vec does not affect the results for this case.
14746 (selftest::test_data): New array.
14747 (selftest::test_metric_conditions): New function.
14748 (selftest::spellcheck_c_tests): Add a test of case-comparison.
14749 Call selftest::test_metric_conditions.
14751 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14753 * config/rs6000/rs6000-builtin.def (commentary): Typo.
14754 (BU_P9_MISC_1): Likewise.
14755 (BU_P9_64BIT_MISC_0): Likewise.
14756 (BU_P9_MISC_0): Likewise.
14758 2016-06-14 David Malcolm <dmalcolm@redhat.com>
14760 * gcc-rich-location.c
14761 (gcc_rich_location::add_fixit_misspelled_id): New method.
14762 * gcc-rich-location.h
14763 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
14765 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
14767 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
14768 FreeBSD 11 and above.
14770 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
14772 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
14774 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14776 * expmed.h: Close parenthesis in "at your option" in copyright
14778 * lower-subreg.h: Likewise.
14780 2016-06-14 Richard Biener <rguenther@suse.de>
14782 PR middle-end/71526
14783 * genmatch.c (expr::gen_transform): Use in_type for comparisons
14786 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14788 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
14790 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
14791 mask+shift version.
14792 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
14794 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
14795 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
14797 2016-06-14 Richard Biener <rguenther@suse.de>
14799 PR tree-optimization/71522
14800 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
14801 copying into float copying.
14803 2016-06-14 Jakub Jelinek <jakub@redhat.com>
14805 PR tree-optimization/71520
14806 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
14807 (replace_block_by): Move user labels from bb1 to bb2.
14809 2016-06-14 Richard Biener <rguenther@suse.de>
14811 PR middle-end/71310
14813 * expr.h (get_bit_range): Declare.
14814 * expr.c (get_bit_range): Export.
14815 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
14816 word_mode again to constrain the bitfield access.
14818 2016-06-14 Richard Biener <rguenther@suse.de>
14820 PR tree-optimization/71521
14821 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
14822 division int_const_binop against zero divisor.
14824 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
14826 * config/i386/i386.md (signbittf2): New expander.
14827 * config/i386/sse.md (ptesttf2): New insn pattern.
14829 2016-06-13 David Malcolm <dmalcolm@redhat.com>
14832 * input.c (selftest::test_reading_source_line): Avoid reading from
14833 __FILE__ by creating a tempfile with known content and reading
14836 2016-06-13 David Malcolm <dmalcolm@redhat.com>
14838 * pretty-print.c (assert_pp_format_colored): Skip the test if
14840 (test_pp_format): Remove comment about GCC_COLORS.
14842 2016-06-13 David Malcolm <dmalcolm@redhat.com>
14844 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
14845 * pretty-print.c (assert_pp_format_va): Add location param and use
14846 it with ASSERT_STREQ_AT.
14847 (assert_pp_format): Add location param and pass it to
14848 assert_pp_format_va.
14849 (assert_pp_format_colored): Likewise.
14850 (ASSERT_PP_FORMAT_1): New.
14851 (ASSERT_PP_FORMAT_2): New.
14852 (ASSERT_PP_FORMAT_3): New.
14853 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
14854 explicitly, or implicitly via the above macros.
14855 * selftest.c (selftest::pass): Use a selftest::location rather
14856 than file and line.
14857 (selftest::fail): Likewise. Print the function name.
14858 (selftest::fail_formatted): Likewise.
14859 (selftest::assert_streq): Use a selftest::location rather than
14861 * selftest.h (selftest::location): New struct.
14862 (SELFTEST_LOCATION): New macro.
14863 (selftest::pass): Accept a const location & rather than file
14865 (selftest::fail): Likewise.
14866 (selftest::fail_formatted): Likewise.
14867 (selftest::assert_streq): Likewise.
14868 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
14869 (ASSERT_FALSE): Likewise.
14870 (ASSERT_EQ): Likewise.
14871 (ASSERT_NE): Likewise.
14872 (ASSERT_STREQ): Likewise.
14873 (ASSERT_PRED1): Likewise.
14874 (ASSERT_STREQ_AT): New macro.
14876 2016-06-13 David Malcolm <dmalcolm@redhat.com>
14878 * selftest.c (selftest::fail_formatted): New function.
14879 (selftest::assert_streq): New function.
14880 * selftest.h (selftests::fail_formatted): New decl.
14881 (selftest::assert_streq): New decl.
14882 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
14884 2016-06-13 Jeff Law <law@redhat.com>
14886 PR tree-optimization/71403
14887 * tree-ssa-threadbackward.c
14888 (convert_and_register_jump_thread_path): No longer accept reference
14889 to path. Do not pop items off the path anymore.
14890 (fsm_find_control_statement_thread_paths): Do not allow threading
14891 to a deeper loop nest. Pop the last item off the path here rather
14892 than in convert_and_register_jump_thread_path.
14894 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
14895 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
14897 [AArch64] Emit division using the Newton series
14899 * config/aarch64/aarch64-protos.h
14900 (cpu_approx_modes): Add new member "division".
14901 (aarch64_emit_approx_div): Declare new function.
14902 * config/aarch64/aarch64.c
14903 (generic_approx_modes): New member "division".
14904 (exynosm1_approx_modes): Likewise.
14905 (xgene1_approx_modes): Likewise.
14906 (aarch64_emit_approx_div): Define new function.
14907 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
14908 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
14909 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
14910 * doc/invoke.texi (-mlow-precision-div): Describe new option.
14912 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
14913 Wilco Dijkstra <wilco.dijkstra@arm.com>
14915 [AArch64] Emit square root using the Newton series
14917 * config/aarch64/aarch64-protos.h
14918 (aarch64_emit_approx_rsqrt): Replace with new function
14919 "aarch64_emit_approx_sqrt".
14920 (cpu_approx_modes): New member "sqrt".
14921 * config/aarch64/aarch64.c
14922 (generic_approx_modes): New member "sqrt".
14923 (exynosm1_approx_modes): Likewise.
14924 (xgene1_approx_modes): Likewise.
14925 (aarch64_emit_approx_rsqrt): Replace with new function
14926 "aarch64_emit_approx_sqrt".
14927 (aarch64_override_options_after_change_1): Handle new option.
14928 * config/aarch64/aarch64-simd.md
14929 (rsqrt<mode>2): Use new function instead.
14930 (sqrt<mode>2): New expansion and insn definitions.
14931 * config/aarch64/aarch64.md: Likewise.
14932 * config/aarch64/aarch64.opt
14933 (mlow-precision-sqrt): Add new option description.
14934 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
14936 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
14938 [AArch64] Add more choices for the reciprocal square root approximation
14940 Allow a target to prefer such operation depending on the operation mode.
14942 * config/aarch64/aarch64-protos.h
14943 (AARCH64_APPROX_MODE): New macro.
14944 (AARCH64_APPROX_{NONE,ALL}): Likewise.
14945 (cpu_approx_modes): New structure.
14946 (tune_params): New member "approx_modes".
14947 * config/aarch64/aarch64-tuning-flags.def
14948 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
14949 * config/aarch64/aarch64.c
14950 (generic_approx_modes): New core "cpu_approx_modes" structure.
14951 (exynosm1_approx_modes): Likewise.
14952 (xgene1_approx_modes): Likewise.
14953 (generic_tunings): New member "approx_modes".
14954 (cortexa35_tunings): Likewise.
14955 (cortexa53_tunings): Likewise.
14956 (cortexa57_tunings): Likewise.
14957 (cortexa72_tunings): Likewise.
14958 (exynosm1_tunings): Likewise.
14959 (thunderx_tunings): Likewise.
14960 (xgene1_tunings): Likewise.
14961 (use_rsqrt_p): New argument for the mode and use new member from
14963 (aarch64_builtin_reciprocal): Devise mode from builtin.
14964 (aarch64_optab_supported_p): New argument for the mode.
14965 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
14967 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
14969 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
14970 RS6000_BTM_MODULO flag into the set of flags that are considered
14971 to be part of the common configuration.
14973 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
14975 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
14976 difference unsigned.
14977 (vec_absdb): New macro for vector absolute difference unsigned
14979 (vec_absdh): New macro for vector absolute difference unsigned
14981 (vec_absdw): New macro for vector absolute difference unsigned word.
14982 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
14983 (vadu<mode>3): New insn.
14984 (*p9_vadu<mode>3): New insn.
14985 * config/rs6000/rs6000-builtin.def (vadub): New built-in
14987 (vaduh): New built-in definition.
14988 (vaduw): New built-in definition.
14989 (vadu): New overloaded built-in definition.
14990 (vadub): New overloaded built-in definition.
14991 (vaduh): New overloaded built-in definition.
14992 (vaduw): New overloaded built-in definition.
14993 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14994 overloaded vector absolute difference unsigned functions.
14995 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14996 the ISA 3.0 vector absolute difference unsigned built-in functions.
14998 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
15000 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
15001 update shared_lookup_references only once after changing operands.
15003 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
15005 PR middle-end/71373
15006 * tree-nested.c (convert_nonlocal_omp_clauses)
15007 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
15009 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
15010 * tree.def (CASE_LABEL_EXPR): Likewise.
15012 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
15015 * input.c (test_builtins): Fix an assertion.
15017 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
15019 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
15020 (paritysi2): Ditto.
15022 (isinf<mode>2): Ditto.
15024 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
15026 * ggc-tests.c (test_finalization): Only test need_finalization_p
15027 for GCC_VERSION >= 4003.
15029 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15031 * config/s390/vecintrin.h: Fix file description in comment.
15033 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15035 * config/s390/s390-builtin-types.def: Change builtin type naming
15036 scheme to match builtin-types.def.
15038 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
15040 * fold-const.c (optimize_minmax_comparison): Remove.
15041 (fold_comparison): Remove call to the above.
15042 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
15043 New transformations.
15045 2016-06-13 Alan Hayward <alan.hayward@arm.com>
15047 PR tree-optimization/71416
15048 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
15051 2016-06-13 Martin Liska <mliska@suse.cz>
15053 * predict.c (enum predictor_reason): Prefix enum with REASON_.
15054 (combine_predictions_for_insn): Likewise.
15055 (prune_predictions_for_bb): Likewise.
15056 (combine_predictions_for_bb): Likewise.
15058 2016-06-13 Richard Biener <rguenther@suse.de>
15060 PR tree-optimization/71505
15061 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
15062 assert match comment.
15064 2016-06-13 Marek Polacek <polacek@redhat.com>
15066 PR middle-end/71476
15067 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
15068 gimplify_switch_expr.
15069 (warn_switch_unreachable_r): New function.
15071 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15074 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
15077 2016-06-13 Richard Biener <rguenther@suse.de>
15079 PR middle-end/64516
15080 * fold-const.c (fold_unary_loc): Preserve alignment when
15081 folding a VIEW_CONVERT_EXPR into a MEM_REF.
15083 2016-06-13 Martin Liska <mliska@suse.cz>
15086 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
15087 w/ -fsanitize=bounds.
15089 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
15091 * config/i386/i386.c (ix86_init_builtins): Calculate
15092 FLOAT128_FTYPE_CONST_STRING function type only once.
15093 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
15094 built-in functions are available for x86-32 and x86-64 targets.
15096 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
15099 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
15100 New primitive type.
15101 (FLOAT128_FTYPE_CONST_STRING): New function type.
15102 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
15103 [IX86_BUILTIN_NANSQ]: Ditto.
15104 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
15105 (ix86_init_builtin_types): Declare const_string_type_node.
15106 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
15108 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
15109 * doc/extend.texi (x86 Built-in Functions): Document
15110 __builtin_nanq and __builtin_nansq.
15112 2016-06-11 Jiong Wang <jiong.wang@arm.com>
15115 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
15116 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
15117 length for pop patterns.
15118 (arm_attr_length_push_multi): Update comments.
15119 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
15121 (*pop_multiple_with_writeback_and_return): Likewise.
15122 (*pop_multiple_with_return): Likewise.
15124 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
15126 PR middle-end/71310
15127 * fold-const.c (optimize_bit_field_compare): Don't try to use
15128 word_mode unconditionally for reading the bit field, look at
15129 DECL_BIT_FIELD_REPRESENTATIVE instead.
15131 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
15133 PR middle-end/71478
15134 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
15135 vector integer type.
15137 2016-06-10 Jakub Jelinek <jakub@redhat.com>
15139 PR middle-end/71494
15140 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
15141 without LABEL_DECL, set *handled_ops_p to false instead of true.
15143 2016-06-10 Martin Sebor <msebor@redhat.com>
15146 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
15147 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
15148 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
15150 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
15151 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
15152 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
15153 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
15154 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
15155 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
15156 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
15157 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
15159 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
15161 * config/arm/arm.h (pool_vector_label,
15162 return_used_this_function): Remove.
15164 2016-06-10 Jeff Law <law@redhat.com>
15166 PR tree-optimization/71335
15167 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
15168 zero length paths here.
15169 (convert_and_register_jump_thread_path): Remove hacks related to
15170 duplicated blocks in the jump thread path.
15171 (fsm_find_control_statement_thread_paths): Avoid putting the same
15172 block on the thread path twice, but ensure the thread path is
15173 unchanged from the caller's point of view.
15175 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
15177 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
15178 * predict.def (PRED_LOOP_BRANCH): Remove.
15180 2016-06-10 David Malcolm <dmalcolm@redhat.com>
15182 * Makefile.in (OBJS): Add ggc-tests.o.
15183 (GTFILES): Add ggc-tests.c.
15184 * ggc-tests.c: New file.
15185 * selftest-run-tests.c (selftest::run_tests): Call
15186 selftest::ggc_tests_c_tests.
15187 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
15189 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
15191 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
15193 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
15196 * varasm.c (place_block_symbol): Adjust alignment for asan protected
15197 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
15199 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
15201 * profile.c: Include cfgloop.h.
15202 (branch_prob): Compute estimated number of iterations.
15203 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
15204 recompute estimate number of iterations from profile.
15206 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
15208 PR inline-asm/68843
15209 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
15210 must be grouped on top of stack. Don't force early clobber
15211 on ordinary reg outputs.
15213 2016-06-10 Richard Biener <rguenther@suse.de>
15215 * targhooks.c (default_builtin_vectorization_cost): Adjust
15216 vec_construct cost.
15218 2016-06-10 Richard Biener <rguenther@suse.de>
15220 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
15221 to fold the RHS to a constant if possible.
15223 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
15225 PR middle-end/71373
15226 * tree-nested.c (convert_nonlocal_omp_clauses)
15227 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
15228 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
15229 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
15231 * gimplify.c (gimplify_adjust_omp_clauses): Discard
15233 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
15235 * omp-low.c (scan_sharing_clauses): Don't expect
15236 OMP_CLAUSE__CACHE_.
15238 2016-06-10 Alan Hayward <alan.hayward@arm.com>
15240 PR tree-optimization/71407
15241 PR tree-optimization/71416
15242 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
15243 BIT_FIELD_REF type.
15245 2016-06-10 Richard Biener <rguenther@suse.de>
15247 PR middle-end/71477
15248 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
15250 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
15252 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
15254 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
15255 Jiong Wang <jiong.wang@arm.com>
15257 PR rtl-optimization/70751
15258 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
15259 spilled into memory.
15261 2016-06-09 Jonathan Yong <10walls@gmail.com>
15264 2015-09-21 Jonathan Yong <10walls@gmail.com>
15266 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15267 sysroot/usr/lib/32api for additional win32 libraries,
15268 fixes failing Cygwin bootstrapping.
15270 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
15272 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
15275 2016-06-09 David Malcolm <dmalcolm@redhat.com>
15278 * pretty-print.c (pp_indent): Specify that %p is printed in a
15279 host-dependent manner.
15280 (test_pp_format): Remove the test for %p.
15282 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
15284 * config/mips/mips.c (mips_output_jump): Fix formatting.
15286 2016-06-09 Richard Biener <rguenther@suse.de>
15288 PR tree-optimization/71462
15289 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
15292 2016-06-09 Martin Liska <mliska@suse.cz>
15294 * predict.c (dump_prediction): Add new argument.
15295 (enum predictor_reason): New enum.
15296 (struct predictor_hash): New struct.
15297 (predictor_hash::hash): New function.
15298 (predictor_hash::equal): Likewise.
15299 (not_removed_prediction_p): New function.
15300 (prune_predictions_for_bb): Likewise.
15301 (combine_predictions_for_bb): Prune predictions.
15303 2016-06-09 Martin Liska <mliska@suse.cz>
15305 * predict.c (filter_predictions): New function.
15306 (remove_predictions_associated_with_edge): Use the filter
15308 (equal_edge_p): New function.
15310 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
15312 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
15313 Correct usage of @samp vs @option, add @samp where appropriate.
15314 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
15315 Add armv6s-m and document it, as it is no official ARM name.
15317 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15319 * ifcvt.c (struct noce_if_info): Add transform_name field.
15320 (noce_try_move): Set if_info->transform_name to the function name.
15321 (noce_try_ifelse_collapse): Likewise.
15322 (noce_try_store_flag): Likewise.
15323 (noce_try_inverse_constants): Likewise.
15324 (noce_try_store_flag_constants): Likewise.
15325 (noce_try_addcc): Likewise.
15326 (noce_try_store_flag_mask): Likewise.
15327 (noce_try_cmove): Likewise.
15328 (noce_try_cmove_arith): Likewise.
15329 (noce_try_minmax): Likewise.
15330 (noce_try_abs): Likewise.
15331 (noce_try_sign_mask): Likewise.
15332 (noce_try_bitop): Likewise.
15333 (noce_convert_multiple_sets): Likewise.
15334 (noce_process_if_block): Print if_info->transform_name to
15335 dump_file if transformation succeeded.
15337 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15339 * config/arm/cortex-a57.md (cortex_a57_alu):
15342 2016-06-08 Martin Sebor <msebor@redhat.com>
15343 Jakub Jelinek <jakub@redhat.com>
15347 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
15348 BUILT_IN_MUL_OVERFLOW_P): New builtins.
15349 * builtins.c: Include gimple-fold.h.
15350 (fold_builtin_arith_overflow): Handle
15351 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
15352 (fold_builtin_3): Likewise.
15353 * doc/extend.texi (Integer Overflow Builtins): Document
15354 __builtin_{add,sub,mul}_overflow_p.
15356 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
15358 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
15359 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
15361 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
15363 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
15364 Rewrite, looking one level down for records and arrays.
15366 2016-06-08 David Malcolm <dmalcolm@redhat.com>
15368 * pretty-print.c: Include "selftest.h".
15369 (pp_format): Fix comment.
15370 (identifier_to_locale): Likewise.
15371 (selftest::test_basic_printing): New function.
15372 (selftest::assert_pp_format): New function.
15373 (selftest::test_pp_format): New function.
15374 (selftest::pretty_print_c_tests): New function.
15375 * selftest-run-tests.c (selftest::run_tests): Call
15376 selftest::pretty_print_c_tests.
15377 * selftest.h (pretty_print_c_tests): New declaration.
15379 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
15381 * invoke.texi (max-loop-headers-insns): Document.
15382 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
15383 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
15384 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
15386 2016-06-08 Richard Biener <rguenther@suse.de>
15388 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
15389 on strided SLP loads and fall back to scalar loads in case
15390 we can't chunk them.
15392 2016-06-08 Richard Biener <rguenther@suse.de>
15394 PR tree-optimization/71452
15395 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
15396 type used for the SSA rewrite has enough precision to cover
15397 the dynamic type of the location.
15399 2016-06-08 Jakub Jelinek <jakub@redhat.com>
15400 Richard Biener <rguenther@suse.de>
15403 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
15404 the same as DECL_P (base0) for indirect_base0. Use equality_code
15405 in one further place.
15407 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
15409 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
15410 to one word if the field is known to overlap other words.
15411 (extract_bit_field_1): Likewise.
15412 (store_split_bit_field): Remove compensating code.
15413 (extract_split_bit_field): Likewise.
15415 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
15419 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
15421 2016-06-08 Jiong Wang <jiong.wang@arm.com>
15423 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
15425 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
15426 (arch64_addpv4sf): Delete.
15427 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
15428 "gen_aarch64_addpv4sf".
15429 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
15431 (vpadds_f32): Likewise.
15432 (vpaddq_f32): Likewise.
15433 (vpaddq_f64): Likewise.
15435 2016-06-08 Jiong Wang <jiong.wang@arm.com>
15437 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
15439 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
15440 to VALLF. Rename to "fabd<mode>3".
15441 "*fabd_scalar<mode>3): Delete.
15442 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
15444 (vabdd_f64): Likewise.
15445 (vabd_f32): Likewise.
15446 (vabd_f64): Likewise.
15447 (vabdq_f32): Likewise.
15448 (vabdq_f64): Likewise.
15450 2016-06-08 Jiong Wang <jiong.wang@arm.com>
15452 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
15454 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
15455 "aarch64_rsqrts<mode>".
15456 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
15457 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
15459 (vrsqrtsd_f64): Likewise.
15460 (vrsqrts_f32): Likewise.
15461 (vrsqrts_f64): Likewise.
15462 (vrsqrtsq_f32): Likewise.
15463 (vrsqrtsq_f64): Likewise.
15465 2016-06-08 Jiong Wang <jiong.wang@arm.com>
15467 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
15469 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
15470 "aarch64_rsqrte<mode>".
15471 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
15472 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
15474 (vrsqrted_f64): Likewise.
15475 (vrsqrte_f32): Likewise.
15476 (vrsqrte_f64): Likewise.
15477 (vrsqrteq_f32): Likewise.
15478 (vrsqrteq_f64): Likewise.
15480 2016-06-08 Jiong Wang <jiong.wang@arm.com>
15482 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
15484 (fcvtzs): Likewise.
15485 (fcvtzu): Likewise.
15486 * config/aarch64/aarch64-simd.md
15487 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
15488 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
15489 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
15491 (vcvt_n_f32_u32): Likewise.
15492 (vcvt_n_s32_f32): Likewise.
15493 (vcvt_n_u32_f32): Likewise.
15494 (vcvtq_n_f32_s32): Likewise.
15495 (vcvtq_n_f32_u32): Likewise.
15496 (vcvtq_n_f64_s64): Likewise.
15497 (vcvtq_n_f64_u64): Likewise.
15498 (vcvtq_n_s32_f32): Likewise.
15499 (vcvtq_n_s64_f64): Likewise.
15500 (vcvtq_n_u32_f32): Likewise.
15501 (vcvtq_n_u64_f64): Likewise.
15502 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
15503 (VSDQ_SDI): Likewise.
15504 (fcvt_target): Support V4DI, V4SI and V2SI.
15505 (FCVT_TARGET): Likewise.
15507 2016-06-08 Jiong Wang <jiong.wang@arm.com>
15509 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
15510 (TYPES_BINOP_SUS): Likewise.
15511 (aarch64_simd_builtin_data): Update include file name.
15512 (aarch64_builtins): Likewise.
15513 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
15514 for conversion between scalar float-point and fixed-point.
15516 (fcvtzs): Likewise.
15517 (fcvtzu): Likewise.
15518 * config/aarch64/aarch64.md
15519 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
15520 pattern for conversion between scalar float to fixed-pointer.
15521 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
15522 (UNSPEC_FCVTZS): New UNSPEC enumeration.
15523 (UNSPEC_FCVTZU): Likewise.
15524 (UNSPEC_SCVTF): Likewise.
15525 (UNSPEC_UCVTF): Likewise.
15526 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
15528 (vcvtd_n_f64_u64): Likewise.
15529 (vcvtd_n_s64_f64): Likewise.
15530 (vcvtd_n_u64_f64): Likewise.
15531 (vcvtd_n_f32_s32): Likewise.
15532 (vcvts_n_f32_u32): Likewise.
15533 (vcvtd_n_s32_f32): Likewise.
15534 (vcvts_n_u32_f32): Likewise.
15535 * config/aarch64/iterators.md (fcvt_target): Support integer to float
15537 (FCVT_TARGET): Likewise.
15538 (FCVT_FIXED2F): New iterator.
15539 (FCVT_F2FIXED): Likewise.
15540 (fcvt_fixed_insn): New define_int_attr.
15542 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
15544 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
15545 some statements was removed.
15547 2016-06-08 Alan Hayward <alan.hayward@arm.com>
15549 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
15550 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
15551 (vect_can_advance_ivs_p): likewise.
15552 (vect_update_ivs_after_vectorizer): likewise.
15553 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
15554 (vect_analyze_scalar_cycles_1): likewise.
15555 (vect_analyze_loop_operations): likewise.
15556 (report_vect_op): likewise.
15557 (vect_is_slp_reduction): likewise.
15558 (vect_is_simple_reduction): likewise.
15559 (get_initial_def_for_induction): likewise.
15560 (vect_transform_loop): likewise.
15561 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
15562 (vect_recog_sad_pattern): likewise.
15563 (vect_recog_widen_sum_pattern): likewise.
15564 (vect_recog_widening_pattern): likewise.
15565 (vect_recog_divmod_pattern): likewise.
15566 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
15567 (vect_analyze_slp_instance): likewise.
15568 (vect_transform_slp_perm_load): likewise.
15569 (vect_schedule_slp_instance): likewise.
15571 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
15573 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
15574 (return_prediction): PRED_CONST_RETURN predict return as not taken.
15575 * predict.def (PRED_CONTINUE): Change hitrate 50->67
15576 (PRED_LOOP_BRANCH): Document predictor as broken.
15577 (PRED_LOOP_EXIT): Change hitrate 91->92.
15578 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
15579 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
15580 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
15581 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
15582 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
15583 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
15584 (PRED_CALL): Chane hitrate 71->67.
15585 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
15586 (PRED_GOTO): Document as unused right now.
15587 (PRED_CONST_RETURN): Change hitrate 67->69
15588 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
15589 (PRED_NULL_RETURN): Change hitrate 91->90.
15590 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
15591 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
15592 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
15594 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
15596 * config/rs6000/altivec.h: Add __builtin_vec_mul.
15597 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
15598 special case Altivec builtin.
15599 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15600 VSX_BUILTIN_VEC_MUL (replaced with special case code).
15601 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15602 code for ALTIVEC_BUILTIN_VEC_MUL.
15603 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15604 for __builtin_vec_mul.
15606 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
15608 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
15611 2016-06-07 David Malcolm <dmalcolm@redhat.com>
15613 * spellcheck.c (selftest::test_find_closest_string): New function.
15614 (spellcheck_c_tests): Call the above.
15616 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15618 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
15620 2016-06-07 Jakub Jelinek <jakub@redhat.com>
15622 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
15623 Yv=Yv,C alternatives.
15625 2016-06-07 Richard Biener <rguenther@suse.de>
15628 * common.opt (ffast-math): Make Optimization.
15630 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
15631 Prachi Godbole <prachi.godbole@imgtec.com>
15633 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
15634 `fabs' and `fneg' type attributes.
15635 (p5600_fpu_fabs): Add `fmove' to the comment.
15637 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
15639 * gimple.c: Include builtins.h
15640 (gimple_inexpensive_call_p): New function.
15641 * gimple.h (gimple_inexpensive_call_p): Declare.
15642 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
15643 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
15646 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
15648 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
15649 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
15650 warning_at_rich_loc, warning_n, pedwarn, permerror,
15651 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
15652 sorry, fatal_error, internal_error, internal_error_no_backtrace):
15655 2016-06-07 Richard Biener <rguenther@suse.de>
15657 PR tree-optimization/71428
15658 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
15659 BIT_FIELD_REF op vs. load.
15661 2016-06-07 Richard Biener <rguenther@suse.de>
15663 PR middle-end/71423
15664 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
15667 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
15669 * config/pa/pa.md (call): Generate indirect long calls to non-local
15670 functions on TARGET_64BIT.
15671 (call_value): Likewise.
15673 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
15675 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
15676 pattern and subsequent splitters.
15677 (call_val_reg_64bit_post_reload): Likewise.
15679 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15681 PR middle-end/71408
15682 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
15683 propagate_op_to_single_use.
15685 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
15687 PR middle-end/71281
15688 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
15690 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
15692 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
15693 (enum x86_dirflag_state): New enum.
15694 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
15695 (machine_function): Remove needs_cld.
15696 (ix86_current_function_needs_cld): Remove.
15697 * config/i386/i386.c (ix86_set_func_type): Set
15698 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
15699 (ix86_expand_prologue): Do not emit CLD here.
15700 (ix86_dirflag_mode_needed): New function.
15701 (ix86_dirflag_mode_entry): Ditto.
15702 (ix86_mode_needed): Handle X86_DIRFLAG entity.
15703 (ix86_mode_after): Ditto.
15704 (ix86_mode_entry): Ditto.
15705 (ix86_mode_exit): Ditto.
15706 (ix86_emit_mode_set): Ditto.
15707 * config/i386/i386.md (strmov_singleop): Set
15708 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
15709 Do not set ix86_current_function_needs_cld.
15711 (strset_singleop): Ditto.
15713 (cmpstrnqi_nz_1): Ditto.
15714 (cmpstrnqi_1): Ditto.
15715 (strlenqi_1): Ditto.
15717 2016-06-06 Jakub Jelinek <jakub@redhat.com>
15719 PR tree-optimization/71259
15720 * tree-vect-slp.c (vect_get_constant_vectors): For
15721 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
15722 one for constant op, and use COND_EXPR for non-constant.
15724 2016-06-06 David Malcolm <dmalcolm@redhat.com>
15726 * Makefile.in (OBJS): Add function-tests.o,
15727 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
15728 selftest-run-tests.o.
15729 (OBJS-libcommon): Add selftest.o.
15730 (OBJS-libcommon-target): Add selftest.o.
15731 (all.internal): Add "selftest".
15732 (all.cross): Likewise.
15733 (selftest): New phony target.
15734 (s-selftest): New target.
15735 (selftest-gdb): New phony target.
15736 (COLLECT2_OBJS): Add selftest.o.
15737 * bitmap.c: Include "selftest.h".
15738 (selftest::test_gc_alloc): New function.
15739 (selftest::test_set_range): New function.
15740 (selftest::test_clear_bit_in_middle): New function.
15741 (selftest::test_copying): New function.
15742 (selftest::test_bitmap_single_bit_set_p): New function.
15743 (selftest::bitmap_c_tests): New function.
15744 * common.opt (fself-test): New.
15745 * diagnostic-show-locus.c: Include "selftest.h".
15746 (make_range): New function.
15747 (test_range_contains_point_for_single_point): New function.
15748 (test_range_contains_point_for_single_line): New function.
15749 (test_range_contains_point_for_multiple_lines): New function.
15750 (assert_eq): New function.
15751 (test_get_line_width_without_trailing_whitespace): New function.
15752 (selftest::diagnostic_show_locus_c_tests): New function.
15753 * et-forest.c: Include "selftest.h".
15754 (selftest::test_single_node): New function.
15755 (selftest::test_simple_tree): New function.
15756 (selftest::test_disconnected_nodes): New function.
15757 (selftest::et_forest_c_tests): New function.
15758 * fold-const.c: Include "selftest.h".
15759 (selftest::assert_binop_folds_to_const): New function.
15760 (selftest::assert_binop_folds_to_nonlvalue): New function.
15761 (selftest::test_arithmetic_folding): New function.
15762 (selftest::fold_const_c_tests): New function.
15763 * function-tests.c: New file.
15764 * gimple.c: Include "selftest.h".
15765 Include "gimple-pretty-print.h".
15766 (selftest::verify_gimple_pp): New function.
15767 (selftest::test_assign_single): New function.
15768 (selftest::test_assign_binop): New function.
15769 (selftest::test_nop_stmt): New function.
15770 (selftest::test_return_stmt): New function.
15771 (selftest::test_return_without_value): New function.
15772 (selftest::gimple_c_tests): New function.
15773 * hash-map-tests.c: New file.
15774 * hash-set-tests.c: New file.
15775 * input.c: Include "selftest.h".
15776 (selftest::assert_loceq): New function.
15777 (selftest::test_accessing_ordinary_linemaps): New function.
15778 (selftest::test_unknown_location): New function.
15779 (selftest::test_builtins): New function.
15780 (selftest::test_reading_source_line): New function.
15781 (selftest::input_c_tests): New function.
15782 * rtl-tests.c: New file.
15783 * selftest-run-tests.c: New file.
15784 * selftest.c: New file.
15785 * selftest.h: New file.
15786 * spellcheck.c: Include "selftest.h".
15787 (selftest::levenshtein_distance_unit_test_oneway): New function,
15788 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
15789 (selftest::levenshtein_distance_unit_test): Likewise.
15790 (selftest::spellcheck_c_tests): Likewise.
15791 * toplev.c: Include selftest.h.
15792 (toplev::run_self_tests): New.
15793 (toplev::main): Handle -fself-test.
15794 * toplev.h (toplev::run_self_tests): New.
15795 * tree.c: Include "selftest.h".
15796 (selftest::test_integer_constants): New function.
15797 (selftest::test_identifiers): New function.
15798 (selftest::test_labels): New function.
15799 (selftest::tree_c_tests): New function.
15800 * tree-cfg.c: Include "selftest.h".
15801 (selftest::push_fndecl): New function.
15802 (selftest::test_linear_chain): New function.
15803 (selftest::test_diamond): New function.
15804 (selftest::test_fully_connected): New function.
15805 (selftest::tree_cfg_c_tests): New function.
15806 * vec.c: Include "selftest.h".
15807 (selftest::safe_push_range): New function.
15808 (selftest::test_quick_push): New function.
15809 (selftest::test_safe_push): New function.
15810 (selftest::test_truncate): New function.
15811 (selftest::test_safe_grow_cleared): New function.
15812 (selftest::test_pop): New function.
15813 (selftest::test_safe_insert): New function.
15814 (selftest::test_ordered_remove): New function.
15815 (selftest::test_unordered_remove): New function.
15816 (selftest::test_block_remove): New function.
15817 (selftest::reverse_cmp): New function.
15818 (selftest::test_qsort): New function.
15819 (selftest::vec_c_tests): New function.c.
15820 * wide-int.cc: Include selftest.h and wide-int-print.h.
15821 (selftest::from_int <wide_int>): New function.
15822 (selftest::from_int <offset_int>): New function.
15823 (selftest::from_int <widest_int>): New function.
15824 (selftest::assert_deceq): New function.
15825 (selftest::assert_hexeq): New function.
15826 (selftest::test_printing <VALUE_TYPE>): New function template.
15827 (selftest::test_ops <VALUE_TYPE>): New function template.
15828 (selftest::test_comparisons <VALUE_TYPE>): New function template.
15829 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
15831 (selftest::wide_int_cc_tests): New function.
15833 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15835 PR middle-end/37780
15836 * ifcvt.c (noce_try_ifelse_collapse): New function.
15838 (noce_process_if_block): Call noce_try_ifelse_collapse.
15839 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
15840 (simplify_ternary_operation): Use the above to simplify
15841 conditional CLZ/CTZ expressions.
15843 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15845 PR middle-end/37780
15846 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
15847 define_insn_and_split.
15849 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15851 PR middle-end/37780
15852 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
15854 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
15857 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
15858 Implicitly clobber memory for basic asm with non-empty assembler
15859 string. Use targetm.md_asm_adjust also here.
15860 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
15861 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
15862 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
15863 non-empty assembler string.
15864 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
15865 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
15866 (decode_asm_operands): Handle basic asm in PARALLEL block.
15867 (extract_insn): Handle basic asm in PARALLEL block.
15868 * doc/extend.texi: Mention new behavior of basic asm.
15869 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
15870 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
15871 branch_needs_nop_p): Use asm_noperands.
15873 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
15875 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
15876 Include the M7 SPARC DFA scheduler.
15877 New attribute v3pipe.
15878 Annotate insns with v3pipe where appropriate.
15879 Define cpu_feature vis4.
15880 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
15881 Add (V8QI "8") to vbits.
15882 Add insns {add,sub}v8qi3
15883 Add insns ss{add,sub}v8qi3
15884 Add insns us{add,sub}{v8qi,v4hi}3
15885 Add insns {min,max}{v8qi,v4hi,v2si}3
15886 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
15887 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
15888 * config/sparc/niagara4.md: Add a comment explaining the
15889 discrepancy between the documented latenty numbers and the
15891 * config/sparc/niagara7.md: New file.
15892 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
15893 supports SPARC5 and VIS 4.0 instructions.
15894 * configure: Regenerate.
15895 * config.in: Likewise.
15896 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
15897 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
15898 TARGET_CPU_niagara7.
15899 (ASM_CPU64_DEFAULT_SPEC): Likewise.
15900 (CPP_CPU_SPEC): Handle niagara7.
15901 (ASM_CPU_SPEC): Likewise.
15902 * config/sparc/sparc-opts.h (processor_type): Add
15903 PROCESSOR_NIAGARA7.
15904 (mvis4): New option.
15905 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
15906 (AS_NIAGARA7_FLAG): Define.
15907 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
15908 (CPP_CPU64_DEFAULT_SPEC): Likewise.
15909 (CPP_CPU_SPEC): Handle niagara7.
15910 (ASM_CPU_SPEC): Likewise.
15911 * config/sparc/sparc.c (niagara7_costs): Define.
15912 (sparc_option_override): Handle niagara7 and adjust cache-related
15913 parameters with better values for niagara cpus. Also support VIS4.
15914 (sparc32_initialize_trampoline): Likewise.
15915 (sparc_use_sched_lookahead): Likewise.
15916 (sparc_issue_rate): Likewise.
15917 (sparc_register_move_cost): Likewise.
15918 (dump_target_flag_bits): Support VIS4.
15919 (sparc_vis_init_builtins): Likewise.
15920 (sparc_builtins): Likewise.
15921 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
15923 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
15925 * config/sparc/sparc.opt (sparc_processor_type): New value
15927 * config/sparc/visintrin.h (__attribute__): Prototypes for the
15929 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
15931 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
15934 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
15936 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
15938 2016-06-06 Richard Biener <rguenther@suse.de>
15940 PR tree-optimization/71398
15941 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
15944 2016-06-05 James Bowman <james.bowman@ftdichip.com>
15946 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
15947 ft32_expand_prolog, ft32_expand_epilogue):
15948 Handle pretend_args.
15949 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
15950 * config/ft32/ft32.md: Add pretend_returner.
15952 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
15955 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
15956 Copy op1 RTX to avoid invalid sharing.
15957 (ix86_expand_vector_move_misalign): Ditto.
15959 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
15961 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
15964 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
15966 * predict.c (predicted_by_loop_heuristics_p): New function.
15967 (predict_iv_comparison): Use it.
15968 (predict_loops): Walk from innermost loops; do not predict edges
15969 leaving multiple loops multiple times; implement
15970 PRED_LOOP_ITERATIONS_MAX heuristics.
15971 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
15973 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
15975 * cfg.c (check_bb_profile): Do not report mismatched profiles when
15976 only edges out of BB are EH edges.
15978 2016-06-04 Martin Sebor <msebor@redhat.com>
15979 Marcin Baczyński <marbacz@gmail.com>
15982 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
15983 a void expression in a void function.
15985 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
15987 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
15988 aux; dump reasons of decisions.
15989 (should_duplicate_loop_header_p): Likewise.
15990 (do_while_loop_p): Likewise.
15991 (ch_base::copy_headers): Dump asi num insns duplicated.
15993 2016-06-04 Jakub Jelinek <jakub@redhat.com>
15995 PR tree-optimization/71405
15996 * tree-ssa.c (execute_update_addresses_taken): For clobber with
15997 incompatible type, build a new clobber with the right type instead
15998 of building a VIEW_CONVERT_EXPR around it.
16000 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
16002 PR tree-optimization/52171
16003 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
16004 by_pieces_ninsns instead of move_by_pieces_ninsns.
16006 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
16008 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
16009 for reg+reg addressing mode.
16011 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16013 * rs6000-c.c (c/c-tree.h): Add #include.
16014 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
16015 in C++ when found in the base position of vec_ld or vec_st.
16017 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
16019 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
16020 use of profile unless profile status is PROFILE_READ.
16021 * profile.c (compute_branch_probabilities): Set profile status
16022 only after reporting predictor hitrates.
16024 2016-06-03 Joseph Myers <joseph@codesourcery.com>
16028 * common.opt (ffp-int-builtin-inexact): New option.
16029 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
16030 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
16031 (ceil@var{m}2): Document dependence on this option.
16032 * ipa-inline-transform.c (inline_call): Handle
16033 flag_fp_int_builtin_inexact.
16034 * ipa-inline.c (can_inline_edge_p): Likewise.
16035 * config/i386/i386.md (rintxf2): Do not test
16036 flag_unsafe_math_optimizations.
16037 (rint<mode>2_frndint): New define_insn.
16038 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
16039 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
16040 for 387 instead of extending and truncating.
16041 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
16042 !flag_trapping_math instead of flag_unsafe_math_optimizations.
16043 Change to frndint<mode>2_<rounding>.
16044 (frndintxf2_<rounding>_i387): Likewise. Change to
16045 frndint<mode>2_<rounding>_i387.
16046 (<rounding_insn>xf2): Likewise.
16047 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
16048 !flag_trapping_math instead of flag_unsafe_math_optimizations for
16049 x87. Test TARGET_ROUND || !flag_trapping_math ||
16050 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
16051 SSE. Use ROUND_NO_EXC in constant operand of
16052 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
16053 for 387 instead of extending and truncating.
16055 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
16056 Julia Koval <julia.koval@intel.com>
16068 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
16069 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
16070 all registers, except for function return registers if there are
16071 no caller-saved registers.
16072 (ix86_set_func_type): New function.
16073 (ix86_set_current_function): Call ix86_set_func_type to set
16074 no_caller_saved_registers and func_type. Call reinit_regs if
16075 caller-saved registers are changed. Don't allow MPX, SSE, MMX
16076 nor x87 instructions in interrupt handler nor function with
16077 no_caller_saved_registers attribute.
16078 (ix86_function_ok_for_sibcall): Return false if there are no
16079 caller-saved registers.
16080 (type_natural_mode): Don't warn ABI change for MMX in interrupt
16082 (ix86_function_arg_advance): Skip for callee in interrupt handler.
16083 (ix86_function_arg): Return special arguments in interrupt handler.
16084 (ix86_promote_function_mode): Promote pointer to word_mode only
16085 for normal functions.
16086 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
16088 (ix86_epilogue_uses): New function.
16089 (ix86_hard_regno_scratch_ok): Likewise.
16090 (ix86_save_reg): Preserve all registers in interrupt handler
16091 after reload. Preserve all registers, except for function return
16092 registers, if there are no caller-saved registers after reload.
16093 (find_drap_reg): Always use callee-saved register if there are
16094 no caller-saved registers.
16095 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
16096 for interrupt handler.
16097 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
16098 Emit cld instruction if stringops are used in interrupt handler
16099 or interrupt handler isn't a leaf function.
16100 (ix86_expand_epilogue): Generate interrupt return for interrupt
16101 handler and pop the 'ERROR_CODE' off the stack before interrupt
16102 return in exception handler.
16103 (ix86_expand_call): Disallow calling interrupt handler directly.
16104 If there are no caller-saved registers, mark all registers that
16105 are clobbered by the call which returns as clobbered.
16106 (ix86_handle_no_caller_saved_registers_attribute): New function.
16107 (ix86_handle_interrupt_attribute): Likewise.
16108 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
16110 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
16111 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
16112 accumulation in interrupt function if stack may be realigned to
16114 (EPILOGUE_USES): New.
16115 (function_type): New enum.
16116 (machine_function): Add func_type and no_caller_saved_registers.
16117 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
16118 (interrupt_return): New pattern.
16119 * doc/extend.texi: Document x86 interrupt and
16120 no_caller_saved_registers attributes.
16122 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
16124 PR tree-optimization/52171
16125 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
16126 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
16127 Look for constant strings. Move some code to emit_block_cmp_hints
16129 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
16130 * defaults.h (COMPARE_MAX_PIECES): New macro.
16131 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
16132 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
16133 (clear_by_pieces_1): Don't declare. Move definition before use.
16134 (can_do_by_pieces): New static function.
16135 (can_move_by_pieces): Use it. Return bool.
16136 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
16137 OP. All callers changed. Handle COMPARE_BY_PIECES.
16138 (class pieces_addr); New.
16139 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
16140 pieces_addr::adjust, pieces_addr::increment_address,
16141 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
16143 (class op_by_pieces_d): New.
16144 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
16146 (class move_by_pieces_d, class compare_by_pieces_d,
16147 class store_by_pieces_d): New subclasses of op_by_pieces_d.
16148 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
16149 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
16150 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
16151 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
16152 compare_by_pieces_d::finish_mode): New member functions.
16153 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
16155 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
16156 (emit_block_cmp_hints): New function.
16157 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
16158 use the newly defined classes.
16159 * expr.h (by_pieces_constfn): New typedef.
16160 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
16161 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
16162 (move_by_pieces_ninsns): Don't declare.
16163 (can_move_by_pieces): Change return value to bool.
16164 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
16165 (compare_by_pieces_branch_ratio): New hook.
16166 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
16167 (by_pieces_ninsns): Declare.
16168 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
16170 (default_compare_by_pieces_branch_ratio): New function.
16171 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
16172 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
16173 * doc/tm.texi: Regenerate.
16174 * tree-ssa-strlen.c: Include "builtins.h".
16175 (handle_builtin_memcmp): New static function.
16176 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
16177 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
16179 2016-06-03 Alan Hayward <alan.hayward@arm.com>
16181 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
16182 relevant stmts which are simple and invariant.
16183 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
16184 instead of simple and invariant
16186 2016-06-03 Alan Hayward <alan.hayward@arm.com>
16188 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
16189 (vectorizable_reduction): Check for new relevant state.
16190 (vectorizable_live_operation): vectorize live stmts using
16191 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
16192 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
16193 (vect_stmt_relevant_p): Check for stmts which are only used live.
16194 (process_use): Use of a stmt does not inherit it's live value.
16195 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
16196 (vect_analyze_stmt): Check for new relevant state.
16197 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
16198 outside the loop, but not inside it.
16200 2016-06-03 Alan Hayward <alan.hayward@arm.com>
16202 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
16203 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
16204 (vect_get_vec_def_for_operand): Split out code.
16206 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
16208 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
16210 2016-06-03 Alan Hayward <alan.hayward@arm.com>
16212 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
16214 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16216 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
16218 2016-06-03 Jakub Jelinek <jakub@redhat.com>
16220 PR middle-end/71387
16221 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
16222 to noreturn e->callee->decl that has void return type and void
16223 arguments, adjust gimple_call_fntype and remove lhs even if it had
16224 previously addressable type.
16226 2016-06-02 Jeff Law <law@redhat.com>
16228 PR tree-optimization/71328
16229 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
16230 error when checking for a jump back onto the copied path.
16232 2016-06-02 David Malcolm <dmalcolm@redhat.com>
16234 * config/microblaze/microblaze.c (get_branch_target): Add return
16235 NULL_RTX for the non-CALL_P case.
16236 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
16237 (insert_wic): Remove unused local "j".
16239 2016-06-02 Martin Liska <mliska@suse.cz>
16241 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
16243 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
16244 Julia Koval <julia.koval@intel.com>
16246 * function.c (assign_parm_setup_stack): Force source into a
16247 register if needed.
16248 * target.def (function_incoming_arg): Update documentation to
16249 allow arbitrary address computation based on hard register.
16250 * doc/tm.texi: Regenerated.
16252 2016-06-02 Martin Liska <mliska@suse.cz>
16254 * predict.c (combine_predictions_for_bb): Fix first match in
16255 cases where a first predictor contains more than one occurence
16256 in list of predictors. Take the best value in such case.
16258 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16260 PR rtl-optimization/71295
16261 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
16262 offset would go over the size of the inner mode reject it.
16264 2016-06-02 Jakub Jelinek <jakub@redhat.com>
16266 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
16267 x=x,x and v=v,m instead of x=x,m.
16269 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
16270 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
16271 alternative to v=rm,C.
16273 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
16274 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
16275 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
16276 instead of vex for the last two above mentioned alternatives.
16278 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16281 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
16283 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
16285 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
16287 2016-06-01 David Malcolm <dmalcolm@redhat.com>
16289 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
16290 from int to unsigned.
16292 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
16294 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
16295 alternatives, eliminating preferred register class. Add support
16296 for the MTVSRDD instruction in ISA 3.0.
16297 (vsx_splat_v4si_internal): Use splat_input_operand instead of
16298 reg_or_indexed_operand.
16299 (vsx_splat_v4sf_internal): Likewise.
16301 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
16304 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
16305 for loading up all 0's or all 1's.
16307 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
16309 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
16311 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
16313 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
16315 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
16316 * gcc.c (set_source_date_epoch_envvar): New function, sets
16317 the SOURCE_DATE_EPOCH environment variable to the current time.
16319 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
16321 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
16322 the factor for live Phi nodes.
16324 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
16326 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
16327 * tree-parloops.c (parallelize_loops): likewise.
16328 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
16329 tree_unswitch_outer_loop): likewise.
16331 2016-06-01 Jakub Jelinek <jakub@redhat.com>
16333 PR middle-end/71371
16334 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
16335 around creation of the temporary.
16337 2016-06-01 Richard Biener <rguenther@suse.de>
16339 PR tree-optimization/71366
16340 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
16341 (unloop_loops): Move removing edges here ...
16342 (try_unroll_loop_completely): ... from here.
16343 (try_peel_loop): ... and here.
16344 (tree_unroll_loops_completely_1): Track parent loops via
16345 bitmap of header BBs.
16346 (tree_unroll_loops_completely): Adjust for that.
16348 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
16350 * config/rs6000/altivec.h (vec_slv): New macro.
16351 (vec_srv): New macro.
16352 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
16353 (UNSPEC_VSRV): New value.
16356 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
16357 (vsrv): New builtin definition.
16358 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
16359 define argument types for new builtin.
16360 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
16362 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
16365 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
16366 Jocelyn Mayer <l_indien@magic.fr>
16369 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
16370 detect processor family for signature_CENTAUR_ebx.
16371 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
16372 signature_CENTAUR_ebx.
16373 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
16374 <default>: Pass x86-64 for has_longmode.
16376 2016-06-01 Nathan Sidwell <nathan@acm.org>
16378 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
16381 2016-06-01 Richard Biener <rguenther@suse.de>
16383 PR tree-optimization/71261
16384 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
16385 of stmts successfully put in the bool pattern. Remove
16386 single-use restriction.
16387 (adjust_bool_pattern_cast): Add cast at the use site via the
16388 pattern def sequence.
16389 (adjust_bool_pattern): Remove recursion, maintain a hash-map
16390 of patterned defs. Use the pattern def seqence instead of
16391 multiple independent patterns.
16392 (sort_after_uid): New qsort compare function.
16393 (adjust_bool_stmts): New function to process stmts in the bool
16394 pattern in IL order.
16395 (vect_recog_bool_pattern): Adjust.
16396 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
16397 (ifcvt_walk_pattern_tree): Likewise.
16398 (stmt_is_root_of_bool_pattern): Likewise.
16399 (ifcvt_repair_bool_pattern): Likewise.
16400 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
16402 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
16404 * loop-unroll.c (decide_unroll_constant_iterations,
16405 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
16406 likely upper bounds.
16407 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
16409 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
16411 * tree-core.h (enum omp_clause_code): Remove
16412 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
16414 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16416 * config/arm/sync.md (arm_store_exclusive<mode>):
16417 Use 'H' output modifier on operands[2] rather than creating a new
16418 entry in out-of-bounds memory of the operands array.
16419 (arm_store_release_exclusivedi): Likewise.
16421 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16423 * config/arm/arm.c (arm_fusion_enabled_p): New function.
16424 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
16425 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
16426 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
16428 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
16430 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
16431 into account live statements for mask producers.
16433 2016-06-01 Richard Biener <rguenther@suse.de>
16435 PR tree-optimization/71311
16436 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
16437 restrict to non-INTEGER_CST @0.
16439 2016-06-01 Richard Biener <rguenther@suse.de>
16441 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
16442 (relational patterns): Use :c to avoid pattern duplications.
16444 2016-06-01 Richard Biener <rguenther@suse.de>
16446 * genmatch.c (comparison_code_p): New predicate.
16447 (swap_tree_comparison): New function.
16448 (commutate): Add for_vec parameter to append new for entries.
16449 Support commutating relational operators by swapping it alongside
16451 (lower_commutative): Adjust.
16452 (dt_simplify::gen): Do not pass artificial operators to gen
16454 (decision_tree::gen): Do not add artificial operators as parameters.
16455 (parser::parse_expr): Verify operator commutativity when :c is
16456 applied. Allow :C to override this.
16457 * match.pd: Adjust patterns to use :C instead of :c where required.
16459 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
16461 PR tree-optimization/71077
16462 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
16463 the combining step, use boolean_false_node and boolean_true_node
16464 as the designated false/true return values.
16466 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
16468 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
16469 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
16470 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
16473 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
16475 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
16476 of flags impliying the register renaming.
16477 * toplev.c (process_options): Do not imply flag_rename_registers with
16480 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
16482 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
16483 default implementation.
16485 2016-05-31 Nathan Sidwell <nathan@acm.org>
16487 * dwarf2out.c (cur_line_info_table): Add GTY marker.
16489 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
16491 * config/sh/constraints.md (b): Remove constraint.
16492 * config/sh/predicates.md (arith_reg_operand): Remove
16494 * config/sh/sh-modes.def (PDI): Remove.
16495 * config/sh/sh.c (sh_target_reg_class,
16496 sh_optimize_target_register_callee_saved): Remove functions.
16497 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
16498 (sh_expand_epilogue): Update comment.
16499 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
16500 sh_secondary_reload): Remove TARGET_REGS related code.
16501 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
16502 TARGET_REGISTER_P): Remove macros.
16503 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
16504 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
16505 TR1_REG, TR2_REG): Remove constants.
16506 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
16508 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
16510 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
16511 define_expand patterns.
16512 (adddi3_compact): Rename to adddi3.
16513 (subdi3_compact): Rename to subdi3.
16514 (*negdi2): Rename to negdi2.
16515 (*abs<mode>2): Rename to abs<mode>2.
16517 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
16519 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
16520 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
16521 (atomic_sub_fetchsi): ... this new pattern.
16522 (mvtc): Add CC_REG clobber.
16524 2016-05-31 Marek Polacek <polacek@redhat.com>
16526 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
16528 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16530 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
16531 aarch64_fusion_enabled_p to check for fusion capabilities.
16533 2016-05-31 Richard Biener <rguenther@suse.de>
16535 PR tree-optimization/71352
16536 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
16537 minus one and a negate.
16539 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16541 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
16542 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
16544 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
16545 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
16546 Remove use of aarch64_simd_attr_length_move, set length attribute
16548 (*aarch64_be_movoi): Likewise.
16549 (*aarch64_be_movci): Likewise.
16550 (*aarch64_be_movxi): Likewise.
16552 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
16554 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
16555 It no longer does that.
16556 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
16558 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
16560 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
16561 attribute __unused__.
16563 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
16565 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
16566 * config/arm/arm.c (arm_arch_thumb1): Define.
16567 (arm_option_override): Initialize arm_arch_thumb1.
16568 * config/arm/arm.h (arm_arch_thumb1): Declare.
16569 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
16570 support Thumb-1 ISA.
16572 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
16575 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
16576 `Yv' for scalar operand.
16578 2016-05-31 Tom de Vries <tom@codesourcery.com>
16580 PR tree-optimization/69068
16581 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
16582 phis with more than two args.
16584 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
16586 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
16587 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
16590 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
16592 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
16594 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
16596 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
16597 cpu_32, cpu_64, tune_32 and tune_64.
16598 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
16600 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
16602 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
16604 2016-05-30 Andi Kleen <ak@linux.intel.com>
16606 * auto-profile.c (read_profile): Replace asserts with errors
16607 when file does not exist.
16608 * gcov-io.c (gcov_read_words): Dito.
16610 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
16612 * tree-cfg.c (print_loop): Print likely upper bounds.
16614 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
16616 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
16617 * opts.c (default_options): Enable peel loops at -O3.
16618 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
16619 (try_peel_loop): Do not re-peel already peeled loops;
16620 use likely upper bounds; fix profile updating.
16621 (pass_complete_unroll::execute): Initialize peeled_loops.
16623 2016-05-30 Martin Liska <mliska@suse.cz>
16625 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
16626 computed costs by frequency of BB they belong to.
16627 (get_scaled_computation_cost_at): New function.
16629 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
16630 Marc Glisse <marc.glisse@inria.fr>
16632 PR tree-optimization/71289
16633 * match.pd (-1 / B < A, A > -1 / B): New transformations.
16635 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
16637 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
16639 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
16641 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
16642 for peeled copies; avoid underflow when updating estimates; correctly
16643 scale loop profile.
16645 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
16647 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
16648 r236875. Corrected oe3 to oe2 as obvious.
16650 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
16652 PR middle-end/71269
16653 PR middle-end/71252
16654 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
16655 that inserted stmt will not dominate stmts that defines its operand.
16656 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
16657 (rewrite_expr_tree_parallel): Likewise.
16659 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
16661 PR middle-end/71252
16662 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
16663 all fields including stmt_to_insert are swapped.
16665 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
16667 * predict.h (force_edge_cold): Declare.
16668 * predict.c (force_edge_cold): New function.
16669 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
16671 (canonicalize_loop_induction_variables): Fix formating.
16673 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
16675 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
16676 (visium_expand_copysign): Use gen_int_mode directly.
16677 (visium_compute_frame_size): Minor tweaks.
16679 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
16681 * tree-vect-loop.c (vect_analyze_loop_2): Use
16682 likely_max_stmt_executions_int.
16684 2016-05-30 Tom de Vries <tom@codesourcery.com>
16686 PR tree-optimization/69067
16687 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
16689 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
16692 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
16693 New peepholes to remove unneeded fild/fistp pairs.
16694 (define_peephole2 atomic_loaddi_fpu): Ditto.
16696 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16698 * predict.c (maybe_hot_frequency_p): Avoid division.
16700 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
16702 * doc/install.texi: Use https for shop.fsf.org.
16704 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16706 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
16707 likely_max_stmt_executions_int.
16709 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16711 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
16712 likely_max_stmt_executions_int.
16714 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16716 * profile.c (compute_branch_probabilities): Do not report hitrates
16718 (branch_prob): Report hitrates here.
16719 * predict.c (gimple_predict_edge): Do not assert profile status;
16720 fix formatting issues.
16722 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16724 * predict.c (edge_predicted_by_p): New function.
16725 (predict_paths_for_bb): Do not put multiple predictions of the same type
16728 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16730 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
16733 2016-05-28 Alan Modra <amodra@gmail.com>
16735 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
16737 2016-05-28 Alan Modra <amodra@gmail.com>
16739 PR rtl-optimization/71275
16740 * ira.c (ira): Free dominance info.
16742 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
16744 * doc/sourcebuild.texi: New address for upstream Go repository.
16746 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
16748 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
16749 (TARGET_ARM_V7M): Likewise.
16751 2016-05-26 Jeff Law <law@redhat.com>
16753 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
16754 (thread_across_edge): Remove calls to find_jump_threads_backwards.
16755 * passes.def: Add jump threading passes before DOM/VRP.
16756 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
16757 argument to a basic block from an edge. Remove tests which are
16759 (pass_data_thread_jumps, class pass_thread_jumps): New.
16760 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
16761 (make_pass_thread_jumps): Likewise.
16762 * tree-pass.h (make_pass_thread_jumps): Declare.
16764 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
16766 * config/visium/visium-protos.h (split_double_move): Rename into...
16767 (visium_split_double_move): ...this.
16768 (visium_split_double_add): Declare.
16769 * config/visium/visium.c (split_double_move): Rename into...
16770 (visium_split_double_move): ...this.
16771 (visium_split_double_add): New function.
16772 (visium_expand_copysign): Renumber operands for consistency.
16773 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
16774 (DFmode move splitter): Likewise.
16775 (*addi3_insn): Split by means of visium_split_double_add.
16776 (*adddi3_insn_flags): Delete.
16777 (*plus_plus_sltu<subst_arith>): New insn.
16778 (*subdi3_insn): Split by means of visium_split_double_add.
16779 (subdi3_insn_flags): Delete.
16780 (*minus_minus_sltu<subst_arith>): New insn.
16781 (*negdi2_insn): Split by means of visium_split_double_add.
16782 (*negdi2_insn_flags): Delete.
16784 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
16786 * configure.ac: Treat a --with-headers option without argument
16787 the same as the default (i.e. consult sys-include directory).
16788 * configure: Regenerate.
16790 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16792 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
16793 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
16795 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
16796 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
16798 2016-05-27 Jiong Wang <jiong.wang@arm.com>
16801 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
16802 tree-stdarg analysis results.
16803 (aarch64_setup_incoming_varargs): Likewise.
16805 2016-05-27 Jiong Wang <jiong.wang@arm.com>
16807 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
16808 va_list_gpr_counter_field and va_list_fpr_counter_field.
16810 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
16813 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
16814 * config/aarch64/aarch64.c
16815 (aarch64_cannot_change_mode_class): Remove function.
16816 * config/aarch64/aarch64-protos.h
16817 (aarch64_cannot_change_mode_class): Remove.
16819 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
16821 * cfgloop.c (record_niter_bound): Record likely upper bounds.
16822 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
16823 get_likely_max_loop_iterations_int): New.
16824 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
16825 any_likely_upper_bound.
16826 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
16828 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
16829 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
16831 (unroll_loop_constant_iterations): Likewise.
16832 (unroll_loop_runtime_iterations): Likewise.
16833 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
16834 * lto-streamer-out.c (output_cfg): Likewise.
16835 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
16837 (canonicalize_loop_induction_variables): Dump likely upper bounds.
16838 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
16839 (likely_max_loop_iterations): New.
16840 (likely_max_loop_iterations_int): New.
16841 (likely_max_stmt_executions): New.
16842 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
16843 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
16844 likely_max_stmt_executions): Declare.
16846 2016-05-27 Marek Polacek <polacek@redhat.com>
16848 PR middle-end/71308
16849 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
16851 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16853 * config/s390/s390.md (2x risbg splitters): Use
16854 reg_overlap_mentioned_p instead of rtx_equal_p.
16856 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
16858 * combine.c (make_compound_operation): Take known zero bits into
16859 account when checking for possible zero_extend.
16861 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16863 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
16864 Use const_int_operand for operand 2 predicate. Simplify expand code
16867 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
16869 PR middle-end/71279
16870 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
16873 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16875 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
16876 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
16877 that returns CC_SESWPmode and CC_ZESWPmode.
16878 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
16880 (aarch64_rtx_costs): Likewise.
16882 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16884 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
16885 for ISA 3.0 min/max support.
16886 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
16887 conditional move support.
16888 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
16889 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
16891 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
16892 conditional moves where the comparison type is different from move
16894 (fp_minmax): New code iterator for smin/smax.
16895 (minmax): New code attributes for min/max.
16896 (SMINMAX): Likewise.
16897 (smax<mode>3): Combine min, max insns into one insn using the
16898 fp_minmax code iterator. Add support for ISA 3.0 min/max
16899 instructions that don't need -ffast-math.
16900 (s<minmax><mode>3): Likewise.
16901 (smax<mode>3_vsx): Likewise.
16902 (smin<mode>3): Likewise.
16903 (s<minmax><mode>3_vsx): Likewise.
16904 (smin<mode>3_vsx): Likewise.
16905 (pre-VSX min/max splitters): Likewise.
16906 (s<minmax><mode>3_fpr): Likewise.
16907 (movsfcc): Rewrite floating point conditional moves to combine
16908 SFmode/DFmode into a single insn.
16909 (mov<mode>cc): Likewise.
16910 (movdfcc): Likewise.
16911 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
16912 SFDF2 iterators to handle all combinations.
16913 (fseldfsf4): Likewise.
16914 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
16915 (fseldfdf4): Likewise.
16916 (fselsfdf4): Likewise.
16917 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
16918 comparison instructions that set a 0/-1 mask, and use it for
16919 floating point conditional move via XXSEL.
16920 (fpmask<mode>): Likewise.
16921 (xxsel<mode>): Likewise.
16922 * config/rs6000/predicates.md (min_max_operator): Delete, no
16924 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
16925 instructions that generate a 0/-1 mask for use with XXSEL.
16926 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
16927 say whether floating point min/max is available, either through
16928 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
16929 (TARGET_MINMAX_DF): Likewise.
16931 2016-05-27 Alan Modra <amodra@gmail.com>
16933 PR rtl-optimization/71275
16934 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
16935 for update_equiv_regs and combine_and_move_insns.
16937 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
16939 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
16940 if_then_else or cond RTXes to calculate attribute value.
16941 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
16942 <attr "length_immediate>: Ditto.
16943 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
16944 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
16945 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
16946 <attr "type">: Ditto.
16947 <attr "prefix_data16">: Ditto.
16948 <attr "prefix_extra">: Ditto.
16949 <attr "length_immediate">: Ditto.
16950 <attr "prefix">: Ditto.
16951 (vec_set<mode>_0) <attr "isa">: Ditto.
16952 <attr "prefix_extra">: Ditto.
16953 <attr "length_immediate">: Ditto.
16954 <attr "prefix">: Ditto.
16955 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
16956 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
16957 (sse2_storelpd) <attr "prefix_data16">: Ditto.
16958 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
16959 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
16960 <attr "length_immediate">: Ditto.
16961 <attr "prefix">: Ditto.
16962 (sse2_movsd) <attr "length_immediate">: Ditto.
16963 <attr "prefix">: Ditto.
16964 (vec_concatv2df) <attr "isa">: Ditto.
16965 <attr "prefix">: Ditto.
16966 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
16967 (*vec_extractv2di_1) <attr "isa">: Ditto.
16968 <attr "type">: Ditto.
16969 <attr "length_immediate">: Ditto.
16970 <attr "prefix_rex">: Ditto.
16971 <attr "prefix_extra">: Ditto.
16972 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
16973 <attr "prefix_extra">: Ditto.
16974 <attr "length_immediate">: Ditto.
16975 (vec_concatv2di) <attr "isa">: Ditto.
16976 <attr "prefix_extra">: Ditto.
16977 <attr "length_immediate">: Ditto.
16978 <attr "prefix">: Ditto.
16980 2016-05-26 Martin Liska <mliska@suse.cz>
16982 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
16984 (operator+): Likewise.
16985 (operator-): Likewise.
16986 (comp_cost::operator+=): Likewise.
16987 (comp_cost::operator-=): Likewise.
16988 (comp_cost::operator/=): Likewise.
16989 (comp_cost::operator*=): Likewise.
16990 (operator<): Likewise.
16991 (operator==): Likewise.
16992 (operator<=): Likewise.
16993 (new_cost): Remove.
16994 (infinite_cost_p): Likewise.
16995 (add_costs): Likewise.
16996 (sub_costs): Likewise.
16997 (compare_costs): Likewise.
16998 (set_group_iv_cost): Use the newly introduced functions.
16999 (get_address_cost): Likewise.
17000 (get_shiftadd_cost): Likewise.
17001 (force_expr_to_var_cost): Likewise.
17002 (split_address_cost): Likewise.
17003 (ptr_difference_cost): Likewise.
17004 (difference_cost): Likewise.
17005 (get_computation_cost_at): Likewise.
17006 (determine_group_iv_cost_generic): Likewise.
17007 (determine_group_iv_cost_address): Likewise.
17008 (determine_group_iv_cost_cond): Likewise.
17009 (autoinc_possible_for_pair): Likewise.
17010 (determine_group_iv_costs): Likewise.
17011 (cheaper_cost_pair): Likewise.
17012 (iv_ca_recount_cost): Likewise.
17013 (iv_ca_set_no_cp): Likewise.
17014 (iv_ca_set_cp): Likewise.
17015 (iv_ca_cost): Likewise.
17016 (iv_ca_new): Likewise.
17017 (iv_ca_dump): Likewise.
17018 (iv_ca_narrow): Likewise.
17019 (iv_ca_prune): Likewise.
17020 (iv_ca_replace): Likewise.
17021 (try_add_cand_for): Likewise.
17022 (try_improve_iv_set): Likewise.
17023 (find_optimal_iv_set): Likewise.
17025 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
17027 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
17028 that internal functions will clobber all caller-saved registers.
17030 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
17032 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
17033 Return a better case_values_threshold when optimizing.
17035 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
17037 * config/aarch64/aarch64-simd.md (aarch64_combinez):
17038 Add ? to integer variant.
17039 (aarch64_combinez_be): Likewise.
17041 2016-05-26 Jakub Jelinek <jakub@redhat.com>
17043 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
17044 instead of x constraint.
17045 (vcvtps2ph256<mask_name>): Likewise.
17047 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
17048 alternative. Formatting fix.
17050 * config/i386/sse.md
17051 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
17053 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
17054 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
17055 maybe_evex prefix instead of vex.
17056 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
17057 EXT_REX_SSE_REG_P (op0) case in the splitter.
17059 2016-05-25 Jeff Law <law@redhat.com>
17061 PR tree-optimization/71272
17062 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
17063 Update comments. Add test for empty path.
17065 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
17067 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
17068 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
17069 special case builtin.
17070 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17071 code for ALTIVEC_BUILTIN_VEC_CMPNE.
17072 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17073 for __builtin_vec_cmpne.
17075 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
17077 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
17078 redundant test and bail out if the type of the new operand is not
17079 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
17081 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
17083 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
17084 (x_ix86_target_flags_explicit): Remove.
17085 * config/i386/i386.c (ix86_function_specific_save): Do not copy
17086 x_ix86_target_flags_explicit.
17087 (ix86_function_specific_restore): Ditto.
17089 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
17090 H.J. Lu <hongjiu.lu@intel.com>
17093 * common/config/i386/i386-common.c
17094 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
17095 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
17096 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
17097 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
17098 (-mgeneral-regs-only): Add new option.
17099 * config/i386/i386.c (ix86_option_override_internal): Don't enable
17100 x87 instructions if only general registers are allowed.
17101 (ix86_target_string): Add ix86_flags argument. Handle additional
17102 flags options through ix86_flags argument. Update all callers.
17103 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
17105 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17107 PR rtl-optimization/66940
17108 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
17109 decrementing desired_val will not overflow before performing these
17112 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
17114 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
17115 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
17116 * config/i386/i386.c (enum ix86_builtins): Add
17117 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
17118 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
17119 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
17120 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
17121 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
17122 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
17123 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
17124 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
17125 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
17126 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
17127 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
17128 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
17129 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
17130 __builtin_ia32_cvtps2dq512_mask.
17131 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
17132 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
17133 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
17134 * config/i386/sse.md
17135 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
17137 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
17138 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
17140 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
17141 (avx512f_vec_pack_sfix_v8df): New define_expand.
17142 (avx512f_roundpd512): Rename to ...
17143 (avx512f_round<castmode>512): ... this. Change iterator.
17144 (avx512f_roundps512_sfix): New define_expand.
17145 (round<mode>2_sfix): Change iterator.
17147 2016-05-25 Nick Clifton <nickc@redhat.com>
17149 * config/msp430/msp430.c (msp430_attr): Produce an error if a
17150 static interrupt handler is detected.
17151 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
17152 default linker script.
17153 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
17154 the low part of a symbolic pointer.
17156 2016-05-25 Richard Biener <rguenther@suse.de>
17158 PR tree-optimization/71261
17159 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
17160 interesting stmt instead of immediate uses when looking
17161 for the use operand to replace.
17163 2016-05-25 Martin Liska <mliska@suse.cz>
17165 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
17167 2016-05-25 Richard Biener <rguenther@suse.de>
17169 PR tree-optimization/71264
17170 * tree-vect-stmts.c (vect_init_vector): Properly deal with
17173 2016-05-25 Martin Liska <mliska@suse.cz>
17175 PR tree-optimization/71239
17176 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
17177 if DECL_SIZE is NULL.
17179 2016-05-25 Richard Biener <rguenther@suse.de>
17181 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
17182 * tree-if-conv.c (pass_data_if_conversion): Use it.
17184 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
17186 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
17187 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
17188 * varpool.c (varpool_node::get_availability): Likewise.
17190 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17192 * config/rs6000/altivec.md (VNEG iterator): New iterator for
17193 VNEGW/VNEGD instructions.
17194 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
17195 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
17196 support for ISA 3.0 VNEGW/VNEGD instructions.
17198 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
17200 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
17201 pointers inside OACC_DATA regions.
17202 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
17203 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
17204 (gimplify_adjust_omp_clauses): Fix typo in comment.
17206 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17208 * config/rs6000/altivec.md (VParity): New mode iterator for vector
17209 parity built-in functions.
17210 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
17212 (p9v_parity<mode>2): Likewise.
17213 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
17215 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
17216 (parity<mode>2): ISA 3.0 expander for vector parity.
17217 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
17219 (BU_P9_64BIT_MISC_0): Likewise.
17220 (BU_P9_MISC_0): Likewise.
17221 (BU_P9V_AV_1): Likewise.
17222 (BU_P9V_AV_2): Likewise.
17223 (BU_P9V_AV_3): Likewise.
17224 (BU_P9V_AV_P): Likewise.
17225 (BU_P9V_VSX_1): Likewise.
17226 (BU_P9V_OVERLOAD_1): Likewise.
17227 (BU_P9V_OVERLOAD_2): Likewise.
17228 (BU_P9V_OVERLOAD_3): Likewise.
17229 (VCTZB): Add vector count trailing zeros support.
17233 (VPRTYBD): Add vector parity support.
17234 (VPRTYBQ): Likewise.
17235 (VPRTYBW): Likewise.
17236 (VCTZ): Add overloaded vector count trailing zeros support.
17237 (VPRTYB): Add overloaded vector parity support.
17238 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17239 overloaded vector count trailing zeros and parity instructions.
17240 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
17241 vector parity support.
17242 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
17243 trailing zeros support.
17244 (vec_cntlz): Likewise.
17245 (vec_vctzb): Likewise.
17246 (vec_vctzd): Likewise.
17247 (vec_vctzh): Likewise.
17248 (vec_vctzw): Likewise.
17249 (vec_vprtyb): Add ISA 3.0 vector parity support.
17250 (vec_vprtybd): Likewise.
17251 (vec_vprtybw): Likewise.
17252 (vec_vprtybq): Likewise.
17253 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17254 the ISA 3.0 vector count trailing zeros and vector parity built-in
17257 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17259 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
17260 when there is stmt_to_insert.
17262 2016-05-24 Martin Sebor <msebor@redhat.com>
17265 * tree.h (complete_or_array_type_p): New inline function.
17267 2016-05-24 Jakub Jelinek <jakub@redhat.com>
17269 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
17270 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
17271 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
17273 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
17274 Limit 1st alternative to noavx isa, split 2nd alternative into one
17275 noavx and one avx alternative, use *x and Bm in the former and
17276 x and m in the latter.
17278 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
17279 of sse4 for the first alternative, drop %v from the template
17280 and d operand modifier. Split second alternative into one sse4_noavx
17281 and one avx alternative, use *x instead of *v in the former and v
17282 instead of *v in the latter.
17283 (*sse4_1_extractps): Use noavx isa instead of * for the first
17284 alternative, drop %v from the template. Split second alternative into
17285 one noavx and one avx alternative, use *x instead of *v in the
17286 former and v instead of *v in the latter.
17287 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
17288 with noavx and the last one with avx.
17289 (sse4_1_phminposuw): Guard first alternative with noavx isa,
17290 split the second one into one noavx and one avx alternative,
17291 use *x and Bm in the former and x and m in the latter one.
17292 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
17295 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
17296 first two alternatives to noavx, use *x instead of *v in the second
17297 one, add avx alternative without *.
17298 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
17299 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
17300 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
17302 2016-05-24 Jeff Law <law@redhat.com>
17304 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
17305 New function, extracted from...
17306 (fsm_find_control_statement_thread_paths): Here. Use the new function.
17307 Allow simple copies and constant initializations in the SSA chain.
17309 2016-05-24 Marek Polacek <polacek@redhat.com>
17312 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
17315 2016-05-24 Jakub Jelinek <jakub@redhat.com>
17318 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
17319 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
17320 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
17321 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
17322 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
17324 2016-05-24 Richard Biener <rguenther@suse.de>
17326 PR tree-optimization/71240
17327 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
17330 2016-05-24 Richard Biener <rguenther@suse.de>
17332 PR tree-optimization/71230
17333 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
17335 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
17337 * tree-vectorizer.h (vectorizable_comparison): Delete.
17338 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
17339 PURE_SLP_STMT check.
17340 * tree-vect-stmts.c (vectorizable_call): Likewise.
17341 (vectorizable_simd_clone_call): Likewise.
17342 (vectorizable_conversion): Likewise.
17343 (vectorizable_assignment): Likewise.
17344 (vectorizable_shift): Likewise.
17345 (vectorizable_operation): Likewise.
17346 (vectorizable_load): Likewise.
17347 (vectorizable_condition): Likewise.
17348 (vectorizable_store): Likewise. Assert that we don't have
17350 (vectorizable_comparison): Make static. Remove redundant
17351 PURE_SLP_STMT check.
17352 (vect_transform_stmt): Assert that we always have an slp_node
17355 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17357 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
17358 operands[2] against 1 with comparison against CONST1_RTX.
17359 (<shift>di3_neon): Likewise.
17360 * config/arm/predicates.md (const0_operand): Replace with comparison
17361 against CONST0_RTX.
17363 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17365 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
17366 operands[2] against 1 with comparison against CONST1_RTX.
17367 (ashrdi3): Likewise.
17368 (lshrdi3): Likewise.
17369 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
17371 (ashrsi3): Likewise.
17372 (lshrsi3): Likewise.
17373 (rotrsi3): Likewise.
17374 (define_split above *compareqi_eq0): Likewise.
17375 (define_split above "prologue"): Likewise.
17376 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
17377 * config/arm/predicates.md (shift_operator): Likewise.
17378 (shift_nomul_operator): Likewise.
17379 (sat_shift_operator): Likewise.
17380 (thumb1_cmp_operand): Likewise.
17381 (const_neon_scalar_shift_amount_operand): Replace manual range
17382 check with IN_RANGE.
17383 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
17384 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
17386 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17388 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
17389 with HOST_WIDE_INT_1.
17391 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
17392 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
17393 (arm_canonicalize_comparison): Likewise.
17394 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
17396 (thumb1_size_rtx_costs): Likewise.
17397 (vfp_const_double_index): Replace cast of 1 to unsigned
17398 HOST_WIDE_INT with HOST_WIDE_INT_1U.
17399 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
17401 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
17402 HOST_WIDE_INT with HOST_WIDE_INT_1U.
17403 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
17404 HOST_WIDE_INT with HOST_WIDE_INT_1.
17406 2016-05-24 Marek Polacek <polacek@redhat.com>
17408 * tree-cfg.h (should_remove_lhs_p): New predicate.
17409 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
17410 * gimplify.c (gimplify_modify_expr): Likewise.
17411 * tree-cfg.c (verify_gimple_call): Likewise.
17412 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
17413 * gimple-fold.c: Include "tree-cfg.h".
17414 (gimple_fold_call): Use should_remove_lhs_p.
17416 2016-05-24 Richard Biener <rguenther@suse.de>
17418 PR tree-optimization/71253
17419 * cfganal.h (control_dependences): Make robust against edge
17421 (control_dependences::control_dependences): Remove edge_list argument.
17422 (control_dependences::get_edge): Remove.
17423 (control_dependences::get_edge_src): Add.
17424 (control_dependences::get_edge_dest): Likewise.
17425 (control_dependences::m_el): Make a vector of edge src/dest index.
17426 * cfganal.c (control_dependences::find_control_dependence): Adjust.
17427 (control_dependences::control_dependences): Likewise.
17428 (control_dependences::~control_dependence): Likewise.
17429 (control_dependences::get_edge): Remove.
17430 (control_dependences::get_edge_src): Add.
17431 (control_dependences::get_edge_dest): Likewise.
17432 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
17434 (perform_tree_ssa_dce): Adjust.
17435 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
17437 (pass_loop_distribution::execute): Adjust. Do loop destroying
17438 conditional on changed.
17440 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17443 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
17444 return. Reindent transformation comment and mention the ARM state
17447 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17449 PR middle-end/71252
17450 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
17451 after build_and_add_sum creates new use stmt.
17453 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
17455 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
17456 load_lanes/grouped_load classification comes first. Don't check
17457 whether the vectorization factor is a multiple of the group size
17460 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
17462 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
17463 GROUP_GAP for single-element interleaving.
17464 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
17467 2016-05-24 Richard Biener <rguenther@suse.de>
17469 PR middle-end/70434
17471 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
17472 bases which are accessed with non-invariant indices.
17473 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
17474 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
17476 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
17478 PR middle-end/71170
17479 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
17480 (add_to_ops_vec): Add stmt_to_insert.
17481 (add_repeat_to_ops_vec): Init stmt_to_insert.
17482 (insert_stmt_before_use): New.
17483 (transform_add_to_multiply): Remove mult_stmt insertion and add it
17485 (get_ops): Init stmt_to_insert.
17486 (maybe_optimize_range_tests): Likewise.
17487 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
17488 (rewrite_expr_tree_parallel): Likewise.
17489 (reassociate_bb): Likewise.
17491 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17494 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
17495 ISA 3.0 xxperm fusion alternative.
17496 (altivec_vperm_v8hiv16qi): Likewise.
17497 (altivec_vperm_<mode>_uns_internal): Likewise.
17498 (vperm_v8hiv4si): Likewise.
17499 (vperm_v16qiv8hi): Likewise.
17501 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17502 Kelvin Nilsen <kelvin@gcc.gnu.org>
17504 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
17505 vpermr/xxpermr on ISA 3.0.
17506 (altivec_expand_vec_perm_le): Likewise.
17507 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
17508 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
17511 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
17513 * config/i386/i386.h (IS_STACK_MODE): Enable for
17514 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
17515 SSE_FLOAT_MODE_P macros.
17516 * config/i386/i386.c (ix86_preferred_reload_class): Use
17517 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
17518 Cleanup regclass processing for CONST_DOUBLE_P.
17519 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
17520 (ix86_rtx_costs): Remove redundant TARGET_80387 check
17521 with IS_STACK_MODE macro.
17522 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
17524 (*movdf_internal): Use IS_STACK_MODE macro.
17525 (*movsf_internal): Ditto.
17527 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
17529 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
17530 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
17532 2016-05-23 Jeff Law <law@redhat.com>
17534 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
17536 (fsm_find_control_statement_thread_paths): Call it.
17538 2016-05-23 Martin Jambor <mjambor@suse.cz>
17541 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
17542 from_global_constant if t is not NULL.
17544 2016-05-23 Marek Polacek <polacek@redhat.com>
17547 * common.opt (Wswitch-unreachable): New option.
17548 * doc/invoke.texi: Document -Wswitch-unreachable.
17549 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
17552 2016-05-23 Bin Cheng <bin.cheng@arm.com>
17554 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
17555 TMR_INDEX is non-NULL.
17557 2016-05-23 Richard Biener <rguenther@suse.de>
17559 PR tree-optimization/71230
17560 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
17561 (try_special_add_to_ops): ... here. Always test for single-use.
17563 2016-05-23 Martin Jambor <mjambor@suse.cz>
17565 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
17566 default block if a PHI node in the original one would be resized.
17568 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17570 PR tree-optimization/58135
17571 * tree-vect-slp.c: When group size is not multiple
17572 of vector size, allow splitting of store group at
17575 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
17577 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
17579 2016-05-22 Jakub Jelinek <jakub@redhat.com>
17581 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
17582 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
17583 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
17586 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
17587 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
17588 v constraint instead of x and vinserti32x4 insn.
17590 * config/i386/sse.md (i128vldq): New mode iterator.
17591 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
17592 avx512dq and avx512vl alternatives.
17594 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
17595 constraint, use maybe_evex prefix instead of vex.
17596 (vec_dupv4sf): Use v constraint instead of x for output
17597 operand except for noavx alternative, use Yv constraint
17598 instead of x for input. Use maybe_evex prefix instead of vex.
17599 (*vec_dupv4si): Likewise.
17600 (*vec_dupv2di): Likewise.
17602 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
17604 PR middle-end/40921
17605 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
17606 (linearize_expr_tree): Call try_special_add_to_ops.
17607 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
17609 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17611 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
17612 to computed stack_usage.
17614 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17617 * config/avr/avr.md (define_expand "mov<mode>"): If the source
17618 operand is subreg (symbol_ref) then move the symbol ref to register.
17620 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
17622 * tree.c (array_at_struct_end_p): Look through MEM_REF.
17624 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
17626 PR middle-end/71179
17627 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
17630 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
17632 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
17633 ranges by calling get_single_symbol and tidy up. Look more closely
17634 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
17636 2016-05-20 Jeff Law <law@redhat.com>
17638 * bitmap.c (bitmap_find_bit): Remove useless test.
17640 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
17642 * function.c (thread_prologue_and_epilogue_insns): Commit the
17643 insertion of the epilogue.
17645 2016-05-20 Martin Jambor <mjambor@suse.cz>
17647 PR tree-optimization/70884
17648 * tree-sra.c (initialize_constant_pool_replacements): Do not check
17649 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
17650 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
17651 of constant pool data as a reason for scalarization.
17653 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
17655 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
17656 for naked functions.
17657 (thumb1_expand_prologue): Likewise.
17659 2016-05-20 Nathan Sidwell <nathan@acm.org>
17661 * config/nvptx/nptx.c (nvptx_option_override): Only set
17662 flag_toplevel_reorder, if not explicitly specified. Set
17663 flag_no_common, unless explicitly specified.
17665 2016-05-20 David Malcolm <dmalcolm@redhat.com>
17667 * calls.c (can_implement_as_sibling_call_p): Mark param
17668 reg_parm_stack_space with ATTRIBUTE_UNUSED.
17670 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
17672 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
17673 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
17674 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
17676 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
17677 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
17678 and CASE_CONST_ANY.
17680 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
17682 * config/nvptx/nvptx.md (sincossf3): New pattern.
17684 2016-05-20 David Malcolm <dmalcolm@redhat.com>
17686 * calls.c (maybe_complain_about_tail_call): New function.
17687 (initialize_argument_information): Call
17688 maybe_complain_about_tail_call when clearing *may_tailcall.
17689 (can_implement_as_sibling_call_p): Call
17690 maybe_complain_about_tail_call when returning false.
17691 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
17692 ensure try_tail_call is set. Call maybe_complain_about_tail_call
17693 if tail-call optimization fails.
17694 * cfgexpand.c (expand_call_stmt): Initialize
17695 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
17696 * gimple-pretty-print.c (dump_gimple_call): Dump
17697 gimple_call_must_tail_p.
17698 * gimple.c (gimple_build_call_from_tree): Call
17699 gimple_call_set_must_tail with the value of
17700 CALL_EXPR_MUST_TAIL_CALL.
17701 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
17702 (gimple_call_set_must_tail): New function.
17703 (gimple_call_must_tail_p): New function.
17704 * print-tree.c (print_node): Update printing of TREE_STATIC
17705 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
17706 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
17707 trailing comment listing applicable flags.
17708 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
17710 2016-05-20 David Malcolm <dmalcolm@redhat.com>
17712 * calls.c (expand_call): Move "Rest of purposes for tail call
17713 optimizations to fail" to...
17714 (can_implement_as_sibling_call_p): ...this new function, and
17715 split into multiple "if" statements.
17717 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
17719 * cfgloop.h (expected_loop_iterations_unbounded,
17720 expected_loop_iterations): Unconstify.
17721 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
17722 profile with known upper bound; return 3 when profile is absent.
17723 (expected_loop_iterations): Update.
17725 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
17727 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
17728 and get_max_loop_iterations_int.
17730 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
17732 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
17733 realistic upper bounds here.
17735 2016-05-20 Jakub Jelinek <jakub@redhat.com>
17738 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
17739 calls if the LHS is variable length or has addressable type.
17740 If targets[0]->decl is a noreturn call with void return type and
17741 zero arguments, adjust fntype and remove lhs in that case.
17743 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
17745 PR tree-optimization/71079
17746 PR tree-optimization/71206
17747 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
17749 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17751 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
17752 (get_vec_alignment_for_array_decl): Likewise.
17753 (get_vec_alignment_for_record_decl): Likewise.
17754 (increase_alignment::execute): Move code to find alignment to
17755 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
17756 (type_align_map): New hash_map.
17758 2016-05-20 Richard Guenther <rguenther@suse.de>
17760 PR tree-optimization/29756
17761 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
17762 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
17763 * fold-const.c (operand_equal_p): Likewise.
17764 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
17765 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
17766 * tree-inline.c (estimate_operator_cost): Likewise.
17767 * tree-pretty-print.c (dump_generic_node): Likewise.
17768 * tree-ssa-operands.c (get_expr_operands): Likewise.
17769 * cfgexpand.c (expand_debug_expr): Likewise.
17770 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
17771 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
17772 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
17773 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
17774 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
17775 (execute_update_addresses_taken): Do it.
17777 2016-05-20 Richard Biener <rguenther@suse.de>
17779 PR tree-optimization/71185
17780 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
17781 register operations.
17783 2016-05-20 Richard Biener <rguenther@suse.de>
17785 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
17786 gimple_seq_add_seq_without_update.
17787 (release_bb_predicate): Assert we have no operands to free.
17788 (if_convertible_loop_p_1): Calculate post dominators later.
17789 Do not free BB predicates here.
17790 (combine_blocks): Do not recompute BB predicates.
17791 (version_loop_for_if_conversion): Save BB predicates around
17794 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17796 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
17797 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
17798 code. Ignore sibcalls on EDGE_IGNORE edges.
17799 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
17800 on edges for sibcalls that run without prologue. The rest of the
17801 function is combined from...
17802 (fix_fake_fallthrough_edge): ... this, and ...
17803 (try_shrink_wrapping): ... a part of this. Remove the bb_with
17804 function argument, make it a local variable.
17806 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
17808 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
17809 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
17810 for 32-bit mode and SEH for 64-bit.
17811 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
17812 TARGET_64BIT_DEFAULT.
17814 2016-05-19 Ryan Burn <contact@rnburn.com>
17816 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
17817 * gengtype.c (open_base_files): Add cilk.h to ifiles.
17819 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
17821 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
17822 force pending loads from memory.
17824 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
17826 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
17827 (UNSPEC_DARN_32): New unspec constant.
17828 (UNSPEC_DARN_RAW): New unspec constant.
17829 (darn_32): New instruction.
17830 (darn_raw): New instruction.
17831 (darn): New instruction.
17832 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
17833 support and documentation for this macro.
17834 (BU_P9_MISC_1): New macro definition.
17835 (BU_P9_64BIT_MISC_0): New macro definition.
17836 (BU_P9_MISC_0): New macro definition.
17837 (darn_32): New builtin definition.
17838 (darn_raw): New builtin definition.
17839 (darn): New builtin definition.
17840 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
17841 RS6000_BUILTIN_0 directives to surround each occurrence of
17842 #include "rs6000-builtin.def".
17843 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
17844 RS6000_BTM_64BIT flags to the returned mask, depending on
17846 (def_builtin): Correct an error in the assignments made to the
17847 debugging variable attr_string.
17848 (rs6000_expand_builtin): Add support for no-operand built-in
17850 (builtin_function_type): Remove fatal_error assertion that is no
17852 (rs6000_common_init_builtins): Add support for no-operand built-in
17854 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
17856 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
17858 (RS6000_BTM_64BIT): New macro definition.
17859 * doc/extend.texi: Document __builtin_darn (void),
17860 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
17863 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
17865 * tree-vect-loop.c (vect_analyze_loop_2): Use also
17866 max_loop_iterations_int.
17868 2016-05-19 Marek Polacek <polacek@redhat.com>
17870 PR tree-optimization/71031
17871 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
17872 condition and adjust the code a bit.
17874 2016-05-19 Martin Liska <mliska@suse.cz>
17876 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
17877 auto_vec instead of vec.
17879 2016-05-19 Martin Liska <mliska@suse.cz>
17881 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
17883 2016-05-19 Martin Liska <mliska@suse.cz>
17885 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
17887 2016-05-19 Martin Liska <mliska@suse.cz>
17889 * ipa-pure-const.c (set_function_state): Remove an existing
17891 (remove_node_data): Do not free it as it's released
17892 in set_function_state.
17894 2016-05-19 Martin Liska <mliska@suse.cz>
17896 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
17899 2016-05-19 Martin Liska <mliska@suse.cz>
17901 * omp-simd-clone.c (simd_clone_adjust): Release vector.
17903 2016-05-19 Martin Liska <mliska@suse.cz>
17905 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
17906 an auto_vec instead of re-creating it.
17908 2016-05-19 Martin Liska <mliska@suse.cz>
17910 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
17911 auto_vec instead of vec.
17913 2016-05-19 Martin Liska <mliska@suse.cz>
17915 * lto-section-in.c (lto_get_section_data): Call
17916 lto_check_version with additional argument.
17917 * lto-streamer.c (lto_check_version): Add new argument.
17918 * lto-streamer.h (lto_check_version): Likewise.
17920 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17922 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
17923 Don't add cost of inner memory when handling sign-extended loads.
17925 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
17927 PR rtl-optimization/71148
17928 * cse.c (cse_main): Free dominance info.
17929 (rest_of_handle_cse): Don't free dominance info.
17930 (rest_of_handle_cse2): Likewise.
17931 (rest_of_handle_cse_after_global_opts): Likewise.
17933 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17936 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
17937 NULL_TREE early if NEON is not available. Remove now redundant check
17938 in ARM_CHECK_BUILTIN_MODE.
17940 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
17943 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
17944 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
17945 * doc/cpp.texi: Document new macros.
17947 2016-05-19 Bin Cheng <bin.cheng@arm.com>
17949 PR tree-optimization/69848
17950 * tree-vect-loop.c (vectorizable_reduction): Don't factor
17951 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
17953 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
17955 * function.c (thread_prologue_and_epilogue_insn): Move the
17956 "goto epilogue_done" one block later.
17958 2016-05-19 Richard Biener <rguenther@suse.de>
17960 PR tree-optimization/70729
17961 * passes.def: Move LIM pass before PRE. Remove no longer
17962 required copyprop and move first DCE out of the loop pipeline.
17964 2016-05-18 David Malcolm <dmalcolm@redhat.com>
17967 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
17968 (OBJS-libcommon-target): ...here.
17969 * opts-common.c: Include spellcheck.h.
17970 (cmdline_handle_error): Build a vec of valid options and use it
17971 to suggest provide hints for misspelled arguments.
17973 2016-05-18 Jakub Jelinek <jakub@redhat.com>
17976 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
17977 lhs if it has TREE_ADDRESSABLE type.
17979 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
17982 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
17983 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
17985 2016-05-18 Martin Jambor <mjambor@suse.cz>
17988 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
17989 input for NOP_EXPR pass-through functions.
17990 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
17991 aggregate global constant VAR_DECLs in constant jump functions.
17993 2016-05-18 Martin Jambor <mjambor@suse.cz>
17996 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
17997 from TREE_READONLY parameters.
17999 2016-05-18 Martin Jambor <mjambor@suse.cz>
18002 * cgraph.h (cgraph_indirect_call_info): New field
18003 guaranteed_unmodified.
18004 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
18005 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
18007 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
18008 pass the parameter value to ipa_find_agg_cst_for_param.
18009 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
18010 guaranteed_unmodified, store AA results there instead of bailing out
18012 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
18013 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
18014 (find_constructor_constant_at_offset): New function.
18015 (ipa_find_agg_cst_from_init): Likewise.
18016 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
18017 static initializers of contants, report back through a new paameter
18018 from_global_constant if that was the case.
18019 (try_make_edge_direct_simple_call): Also pass parameter value to
18020 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
18022 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
18023 (ipa_read_indirect_edge_info): Likewise.
18024 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
18025 (ipa_load_from_parm_agg): Likewise.
18027 2016-05-18 Jiong Wang <jiong.wang@arm.com>
18029 PR rtl-optimization/71150
18030 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
18033 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
18036 * config/rs6000/constraints.md (wE constraint): New constraint
18037 for a vector constant that can be loaded with XXSPLTIB.
18038 (wM constraint): New constraint for a vector constant of a 1's.
18039 (wS constraint): New constraint for a vector constant that can be
18040 loaded with XXSPLTIB and a vector sign extend instruction.
18041 * config/rs6000/predicates.md (xxspltib_constant_split): New
18042 predicates for wE/wS constraints.
18043 (xxspltib_constant_nosplit): Likewise.
18044 (easy_vector_constant): Add support for constants that can be
18045 loaded via XXSPLTIB.
18046 (all_ones_constant): New predicate for vector constant with all
18048 (splat_input_operand): Add support for ISA 3.0 word splat operations.
18049 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
18050 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
18051 instruction and possibly with a sign extension.
18052 (output_vec_const_move): Add support for XXSPLTIB. If we are
18053 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
18054 instead of XXLXOR/XXLORC.
18055 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
18057 (rs6000_legitimize_reload_address): Likewise.
18058 (rs6000_output_move_128bit): Use output_vec_const_move to emit
18060 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
18061 combine VSX_M and VSX_M2 into one iterator.
18062 (VSX_M2): Likewise.
18063 (VSINT_84): New iterators for loading constants with XXSPLTIB.
18064 (VSINT_842): Likewise.
18065 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
18066 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
18067 XXSPLTIB instruction.
18068 (xxspltib_<mode>_nosplit): Likewise.
18069 (xxspltib_<mode>_split): New insn to load up constants with
18070 XXSPLTIB and a sign extend instruction.
18071 (vsx_mov<mode>): Replace single move that handled all vector types
18072 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
18073 moves (when -mvsx-timode is in effect) into the main vector
18074 moves. Eliminate separate moves for <VSr> <VSa>, where the
18075 preferred register class (<VSr>) is listed first, and the
18076 secondary register class (<VSa>) is listed second with a '?' to
18077 discourage use. Prefer loading 0/-1 in any VSX register for ISA
18078 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
18079 that if the register was involved in a slow operation, the
18080 clear/set operation does not wait for the slow operation to
18081 finish. Adjust the length attributes for 32-bit mode. Use
18082 rs6000_output_move_128bit and drop the use of the string
18083 instructions for 32-bit movti when -mvsx-timode is in effect. Use
18084 spacing so that the alternatives and attributes don't generate
18085 long lines, and put things in columns, so that it is easier to
18086 match up the operands and attributes with the insn alternatives.
18087 (vsx_mov<mode>_64bit): Likewise.
18088 (vsx_mov<mode>_32bit): Likewise.
18089 (vsx_movti_64bit): Fold movti into normal vector moves.
18090 (vsx_movti_32bit): Likewise.
18091 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
18092 splat instructions.
18093 (vsx_splat_v4si_internal): Likewise.
18094 (vsx_splat_v4sf_internal): Likewise.
18095 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
18096 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
18097 extend vector elements.
18098 (vsx_sign_extend_hi_<mode>): Likewise.
18099 (vsx_sign_extend_si_v2di): Likewise.
18100 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
18102 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
18103 constraints. Add trailing period to wL documentation.
18105 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
18107 PR middle-end/71020
18108 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
18109 * tree-dfa.c (replace_abnormal_ssa_names): New function.
18110 * tree-call-cdce.c: Include tree-dfa.h.
18111 (can_guard_call_p): New function, extracted from...
18112 (can_use_internal_fn): ...here.
18113 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
18115 (shrink_wrap_one_built_in_call): Likewise.
18116 (use_internal_fn): Likewise.
18117 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
18118 and return void. Call replace_abnormal_ssa_names.
18119 (pass_call_cdce::execute): Check can_guard_call_p during the
18120 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
18121 will always change something.
18123 2016-05-18 Martin Jambor <mjambor@suse.cz>
18126 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
18127 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
18129 2016-05-18 Martin Jambor <mjambor@suse.cz>
18132 * ipa-inline.h (condition): New field size.
18133 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
18134 for comaprison and store it into the new condition.
18135 (evaluate_conditions_for_known_args): Use condition size to check
18136 access sizes for all but CHANGED conditions.
18137 (unmodified_parm_1): New parameter size_p, store access size into it.
18138 (unmodified_parm): Likewise.
18139 (unmodified_parm_or_parm_agg_item): Likewise.
18140 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
18141 (set_cond_stmt_execution_predicate): Extract access sizes and store
18142 them to conditions.
18143 (set_switch_stmt_execution_predicate): Likewise.
18144 (will_be_nonconstant_expr_predicate): Likewise.
18145 (will_be_nonconstant_predicate): Likewise.
18146 (inline_read_section): Stream condition size.
18147 (inline_write_summary): Likewise.
18149 2016-05-18 Richard Biener <rguenther@suse.de>
18151 * tree-ssa-loop-im.c (determine_max_movement): Properly add
18152 condition cost to PHI cost instead of total_cost.
18154 2016-05-18 Martin Liska <mliska@suse.cz>
18157 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
18160 2016-05-18 Richard Biener <rguenther@suse.de>
18162 * lto-streamer.h (LTO_major_version): Bump to 6.
18164 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
18166 * function.c (make_split_prologue_seq, make_prologue_seq,
18167 make_epilogue_seq): New functions, factored out from...
18168 (thread_prologue_and_epilogue_insns): Here.
18170 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
18172 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
18173 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
18174 of before. Add a comment.
18176 2016-05-18 Bin Cheng <bin.cheng@arm.com>
18178 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
18179 expression pointer, not pointer to the pointer.
18181 2016-05-18 Jakub Jelinek <jakub@redhat.com>
18183 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
18184 (avx2_pbroadcast<mode>): Add another alternative with v instead
18185 of x constraints in it, using <pbroadcast_evex_isa> isa.
18186 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
18188 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
18189 constraint x instead of v in second alternative, add avx512bw
18192 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
18193 constraint x instead of v in second alternative, add avx512bw
18196 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
18197 constraint x instead of v in second alternative, add avx512bw
18200 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
18201 avx512bw alternative.
18203 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
18205 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
18206 array to 128 chars.
18207 (define_insn "*andnottf3"): Ditto.
18208 (define_insn "*<code><mode>3"/any_logic): Ditto.
18209 (define_insn "*<code>tf3"/any_logic): Ditto.
18210 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
18211 operand to block AVX-512VL insn variant emit when it is not enabled.
18213 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
18215 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
18216 constraint fot SF mode.
18218 2016-05-18 Petr Murzin <petr.murzin@intel.com>
18219 Kirill Yukhin <kirill.yukhin@intel.com>
18221 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
18223 (define_insn "rsqrt14<mode>"): Ditto.
18224 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
18225 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
18226 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
18227 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
18228 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
18230 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
18231 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
18232 * config/i386/i386.c (ix86_print_operand): Expand check for size
18233 override codes for Intel syntax.
18235 2016-05-18 Richard Biener <rguenther@suse.de>
18237 PR tree-optimization/71168
18238 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
18239 initialization earlier.
18241 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
18243 * config/aarch64/aarch64-simd.md
18244 (aarch64_reduc_plus_internal<mode>): Rename to...
18245 (reduc_plus_scal): ...This, and remove previous implementation.
18247 2016-05-18 Richard Biener <rguenther@suse.de>
18249 * passes.def: Put late dse and cd_dce in canonical order.
18251 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
18253 * ipa-inline-transform.c (preserve_function_body_p): Look for
18254 first non-thunk clone.
18255 (save_function_body): Save into first non-thunk.
18256 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
18258 (lto_output_node): Inline thunks don't need body in every
18260 * lto-streamer-in.c: Do not fixup thunk clones.
18261 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
18263 * tree-inline.c (copy_bb): Be prepared for target node to be new after
18266 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
18268 PR middle-end/63586
18269 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
18270 (reassociate_bb): Call transform_add_to_multiply.
18272 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
18274 * config/aarch64/aarch64.c (all_extensions): Removed unused
18277 2016-05-17 Nathan Sidwell <nathan@acm.org>
18279 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
18280 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
18282 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
18284 PR tree-optimization/54579
18285 PR middle-end/55299
18286 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
18288 2016-05-17 Marek Polacek <polacek@redhat.com>
18291 * tree-inline.c (expand_call_inline): Call
18292 maybe_remove_unused_call_args.
18294 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
18296 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
18297 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
18298 * doc/md.texi (fmin@var{m}3): Likewise.
18300 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
18302 * match.pd (X & C): New transformation.
18304 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
18306 * match.pd (~X & Y): New transformation.
18308 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
18310 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
18311 information for new SSA_NAME.
18312 (simplify_conversion_using_ranges): Get range through get_range_info
18313 instead of get_value_range.
18315 2016-05-17 Jiong Wang <jiong.wang@arm.com>
18317 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
18318 Remove inline assembly.
18319 (vmvn_s16): Likewise.
18320 (vmvn_s32): Likewise.
18321 (vmvn_u8): Likewise.
18322 (vmvn_u16): Likewise.
18323 (vmvn_u32): Likewise.
18324 (vmvnq_s8): Likewise.
18325 (vmvnq_s16): Likewise.
18326 (vmvnq_s32): Likewise.
18327 (vmvnq_u8): Likewise.
18328 (vmvnq_u16): Likewise.
18329 (vmvnq_u32): Likewise.
18330 (vmvn_p8): Likewise.
18331 (vmvnq_p16): Likewise.
18333 2016-05-17 Jiong Wang <jiong.wang@arm.com>
18335 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
18337 (vmul_n_s16): Likewise.
18338 (vmul_n_s32): Likewise.
18339 (vmul_n_u16): Likewise.
18340 (vmul_n_u32): Likewise.
18341 (vmulq_n_f32): Likewise.
18342 (vmulq_n_f64): Likewise.
18343 (vmulq_n_s16): Likewise.
18344 (vmulq_n_s32): Likewise.
18345 (vmulq_n_u16): Likewise.
18346 (vmulq_n_u32): Likewise.
18348 2016-05-17 Jiong Wang <jiong.wang@arm.com>
18350 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
18351 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
18353 2016-05-17 Jiong Wang <jiong.wang@arm.com>
18355 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
18356 to *aarch64_fma4_elt_from_dup<mode>.
18357 (*aarch64_fnma4_elt_to_128df): Rename to
18358 *aarch64_fnma4_elt_from_dup<mode>.
18359 * config/aarch64/arm_neon.h (vfma_n_f64): New.
18360 (vfms_n_f32): Likewise.
18361 (vfms_n_f64): Likewise.
18362 (vfmsq_n_f32): Likewise.
18363 (vfmsq_n_f64): Likewise.
18365 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
18367 * wide-int.h: Change fixed_wide_int_storage from class to struct.
18369 2016-05-17 Richard Biener <rguenther@suse.de>
18371 PR tree-optimization/71132
18372 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
18373 Only add control dependences for blocks in the loop.
18374 (build_rdg): Adjust.
18375 (generate_code_for_partition): Return whether loop should
18376 be destroyed and delay that.
18377 (distribute_loop): Likewise.
18378 (pass_loop_distribution::execute): Record loops to be destroyed
18379 and perform delayed destroying of loops.
18381 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18384 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
18386 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
18388 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
18390 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
18393 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
18394 insertion point for instructions generated by validize_mem.
18396 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
18398 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
18401 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
18403 * config/aarch64/aarch64.c
18404 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
18405 rather than a macro.
18407 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
18409 * doc/invoke.texi (AArch64 Options): Various updates.
18411 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
18413 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
18414 into instrumentation thunks.
18415 * cif-code.def (CIF_CHKP): New.
18417 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
18419 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
18421 2016-05-16 Martin Jambor <mjambor@suse.cz>
18423 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
18424 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
18426 2016-05-16 Marek Polacek <polacek@redhat.com>
18428 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
18431 2016-05-16 Martin Jambor <mjambor@suse.cz>
18434 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
18435 the outlined kernel function.
18437 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
18439 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
18440 (ISA_HAS_DLSA): Ditto.
18442 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
18444 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
18446 2016-05-16 Nathan Sidwell <nathan@acm.org>
18448 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
18449 (nvptx_name_replacement): Restore. Add comment.
18450 (write_fn_proto, write_fn_proto_from_insn,
18451 nvptx_output_call_insn): Restore
18452 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
18454 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
18456 * config/aarch64/aarch64.md
18457 (add<mode>3_compareC_cconly_imm): Remove use of %w.
18458 (add<mode>3_compareC_imm): Likewise.
18459 (<optab>si3_uxtw): Split into register and immediate variants.
18460 (andsi3_compare0_uxtw): Likewise.
18461 (and<mode>3_compare0): Likewise.
18462 (and<mode>3nr_compare0): Likewise.
18463 (stack_protect_test_<mode>): Don't use %x for memory operands.
18465 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
18467 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
18469 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
18471 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18472 Split integer shifts into shift_reg and bfm.
18473 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
18474 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18475 (ror<mode>3_insn): Likewise.
18476 (<optab>si3_insn_uxtw): Likewise.
18477 (<optab><mode>3_insn): Change to rotate_imm.
18478 (extr<mode>5_insn_alt): Likewise.
18479 (extrsi5_insn_uxtw): Likewise.
18480 (extrsi5_insn_uxtw_alt): Likewise.
18482 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
18484 * doc/tm.texi: Regenerate.
18485 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
18486 (TARGET_INVALID_RETURN_TYPE): Remove.
18487 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
18488 TARGET_INVALID_RETURN_TYPE.
18489 * target.def (invalid_parameter_type): Remove.
18490 (invalid_return_type): Remove.
18492 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
18494 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
18495 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
18497 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
18499 (preserve_function_body_p): No need to preserve function body
18500 * cif-codes.def (CIF_THUNK): Remove.
18501 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
18503 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
18505 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
18507 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
18509 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
18512 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
18514 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
18515 (inline_small_functions): Do not look for function symbol when
18518 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
18520 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
18523 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
18524 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18525 Jiong Wang <jiong.wang@arm.com>
18527 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
18528 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
18529 Define __ARM_FP16_ARGS when appropriate.
18530 * config/arm/arm.c (arm_invalid_parameter_type): Remove
18532 (arm_invalid_return_type): Likewise.
18533 (TARGET_INVALID_PARAMETER_TYPE): Remove.
18534 (TARGET_INVALID_RETURN_TYPE): Remove.
18535 (aapcs_vfp_sub_candidate): Allow HFmode.
18536 (aapcs_vfp_allocate): Add comment. Support HFmode.
18537 (aapcs_vfp_allocate_return_reg): Likewise.
18538 (struct aapcs_cp_arg_layout): Slightly reword comments for
18539 is_return_candidate and allocate_return_reg.
18540 (output_mov_vfp): Update assert.
18541 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
18543 (arm_invalid_parameter_type): Remove.
18544 (amr_invalid_return_type): Remove.
18545 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
18546 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
18547 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
18549 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
18551 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18552 * config/aarch64/arch64-protos.h
18553 (aarch64_legitimize_reload_address): Remove.
18554 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
18557 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
18559 * configure.ac: Add ACX_NONCANONICAL_HOST.
18560 * configure: Regenerate.
18561 * Makefile.in: Set host_noncanonical.
18563 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
18566 * config/i386/i386.md (*movtf_internal): Before register allocation,
18567 do not allow FP constants for CM_MEDIUM memory model, allow only
18568 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
18569 (*movxf_internal): Ditto.
18570 (*movdf_internal): Ditto.
18571 (*movsf_internal): Ditto.
18573 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
18575 PR rtl-optimization/67483
18576 * combine.c (make_compound_operation): Don't call extract_left_shift
18577 with negative shift amounts.
18579 2016-05-13 Jakub Jelinek <jakub@redhat.com>
18582 * fold-const.c (fold_checksum_tree): Allow modification
18583 of TYPE_ALIAS_SET during folding.
18585 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
18586 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
18587 (ix86_split_to_parts): Likewise. Fix up formatting.
18589 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
18591 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
18592 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
18595 2016-05-13 Nathan Sidwell <nathan@acm.org>
18597 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
18598 (nvptx_name_replacement): Delete.
18599 (write_fn_proto, write_fn_proto_from_insn,
18600 nvptx_output_call_insn): Remove nvptx_name_replacement call.
18601 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
18602 * langhooks.c (add_builtin_funcction_common): Call
18603 targetm.mangle_decl_assembler_name.
18605 * config/nvptx/nvptx.c (write_fn_proto): Handle
18606 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
18608 2016-05-13 Martin Liska <mliska@suse.cz>
18610 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
18611 and PRIu64 in printf format.
18613 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18615 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
18618 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18620 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
18621 Change --param max-completely-peeled-times to
18622 --param max-completely-peel-times in dump file printing.
18624 2016-05-13 Richard Biener <rguenther@suse.de>
18626 PR tree-optimization/42587
18627 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
18628 (find_bswap_or_nop_1): Likewise.
18629 (bswap_replace): Likewise.
18631 2016-05-13 Martin Liska <mliska@suse.cz>
18633 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
18634 Initialize a variable with default value.
18636 2016-05-13 Martin Liska <mliska@suse.cz>
18638 * doc/invoke.texi: Enhance explanation of error recovery
18641 2016-05-13 Martin Liska <mliska@suse.cz>
18643 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
18644 (struct cost_pair): Change inv_expr_id (int) to inv_expr
18645 (iv_inv_expr_ent *).
18646 (struct iv_inv_expr_ent): Comment struct fields.
18647 (sort_iv_inv_expr_ent): New function.
18648 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
18649 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
18650 a hash_map between iv_inv_expr_ent and number of usages.
18651 (niter_for_exit): Fix coding style.
18652 (tree_ssa_iv_optimize_init): Use renamed variable.
18653 (determine_base_object): Fix coding style.
18654 (alloc_iv): Likewise.
18655 (find_interesting_uses_outside): Likewise.
18656 (add_candidate_1): Likewise.
18657 (add_standard_iv_candidates): Likewise.
18658 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
18659 (prepare_decl_rtl): Fix coding style.
18660 (get_address_cost): Likewise.
18661 (get_shiftadd_cost): Likewise.
18662 (force_expr_to_var_cost): Likewise.
18663 (compare_aff_trees): Likewise.
18664 (get_expr_id): Restructure the function.
18665 (get_loop_invariant_expr_id): Renamed to
18666 get_loop_invariant_expr.
18667 (get_computation_cost_at): Replace usage of inv_expr_id with
18669 (get_computation_cost): Likewise.
18670 (determine_group_iv_cost_generic): Likewise.
18671 (determine_group_iv_cost_address): Likewise.
18672 (iv_period): Fix coding style.
18673 (iv_elimination_compare_lt): Likewise.
18674 (may_eliminate_iv): Likewise.
18675 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
18677 (determine_group_iv_costs): Dump invariant expressions.
18678 (iv_ca_recount_cost): Use the newly added hash_map.
18679 (iv_ca_set_remove_invariants): Fix coding style.
18680 (iv_ca_set_add_invariants): Fix coding style.
18681 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
18683 (iv_ca_set_cp): Likewise.
18684 (iv_ca_new): Initialize the newly added hash_map and remove
18685 initialization of fields.
18686 (iv_ca_free): Delete the hash_map.
18687 (iv_ca_dump): Dump invariant expressions.
18688 (iv_ca_extend): Fix coding style.
18689 (try_add_cand_for): Likewise.
18690 (create_new_ivs): Dump information about # of avg iterations and
18691 # of used invariant expressions.
18692 (rewrite_use_compare): Fix coding style.
18693 (free_loop_data): Set default value for max_inv_expr_id.
18695 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
18697 * cse.c (rest_of_handle_cse): Use cleanup_cfg
18698 returned value cse_cfg_altered computation.
18699 (rest_of_handle_cse2): Likewise.
18700 (rest_of_handle_cse_after_global_opts): Likewise.
18702 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18705 * config/arm/arm.c (arm32_output_mi_thunk): New.
18706 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
18707 to split Thumb1 vs TARGET_32BIT functionality.
18708 (arm_thumb1_mi_thunk): New.
18710 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18712 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
18715 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18718 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
18720 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
18722 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
18723 (expand_builtin_trap): Emit a regular call.
18724 (set_builtin_user_assembler_name): Remove obsolete cases.
18725 * dse.c (scan_insn): Adjust.
18726 * except.c: Include calls.h.
18727 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
18728 emit a regular call to setjmp.
18729 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
18730 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
18731 (emit_block_move_via_libcall): Delete.
18732 (block_move_fn): Delete.
18733 (init_block_move_fn): Likewise.
18734 (emit_block_move_libcall_fn): Likewise.
18735 (emit_block_op_via_libcall): New function.
18736 (set_storage_via_libcall): Tidy up and use memset builtin.
18737 (block_clear_fn): Delete.
18738 (init_block_clear_fn): Likewise.
18739 (clear_storage_libcall_fn): Likewise.
18740 (expand_assignment): Call emit_block_move_via_libcall.
18741 Do not include gt-expr.h.
18742 * expr.h (emit_block_op_via_libcall): Declare.
18743 (emit_block_copy_via_libcall): New inline function.
18744 (emit_block_move_via_libcall): Likewise.
18745 (emit_block_comp_via_libcall): Likewise.
18746 (block_clear_fn): Delete.
18747 (init_block_move_fn): Likewise.
18748 (init_block_clear_fn): Likewise.
18749 (emit_block_move_via_libcall): Likewise.
18750 (set_storage_via_libcall): Add default parameter value.
18751 * libfuncs.h (enum libfunc_index): Remove obsolete values.
18752 (abort_libfunc): Delete.
18753 (memcpy_libfunc): Likewise.
18754 (memmove_libfunc): Likewise.
18755 (memcmp_libfunc): Likewise.
18756 (memset_libfunc): Likewise.
18757 (setbits_libfunc): Likewise.
18758 (setjmp_libfunc): Likewise.
18759 (longjmp_libfunc): Likewise.
18760 (profile_function_entry_libfunc): Likewise.
18761 (profile_function_exit_libfunc): Likewise.
18762 (gcov_flush_libfunc): Likewise.
18763 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
18764 and DECL_VISIBILITY on the declaration.
18765 (init_optabs): Do not initialize obsolete libfuncs.
18766 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
18767 * tree-core.h (ECF_RET1): Define.
18768 (ECF_TM_PURE): Adjust.
18769 (ECF_TM_BUILTIN): Likewise.
18770 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
18771 (build_common_builtin_nodes): Initialize abort builtin.
18772 Add ECF_RET1 on memcpy, memmove and memset builtins.
18773 Pass final flags for alloca and alloca_with_align builtins.
18774 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
18776 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
18777 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
18778 set_storage_via_libcall and call emit_block_copy_via_libcall.
18780 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
18782 * config/i386/i386.md (*call_got_x32): Change operand 0 to
18783 DImode before it is passed to ix86_output_call_operand.
18784 (*call_value_got_x32): Ditto for operand 1.
18786 2016-05-12 Jiong Wang <jiong.wang@arm.com>
18788 PR rtl-optimization/70904
18789 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
18790 reload for wide mode.
18792 2016-05-12 Marek Polacek <polacek@redhat.com>
18795 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
18796 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
18797 * langhooks.h (incomplete_type_error): Likewise.
18798 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
18799 parameter, pass it down to incomplete_type_error.
18800 * tree.h (size_in_bytes): New inline overload.
18801 (size_in_bytes_loc): Renamed from size_in_bytes.
18803 2016-05-12 Richard Biener <rguenther@suse.de>
18805 PR tree-optimization/71059
18806 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
18807 nary before looking up or entering the expression into the VN
18809 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
18810 Make sure to re-use NARYs without result as inserted by
18813 2016-05-12 Richard Biener <rguenther@suse.de>
18815 PR tree-optimization/71062
18816 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
18818 * tree-ssa-structalias.c (set_uids_in_ptset): Set
18819 vars_contains_restrict if the var is a restrict tag.
18820 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
18821 do not disambiguate pointers against it.
18822 (dump_points_to_solution): Re-structure and adjust for new
18823 vars_contains_restrict flag.
18824 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
18826 2016-05-12 Martin Liska <mliska@suse.cz>
18828 * doc/invoke.texi: Explain connection between
18829 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
18831 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
18833 PR tree-optimization/71006
18834 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
18835 consider COND_EXPR as a mask producer.
18837 2016-05-12 Marek Polacek <polacek@redhat.com>
18840 * opts.c (common_handle_option): Detect missing argument for --help^.
18842 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18845 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
18846 when popping the PC and within an interrupt handler routine.
18847 Add missing tab to output of "ldmfd".
18848 (output_return_instruction): Output LDMFD with SP update rather
18849 than POP when returning from interrupt handler.
18851 2016-05-12 Jakub Jelinek <jakub@redhat.com>
18853 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
18854 TARGET_64BIT && TARGET_AVX512DQ.
18855 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
18856 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
18857 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
18858 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
18859 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
18860 (*vec_extractv4si_zext): Add avx512dq alternative.
18861 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
18862 use v instead of x constraint in other alternatives where possible.
18864 * config/i386/sse.md (sse2_loadld): Use v instead of x
18865 constraint in alternatives 0,1,4.
18867 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
18868 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
18869 v constraints instead of x and <pinsr_evex_isa> isa attribute.
18872 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
18873 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
18874 is not emitted unless TARGET_AVX512BW.
18875 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
18876 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
18877 for the result operand.
18879 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
18880 constraint instead of x in avx alternatives. Use maybe_evex instead
18883 * config/i386/constraints.md (Yv): New constraint.
18884 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
18885 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
18886 * config/i386/i386.md (avx512fvecmode): New mode attr.
18887 (*pushtf): Use v constraint instead of x.
18888 (*movtf_internal): Likewise. For TARGET_AVX512VL and
18889 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
18890 (*absneg<mode>2): Use Yv constraint instead of x constraint.
18891 (*absnegtf2_sse): Likewise.
18892 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
18893 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
18894 avx512f alternatives.
18895 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
18897 2016-05-12 Richard Biener <rguenther@suse.de>
18899 PR tree-optimization/71060
18900 * tree-data-ref.c (initialize_data_dependence_relation): Do not
18901 require exact match of DR_BASE_OBJECT but only matching address and
18904 2016-05-12 Richard Biener <rguenther@suse.de>
18906 PR tree-optimization/70986
18907 * cfganal.c: Include cfgloop.h.
18908 (dfs_find_deadend): Prefer to take edges exiting loops.
18910 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18912 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
18913 compile and run time.
18915 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
18918 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
18920 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
18922 * config/i386/i386.c (legitimize_pic_address): Use
18923 copy_to_suggested_reg instead of gen_movsi.
18925 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18927 * config/rs6000/predicates.md (quad_memory_operand): Move most of
18928 the code into quad_address_p and call it to share code with
18929 vsx_quad_dform_memory_operand.
18930 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
18932 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
18933 bit instead of being a separate word. Split -mpower9-dform into
18934 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
18935 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
18936 for the register class supporting 128-bit quad word memory offsets.
18937 (mode_supports_vsx_dform_quad): Helper function to return if the
18938 register class uses quad word memory offsets.
18939 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
18940 (rs6000_debug_reg_global): Always print if we are using LRA or not.
18941 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
18942 instructions are enabled, set up the appropriate addr_masks for
18944 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
18945 -mpower9-dform-scalar, instead of -mpower9-dform.
18946 (rs6000_option_override_internal): Split -mpower9-dform into two
18947 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
18948 -mpower9-dform switch sets or clears both. If we are not using
18949 the LRA register allocator, do not enable -mpower9-dform-vector by
18950 default. If we are using LRA, enable -mpower9-dform-vector and
18951 -mvsx-timode if it is appropriate. Issue a warning if either
18952 -mpower9-dform-vector or -mvsx-timode are explicitly used without
18954 (quad_address_offset_p): New helper function to return if the
18955 offset is legal for quad word memory instructions.
18956 (quad_address_p): New function to determin if GPR or vector
18957 register quad word memory addresses are legal.
18958 (mem_operand_gpr): Validate quad word address offsets.
18959 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
18960 d-form (register + offset) instructions.
18961 (offsettable_ok_by_alignment): Likewise.
18962 (rs6000_legitimate_offset_address_p): Likewise.
18963 (legitimate_lo_sum_address_p): Likewise.
18964 (rs6000_legitimize_address): Likewise.
18965 (rs6000_legitimize_reload_address): Add more debug statements for
18967 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
18968 d-form instructions.
18969 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
18970 d-form instructions. Distinguish different cases in debug
18971 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
18972 d-form instructions.
18973 (rs6000_preferred_reload_class): Likewise.
18974 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
18975 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
18976 of the ISA 2.06 indexed memory instructions.
18977 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
18978 use them to save/restore the saved vector registers instead of
18979 using Altivec instructions.
18980 (rs6000_emit_epilogue): Likewise.
18981 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
18982 (rs6000_opt_masks): Split -mpower9-dform into
18983 -mpower9-dform-scalar and -mpower9-dform-vector.
18984 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
18986 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
18987 ISA 3.0 vector indexed memory instructions, and fold the code into
18988 the normal mov<mode> patterns.
18989 (p9_vecstore_<mode>): Likewise.
18990 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
18992 (vsx_movti_64bit): Likewise.
18993 (vsx_movti_32bit): Likewise.
18994 * config/rs6000/constraints.md (wO constraint): New constraint for
18995 ISA 3.0 vector d-form support.
18996 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
18997 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
18998 include -mpower9-dform-vector until we switch over to LRA.
18999 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
19000 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
19001 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
19002 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
19003 for -mpower9-dform and -mlra.
19004 * doc/md.texi (wO constraint): Document wO constraint.
19006 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
19008 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
19009 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
19010 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
19011 Move handling of non-insn arguments inline into the sole user:
19012 (output_trans_func): ...here.
19013 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
19014 in emitted function prototype.
19015 (output_internal_insn_latency_func): Ditto. Simplify.
19016 (output_internal_maximal_insn_latency_func): Ditto. Delete
19017 always-unused argument.
19018 (output_insn_latency_func): Ditto.
19019 (output_maximal_insn_latency_func): Ditto.
19021 2016-05-11 Richard Biener <rguenther@suse.de>
19023 PR tree-optimization/71055
19024 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
19025 sth with precision not equal to access size verify we don't chop
19028 2016-05-11 Richard Biener <rguenther@suse.de>
19031 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
19032 (dwarf2out_finish): Move retry_incomplete_types call ...
19033 (dwarf2out_early_finish): ... here.
19035 2016-05-11 Richard Biener <rguenther@suse.de>
19037 PR middle-end/71002
19038 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
19039 if the langhook insists on it.
19040 * fold-const.c (make_bit_field_ref): Add arg for the original
19041 reference and preserve its alias-set.
19042 (decode_field_reference): Take exp by reference and adjust it
19043 to the original memory reference.
19044 (optimize_bit_field_compare): Adjust callers.
19045 (fold_truth_andor_1): Likewise.
19046 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
19048 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
19050 PR middle-end/70807
19051 * cfgrtl.h (delete_insn_and_edges): Now return bool.
19052 * cfgrtl.c (delete_insn_and_edges): Likewise.
19053 * config/i386/i386.c (convert_scalars_to_vector): Remove
19055 * cse.c (cse_insn): Compute cse_cfg_altered.
19056 (delete_trivially_dead_insns): Likewise.
19057 (cse_cc_succs): Likewise.
19058 (rest_of_handle_cse): Free dominance info if required.
19059 (rest_of_handle_cse2): Likewise.
19060 (rest_of_handle_cse_after_global_opts): Likewise.
19062 2016-05-11 Alan Modra <amodra@gmail.com>
19064 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
19065 abi_v4_pass_in_fpr): New functions.
19066 (rs6000_function_arg_boundary): Exclude complex IBM long double
19067 from 64-bit alignment when ABI_V4.
19068 (rs6000_function_arg, rs6000_function_arg_advance_1,
19069 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
19071 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
19073 PR rtl-optimization/71028
19074 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
19075 jump with just a return in the fallthrough block if the branch
19076 block contains just a return as well.
19078 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
19080 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
19081 * match.pd ((X & Y) ^ Y): ... this.
19082 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
19083 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
19085 2016-05-10 David Malcolm <dmalcolm@redhat.com>
19087 * read-md.c (require_char_ws): New function.
19088 (read_string): Simplify using require_char_ws.
19089 (handle_constants): Likewise.
19090 (handle_enum): Likewise.
19091 (handle_file): Likewise.
19092 * read-md.h (require_char_ws): New declaration.
19093 * read-rtl.c (read_conditions): Simplify using require_char_ws.
19094 (read_mapping): Likewise.
19095 (read_rtx_code): Likewise.
19096 (read_nested_rtx): Likewise.
19098 2016-05-10 James Norris <jnorris@codesourcery.com>
19100 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
19101 if offloading is enabled and -fopenacc or -fopenmp is specified.
19102 (CRTOFFLOADEND): Likewise.
19103 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
19104 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
19106 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
19108 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
19109 gotoff_operand code paths. Use copy_to_suggested_regs and
19110 expand_simple_binop where appropriate. Cleanup.
19112 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
19115 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
19117 (dimode_scalar_chain::vector_const_cost): New.
19118 (dimode_scalar_chain::compute_convert_gain): Handle constants.
19119 (dimode_scalar_chain::convert_op): Likewise.
19120 (dimode_scalar_chain::convert_insn): Likewise.
19122 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
19124 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
19125 unary operation, not a binary one.
19127 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
19129 PR middle-end/70877
19130 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
19131 calls with type casted fndecl.
19133 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
19135 PR tree-optimization/70786
19136 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
19137 * calls.c (initialize_argument_information): Bind bounds
19138 with corresponding args passed by reference.
19140 2016-05-10 Jakub Jelinek <jakub@redhat.com>
19143 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
19144 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
19145 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
19148 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19151 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
19152 code for a zero scale factor.
19153 (vsx_xvcvdpuxds_scale): Likewise.
19155 2016-05-10 David Malcolm <dmalcolm@redhat.com>
19157 * diagnostic-show-locus.c (layout::layout): Call show_ruler
19158 if show_ruler_p was set on the context.
19159 (layout::show_ruler): New method.
19160 * diagnostic.h (struct diagnostic_context): Add field
19163 2016-05-10 Richard Biener <rguenther@suse.de>
19165 PR tree-optimization/71039
19166 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
19167 (chk_uses): New function.
19168 (propagate_with_phi): Verify we can safely replicate the lhs of an
19169 aggregate assignment on all incoming edges.
19171 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
19173 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
19175 (rx_atomic_sequence): New class.
19176 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
19177 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
19179 (rx_atomic_sequence::rx_atomic_sequence,
19180 rx_atomic_sequence::~rx_atomic_sequence): New functions.
19181 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
19182 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
19183 CTRLREG_INTB): New constants.
19184 (FETCHOP): New code iterator.
19185 (fethcop_name, fetchop_name2): New iterator code attributes.
19186 (QIHI): New mode iterator.
19187 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
19188 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
19189 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
19191 2016-05-10 Martin Liska <mliska@suse.cz>
19193 * tree-inline.c (remap_dependence_clique): Do not remap
19194 debugging statements.
19196 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19198 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
19199 ("*fixuns_truncdfdi2_z13")
19200 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
19201 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
19202 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
19204 2016-05-10 Richard Biener <rguenther@suse.de>
19206 PR tree-optimization/70497
19207 PR tree-optimization/28367
19208 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
19210 (visit_reference_op_load): ... here.
19211 (vn_reference_lookup_3): Use it to handle subreg-like accesses
19212 with simplified BIT_FIELD_REFs.
19213 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
19214 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
19217 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
19219 * dwarf2out.c (add_abstract_origin_attribute): Adjust
19220 documentation comment. For BLOCK nodes, add a
19221 DW_AT_abstract_origin attribute that points to the DIE generated
19222 for the origin BLOCK.
19223 (gen_lexical_block_die): Call add_abstract_origin_attribute for
19224 blocks from inlined functions.
19226 2016-05-10 Alan Modra <amodra@gmail.com>
19229 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
19230 regrename modifying insns saving lr before __morestack call.
19231 * config/rs6000/rs6000.md (split_stack_return): Similarly for
19232 insns restoring lr after __morestack call.
19234 2016-05-09 Jakub Jelinek <jakub@redhat.com>
19236 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
19237 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
19239 * config/i386/sse.md (vec_interleave_high<mode>,
19240 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
19241 <avx512>_vpermt2var<mode>3_maskz): Likewise.
19243 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
19245 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
19246 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
19247 parallel reassociation for power8 and forward.
19249 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
19251 * config/i386/i386.md (absneg splitters with general regs): Use
19252 general_reg_operand predicate.
19253 (btsq peephole2): Use x86_64_immediate_operand to check if new
19254 value is suitable for immediate operand. Generate emitted insn
19255 using RTL expressions.
19256 (btcq peephole2): Ditto.
19257 (btrq peephole2): Ditto. Generate correct immediate operand
19260 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
19262 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
19265 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
19267 * tree-affine.c (wide_int_constant_multiple_p): Add missing
19268 pointer dereference.
19270 2016-05-09 Richard Biener <rguenther@suse.de>
19272 PR tree-optimization/70985
19273 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
19274 op0 isn't a gimple register.
19276 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
19278 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
19279 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
19280 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
19281 (i6400_fpu_mult): New cpu units.
19282 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
19283 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
19284 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
19285 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
19286 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
19287 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
19288 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
19289 (i6400_msa_long_float4, i6400_msa_long_float5)
19290 (i6400_msa_long_float8, i6400_msa_fdiv_df)
19291 (i6400_msa_fdiv_sf): New reservations.
19292 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
19293 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
19294 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
19295 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
19296 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
19297 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
19298 (msa_short_cmp, msa_short_float2, msa_short_logic3)
19299 (msa_short_store4, msa_long_load, msa_short_store)
19300 (msa_long_logic, msa_long_float2, msa_long_float4)
19301 (msa_long_float5, msa_long_float8, msa_long_mult)
19302 (msa_long_fdiv, msa_long_div): New reservations.
19304 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
19305 Sameera Deshpande <sameera.deshpande@imgtec.com>
19306 Matthew Fortune <matthew.fortune@imgtec.com>
19307 Graham Stott <graham.stott@imgtec.com>
19308 Chao-ying Fu <chao-ying.fu@imgtec.com>
19310 * config.gcc: Add MSA header file for mips*-*-* target.
19311 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
19312 (Ubv8i, Urv8): New constraints.
19313 * config/mips/mips-ftypes.def: Add function types for MSA
19315 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
19316 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
19317 * config/mips/mips-msa.md: New file.
19318 * config/mips/mips-protos.h
19319 (mips_split_128bit_const_insns): New prototype.
19320 (mips_msa_idiv_insns): Likewise.
19321 (mips_split_128bit_move): Likewise.
19322 (mips_split_128bit_move_p): Likewise.
19323 (mips_split_msa_copy_d): Likewise.
19324 (mips_split_msa_insert_d): Likewise.
19325 (mips_split_msa_fill_d): Likewise.
19326 (mips_expand_msa_branch): Likewise.
19327 (mips_const_vector_same_val_p): Likewise.
19328 (mips_const_vector_same_bytes_p): Likewise.
19329 (mips_const_vector_same_int_p): Likewise.
19330 (mips_const_vector_shuffle_set_p): Likewise.
19331 (mips_const_vector_bitimm_set_p): Likewise.
19332 (mips_const_vector_bitimm_clr_p): Likewise.
19333 (mips_msa_vec_parallel_const_half): Likewise.
19334 (mips_msa_output_division): Likewise.
19335 (mips_ldst_scaled_shift): Likewise.
19336 (mips_expand_vec_cond_expr): Likewise.
19337 * config/mips/mips.c (enum mips_builtin_type): Add
19338 MIPS_BUILTIN_MSA_TEST_BRANCH.
19339 (mips_gen_const_int_vector_shuffle): New prototype.
19340 (mips_const_vector_bitimm_set_p): New function.
19341 (mips_const_vector_bitimm_clr_p): Likewise.
19342 (mips_const_vector_same_val_p): Likewise.
19343 (mips_const_vector_same_bytes_p): Likewise.
19344 (mips_const_vector_same_int_p): Likewise.
19345 (mips_const_vector_shuffle_set_p): Likewise.
19346 (mips_symbol_insns): Forbid loading symbols via immediate for
19348 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
19350 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
19352 (mips_lx_address_p): Add support load indexed address for MSA.
19353 (mips_address_insns): Add calculation of instructions needed for
19354 stores and loads for MSA.
19355 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
19356 CONST_VECTOR for MSA and let it fall through.
19357 (mips_ldst_scaled_shift): New function.
19358 (mips_subword_at_byte): Likewise.
19359 (mips_msa_idiv_insns): Likewise.
19360 (mips_legitimize_move): Validate MSA moves.
19361 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
19362 calculation of costs for MSA division.
19363 (mips_split_move_p): Check if MSA moves need splitting.
19364 (mips_split_move): Split MSA moves if necessary.
19365 (mips_split_128bit_move_p): New function.
19366 (mips_split_128bit_move): Likewise.
19367 (mips_split_msa_copy_d): Likewise.
19368 (mips_split_msa_insert_d): Likewise.
19369 (mips_split_msa_fill_d): Likewise.
19370 (mips_output_move): Handle MSA moves.
19371 (mips_expand_msa_branch): New function.
19372 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
19373 Reinstate 'y' modifier.
19374 (mips_file_start): Add MSA .gnu_attribute.
19375 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
19377 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
19378 (mips_class_max_nregs): Add register size for MSA supported mode.
19379 (mips_cannot_change_mode_class): Allow conversion between MSA
19380 vector modes and TImode.
19381 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
19383 (mips_secondary_reload_class): Force MSA loads/stores via memory.
19384 (mips_preferred_simd_mode): Add preffered modes for MSA.
19385 (mips_vector_mode_supported_p): Add MSA supported modes.
19386 (mips_autovectorize_vector_sizes): New function.
19387 (mips_msa_output_division): Likewise.
19388 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
19389 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
19390 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
19391 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
19392 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
19393 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
19394 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
19395 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
19396 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
19397 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
19398 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
19399 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
19400 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
19401 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
19402 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
19403 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
19404 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
19405 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
19406 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
19407 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
19408 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
19409 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
19410 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
19411 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
19412 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
19413 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
19414 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
19415 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
19416 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
19417 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
19418 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
19419 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
19420 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
19421 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
19422 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
19423 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
19424 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
19425 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
19426 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
19427 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
19428 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
19429 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
19430 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
19431 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
19432 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
19433 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
19434 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
19435 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
19436 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
19437 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
19438 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
19439 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
19440 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
19441 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
19442 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
19443 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
19444 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
19445 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
19446 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
19447 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
19448 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
19449 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
19450 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
19451 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
19452 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
19453 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
19454 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
19455 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
19456 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
19457 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
19458 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
19459 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
19460 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
19461 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
19462 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
19463 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
19464 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
19465 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
19466 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
19467 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
19468 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
19469 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
19470 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
19471 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
19472 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
19473 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
19474 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
19475 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
19476 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
19477 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
19478 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
19479 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
19480 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
19481 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
19482 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
19483 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
19484 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
19485 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
19486 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
19487 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
19488 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
19489 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
19490 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
19491 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
19492 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
19493 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
19494 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
19495 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
19496 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
19497 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
19498 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
19499 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
19500 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
19501 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
19502 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
19503 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
19504 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
19505 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
19506 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
19507 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
19508 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
19509 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
19510 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
19511 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
19512 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
19513 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
19514 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
19515 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
19516 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
19517 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
19518 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
19519 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
19520 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
19521 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
19522 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
19523 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
19524 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
19525 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
19526 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
19527 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
19528 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
19529 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
19530 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
19531 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
19532 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
19533 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
19534 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
19535 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
19536 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
19537 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
19538 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
19540 (mips_get_builtin_decl_index): New array.
19541 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
19542 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
19543 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
19544 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
19545 (mips_init_builtins): Initialize mips_get_builtin_decl_index
19547 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
19549 (mips_expand_builtin_insn): Prepare operands for
19550 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
19551 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
19552 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
19553 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
19554 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
19555 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
19556 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
19557 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
19558 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
19559 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
19560 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
19561 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
19562 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
19563 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
19564 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
19565 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
19566 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
19567 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
19568 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
19569 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
19570 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
19571 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
19572 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
19573 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
19574 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
19575 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
19576 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
19577 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
19578 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
19579 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
19580 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
19581 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
19582 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
19583 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
19584 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
19585 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
19586 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
19587 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
19588 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
19589 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
19590 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
19591 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
19592 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
19593 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
19594 These are set implicitly and an error is reported if overridden.
19595 (mips_expand_builtin_msa_test_branch): New function.
19596 (mips_expand_msa_shuffle): Likewise.
19597 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
19598 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
19599 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
19600 (mips_expand_vec_unpack): Add support for MSA.
19601 (mips_expand_vector_init): Likewise.
19602 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
19603 instead of const0_rtx.
19604 (mips_msa_vec_parallel_const_half): New function.
19605 (mips_gen_const_int_vector): Likewise.
19606 (mips_gen_const_int_vector_shuffle): Likewise.
19607 (mips_expand_msa_cmp): Likewise.
19608 (mips_expand_vec_cond_expr): Likewise.
19609 * config/mips/mips.h
19610 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
19611 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
19613 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
19614 (ISA_HAS_MSA): New macro.
19615 (UNITS_PER_MSA_REG): Likewise.
19616 (BITS_PER_MSA_REG): Likewise.
19617 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
19618 (MSA_REG_FIRST): New macro.
19619 (MSA_REG_LAST): Likewise.
19620 (MSA_REG_NUM): Likewise.
19621 (MSA_REG_P): Likewise.
19622 (MSA_REG_RTX_P): Likewise.
19623 (MSA_SUPPORTED_MODE_P): Likewise.
19624 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
19625 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
19626 * config/mips/mips.md: Include mips-msa.md.
19627 (alu_type): Add simd_add.
19628 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
19629 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
19630 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
19631 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
19632 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
19633 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
19634 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
19635 simd_move, simd_load, simd_store. Choose "multi" for moves
19637 (qword_mode): New attribute.
19638 (insn_count): Add instruction count for quad moves.
19639 Increase the count for MIPS SIMD division.
19640 (UNITMODE): Add UNITMODEs for vector types.
19641 (addsub): New code iterator.
19642 * config/mips/mips.opt (mmsa): New option.
19643 * config/mips/msa.h: New file.
19644 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
19646 * config/mips/mti-linux.h: Likewise.
19647 * config/mips/predicates.md
19648 (const_msa_branch_operand): New constraint.
19649 (const_uimm3_operand): Likewise.
19650 (const_uimm4_operand): Likewise.
19651 (const_uimm5_operand): Likewise.
19652 (const_uimm8_operand): Likewise.
19653 (const_imm5_operand): Likewise.
19654 (aq10b_operand): Likewise.
19655 (aq10h_operand): Likewise.
19656 (aq10w_operand): Likewise.
19657 (aq10d_operand): Likewise.
19658 (const_m1_operand): Likewise.
19659 (reg_or_m1_operand): Likewise.
19660 (const_exp_2_operand): Likewise.
19661 (const_exp_4_operand): Likewise.
19662 (const_exp_8_operand): Likewise.
19663 (const_exp_16_operand): Likewise.
19664 (const_vector_same_val_operand): Likewise.
19665 (const_vector_same_simm5_operand): Likewise.
19666 (const_vector_same_uimm5_operand): Likewise.
19667 (const_vector_same_uimm6_operand): Likewise.
19668 (const_vector_same_uimm8_operand): Likewise.
19669 (par_const_vector_shf_set_operand): Likewise.
19670 (reg_or_vector_same_val_operand): Likewise.
19671 (reg_or_vector_same_simm5_operand): Likewise.
19672 (reg_or_vector_same_uimm6_operand): Likewise.
19673 * doc/extend.texi (MIPS SIMD Architecture Functions): New
19675 * doc/invoke.texi (-mmsa): Document new option.
19677 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19679 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
19680 * configure: Regenerate.
19681 * config.in: Regenerate.
19682 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
19683 on -fvtable-verify.
19684 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
19685 (ENDFILE_VTV_SPEC): Define.
19687 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
19689 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
19690 registers in all interrupt handlers if necessary.
19691 (rl78_option_override): Add warning.
19692 (MUST_SAVE_MDUC_REGISTERS): New macro.
19693 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
19694 * config/rl78/rl78.c (check_mduc_usage): New function.
19695 (mduc_regs): New structure to hold MDUC register data.
19696 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
19697 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
19698 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
19699 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
19700 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
19701 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
19703 2016-05-09 Bin Cheng <bin.cheng@arm.com>
19705 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
19706 (tree-ssa-loop-niter.h): Ditto.
19707 (idx_within_array_bound, ref_within_array_bound): New functions.
19708 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
19709 Factor out check on writable base object to ...
19710 (base_object_writable): ... here.
19712 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19714 * config/arm/arm.md (probe_stack): Add modes to set source
19717 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
19719 * regrename.c (base_reg_class_for_rename): New static function.
19720 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
19722 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
19724 * cgraph.c (thunk_adjust): Export.
19725 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
19726 * cgraphunit.c (thunk_adjust): Export.
19727 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
19729 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
19731 * tree-inline.c (expand_call_inline): Expand thunks inline.
19733 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
19736 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
19737 (*sse2_vd_cvtss2sd): Ditto.
19738 * config/i386/i386.md
19739 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
19740 Generate *sse2_vd_cvtsd2ss pattern.
19741 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
19742 Generate *sse2_vd_cvtss2sd pattern.
19744 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
19746 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
19747 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
19750 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
19752 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
19753 * config/sh/sh.c: Define and declare variables on first use throughout
19755 (current_function_interrupt): Change to bool type.
19756 (frame_insn): Rename to emit_frame_insn and update users.
19757 (push_regs): Use bool for 'interrupt_handler' argument.
19758 (save_schedule_s): Remove.
19759 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
19760 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
19761 targetm.asm_out.unaligned_op.di.
19762 (gen_far_branch): Remove redundant forward declaration.
19763 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
19764 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
19765 (sh_set_return_address, sh_function_ok_for_sibcall,
19766 scavenge_reg): Update comments.
19767 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
19768 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
19769 (sh_attr_renesas_p): Remove unnecessary parentheses.
19770 (branch_dest): Simplify.
19771 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
19772 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
19773 (CUMULATIVE_ARGS): Change macro to typedef.
19774 (current_function_interrupt): Change to bool type.
19775 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
19776 Surround with __cplusplus ifdef.
19777 (sh_compare_op0, sh_compare_op1): Remove.
19778 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
19780 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
19782 * config/arm/arm.md: (arch): Add neon.
19783 (arch_enabled): Return yes for arch neon when TARGET_NEON.
19784 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
19785 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
19786 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
19787 attributes for alt renumbering. Mark alt 3 as non-predicable.
19788 (thumb2_movdf_vfp): Likewise.
19790 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
19792 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
19793 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
19794 (*andqi_1): Add preferred_for_speed attribute to disparage
19795 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
19796 (*<code>qi_1): Ditto.
19797 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
19798 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
19799 (*ashlqi3_1): Ditto.
19800 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
19801 Add preferred_for_size attribute to disparage alternative 0 and
19802 preferred_for_speed attribute to disparage alternative 1 for
19803 TARGET_PARTIAL_REG_STALL targets.
19805 2016-05-07 Tom de Vries <tom@codesourcery.com>
19807 PR tree-optimization/70956
19808 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
19811 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
19813 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
19814 * config/sh/sh.c (sh_cbranch_distance): Implement it.
19815 * config/sh/sh.md (branch_zero): Remove define_attr.
19816 (define_delay): Disable delay slot if branch distance is one insn.
19818 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
19820 * config/i386/i386.md (LEAMODE): New mode attribute.
19821 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
19822 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
19823 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
19824 operand 2 predicate.
19825 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
19826 (*lea<mode>_general_3): Ditto.
19827 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
19829 2016-05-06 Jakub Jelinek <jakub@redhat.com>
19831 * genmddump.c (main): Convert argv from char ** to const char **.
19833 2016-05-06 David Malcolm <dmalcolm@redhat.com>
19835 * coretypes.h (OVERRIDE): New macro.
19836 (FINAL): New macro.
19838 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
19840 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
19841 allow coalescing if the types are compatible.
19843 2016-05-06 David Malcolm <dmalcolm@redhat.com>
19845 * pass_manager.h (pass_manager::register_pass_name): New method.
19846 (pass_manager::get_pass_by_name): New method.
19847 (pass_manager::create_pass_tab): New method.
19848 (pass_manager::m_name_to_pass_map): New field.
19849 * passes.c (name_to_pass_map): Delete global in favor of field
19850 "m_name_to_pass_map" of pass_manager.
19851 (register_pass_name): Rename from a function to...
19852 (pass_manager::register_pass_name): ...this method, updating
19853 for renaming of global "name_to_pass_map" to field
19854 "m_name_to_pass_map".
19855 (create_pass_tab): Rename from a function to...
19856 (pass_manager::create_pass_tab): ...this method, updating
19857 for renaming of global "name_to_pass_map" to field.
19858 (get_pass_by_name): Rename from a function to...
19859 (pass_manager::get_pass_by_name): ...this method.
19860 (enable_disable_pass): Convert use of get_pass_by_name to
19861 a method call, locating the pass_manager singleton.
19863 2016-05-06 David Malcolm <dmalcolm@redhat.com>
19865 * genattr-common.c (main): Convert argv from char ** to const char **.
19866 * genattr.c (main): Likewise.
19867 * genattrtab.c (main): Likewise.
19868 * genautomata.c (initiate_automaton_gen): Likewise.
19870 * gencodes.c (main): Likewise.
19871 * genconditions.c (main): Likewise.
19872 * genconfig.c (main): Likewise.
19873 * genconstants.c (main): Likewise.
19874 * genemit.c (main): Likewise.
19875 * genenums.c (main): Likewise.
19876 * genextract.c (main): Likewise.
19877 * genflags.c (main): Likewise.
19878 * genmddeps.c (main): Likewise.
19879 * genopinit.c (main): Likewise.
19880 * genoutput.c (main): Likewise.
19881 * genpeep.c (main): Likewise.
19882 * genpreds.c (main): Likewise.
19883 * genrecog.c (main): Likewise.
19884 * gensupport.c (init_rtx_reader_args_cb): Likewise.
19885 (init_rtx_reader_args): Likewise.
19886 * gensupport.h (init_rtx_reader_args_cb): Likewise.
19887 (init_rtx_reader_args): Likewise.
19888 * gentarget-def.c (main): Likewise.
19889 * read-md.c (read_md_files): Likewise.
19890 * read-md.h (read_md_files): Likewise.
19892 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
19894 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
19895 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
19896 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
19897 Remove unused predicate.
19898 (register_and_not_fp_reg_operand): Ditto.
19900 2016-05-06 Martin Liska <mliska@suse.cz>
19902 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
19903 instead of vec as the vector is local to the function.
19905 2016-05-06 Jakub Jelinek <jakub@redhat.com>
19907 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
19908 avx512bw alternative.
19910 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
19911 before the ashr<mode>3 pattern.
19913 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
19914 v instead of x in vex or maybe_vex alternatives, use
19915 maybe_evex instead of vex in prefix.
19917 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
19918 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
19919 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
19920 in vex or maybe_vex alternatives, use maybe_evex instead of vex
19923 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
19924 v instead of x in vex or maybe_vex alternatives, use
19925 maybe_evex instead of vex in prefix.
19927 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
19928 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
19929 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
19930 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
19931 alternatives, use maybe_evex instead of vex in prefix.
19933 * config/i386/sse.md (vec_interleave_lowv4sf,
19934 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
19935 v instead of x in vex or maybe_vex alternatives, use
19936 maybe_evex instead of vex in prefix.
19938 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
19939 v instead of x in vex or maybe_vex alternatives, use
19940 maybe_evex instead of vex in prefix.
19942 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
19943 v constraint instead of x.
19945 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
19947 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
19948 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
19951 2016-05-06 Richard Biener <rguenther@suse.de>
19953 PR tree-optimization/70948
19954 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19955 Properly clobber all fields of va_list for __builtin_va_start.
19957 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
19960 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
19961 loop latch destination.
19963 2016-05-06 Martin Liska <mliska@suse.cz>
19965 * tree-ssa-uninit.c: Apply manual changes
19966 to the GNU coding style.
19967 (prune_uninit_phi_opnds): Rename from
19968 prune_uninit_phi_opnds_in_unrealizable_paths.
19970 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
19972 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
19973 mspace): Remove deprecated options.
19974 * doc/invoke.texi (SH options): Remove -mspace.
19976 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
19978 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
19980 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
19982 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
19983 corresponding combine split pattern.
19985 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
19988 * config/sh/predicates.md (long_displacement_mem_operand): New.
19989 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
19990 Add movi20, movi20s alternatives. Adjust length attribute for
19992 (movsi_ie): Allow for any FPU. Adjust length attribute for
19994 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
19995 attribute for alternatives.
19996 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
19997 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
19998 length attribute for alternatives.
20000 2016-05-06 Richard Biener <rguenther@suse.de>
20002 PR tree-optimization/70960
20003 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
20005 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
20008 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
20009 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
20011 2016-05-06 Marek Polacek <polacek@redhat.com>
20014 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
20016 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
20019 * config/sh/sh.md (*rotcr): Add another variant.
20021 2016-05-06 Richard Biener <rguenther@suse.de>
20023 PR middle-end/70931
20024 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
20026 2016-05-06 Richard Biener <rguenther@suse.de>
20028 PR middle-end/70941
20029 * fold-const.c (split_tree): Always convert to the original type
20032 2016-05-06 Richard Biener <rguenther@suse.de>
20034 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
20035 (fwprop_addr): Likewise.
20037 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
20040 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
20042 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
20043 * config/i386/i386.md (push mem splitter): Use find_constant_src in
20044 the splitter condition.
20045 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
20046 the splitter condition.
20047 (FP float_extend load splitter): Ditto.
20049 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
20051 * config/i386/i386.md (peehole2 patterns): Change true_regnum
20052 to REGNO in all peephole2 patterns.
20053 (post-reload splitters): Change true_regnum to REGNO in
20054 post-reload splitters.
20055 (zero_extend splitters): Use general_reg_operand and
20056 nonimmediate_gr_operand predicates.
20058 2016-05-05 Jakub Jelinek <jakub@redhat.com>
20060 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
20061 v constraint instead of x.
20063 2016-05-05 Alan Modra <amodra@gmail.com>
20066 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
20067 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
20068 TARGET_NO_FP_IN_TOC for -mrelocatable.
20069 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
20070 TARGET_RELOCATABLE test.
20071 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20072 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
20073 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
20074 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20075 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
20076 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
20077 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
20078 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
20079 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
20080 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
20082 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
20083 (rs6000_stack_info): Likewise.
20084 (rs6000_elf_asm_out_constructor): Likewise.
20085 (rs6000_elf_asm_out_destructor): Likewise.
20086 (rs6000_elf_declare_function_name): Likewise.
20087 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
20088 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
20091 2016-05-05 Alan Modra <amodra@gmail.com>
20093 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
20095 2016-05-05 Alan Modra <amodra@gmail.com>
20097 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
20098 out-of-line gpr restore for one or two regs if that would add
20101 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
20104 * config/i386/i386.md
20105 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
20106 Change to post-epilogue_completed late splitter. Use sse_reg_operand
20107 as operand 0 predicate.
20108 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
20110 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
20111 Ditto. Emit the pattern using RTX.
20113 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
20114 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
20115 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
20116 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
20118 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
20119 sse_reg_operand as operand 0 predicate.
20121 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
20122 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
20123 instead of gen_rtx_REG.
20124 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
20127 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
20129 * function.c (emit_use_return_register_into_block): Delete.
20130 (gen_return_pattern): Delete.
20131 (emit_return_into_block): Delete.
20132 (active_insn_between): Delete.
20133 (convert_jumps_to_returns): Delete.
20134 (emit_return_for_exit): Delete.
20135 (thread_prologue_and_epilogue_insns): Delete all code dealing with
20136 simple_return for shrink-wrapped blocks.
20137 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
20138 end of blocks that need one.
20139 (get_unconverted_simple_return): Delete.
20140 (convert_to_simple_return): Delete.
20141 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
20142 (convert_to_simple_return): Ditto.
20144 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
20146 * cfgcleanup.c (bb_is_just_return): New function.
20147 (try_optimize_cfg): Simplify jumps to return, branches to return,
20148 and branches around return.
20150 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
20152 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
20153 branch to a return.
20155 2016-05-04 Jakub Jelinek <jakub@redhat.com>
20159 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
20160 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
20161 assert flags & OEP_HASH_CHECK, instead of asserting it
20162 never happens. Handle TARGET_EXPR.
20163 * fold-const.c (operand_equal_p): For hash verification,
20164 or in OEP_HASH_CHECK into flags.
20166 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
20168 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
20170 (compute_samebase_partition_bases): Fix typo.
20172 2016-05-04 Jakub Jelinek <jakub@redhat.com>
20174 * config/i386/sse.md (vec_interleave_highv8sf,
20175 vec_interleave_lowv8sf, vec_interleave_highv4df,
20176 vec_interleave_lowv4df): Remove constraints from expanders.
20178 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
20180 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
20182 * tree-inline.c (expand_call_inline): Fix path dealing with
20183 making lhs of call statement undefined.
20185 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
20187 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20188 Check availability on NODE, too.
20189 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
20190 (cgraph_node::call_for_symbol_and_aliases): Likewise.
20191 (varpool_node::call_for_symbol_and_aliase): Likewise.
20192 * ipa-pure-const.c (add_new_function): Analyze all bodies.
20193 (propagate_pure_const): Propagate across interposable functions, too.
20194 (skip_function_for_local_pure_const): Do not skip interposable bodies
20196 (pass_local_pure_const::execute): Update.
20198 2016-05-04 Marek Polacek <polacek@redhat.com>
20200 * doc/invoke.texi: Document -Wdangling-else.
20202 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
20204 * config.gcc: Error out when conflicting multilib is detected. Do not
20205 loop over multilibs since no combination is legal.
20207 2016-05-04 Alan Modra <amodra@gmail.com>
20209 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
20210 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
20211 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
20214 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
20216 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
20217 Clean up p5600 comments.
20219 2016-05-04 Richard Biener <rguenther@suse.de>
20221 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
20222 constructor simplifications.
20223 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
20225 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
20227 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
20228 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
20229 result.set_rtx is null instead of aborting.
20230 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
20232 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
20233 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
20234 *mov<mode>_store_postinc): New patterns.
20236 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
20238 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
20239 as commutative. Check both conversions are NOP.
20240 ((A & B) OP (C & B)): Remove.
20242 2016-05-04 Alan Modra <amodra@gmail.com>
20244 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
20246 2016-05-04 Alan Modra <amodra@gmail.com>
20249 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
20250 when cr2,3,4 are all fixed regs.
20252 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
20254 PR rtl-optimization/57193
20255 * opts.c (default_options_table): Revert OPT_frename_registers change.
20256 * doc/invoke.texi (-frename-registers, -O2): Likewise.
20258 2016-05-03 Martin Sebor <msebor@redhat.com>
20261 * builtins.c (fold_builtin_FILE): New function.
20262 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
20263 (fold_builtin_0): Call them.
20264 * gimplify.c (gimplify_call_expr): Remove the handling of
20265 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
20268 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
20269 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
20273 * doc/extend.texi (Function Names as Strings): Update __func__,
20274 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
20277 2016-05-03 Jakub Jelinek <jakub@redhat.com>
20278 Richard Biener <rguenther@suse.de>
20280 PR tree-optimization/70916
20281 * tree-if-conv.c: Include cfganal.h.
20282 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
20283 and remove_fake_exit_edges around the optimization pass.
20285 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
20287 * cgraph.c (symbol_table::create_edge): Set inline_failed.
20288 (cgraph_edge::make_direct): Likewise.
20289 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
20290 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
20291 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
20292 (CIF_THUNK): New code.
20293 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
20294 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
20295 (compute_inline_parameters): Set inline_failed for thunks.
20296 (inline_analyze_function): Cleanup.
20297 * ipa-inline.c (can_inline_edge_p): Do not deal with
20298 call_stmt_cannot_inline_p.
20299 (can_early_inline_edge_p): Likewise.
20300 (early_inliner): Initialize inline_failed.
20301 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
20303 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
20305 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
20306 from nonimm_ssenomem_operand.
20307 (nonimm_ssenomem_operand): New predicate.
20308 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
20309 as operand 0 predicate.
20310 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
20311 Disable unsupported alternatives using "enabled" attribute.
20312 Use register_ssemem_operand as operand 0 predicate.
20313 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
20315 2016-05-03 Marek Polacek <polacek@redhat.com>
20318 * input.c (expansion_point_location): New function.
20319 * input.h (expansion_point_location): Declare.
20321 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
20323 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
20324 occurence with frame_offset_ ones.
20326 2016-05-03 Alan Modra <amodra@gmail.com>
20328 PR rtl-optimization/70890
20329 * ira.c (combine_and_move_insns): When moving def_insn, remove
20330 equivs on use_insn.
20332 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
20334 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
20335 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
20336 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
20337 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
20339 2016-05-03 Alan Modra <amodra@gmail.com>
20341 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
20342 for SAVE_MULTIPLE/STORE_MULTIPLE.
20344 2016-05-03 Jakub Jelinek <jakub@redhat.com>
20346 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
20347 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
20349 2016-05-03 Richard Biener <rguenther@suse.de>
20351 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
20353 (gimplify_arg): Likewise.
20354 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
20355 re-writing the result to a decl if required.
20356 (internal_get_tmp_var): Add allow_ssa parameter
20357 and override into_ssa with it.
20358 (get_formal_tmp_var): Adjust.
20359 (get_initialized_tmp_var): Add allow_ssa parameter.
20360 (gimplify_arg): Add allow_ssa parameter and avoid generating
20361 SSA names for the result false.
20362 (gimplify_call_expr): If the call may return twice do not
20363 gimplify parameters into SSA.
20364 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
20365 (gimplify_modify_expr): Adjust assert. For noreturn calls
20366 with a SSA name LHS adjust its def.
20367 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
20368 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
20369 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
20370 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
20371 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
20372 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
20373 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
20374 (optimize_target_teams): Do not allow SSA names for clause operands.
20375 (gimplify_expr): Likewise for where we mark the result addressable.
20376 * passes.def (pass_init_datastructures): Remove.
20377 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
20378 (rewrite_stmt): Likewise.
20379 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
20380 (replace_locals_op): Replace SSA names.
20381 (copy_gimple_seq_and_replace_locals): Init src_cfun.
20382 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
20383 * cgraph.c (release_function_body): Free CFG annotations only
20384 when we have a CFG. Simplify.
20385 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
20386 force_gimple_operand instead of get_initialized_tmp_var.
20387 * tree-pass.h (make_pass_init_datastructures): Remove.
20388 * tree-ssa.c (execute_init_datastructures): Remove.
20389 (pass_data_init_datastructures): Likewise.
20390 (class pass_init_datastructures): Likewise.
20391 (make_pass_init_datastructures): Likewise.
20392 * omp-low.c (create_omp_child_function): Init SSA data structures.
20393 (grid_expand_target_grid_body): Likewise.
20394 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
20395 name before adding it to names_to_release.
20396 (remove_bb): Always release SSA defs.
20397 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
20398 before dereferencing it.
20399 * cgraphunit.c (init_lowered_empty_function): Always
20400 int SSA data structures.
20401 * tree-ssanames.c (release_defs): Remove assert that we are in
20403 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
20405 2016-05-03 Jakub Jelinek <jakub@redhat.com>
20406 Uros Bizjak <ubizjak@gmail.com>
20408 PR rtl-optimization/70467
20409 * config/i386/predicates.md (x86_64_hilo_int_operand,
20410 x86_64_hilo_general_operand): New predicates.
20411 * config/i386/constraints.md (Wd): New constraint.
20412 * config/i386/i386.md (mode attr di): Use Wd instead of e.
20413 (general_hilo_operand): New mode attr.
20414 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
20415 instead of <general_operand>.
20416 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
20417 x86_64_hilo_general_operand instead of <general_operand>.
20419 2016-05-03 Jakub Jelinek <jakub@redhat.com>
20421 PR tree-optimization/70916
20422 * tree-if-conv.c (constant_or_ssa_name): Removed.
20423 (fold_build_cond_expr): Use is_gimple_val instead of
20424 constant_or_ssa_name.
20426 PR tree-optimization/70916
20427 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
20428 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
20431 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
20432 (optimize_atomic_bit_test_and): New function.
20433 (pass_fold_builtins::execute): Use it.
20434 * optabs.def (atomic_bit_test_and_set_optab,
20435 atomic_bit_test_and_complement_optab,
20436 atomic_bit_test_and_reset_optab): New optabs.
20437 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
20438 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
20439 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
20440 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
20441 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
20442 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
20443 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
20444 * doc/md.texi (atomic_bit_test_and_set@var{mode},
20445 atomic_bit_test_and_complement@var{mode},
20446 atomic_bit_test_and_reset@var{mode}): Document.
20447 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
20448 atomic_bit_test_and_complement<mode>,
20449 atomic_bit_test_and_reset<mode>): New expanders.
20450 (atomic_bit_test_and_set<mode>_1,
20451 atomic_bit_test_and_complement<mode>_1,
20452 atomic_bit_test_and_reset<mode>_1): New insns.
20454 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
20456 PR rtl-optimization/70687
20457 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
20458 instead of unsigned HOST_WIDE_INT.
20460 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
20462 PR rtl-optimization/44281
20463 * hard-reg-set.h (struct target_hard_regs): New field
20464 x_fixed_nonglobal_reg_set.
20465 (fixed_nonglobal_reg_set): New macro.
20466 * reginfo.c (init_reg_sets_1): Initialize it.
20467 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
20469 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
20471 2016-05-03 Bin Cheng <bin.cheng@arm.com>
20473 PR tree-optimization/56541
20474 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
20475 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
20476 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
20477 (any_complicated_phi): new static variable.
20478 (aggressive_if_conv): delete.
20479 (if_convertible_phi_p): support phis with more than two arguments.
20480 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
20481 critical pred edges.
20482 (ifcvt_split_critical_edges): support phis with more than two
20483 arguments by checking new parameter. only split critical edges
20485 (tree_if_conversion): handle simd pragma marked loop using new
20486 local variable aggressive_if_conv. check any_complicated_phi.
20488 2016-05-03 Bin Cheng <bin.cheng@arm.com>
20490 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
20493 2016-05-03 Bin Cheng <bin.cheng@arm.com>
20495 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
20498 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
20500 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
20501 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
20502 define_insn_and_split.
20503 (mulsi3_i): New define_insn_and_split.
20504 (mulsi3_call): Convert to define_insn.
20505 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
20506 Remove constraints.
20508 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20510 * machmode.h (mode_complex): Add support to give the complex mode
20512 (GET_MODE_COMPLEX_MODE): Likewise.
20513 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
20514 stored by build_complex_type and gfc_build_complex_type instead of
20515 trying to figure out the appropriate mode based on the size. Raise
20516 an assertion error, if the type was not set.
20517 * genmodes.c (struct mode_data): Add field for the complex type of
20519 (blank_mode): Likewise.
20520 (make_complex_modes): Remember the complex mode created in the
20522 (emit_mode_complex): Write out the mode_complex array to map a
20523 type mode to the complex version.
20524 (emit_insn_modes_c): Likewise.
20525 * tree.c (build_complex_type): Set the complex type to use before
20526 calling layout_type.
20527 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
20528 support for __float128 complex datatypes.
20529 (rs6000_hard_regno_mode_ok): Likewise.
20530 (rs6000_setup_reg_addr_masks): Likewise.
20531 (rs6000_complex_function_value): Likewise.
20532 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
20533 __float128 and __ibm128 complex.
20534 (FLOAT128_IBM_P): Likewise.
20535 (ALTIVEC_ARG_MAX_RETURN): Likewise.
20536 * doc/extend.texi (Additional Floating Types): Document that
20537 -mfloat128 must be used to enable __float128. Document complex
20538 __float128 and __ibm128 support.
20540 2016-05-02 Jakub Jelinek <jakub@redhat.com>
20543 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
20544 char/short arguments promoted to int because of promote_prototypes.
20546 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
20548 * config/i386/predicates.md (register_ssemem_operand): New predicate.
20549 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
20550 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
20551 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
20552 alternatives using "enabled" attribute. Use register_ssemem_operand
20553 as operand 1 predicate.
20554 (*cmpi<unord>xf_i387): Split XFmode pattern from
20555 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
20556 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
20557 *absneg<mode>2_i387. Disable unsupported alternatives using
20558 "enabled" attribute.
20559 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
20561 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
20563 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
20565 (oacc_loop_process): Check mask for loop termination.
20567 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
20569 * cif-code.def (CIF_THUNK): Add.
20570 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
20573 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
20575 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
20576 (dump_inline_summary): Dump it.
20577 (fp_expression_p): New predicate.
20578 (estimate_function_body_sizes): Use it.
20579 (inline_merge_summary): Merge fp_expressions.
20580 (inline_read_section): Read fp_expressions.
20581 (inline_write_summary): Write fp_expressions.
20582 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
20583 codegen boundary if either caller or callee is !fp_expressions.
20584 * ipa-inline.h (inline_summary): Add fp_expressions.
20585 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
20586 to fp_expressions be sure the fp generation flags are updated.
20588 2016-05-02 Jakub Jelinek <jakub@redhat.com>
20590 PR rtl-optimization/70467
20591 * cse.c (cse_insn): Handle no-op MEM moves after folding.
20593 PR rtl-optimization/70467
20594 * ipa-pure-const.c (check_call): Handle internal calls even in
20595 ipa mode like in local mode.
20597 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
20599 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
20601 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
20603 * match.pd (X u< X, X u> X): New transformations.
20605 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
20607 * flag-types.h (enum warn_strict_overflow_code): Move ...
20608 * coretypes.h: ... here.
20609 * fold-const.h (fold_overflow_warning): Declare.
20610 * fold-const.c (fold_overflow_warning): Make non-static.
20611 (fold_comparison): Move the transformation of X +- C1 CMP C2
20612 into X CMP C2 -+ C1 ...
20613 * match.pd: ... here.
20614 * gimple-fold.c (fold_stmt_1): Protect with
20615 fold_defer_overflow_warnings.
20617 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
20619 * omp-low.c (struct oacc_loop): Add 'inner' field.
20620 (new_oacc_loop_raw): Initialize it to zero.
20621 (oacc_loop_fixed_partitions): Initialize it.
20622 (oacc_loop_auto_partitions): Partition outermost loop to outermost
20623 available partitioning.
20625 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
20627 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
20629 (umulsidi3): Likewise.
20630 (indirect_jump): Fix jump instruction assembly patterns.
20632 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
20635 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
20636 (nvptx_function_value): Assert non-NULL cfun.
20638 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
20640 PR rtl-optimization/70886
20641 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
20643 * cselib.h (rtx_equal_for_cselib_1): Declare.
20644 (rtx_equal_for_cselib_p: New inline function.
20645 * cselib.c (rtx_equal_for_cselib_p): Delete.
20646 (rtx_equal_for_cselib_1): Make public.
20648 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
20650 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
20651 (register_mixssei387nonimm_operand): Remove predicate.
20652 * config/i386/i386.md (*fop_<mode>_comm): Merge from
20653 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
20654 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
20655 for TARGET_MIX_SSE_I387 alternatives.
20656 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
20657 Disable unsupported alternatives using "enabled" attribute. Use
20658 nonimm_ssenomem_operand as operand 1 predicate. Also check
20659 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
20661 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
20663 * tree.c (cst_and_fits_in_hwi): Simplify.
20665 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
20667 * tree.h (wi::to_wide): New function.
20668 * expr.c (expand_expr_real_1): Use wi::to_wide.
20669 * fold-const.c (int_const_binop_1): Likewise.
20670 (extract_muldiv_1): Likewise.
20672 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
20674 * wide-int.h: Update offset_int and widest_int documentation.
20675 (WI_SIGNED_SHIFT_RESULT): New macro.
20676 (wi::binary_shift): Define signed_shift_result_type for
20677 shifts on offset_int- and widest_int-like types.
20678 (generic_wide_int): Support <<= and >>= if << and >> are supported.
20679 * tree.h (int_bit_position): Use shift operators instead of wi::
20681 * alias.c (adjust_offset_for_component_ref): Likewise.
20682 * expr.c (get_inner_reference): Likewise.
20683 * fold-const.c (fold_comparison): Likewise.
20684 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
20685 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
20686 * tree-dfa.c (get_ref_base_and_extent): Likewise.
20687 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
20688 (stmt_kills_ref_p): Likewise.
20689 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
20690 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
20691 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
20692 (ao_ref_init_from_vn_reference): Likewise.
20694 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
20696 * wide-int.h: Update offset_int and widest_int documentation.
20697 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
20698 (wi::binary_traits): Allow ordered comparisons between offset_int and
20699 offset_int, between widest_int and widest_int, and between either
20700 of these types and basic C types.
20701 (operator <, <=, >, >=): Define for the same combinations.
20702 * tree.h (tree_int_cst_lt): Use comparison operators instead
20703 of wi:: comparisons.
20704 (tree_int_cst_le): Likewise.
20705 * gimple-fold.c (fold_array_ctor_reference): Likewise.
20706 (fold_nonarray_ctor_reference): Likewise.
20707 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
20708 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
20709 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
20710 * tree-sra.c (completely_scalarize): Likewise.
20711 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
20712 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
20713 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
20714 (check_for_binary_op_overflow): Likewise.
20715 (search_for_addr_array): Likewise.
20716 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
20718 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
20720 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
20721 (arc_save_restore): Likewise.
20722 (arc_dwarf_register_span): Likewise.
20723 (arc_output_pic_addr_const): Initialize suffix variable.
20725 2016-05-02 Martin Liska <mliska@suse.cz>
20727 * symbol-summary.h (function_summary::function_summary):
20728 Remove checking assert for all cgraph nodes.
20729 (function_summary::get): Check summary_uid.
20730 (symtab_insertion): Check summary_uid.
20732 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
20734 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
20735 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
20736 bmaskn instruction.
20737 (arc_dwarf_register_span): Remove enum keyword.
20738 (compact_memory_operand_p): New function.
20739 * config/arc/arc.h (reg_class): Add code density register classes.
20740 (REG_CLASS_NAMES): Likewise.
20741 (REG_CLASS_CONTENTS): Likewise.
20742 * config/arc/arc.md (*movqi_insn): Add code density instructions.
20743 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
20744 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
20745 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
20746 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
20748 (h, Rcd, Rsd, Rzd): New register constraints.
20749 (T): Use compact_memory_operand_p function.
20750 * config/arc/predicates.md (compact_load_memory_operand): Remove.
20752 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
20754 * config/sh/sh.md (*negnegt, *movtt): Remove.
20756 2016-05-02 Marek Polacek <polacek@redhat.com>
20757 Tom de Vries <tom@codesourcery.com>
20759 PR tree-optimization/70700
20760 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
20761 bigger than FIRST_REF_NODE.
20763 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
20766 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
20768 (prepare_cbranch_operands): Don't use scratch register. Assume that
20769 function is used when pseudos can be created.
20770 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
20771 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
20772 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
20773 define_expand. Allow it only when pseudos can be created.
20774 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
20776 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
20778 * config/i386/constraints.md (BC): Only allow -1 operands.
20779 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
20780 Add "enabled" attribute. Update XI mode attribute calculation.
20781 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
20782 (*movoi_internal_avx): Update XI mode attribute calculation.
20783 (*movti_internal): Ditto.
20785 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
20787 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
20788 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
20790 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
20792 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
20793 statement on instruction code. Remove trailing spaces.
20794 (altivec_expand_stv_builtin): Likewise.
20796 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
20798 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
20799 (TARGET_FPU_DOUBLE): Simplify.
20800 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
20801 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
20802 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
20803 with 'TARGET_FPU_DOUBLE'.
20804 * config/sh/sh.md: Likewise.
20806 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
20808 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
20809 SH_DIV_STR_FOR_SIZE): Remove.
20810 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
20811 SH_DIV_STR_FOR_SIZE): Remove.
20813 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
20815 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
20816 logical_reg_operand): Delete.
20817 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
20818 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
20819 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
20820 match_operand and match_test.
20821 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
20822 variables on their first use. Return bool values.
20823 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
20824 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
20825 arith_reg_operand for input operand. Remove empty constraints.
20827 (*xorsi3_compact): Rename to xorsi3.
20828 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
20829 (*zero_extend<mode>si2_disp_mem): Update comment.
20832 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
20834 * config/sh/t-sh: Remove SH5 support.
20835 * config.gcc: Likewise.
20836 * configure: Likewise.
20838 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20840 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
20842 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
20844 * config/sh/sh.c (register_sh_passes, sh_option_override,
20845 sh_print_operand, prepare_move_operands,
20846 sh_can_follow_jump): Remove TARGET_SH1 checks.
20847 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
20848 PROMOTE_MODE): Likewise.
20849 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
20852 2016-04-30 Alan Modra <amodra@gmail.com>
20854 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
20855 restoring when fixed_reg_p, but allow out-of-line or stmw save.
20856 Check for user regs later to avoid unnecessary looping over regs.
20857 Merge user reg check with non-saved reg check. Don't force
20858 inline VR restore when static chain used.
20859 (rs6000_frame_related): Omit eh_frame info for user regs when
20861 (fixed_regs_p): Delete.
20863 2016-04-30 Alan Modra <amodra@gmail.com>
20865 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
20866 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
20869 2016-04-30 Alan Modra <amodra@gmail.com>
20872 * config/rs6000/rs6000.c (fixed_reg_p): New function.
20873 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
20876 2016-04-30 Alan Modra <amodra@gmail.com>
20878 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
20879 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
20880 flag_pic test for Darwin.
20882 2016-04-30 Alan Modra <amodra@gmail.com>
20884 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
20885 throw_calls_crossed.
20886 (REG_FREQ_CALLS_CROSSED): Delete.
20887 (REG_N_THROWING_CALLS_CROSSED): Delete.
20888 * regstat.c (regstat_bb_compute_ri): Don't calculate
20889 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
20890 (dump_reg_info): Don't print call cross frequency.
20891 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
20892 and REG_N_THROWING_CALLS_CROSSED.
20894 2016-04-30 Alan Modra <amodra@gmail.com>
20896 * regs.h (struct reg_info_t): Delete live_length.
20897 (REG_LIVE_LENGTH): Delete macro.
20898 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
20899 local_live, local_processed and local_live_last_luid params.
20900 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
20902 (regstat_compute_ri): Adjust for above. Don't set
20904 (dump_reg_info): Don't print live length.
20905 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
20906 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
20907 Localize loop_depth var.
20909 2016-04-30 Alan Modra <amodra@gmail.com>
20911 * ira.c (enum valid_equiv): New.
20912 (validate_equiv_mem): Return enum.
20913 (update_equiv_mem): Create replacement in more cases.
20914 (add_store_equivs): Update validate_equiv_mem call.
20916 2016-04-30 Alan Modra <amodra@gmail.com>
20918 * ira.c (combine_and_move_insns): Rather than scanning insns,
20919 use DF infrastucture to find use and def insns.
20921 2016-04-30 Alan Modra <amodra@gmail.com>
20923 ira.c (combine_and_move_insns): Move invariant conditions..
20924 (ira.c): ..to here. Call combine_and_move_insns before
20925 add_store_equivs. Call grow_reg_equivs later. Allocate
20926 req_equiv later using max_reg_num() rather than global max_regno.
20927 (contains_replace_regs): Delete.
20928 (add_store_equivs): Remove contains_replace_regs test.
20930 2016-04-30 Alan Modra <amodra@gmail.com>
20932 * ira.c (struct equiv_mem_data): New.
20933 (equiv_mem, equiv_mem_modified): Delete static vars.
20934 (validate_equiv_mem_from_store): Use "data" param to communicate..
20935 (validate_equiv_mem): ..from here.
20937 2016-04-30 Alan Modra <amodra@gmail.com>
20939 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
20941 (update_reg_equivs): ..here. Move allocation and freeing of
20942 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
20943 end_alias_analysis to..
20946 2016-04-30 Alan Modra <amodra@gmail.com>
20948 * ira.c (pdx_subregs): Delete.
20949 (struct equivalence): Add pdx_subregs field.
20950 (set_paradoxical_subreg): Remove pdx_subregs param. Update
20951 pdx_subregs access.
20952 (update_equiv_regs): Don't create or free pdx_subregs. Update
20953 pdx_subregs access.
20955 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20957 * config/rs6000/altivec.h: Change definitions of vec_xl and
20959 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
20960 (LD_ELEMREV_V2DI): New.
20961 (LD_ELEMREV_V4SF): New.
20962 (LD_ELEMREV_V4SI): New.
20963 (LD_ELEMREV_V8HI): New.
20964 (LD_ELEMREV_V16QI): New.
20965 (ST_ELEMREV_V2DF): New.
20966 (ST_ELEMREV_V2DI): New.
20967 (ST_ELEMREV_V4SF): New.
20968 (ST_ELEMREV_V4SI): New.
20969 (ST_ELEMREV_V8HI): New.
20970 (ST_ELEMREV_V16QI): New.
20973 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
20974 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
20975 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
20976 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
20977 (altivec_expand_builtin): Add handling for
20978 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
20979 (rs6000_invalid_builtin): Add error-checking for
20980 RS6000_BTM_P9_VECTOR.
20981 (altivec_init_builtins): Define builtins used to implement vec_xl
20983 (rs6000_builtin_mask_names): Define power9-vector.
20984 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
20985 (RS6000_BTM_P9_VECTOR): Define.
20986 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
20987 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
20988 (vsx_ld_elemrev_v2df): Likewise.
20989 (vsx_ld_elemrev_v4sf): Likewise.
20990 (vsx_ld_elemrev_v4si): Likewise.
20991 (vsx_ld_elemrev_v8hi): Likewise.
20992 (vsx_ld_elemrev_v16qi): Likewise.
20993 (vsx_st_elemrev_v2df): Likewise.
20994 (vsx_st_elemrev_v2di): Likewise.
20995 (vsx_st_elemrev_v4sf): Likewise.
20996 (vsx_st_elemrev_v4si): Likewise.
20997 (vsx_st_elemrev_v8hi): Likewise.
20998 (vsx_st_elemrev_v16qi): Likewise.
20999 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
21002 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
21004 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
21006 (simplify_control_stmt_condition_1): ... here. Recurse into
21007 BIT_AND_EXPRs and BIT_IOR_EXPRs.
21009 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
21012 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
21013 (zero_extendqi<mode>2_dot): Revert earlier conversion from
21014 define_insn_and_split to define_insn.
21015 (zero_extendqi<mode>2_dot2): Same.
21016 (extendqi<mode>2_dot): Same.
21017 (extendqi<mode>2_dot2): Same.
21019 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
21021 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
21022 (probe_stack): New expander.
21023 (probe_stack_<mode>): New insn pattern.
21025 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
21027 * config/i386/i386.md
21028 (operations with memory inputs setting flags peephole2):
21029 Remove uneeded REG_P checks. Cleanup pattern generation.
21031 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
21033 * tree-vect-loop.c (vect_transform_loop): Fix
21034 nb_iterations_upper_bound computation for vectorized loop.
21036 2016-04-29 Marek Polacek <polacek@redhat.com>
21037 Jakub Jelinek <jakub@redhat.com>
21040 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
21041 TARGET_EXPR_SLOT as a base.
21043 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
21045 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
21046 with 'rCm2' constraints to limit possible immediate size.
21047 (*load_zeroextendqisi_update): Likewise.
21048 (*load_signextendqisi_update): Likewise.
21049 (*loadhi_update): Likewise.
21050 (*load_zeroextendhisi_update): Likewise.
21051 (*load_signextendhisi_update): Likewise.
21052 (*loadsi_update): Likewise.
21053 (*loadsf_update): Likewise.
21055 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
21057 * config/i386/predicates.md (constm1_operand): Fix comparison.
21059 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
21061 * testsuite/gcc.target/arc/ieee_eq.c: New test.
21063 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
21065 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
21066 remaining SH5 related settings.
21067 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
21068 shmedia_prepare_call_address): Delete.
21069 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
21070 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
21071 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
21072 UNSUPPORTED_SH2A): Remove m5 checks.
21073 (sh_divide_strategy_e): Remove SH5 division strategies.
21074 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
21075 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
21077 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21079 * config/s390/s390.c (s390_rtx_costs): Update documentation.
21081 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21083 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
21084 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
21085 Change lder to ldr.
21086 * config/s390/vector.md ("mov<mode>"): Likewise.
21088 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
21090 * config/s390/constraints.md ("U", "W"): Invoke
21091 s390_mem_constraint with "ZR" and "ZT".
21092 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
21093 addresses when using LRA. Accept also short displacements for S
21094 and T constraints. Do not check for long displacement target for
21095 S and T constraints.
21096 (s390_mem_constraint): Remove handling of U and W constraints.
21097 * config/s390/s390.md (various patterns): Remove the short
21098 displacement constraints (Q and R) if a long displacement
21099 constraint is present. Add longdisp as required CPU capability.
21100 * config/s390/vector.md: Likewise.
21101 * config/s390/vx-builtins.md: Likewise.
21103 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21106 * reload1.c (reload): Call finish_spills before
21107 restarting reload loop. Skip select_reload_regs
21108 if update_eliminables_and_spill returns true.
21110 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
21112 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
21113 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
21114 (umulhisi3_imm): Update predicates and constraint letters.
21115 (umulhisi3_reg): Declare instruction as commutative.
21116 * config/arc/constraints.md (J12, J16): New constraints.
21117 * config/arc/predicates.md (short_unsigned_const_operand): New
21119 (arc_short_operand): Likewise.
21120 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
21122 2016-04-29 Richard Biener <rguenther@suse.de>
21124 PR tree-optimization/13962
21125 PR tree-optimization/65686
21126 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
21127 * tree-ssa-alias.c (ptrs_compare_unequal): New function
21128 using PTA to compare pointers.
21129 * match.pd: Add pattern for pointer equality compare simplification
21130 using ptrs_compare_unequal.
21132 2016-04-29 Richard Biener <rguenther@suse.de>
21134 * stor-layout.c (layout_type): Do not build a pointer-to-element
21137 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
21139 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
21140 Use SWI mode iterator. Use general_reg_operand predicate.
21141 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
21142 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
21145 2016-04-29 Jakub Jelinek <jakub@redhat.com>
21147 PR middle-end/70843
21148 * fold-const.c (operand_equal_p): Don't verify hash value equality
21150 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
21153 2016-04-28 Jakub Jelinek <jakub@redhat.com>
21156 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
21157 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
21158 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
21159 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
21160 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
21162 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
21164 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
21165 to info. Don't initialize separate fields to 0. Clean up
21168 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
21170 * config/i386/i386.md (peephole2s for operations with memory inputs):
21171 Use SWI mode iterator.
21172 (peephole2s for operations with memory outputs): Ditto.
21173 Do not check for stack checking probe.
21175 (probe_stack): Remove expander.
21177 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
21178 Andrew Burgess <andrew.burgess@embecosm.com>
21180 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
21181 operands as 32-bits.
21183 2016-04-28 Jason Merrill <jason@redhat.com>
21185 * gdbinit.in: Skip line-map.h.
21187 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
21188 Andrew Burgess <andrew.burgess@embecosm.com>
21190 * config/arc/arc.c (arc_conditional_register_usage): Take
21191 TARGET_RRQ_CLASS into account.
21192 (arc_print_operand): Support printing 'p' and 's' operands.
21193 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
21195 (TARGET_RRQ_CLASS): Define.
21196 (IS_POWEROF2_OR_0_P): Define.
21197 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
21199 (*tst_movb): New define_insn.
21200 (*tst): Avoid recognition if it could prevent '*tst_movb'
21201 combination; replace c/CnL with c/Chs alternative.
21202 (*tst_bitfield_tst): New define_insn.
21203 (*tst_bitfield_asr): New define_insn.
21204 (*tst_bitfield): New define_insn.
21205 (andsi3_i): Add Rrq variant.
21206 (extzv): New define_expand.
21207 (insv): New define_expand.
21208 (*insv_i): New define_insn.
21209 (*movb): New define_insn.
21210 (*movb_signed): New define_insn.
21211 (*movb_high): New define_insn.
21212 (*movb_high_signed): New define_insn.
21213 (*movb_high_signed + 1): New define_split pattern.
21214 (*mrgb): New define_insn.
21215 (*mrgb + 1): New define_peephole2 pattern.
21216 (*mrgb + 2): New define_peephole2 pattern.
21217 * config/arc/arc.opt (mbitops): New option for nps400, uses
21218 TARGET_NPS_BITOPS_DEFAULT.
21219 * config/arc/constraints.md (q): Make register class conditional.
21220 (Rrq): New register constraint.
21221 (Chs): New constraint.
21222 (Clo): New constraint.
21223 (Chi): New constraint.
21224 (Cbf): New constraint.
21225 (Cbn): New constraint.
21226 (C18): New constraint.
21227 (Cbi): New constraint.
21229 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
21231 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
21233 (bitmap_intersection_of_preds): Ditto.
21234 (bitmap_union_of_succs): Ditto.
21235 (bitmap_union_of_preds): Ditto.
21236 * sbitmap.c (do_popcount): Delete.
21237 (BITMAP_DEBUGGING): Delete.
21238 (sbitmap_verify_popcount): Delete.
21239 (sbitmap_alloc): Don't initialize the popcount field.
21240 (sbitmap_alloc_with_popcount): Delete.
21241 (sbitmap_resize): Don't resize the popcount array.
21242 (sbitmap_vector_alloc): Don't initialize the popcount field.
21243 (bitmap_copy): Don't copy the popcount array.
21244 (bitmap_clear): Don't clear the popcount array.
21245 (bitmap_clear): Delete the popcount array handling.
21246 (bitmap_ior_and_compl): Delete the popcount assert.
21247 (bitmap_not): Ditto.
21248 (bitmap_and_compl): Ditto.
21249 (bitmap_and): Delete the popcount array handling.
21250 (bitmap_xor): Ditto.
21251 (bitmap_ior): Ditto.
21252 (bitmap_or_and): Delete the popcount assert.
21253 (bitmap_and_or): Ditto.
21254 (popcount_table): Delete.
21255 (sbitmap_elt_popcount): Delete.
21256 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
21257 (bitmap_set_bit): Delete the popcount assert.
21258 (bitmap_clear_bit): Ditto.
21259 (sbitmap_free): Don't free the popcount array.
21260 (sbitmap_alloc_with_popcount): Delete declaration.
21261 (sbitmap_popcount): Ditto.
21263 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
21264 Andrew Burgess <andrew.burgess@embecosm.com>
21266 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
21267 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
21268 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
21269 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
21270 * config/arc/arc.opt (mcmem): New option.
21271 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
21272 supply length for r/m alternative.
21273 (*extendqisi2_ac): Likewise.
21274 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
21276 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
21277 (movhi_insn): Likewise.
21278 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
21279 (*zero_extendqihi2_i): Add r/Ucm alternative.
21280 (*zero_extendqisi2_ac): Likewise.
21281 (*zero_extendhisi2_i): Likewise.
21282 * config/arc/constraints.md (Uex): New memory constraint.
21283 (Ucm): New define_constraint.
21284 * config/arc/predicates.md (long_immediate_loadstore_operand):
21285 Return 0 for MEM with cmem_address address.
21286 (cmem_address_0): New predicates.
21287 (cmem_address_1): Likewise.
21288 (cmem_address_2): Likewise.
21289 (cmem_address): Likewise.
21291 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
21293 * config/rs6000/rs6000.c (machine_function): Rename
21294 insn_chain_scanned_p to spe_insn_chain_scanned_p.
21295 (rs6000_stack_info): Adjust.
21297 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
21298 Andrew Burgess <andrew.burgess@embecosm.com>
21300 * config/arc/constraints.md (Usd): Convert to define_constraint.
21304 2016-04-28 Jakub Jelinek <jakub@redhat.com>
21307 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
21308 Add new peephole2 where the first insn is *mov<mode>_or instead of
21309 *mov<mode>_internal.
21311 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
21313 * tracer.c (bb_seen): Make static.
21315 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
21317 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
21318 support, setup defaults.
21319 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
21320 * config/arc/arc.c (arc_init): Add NPS400 support.
21321 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
21322 (TARGET_ARC700): NPS400 is also an ARC700.
21323 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
21325 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
21328 * config/nds32/nds32.md (casesi): Don't access the operands array
21331 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
21333 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
21334 (or $-1,reg peephole2): Ditto.
21335 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
21337 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
21339 * doc/extend.texi (Common Function Attributes) [optimize]:
21340 Discourage use of the optimize attribute.
21342 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
21344 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
21345 special case builtin.
21346 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
21347 ALTIVEC_BUILTIN_VEC_ADDE.
21348 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21349 support for ALTIVEC_BUILTIN_VEC_ADDE.
21350 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21351 for __builtin_vec_adde.
21353 2016-04-28 Jakub Jelinek <jakub@redhat.com>
21355 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
21356 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
21358 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21361 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21362 attributes): Document cilkplus_runtime.
21364 2016-04-28 Martin Jambor <mjambor@suse.cz>
21366 * tree-cfg.c (verify_expr): Verify that local declarations belong to
21367 this function. Call verify_expr on MEM_REFs and bases of other
21368 handled_components.
21370 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21372 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
21373 for WORD_REGISTER_OPERATIONS to runtime check.
21375 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
21377 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
21379 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
21381 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
21382 big-endian compilation.
21383 * config/arc/arc.md (addf3): Likewise.
21384 (subdf3): Likewise.
21385 (muldf3): Likewise.
21387 2016-04-28 Richard Biener <rguenther@suse.de>
21389 PR tree-optimization/70840
21390 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
21391 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
21392 Mark x * pow(x,c) -> pow(x,c+1) commutative.
21393 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
21395 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21397 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
21398 and explain why in a comment.
21400 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
21402 * config/arc/arc.md (cpu_facility): Add fpx variant.
21403 (subdf3): Prohibit use reverse sub when assist operations option
21405 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
21406 instructions only when FPX is enabled.
21407 * testsuite/gcc.target/arc/trsub.c: New test.
21409 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
21411 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
21412 mult_operator when calculating "type" attribute.
21413 (*fop_<mode>_1_i387): Ditto.
21414 (*fop_xf_1_i387): Ditto.
21415 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
21416 Use std::swap to swap operands. Use RTL expressions to generate
21419 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
21420 Joern Rennecke <joern.rennecke@embecosm.com>
21422 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
21424 (emit_pic_move): Remove.
21425 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
21426 * config/arc/arc.c (emit_pic_move): Removed.
21427 (TARGET_HAVE_TLS): Define.
21428 (arc_conditional_register_usage): Test for arc_tp_regno.
21429 (arc_print_operand, arc_print_operand_address): Handle TLS
21431 (arc_needs_pcl_p): New function.
21432 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
21433 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
21434 (arc_raw_symbolic_reference_mentioned_p): Likewise.
21435 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
21436 (arc_legitimize_tls_address): Likewise.
21437 (DTPOFF_ZERO_SYM): Define.
21438 (arc_legitimize_pic_address): Make it static, handle TLS cases.
21439 (arc_output_pic_addr_const): Print TLS unspecs.
21440 (prepare_pic_move): New function, replaces emit_pic_move.
21441 (arc_legitimate_constant_p): Handle TLS unspecs.
21442 (arc_legitimate_address_p): Likewise.
21443 (arc_rewrite_small_data_p): Use assert for TLS constants.
21444 (prepare_move_operands): Use prepare_pic_move.
21445 (arc_legitimize_address): Legitimize tls addresses.
21446 (arc_epilogue_uses): Check for arc_tp_regno.
21447 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
21448 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
21450 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
21452 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
21453 %(arc_tls_extra_start_spec).
21454 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
21455 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
21457 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
21458 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
21459 (UNSPEC_TLS_OFF): Add.
21461 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
21462 (get_thread_pointersi): New patterns.
21463 * config/arc/arc.opt (mtp-regno): New option.
21464 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
21465 (move_dest_operand): Likewise.
21466 * configure: Regenerate.
21467 * configure.ac: Add arc*-*-* case to test for tls.
21468 * doc/invoke.texi (ARC options): Document mtp-regno.
21470 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
21472 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
21473 the new ARC HS SIMD instructions.
21474 (arc_preferred_simd_mode): New function.
21475 (arc_autovectorize_vector_sizes): Likewise.
21476 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21477 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21478 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
21479 (arc_init_builtins): Add new SIMD builtin types.
21480 (arc_split_move): Handle 64 bit vector moves.
21481 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
21482 (TARGET_PLUS_QMACW): Define.
21483 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
21484 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
21485 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
21486 (VSUBADD4H): New builtins.
21487 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
21488 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
21490 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
21491 Matthias Klose <doko@debian.org>
21493 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
21495 2016-04-28 Richard Biener <rguenther@suse.de>
21497 PR middle-end/70777
21498 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
21501 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
21503 * common/config/sh/sh-common.c: Remove SH5 support.
21504 * config/sh/constraints.md: Likewise.
21505 * config/sh/config/sh/elf.h: Likewise.
21506 * config/sh/linux.h: Likewise.
21507 * config/sh/netbsd-elf.h: Likewise.
21508 * config/sh/predicates.md: Likewise.
21509 * config/sh/sh-c.c: Likewise.
21510 * config/sh/sh-protos.h: Likewise.
21511 * config/sh/sh.c: Likewise.
21512 * config/sh/sh.h: Likewise.
21513 * config/sh/sh.md: Likewise.
21514 * config/sh/sh.opt: Likewise.
21515 * config/sh/sync.md: Likewise.
21516 * config/sh/sh64.h: Delete.
21517 * config/sh/shmedia.h: Likewise.
21518 * config/sh/shmedia.md: Likewise.
21519 * config/sh/sshmedia.h: Likewise.
21520 * config/sh/t-netbsd-sh5-64: Likewise.
21521 * config/sh/t-sh64: Likewise.
21522 * config/sh/ushmedia.h: Likewise.
21524 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
21526 * config/i386/i386.md (sign_extend to memory peephole2s): Use
21527 general_reg_operand instead of register_operand predicate.
21529 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21531 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
21533 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
21535 * match.pd (A - B > A, A + B < A): New transformations.
21537 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
21539 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
21540 which defaults to true. Emit an outer pair of parentheses only if
21541 EMIT_PARENS. When continuing a chain of && or || (or & or |),
21542 don't emit parentheses for the right-hand operand.
21544 2016-04-27 Jeff Law <law@redhat.com>
21546 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
21548 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21550 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
21551 (altivec_lvx_<mode>_internal): Document.
21552 (altivec_lvx_<mode>_2op): New define_insn.
21553 (altivec_lvx_<mode>_1op): Likewise.
21554 (altivec_lvx_<mode>_2op_si): Likewise.
21555 (altivec_lvx_<mode>_1op_si): Likewise.
21556 (altivec_stvx_<mode>): Remove.
21557 (altivec_stvx_<mode>_internal): Document.
21558 (altivec_stvx_<mode>_2op): New define_insn.
21559 (altivec_stvx_<mode>_1op): Likewise.
21560 (altivec_stvx_<mode>_2op_si): Likewise.
21561 (altivec_stvx_<mode>_1op_si): Likewise.
21562 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21563 Expand vec_ld and vec_st during parsing.
21564 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
21566 (altivec_expand_stvx_be): Likewise.
21567 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
21568 address-masking behavior in RTL.
21569 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
21570 address-masking behavior in RTL.
21571 (altivec_expand_builtin): Change builtin code arguments for calls
21572 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
21573 (insn_is_swappable_p): Avoid incorrect swap optimization in the
21574 presence of lvx/stvx patterns.
21575 (alignment_with_canonical_addr): New function.
21576 (alignment_mask): Likewise.
21577 (find_alignment_op): Likewise.
21578 (recombine_lvx_pattern): Likewise.
21579 (recombine_stvx_pattern): Likewise.
21580 (recombine_lvx_stvx_patterns): Likewise.
21581 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
21582 stvx patterns from expand.
21583 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
21585 (vector_altivec_store_<mode>): Likewise.
21587 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
21589 * config/aarch64/aarch64.md
21590 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
21591 remove the "fp" attributes.
21592 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
21593 add the "simd" attributes.
21594 (*movdf_aarch64): Likewise.
21595 (*movtf_aarch64): Remove the "fp" attributes.
21596 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
21597 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
21599 2016-04-27 David Malcolm <dmalcolm@redhat.com>
21601 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
21602 rtx to rtx_code_label *.
21603 * rtl.h (maybe_set_first_label_num): Likewise.
21605 2016-04-27 David Malcolm <dmalcolm@redhat.com>
21607 * df-core.c (df_add_problem): Make the problem param be const.
21608 (df_remove_problem): Make local "problem" be const.
21609 * df-problems.c (problem_RD): Make const.
21610 (problem_LR): Likewise.
21611 (problem_LIVE): Likewise.
21612 (problem_MIR): Likewise.
21613 (problem_CHAIN): Likewise.
21614 (problem_WORD_LR): Likewise.
21615 (problem_NOTE): Likewise.
21616 (problem_MD): Likewise.
21617 * df-scan.c (problem_SCAN): Likewise.
21618 * df.h (struct df_problem): Make field "dependent_problem" be
21620 (struct dataflow): Likewise for field "problem".
21621 (df_add_problem): Make param const.
21623 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
21625 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
21626 inter-unit moves to/from vector registers are enabled. Do not disable
21629 2016-04-27 David Malcolm <dmalcolm@redhat.com>
21631 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
21632 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
21634 (enum df_problem_id): ...this new enum.
21635 (struct df_problem): Convert field "id" from "int" to
21636 enum df_problem_id.
21638 2016-04-27 David Malcolm <dmalcolm@redhat.com>
21640 * rtl.def: Update comment for "things in the instruction chain" to
21641 reflect the removal of the leading "i" field for INSN_UID in
21642 r210360. Fix bogus apostrophe.
21644 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
21646 * config/i386/i386.md
21647 (lea arith with mem operand + setcc peephole2): Set operator mode.
21649 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
21652 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
21653 (dimode_scalar_to_vector_candidate_p): This.
21654 (timode_scalar_to_vector_candidate_p): New function.
21655 (scalar_to_vector_candidate_p): Likewise.
21656 (timode_check_non_convertible_regs): Likewise.
21657 (timode_remove_non_convertible_regs): Likewise.
21658 (remove_non_convertible_regs): Likewise.
21659 (remove_non_convertible_regs): Renamed to ...
21660 (dimode_remove_non_convertible_regs): This.
21661 (scalar_chain::~scalar_chain): Make it virtual.
21662 (scalar_chain::compute_convert_gain): Make it pure virtual.
21663 (scalar_chain::mark_dual_mode_def): Likewise.
21664 (scalar_chain::convert_insn): Likewise.
21665 (scalar_chain::convert_registers): Likewise.
21666 (scalar_chain::add_to_queue): Make it protected.
21667 (scalar_chain::emit_conversion_insns): Likewise.
21668 (scalar_chain::replace_with_subreg): Likewise.
21669 (scalar_chain::replace_with_subreg_in_insn): Likewise.
21670 (scalar_chain::convert_op): Likewise.
21671 (scalar_chain::convert_reg): Likewise.
21672 (scalar_chain::make_vector_copies): Likewise.
21673 (scalar_chain::convert_registers): New pure virtual function.
21674 (class dimode_scalar_chain): New class.
21675 (class timode_scalar_chain): Likewise.
21676 (scalar_chain::mark_dual_mode_def): Renamed to ...
21677 (dimode_scalar_chain::mark_dual_mode_def): This.
21678 (timode_scalar_chain::mark_dual_mode_def): New function.
21679 (timode_scalar_chain::convert_insn): Likewise.
21680 (dimode_scalar_chain::convert_registers): Likewise.
21681 (scalar_chain::compute_convert_gain): Renamed to ...
21682 (dimode_scalar_chain::compute_convert_gain): This.
21683 (scalar_chain::replace_with_subreg): Renamed to ...
21684 (dimode_scalar_chain::replace_with_subreg): This.
21685 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
21686 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
21687 (scalar_chain::make_vector_copies): Renamed to ...
21688 (dimode_scalar_chain::make_vector_copies): This.
21689 (scalar_chain::convert_reg): Renamed to ...
21690 (dimode_scalar_chain::convert_reg ): This.
21691 (scalar_chain::convert_op): Renamed to ...
21692 (dimode_scalar_chain::convert_op): This.
21693 (scalar_chain::convert_insn): Renamed to ...
21694 (dimode_scalar_chain::convert_insn): This.
21695 (scalar_chain::convert): Call convert_registers.
21696 (convert_scalars_to_vector): Change to scalar_chain pointer to
21697 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
21698 in 32-bit mode. Delete scalar_chain pointer. Call
21699 free_dominance_info in 64-bit mode.
21700 (pass_stv::gate): Remove TARGET_64BIT check.
21701 (ix86_option_override): Put the 64-bit STV pass before the CSE
21704 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
21706 * dwarf2out.h (struct dw_loc_descr_node): Remove the
21707 dw_loc_frame_offset field.
21708 * dwarf2out.c (new_loc_descr): Likewise.
21709 (resolve_args_picking_1): Turn the VISITED hash set into a
21710 FRAME_OFFSET hash map. Use it to associate a frame offset to
21711 visited nodes. Remove uses of the CHECKING_P macro.
21712 (resolve_args_picking): Update call to resolve_args_picking_1.
21714 2016-04-27 Martin Liska <mliska@suse.cz>
21716 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
21717 (free_loop_data): Release vuses of groups.
21719 2016-04-27 Bin Cheng <bin.cheng@arm.com>
21721 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
21722 instead of redundant use_id and boolean have_use_for.
21723 (struct iv_use): Change sub_id into group_id. Remove field next.
21724 Move fields: related_cands, n_map_members, cost_map and selected
21726 (struct iv_group): ... here. New structure.
21727 (struct iv_common_cand): Use structure declaration directly.
21728 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
21729 (MAX_CONSIDERED_USES): Rename macro to ...
21730 (MAX_CONSIDERED_GROUPS): ... here.
21731 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
21732 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
21733 (dump_uses): Rename to ...
21734 (dump_groups): ... here. Update all uses.
21735 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
21736 (find_induction_variables): Refactor format of dump information.
21737 (record_sub_use): Delete.
21738 (record_use): Update all uses.
21739 (record_group): New function.
21740 (record_group_use, find_interesting_uses_op): Call above functions.
21742 (find_interesting_uses_cond): Ditto.
21743 (group_compare_offset): New function.
21744 (split_all_small_groups): Rename to ...
21745 (split_small_address_groups_p): ... here. Update all uses.
21746 (split_address_groups): Update all uses.
21747 (find_interesting_uses): Refactor format of dump information.
21748 (add_candidate_1): Update all uses. Remove redundant check on iv,
21750 (add_candidate, record_common_cand): Remove redundant assert.
21751 (add_iv_candidate_for_biv): Update use.
21752 (add_iv_candidate_derived_from_uses): Update all uses.
21753 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
21754 (alloc_use_cost_map): Ditto.
21755 (set_use_iv_cost, get_use_iv_cost): Rename to ...
21756 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
21757 (determine_use_iv_cost_generic): Ditto.
21758 (determine_group_iv_cost_generic): Ditto.
21759 (determine_use_iv_cost_address): Ditto.
21760 (determine_group_iv_cost_address): Ditto.
21761 (determine_use_iv_cost_condition): Ditto.
21762 (determine_group_iv_cost_cond): Ditto.
21763 (determine_use_iv_cost): Ditto.
21764 (determine_group_iv_cost): Ditto.
21765 (set_autoinc_for_original_candidates): Update all uses.
21766 (find_iv_candidates): Update all uses. Refactor dump information.
21767 (determine_use_iv_costs): Ditto.
21768 (determine_iv_costs): Ditto.
21769 (iv_ca_cand_for_use): Rename to ...
21770 (iv_ca_cand_for_group): ... here. Update all uses.
21771 (iv_ca_add_use, iv_ca_add_group): Ditto.
21772 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
21773 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
21774 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
21775 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
21776 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
21777 (create_new_iv, adjust_iv_update_pos): Ditto.
21778 (rewrite_use_address): Delete.
21779 (rewrite_use_address_1): Rename to ...
21780 (rewrite_use_address): ... here.
21781 (rewrite_use_compare): Update all uses.
21782 (rewrite_use): Delete.
21783 (rewrite_uses): Rename to ...
21784 (rewrite_groups): ... here. Update all uses.
21785 (remove_unused_ivs, free_loop_data): Update all uses.
21786 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
21788 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21790 * rtlanal.c (nonzero_bits1): Convert preprocessor check
21791 for WORD_REGISTER_OPERATIONS to runtime check.
21793 2016-04-27 Richard Biener <rguenther@suse.de>
21796 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
21797 aggregate_value_p to determine if a function result is
21798 returned by reference.
21799 (ipa_pta_execute): Functions having their address taken are
21800 not automatically nonlocal.
21802 2016-04-27 Jakub Jelinek <jakub@redhat.com>
21805 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
21806 * fold-const.c (operand_equal_p): If flag_checking and
21807 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
21808 and if it returns non-zero, assert iterative_hash_expr on both
21811 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
21813 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
21815 2016-04-27 Nick Clifton <nickc@redhat.com>
21817 PR middle-end/49889
21818 * varasm.c (merge_weak): Generate an error if an attempt is made
21819 to convert a non-weak static function into a weak, public function.
21821 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21823 * params.def (MAX_PARTITION_SIZE): New param.
21824 * doc/invoke.texi: Document lto-max-partition.
21826 2016-04-27 Richard Biener <rguenther@suse.de>
21829 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
21830 function cummulating used_from_other_partition, externally_visible
21831 and force_output from aliases.
21832 (refered_from_nonlocal_var): Likewise.
21833 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
21834 node flags properly.
21836 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
21838 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
21839 (-Wmemset-elt-size): New item.
21841 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
21844 * stor-layout.h (internal_reference_types): Delete.
21845 * stor-layout.c (reference_types_internal): Likewise.
21846 (internal_reference_types): Likewise.
21847 (layout_type) <REFERENCE_TYPE>: Adjust.
21849 2016-04-27 Jakub Jelinek <jakub@redhat.com>
21852 * tree.h (inchash::add_expr): Add FLAGS argument.
21853 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
21854 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
21855 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
21856 Formatting fix. Adjust recursive calls. For tcc_comparison,
21857 if swap_tree_comparison (code) is smaller than code, hash that
21858 and arguments in the other order. Hash CONVERT_EXPR the same
21859 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
21860 of ADDR_EXPR of decl as the decl itself. Add or remove
21861 OEP_ADDRESS_OF from recursive flags as needed. For
21862 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
21863 operands commutatively and only the third one normally.
21864 For internal CALL_EXPR hash in CALL_EXPR_IFN.
21866 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
21868 * config/rtems.h (LIB_SPEC): Add -latomic.
21870 2016-04-27 Joel Sherrill <joel@rtems.org>
21872 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
21873 xilink.ld and flags not relevant to RTEMS.
21875 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21877 * toplev.c (backend_init_target): Avoid calling init_reload when using
21880 2016-04-26 Jakub Jelinek <jakub@redhat.com>
21882 * reorg.c (try_merge_delay_insns): Declare i and j inside the
21883 for loops rather than one for the whole function.
21885 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
21887 * match.pd (X + CST CMP X): New transformation.
21889 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
21891 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
21892 * fold-const.c (fold_binary_loc): Remove 2 transformations
21893 superseded by match.pd.
21894 * match.pd (x+x -> x*2): Generalize to integers.
21896 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
21898 * config/i386/i386.md (operation on memory peephole): Duplicate an
21899 existing peephole and adapt it to match lea rather than an operation
21902 PR rtl-optimization/57193
21903 * opts.c (default_options_table): Add OPT_frename_registers at -O2
21905 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
21907 2016-04-26 Bin Cheng <bin.cheng@arm.com>
21909 * tree-if-conv.c (any_pred_load_store): New static variable.
21910 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
21911 any_pred_load_store instead of and_mask_load_store.
21912 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
21913 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
21914 (combine_blocks, tree_if_conversion): Ditto.
21916 2016-04-26 Bin Cheng <bin.cheng@arm.com>
21918 PR tree-optimization/70771
21919 PR tree-optimization/70775
21920 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
21921 virtual PHI nodes. Delete parameter.
21922 (if_convertible_loop_p_1): Delete argument to above function.
21923 (predicate_all_scalar_phis): Delete code handling single-argument
21925 (tree_if_conversion): Mark and update virtual SSA.
21927 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21930 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
21931 (x86_elf_aligned_common): Rename to ...
21932 (x86_elf_aligned_decl_common): ... this.
21933 Add decl arg. Switch to .lbss for largecomm object. Use
21934 LARGECOMM_SECTION_ASM_OP.
21935 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
21937 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
21938 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
21940 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
21941 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
21943 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21946 * config/i386/i386.c (SECTION_LARGE): Define.
21947 (x86_64_elf_select_section): Set it for large data/bss sections.
21948 Only clear SECTION_WRITE for .lrodata.
21949 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
21951 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
21952 * varasm.c (default_elf_asm_named_section): Grow flagchars.
21953 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
21955 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
21956 * doc/tm.texi: Regenerate.
21958 2016-04-26 Jakub Jelinek <jakub@redhat.com>
21961 * configure.ac (--enable-checking): Document extra flag, for
21962 non-release builds default to --enable-checking=yes,extra.
21963 If misc checking and extra checking, define CHECKING_P to 2 instead
21965 * common.opt (fchecking=): Add.
21966 * doc/invoke.texi (-fchecking=): Document.
21967 * doc/install.texi: Document --enable-checking changes.
21968 * configure: Regenerated.
21969 * config.in: Regenerated.
21971 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
21973 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
21974 attribute instead of which_alternative.
21975 * config/i386/sse.md (*mov<mode>_internal): Ditto.
21976 Use EXT_REX_SSE_REG_P where appropriate.
21978 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
21980 * config/i386/predicates.md (const0_operand): Do not match
21981 const_wide_int code.
21982 (const1_operand): Ditto.
21984 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
21986 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
21987 for SSE constm1 operands and TARGET_AVX512VL.
21988 (*movti_internal): Ditto.
21989 (*mov<mode>_or): Use constm1_operand predicate.
21990 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
21991 for SSE vector_all_ones operands and TARGET_AVX512VL.
21992 * config/i386/predicates.md (constm1_operand): New predicate.
21993 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
21994 emission of constant -1 load.
21996 2016-04-25 Jason Merrill <jason@redhat.com>
21998 * gdbinit.in: Skip is-a.h.
22000 * attribs.c (register_scoped_attributes): Fix logic.
22001 * attribs.h: Declare register_scoped_attributes.
22003 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22005 * config/rs6000/rs6000-builtin.def: Correct pasto error for
22006 stxvd2x and stxvw4x built-in functions.
22008 2016-04-25 DJ Delorie <dj@redhat.com>
22010 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
22011 (ashrhi3): Likewise.
22012 (lshrhi3): Likewise.
22014 2016-04-25 Richard Biener <rguenther@suse.de>
22016 PR tree-optimization/70780
22017 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
22018 wasn't visited yet.
22019 (compute_antic): Mark blocks with abnormal preds as visited as
22020 they have a final empty antic-in solution already.
22022 2016-04-25 Michael Collison <michael.collison@linaro.org>
22024 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
22026 2016-04-25 Michael Collison <michael.collison@linaro.org>
22028 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
22029 mode is VQI to improve mixed mode vectorization.
22030 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
22031 define_insn to match low half of signed vaddw.
22032 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
22033 define_insn to match high half of signed vaddw.
22034 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
22035 define_insn to match low half of unsigned vaddw.
22036 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
22037 define_insn to match high half of unsigned vaddw.
22038 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
22039 (arm_simd_check_vect_par_cnst_half_p): Likewise.
22040 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
22042 (arm_simd_check_vect_par_cnst_half_p): Likewise.
22043 * config/arm/predicates.md (vect_par_constant_high): Support
22044 big endian and simplify by calling
22045 arm_simd_check_vect_par_cnst_half
22046 (vect_par_constant_low): Likewise.
22048 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
22050 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
22051 predicate for operand 2.
22053 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
22054 H.J. Lu <hongjiu.lu@intel.com>
22056 * config/i386/i386-protos.h (standard_sse_constant_p): Add
22057 machine_mode argument.
22058 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
22059 constm1_rtx operands. For VOIDmode constants, get mode from
22060 pred_mode. Check mode size if the mode is supported by ABI.
22061 (standard_sse_constant_opcode): Do not use standard_constant_p.
22062 Strictly check ABI support for all-ones operands.
22063 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
22064 immediates. Update calls to standard_sse_constant_p.
22065 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
22066 (ix86_rtx_costs): Ditto.
22067 * config/i386/i386.md (*movxi_internal_avx512f): Use
22068 nonimmediate_or_sse_const_operand instead of vector_move_operand.
22069 Use (v,BC) alternative instead of (v,C). Use register_operand
22070 checks instead of MEM_P.
22071 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
22072 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
22073 isa attribute. Use register_operand checks instead of MEM_P.
22074 (*movti_internal): Use nonimmediate_or_sse_const_operand for
22075 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
22076 alternative and corresponding sse2 isa attribute.
22077 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
22078 to standard_sse_constant_p.
22079 (FP constant splitters): Ditto.
22080 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
22082 * config/i386/predicates.md (constm1_operand): Remove.
22083 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
22084 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
22085 vector_all_ones_operand instead of constm1_operand.
22087 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22089 * print-rtl.c (print_rtx_insn_vec): New function.
22090 * print-rtl.h: New prototype.
22091 * store-motion.c (struct st_expr): Make avail_stores a vector.
22092 (st_expr_entry): Adjust.
22093 (free_st_expr_entry): Likewise.
22094 (print_store_motion_mems): Likewise.
22095 (find_moveable_store): Likewise.
22096 (compute_store_table): Likewise.
22097 (delete_store): Likewise.
22098 (build_store_vectors): Likewise.
22100 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22102 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
22104 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22106 * vec.h (vec_safe_contains): New function.
22107 (vec::contains): Likewise.
22108 (vec::begin): Likewise.
22109 (vec::end): Likewise.
22111 2016-04-23 Jakub Jelinek <jakub@redhat.com>
22114 * cfgexpand.c (expand_stack_vars): Fix typo.
22116 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
22118 * system.h (list, map, set, vector): Include conditionally.
22119 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
22120 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
22121 * ipa-icf.c (INCLUDE_LIST): Define.
22122 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
22123 * config/sh/sh.c (INCLUDE_VECTOR): Define.
22124 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
22125 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
22126 * cp/logic.cc (INCLUDE_LIST): Define.
22127 * fortran/trans-common.c (INCLUDE_MAP): Define.
22129 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
22131 * auto-profile.c: Remove <string.h> include.
22132 * ipa-icf-gimple.c: Remove <list> include.
22133 * diagnostic.c: Remove <new> include.
22134 * genmatch.c: Likewise.
22135 * pretty-print.c: Likewise.
22136 * toplev.c: Likewise
22137 * c/c-objc-common.c: Likewise.
22138 * cp/error.c: Likewise.
22139 * fortran/error.c: Likewise.
22141 2016-04-22 Richard Biener <rguenther@suse.de>
22143 * lto-streamer-in.c (input_ssa_names): Do not allocate
22144 GIMPLE_NOP for all SSA names.
22145 * lto-streamer-out.c (output_ssa_names): Do not output
22146 SSA names that should have been released.
22148 2016-04-22 Richard Biener <rguenther@suse.de>
22150 PR tree-optimization/70740
22151 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
22154 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
22157 * config/i386/predicates.md (call_insn_operand): Replace
22158 sibcall_memory_operand with memory_operand.
22160 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
22162 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
22163 has_single_use() tests.
22164 (register_edge_assert_for_1): Likewise.
22165 (find_assert_locations_1): Check the liveness bitmap instead of
22166 checking has_single_use().
22168 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
22171 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
22172 Extract AVX-512BW constraint from AVX.
22174 2016-04-21 Richard Biener <rguenther@suse.de>
22176 PR tree-optimization/70725
22177 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
22178 for phi_convertible_by_degenerating_args.
22179 (predicate_all_scalar_phis): Handle single-argument PHIs.
22181 2016-04-21 Richard Biener <rguenther@suse.de>
22183 PR middle-end/70747
22184 * fold-const.c (fold_comparison): Return properly typed
22187 2016-04-21 Bin Cheng <bin.cheng@arm.com>
22189 PR tree-optimization/70715
22190 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
22191 after expanding BASE using expand_simple_operations.
22193 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
22195 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
22196 New transformations.
22198 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
22200 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
22202 2016-04-20 Jan Hubicka <jh@suse.cz>
22204 * ipa-inline.c (can_inline_edge_p): Pass caller info to
22205 ultiimate_alias_target.
22206 (update_callee_keys): Likewise.
22207 (lookup_recursive_calls): Likewise.
22208 (speculation_useful_p): Likewise.
22210 2016-04-20 Jan Hubicka <jh@suse.cz>
22213 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
22214 (set_nothrow_flag_1): ... this; handle interposition correctly;
22215 recurse on aliases and thunks.
22216 (cgraph_node::set_nothrow_flag): New.
22217 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
22218 functions compiled with non-call exceptions that binds to current
22220 (propagate_nothrow): Be safe WRT interposition.
22221 * cgraph.h (set_nothrow_flag): Update prototype.
22223 2016-04-18 Jan Hubicka <jh@suse.cz>
22225 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
22226 max_loop_iterations_int.
22227 (tree_unswitch_outer_loop): Likewise.
22229 2016-04-20 Bin Cheng <bin.cheng@arm.com>
22231 PR tree-optimization/69489
22232 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
22233 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
22234 Revise dump message.
22235 (if_convertible_bb_p): Remove check on edge count of basic block's
22238 2016-04-20 Bin Cheng <bin.cheng@arm.com>
22240 PR tree-optimization/56625
22241 PR tree-optimization/69489
22242 * tree-data-ref.h (DR_INNERMOST): New macro.
22243 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
22244 hashing struct innermost_loop_behavior.
22245 (ref_DR_map): Remove.
22246 (innermost_DR_map): New map.
22247 (baseref_DR_map): Revise comment.
22248 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
22249 to innermost_DR_map accroding to its innermost loop behavior.
22250 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
22251 to its innermost loop behavior.
22252 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
22253 Add initialization for innermost_DR_map. Record memory reference
22254 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
22255 have innermost loop behavior.
22256 (if_convertible_loop_p): Remove release for ref_DR_map. Release
22259 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
22261 * config/i386/i386.md (*lea<mode>_general_1): Rename from
22262 *lea_general_1. Use explicit SWI12 mode interator.
22263 (*lea<mode>_general_2): Rename from *lea_general_2.
22264 Use explicit SWI12 mode interator.
22265 (*lea<mode>_general_3): Rename from *lea_general_3.
22266 Use explicit SWI12 mode interator.
22267 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
22268 Use explicit SWI12 mode interator.
22269 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
22270 Use explicit SWI48 mode interator.
22272 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
22274 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
22275 Short-cut unaligned load and store cases. Handle all integer
22277 (ix86_expand_vector_move_misalign): Short-cut unaligned load
22278 and store cases. Call ix86_avx256_split_vector_move_misalign
22279 directly without checking mode class.
22281 2016-04-20 Andrew Pinski <apinski@cavium.com>
22282 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22285 * config/aarch64/aarch64.md (sibcall): Force call
22286 address to be DImode for ILP32.
22287 (sibcall_value): Likewise.
22289 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
22291 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
22293 2016-04-20 Richard Biener <rguenther@suse.de>
22295 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
22296 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
22297 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
22298 (maybe_push_res_to_seq): Adjust.
22299 * gimple-fold.c (maybe_build_generic_op): Likewise.
22301 2016-04-20 Marek Polacek <polacek@redhat.com>
22303 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
22306 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
22308 * config/i386/sse.md (vec_unpacks_lo_hi): Always
22309 use kmovw to support AVX512F target.
22311 2016-04-20 Bin Cheng <bin.cheng@arm.com>
22313 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
22315 2016-04-20 Marek Polacek <polacek@redhat.com>
22317 PR tree-optimization/70725
22318 * tree-if-conv.c (is_false_predicate): New function.
22319 (predicate_mem_writes): Use it.
22321 2016-04-20 Richard Biener <rguenther@suse.de>
22323 PR tree-optimization/70726
22324 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
22325 shift amounts from a pattern stmt operand.
22327 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22330 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
22331 stack_restore_from_fpr pattern when restoring r15.
22332 (s390_optimize_prologue): Strip away the memory barrier in the
22333 parallel when trying to get rid of restore insns.
22334 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
22335 definition for loading the stack pointer from an FPR. Compared to
22336 the normal move insn this pattern includes a full memory barrier.
22338 2016-04-19 Jakub Jelinek <jakub@redhat.com>
22340 PR middle-end/70680
22341 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
22342 implicitly linear or lastprivate iterator on the outer context.
22344 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
22346 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
22348 * config/i386/i386.md (ssememalign): Removed.
22349 * config/i386/sse.md: Remove ssememalign attribute from patterns.
22351 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
22354 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
22355 const short * to __builtin_ia32_loaddquhi512_mask.
22356 (_mm512_maskz_loadu_epi16): Likewise.
22357 (_mm512_mask_storeu_epi16): Pass short * to
22358 __builtin_ia32_storedquhi512_mask.
22359 (_mm512_mask_loadu_epi8): Pass const char * to
22360 __builtin_ia32_loaddquqi512_mask.
22361 (_mm512_maskz_loadu_epi8): Likewise.
22362 (_mm512_mask_storeu_epi8): Pass char * to
22363 __builtin_ia32_storedquqi512_mask.
22364 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
22365 const double * to __builtin_ia32_loadupd512_mask.
22366 (_mm512_mask_loadu_pd): Likewise.
22367 (_mm512_maskz_loadu_pd): Likewise.
22368 (_mm512_storeu_pd): Pass double * to
22369 __builtin_ia32_storeupd512_mask.
22370 (_mm512_mask_storeu_pd): Likewise.
22371 (_mm512_loadu_ps): Pass const float * to
22372 __builtin_ia32_loadups512_mask.
22373 (_mm512_mask_loadu_ps): Likewise.
22374 (_mm512_maskz_loadu_ps): Likewise.
22375 (_mm512_storeu_ps): Pass float * to
22376 __builtin_ia32_storeups512_mask.
22377 (_mm512_mask_storeu_ps): Likewise.
22378 (_mm512_mask_loadu_epi64): Pass const long long * to
22379 __builtin_ia32_loaddqudi512_mask.
22380 (_mm512_maskz_loadu_epi64): Likewise.
22381 (_mm512_mask_storeu_epi64): Pass long long *
22382 to __builtin_ia32_storedqudi512_mask.
22383 (_mm512_loadu_si512): Pass const int * to
22384 __builtin_ia32_loaddqusi512_mask.
22385 (_mm512_mask_loadu_epi32): Likewise.
22386 (_mm512_maskz_loadu_epi32): Likewise.
22387 (_mm512_storeu_si512): Pass int * to
22388 __builtin_ia32_storedqusi512_mask.
22389 (_mm512_mask_storeu_epi32): Likewise.
22390 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
22391 char * to __builtin_ia32_storedquqi256_mask.
22392 (_mm_mask_storeu_epi8): Likewise.
22393 (_mm256_mask_loadu_epi16): Pass const short * to
22394 __builtin_ia32_loaddquhi256_mask.
22395 (_mm256_maskz_loadu_epi16): Likewise.
22396 (_mm_mask_loadu_epi16): Pass const short * to
22397 __builtin_ia32_loaddquhi128_mask.
22398 (_mm_maskz_loadu_epi16): Likewise.
22399 (_mm256_mask_loadu_epi8): Pass const char * to
22400 __builtin_ia32_loaddquqi256_mask.
22401 (_mm256_maskz_loadu_epi8): Likewise.
22402 (_mm_mask_loadu_epi8): Pass const char * to
22403 __builtin_ia32_loaddquqi128_mask.
22404 (_mm_maskz_loadu_epi8): Likewise.
22405 (_mm256_mask_storeu_epi16): Pass short * to.
22406 __builtin_ia32_storedquhi256_mask.
22407 (_mm_mask_storeu_epi16): Pass short * to.
22408 __builtin_ia32_storedquhi128_mask.
22409 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
22410 const double * to __builtin_ia32_loadupd256_mask.
22411 (_mm256_maskz_loadu_pd): Likewise.
22412 (_mm_mask_loadu_pd): Pass onst double * to
22413 __builtin_ia32_loadupd128_mask.
22414 (_mm_maskz_loadu_pd): Likewise.
22415 (_mm256_mask_storeu_pd): Pass double * to
22416 __builtin_ia32_storeupd256_mask.
22417 (_mm_mask_storeu_pd): Pass double * to
22418 __builtin_ia32_storeupd128_mask.
22419 (_mm256_mask_loadu_ps): Pass const float * to
22420 __builtin_ia32_loadups256_mask.
22421 (_mm256_maskz_loadu_ps): Likewise.
22422 (_mm_mask_loadu_ps): Pass const float * to
22423 __builtin_ia32_loadups128_mask.
22424 (_mm_maskz_loadu_ps): Likewise.
22425 (_mm256_mask_storeu_ps): Pass float * to
22426 __builtin_ia32_storeups256_mask.
22427 (_mm_mask_storeu_ps): ass float * to
22428 __builtin_ia32_storeups128_mask.
22429 (_mm256_mask_loadu_epi64): Pass const long long * to
22430 __builtin_ia32_loaddqudi256_mask.
22431 (_mm256_maskz_loadu_epi64): Likewise.
22432 (_mm_mask_loadu_epi64): Pass const long long * to
22433 __builtin_ia32_loaddqudi128_mask.
22434 (_mm_maskz_loadu_epi64): Likewise.
22435 (_mm256_mask_storeu_epi64): Pass long long * to
22436 __builtin_ia32_storedqudi256_mask.
22437 (_mm_mask_storeu_epi64): Pass long long * to
22438 __builtin_ia32_storedqudi128_mask.
22439 (_mm256_mask_loadu_epi32): Pass const int * to
22440 __builtin_ia32_loaddqusi256_mask.
22441 (_mm256_maskz_loadu_epi32): Likewise.
22442 (_mm_mask_loadu_epi32): Pass const int * to
22443 __builtin_ia32_loaddqusi128_mask.
22444 (_mm_maskz_loadu_epi32): Likewise.
22445 (_mm256_mask_storeu_epi32): Pass int * to
22446 __builtin_ia32_storedqusi256_mask.
22447 (_mm_mask_storeu_epi32): Pass int * to
22448 __builtin_ia32_storedqusi128_mask.
22449 * config/i386/i386-builtin-types.def (PCSHORT): New.
22450 (PINT64): Likewise.
22451 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
22452 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
22453 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
22454 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
22455 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
22456 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
22457 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
22458 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
22459 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
22460 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
22461 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
22462 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
22463 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
22464 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
22465 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
22466 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
22467 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
22468 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
22469 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
22470 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
22471 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
22472 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
22473 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
22474 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
22475 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
22476 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
22477 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
22478 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
22479 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
22480 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
22481 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
22482 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
22483 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
22484 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
22485 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
22486 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
22487 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
22488 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
22489 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
22490 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
22491 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
22492 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
22493 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
22494 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
22495 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
22496 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
22497 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
22498 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
22499 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
22501 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
22502 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
22504 (ix86_expand_vector_move_misalign): Likewise.
22505 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
22506 to scalar function prototype for unaligned load/store builtins.
22507 (ix86_expand_special_args_builtin): Updated.
22508 * config/i386/sse.md (UNSPEC_LOADU): Removed.
22509 (UNSPEC_STOREU): Likewise.
22510 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
22511 (VI_ULOADSTORE_F_AVX512VL): Likewise.
22512 (ssescalarsize): Handle V4TI, V2TI and V1TI.
22513 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
22514 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
22515 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
22516 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
22517 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
22518 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
22519 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
22520 (<avx512>_storedqu<mode>_mask): Likewise.
22521 (*sse4_2_pcmpestr_unaligned): Likewise.
22522 (*sse4_2_pcmpistr_unaligned): Likewise.
22523 (*mov<mode>_internal): Renamed to ...
22524 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
22525 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
22526 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
22527 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
22529 2016-04-19 Richard Biener <rguenther@suse.de>
22531 PR tree-optimization/70171
22532 * tree-ssa-phiprop.c: Include stor-layout.h.
22533 (phiprop_insert_phi): Handle the aggregate copy case.
22534 (propagate_with_phi): Likewise.
22536 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
22538 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
22539 instead of simplify_gen_subreg (... , 0).
22540 (ix86_delegitimize_address): Ditto.
22541 (ix86_split_divmod): Ditto.
22542 (ix86_split_copysign_const): Ditto.
22543 (ix86_split_copysign_var): Ditto.
22544 (ix86_expand_args_builtin): Ditto.
22545 (ix86_expand_round_builtin): Ditto.
22546 (ix86_expand_special_args_builtin): Ditto.
22547 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
22548 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
22549 (udivmodqi4): Ditto.
22550 (absneg splitters): Ditto.
22551 (*jcc_bt<mode>_1): Ditto.
22553 2016-04-19 Richard Biener <rguenther@suse.de>
22555 PR tree-optimization/70724
22556 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
22557 restoring out from ...
22558 (free_scc_vn): ... here.
22559 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
22560 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
22562 (pass_fre::execute): Restore SSA info.
22564 2016-04-19 Richard Biener <rguenther@suse.de>
22566 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
22567 * gimple-walk.c (walk_gimple_op): Initialize it.
22568 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
22569 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
22570 remapping SSA names of defs.
22571 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
22574 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
22576 PR middle-end/70689
22577 * lra-constraints.c (equiv_substition_p): New.
22578 (process_alt_operands): Use it.
22579 (swap_operands): Swap it.
22580 (curr_insn_transform): Update it.
22582 2016-04-18 Michael Matz <matz@suse.de>
22584 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
22585 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
22586 * tree-core.h (tree_type_common.align): Use bit-field.
22587 (tree_type_common.spare): New.
22588 (tree_decl_common.off_align): Make smaller.
22589 (tree_decl_common.align): Use bit-field.
22591 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
22592 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
22593 (scan_sharing_clauses): Ditto.
22594 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
22595 (omp_finish_file): Ditto.
22596 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
22597 (layout_decl): Ditto.
22598 (relayout_decl): Ditto.
22599 (finalize_record_size): Use SET_TYPE_ALIGN.
22600 (finalize_type_size): Ditto.
22601 (finish_builtin_struct): Ditto.
22602 (layout_type): Ditto.
22603 (initialize_sizetypes): Ditto.
22604 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
22605 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
22606 (lookup_field_for_decl): Use SET_DECL_ALIGN.
22607 (get_chain_field): Ditto.
22608 (get_trampoline_type): Ditto.
22609 (get_nl_goto_field): Ditto.
22610 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
22612 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
22613 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
22614 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
22615 (build_qualified_type): Use SET_TYPE_ALIGN.
22616 (build_aligned_type, build_range_type_1): Ditto.
22617 (build_atomic_base): Ditto.
22618 (build_common_tree_nodes): Ditto.
22619 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
22620 (expand_one_stack_var_at): Ditto.
22621 * coverage.c (build_var): Use SET_DECL_ALIGN.
22622 * except.c (init_eh): Ditto.
22623 * function.c (assign_parm_setup_block): Ditto.
22624 * symtab.c (increase_alignment_1): Ditto.
22625 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
22626 * tree-vect-stmts.c (ensure_base_align): Ditto.
22627 * varasm.c (align_variable): Ditto.
22628 (assemble_variable): Ditto.
22629 (build_constant_desc): Ditto.
22630 (output_constant_def_contents): Ditto.
22632 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
22633 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
22634 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
22635 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
22636 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
22638 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
22641 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
22642 replace %vmovsd with "%vmovq".
22643 (vec_concatv2df): Likewise.
22645 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
22647 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
22648 (*vec_extractv2si_0): Ditto.
22649 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
22650 (zero_extended_scalar_load_operand splitters): Ditto.
22651 (vec_extract splitters): Ditto.
22652 (*vec_extractv4si_0_zext): Ditto.
22653 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
22654 and lowpart_subreg.
22655 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
22656 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
22657 (*sse4_1_extractps): Use lowpart_subreg.
22658 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
22660 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22662 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
22664 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
22665 Mention Solaris 11 packaging changes.
22666 Update gas and gld requirements.
22667 Remove reference to pre-Solaris 10 bug.
22668 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
22670 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
22673 2016-04-17 Jan Hubicka <jh@suse.cz>
22675 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
22676 max_loop_iterations_int.
22678 2016-04-18 Richard Biener <rguenther@suse.de>
22680 PR tree-optimization/43434
22681 * tree-ssa-structalias.c (struct vls_data): New.
22682 (visit_loadstore): Handle all pointer-based accesses.
22683 (compute_dependence_clique): Compute a bitmap of restrict tags
22684 assigned bases and pass it to visit_loadstore.
22686 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
22689 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
22690 armv8.1-a and armv8.1-a+crc.
22692 2016-04-18 Richard Biener <rguenther@suse.de>
22694 PR tree-optimization/70701
22695 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
22696 references after translating through a memcpy.
22698 2016-04-18 Richard Biener <rguenther@suse.de>
22700 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
22701 (compute_antic): ... here. For partial antic use regular
22702 postorder and scrap iteration.
22703 (compute_partial_antic_aux): Remove unused return value.
22704 (init_pre): Do not allocate postorder.
22705 (fini_pre): Do not free postorder.
22707 2016-04-18 Richard Biener <rguenther@suse.de>
22709 PR middle-end/37870
22710 * expmed.c (extract_bit_field_1): Remove broken case
22711 using a wider MODE_INT mode.
22713 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
22715 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
22716 unless compiling with at least GCC-4.8.
22718 2016-04-17 Jan Hubicka <jh@suse.cz>
22721 * graphite.c (graphite_finalize): Update call to
22722 tree_estimate_probability.
22723 * predict.h (tree_estimate_probability): Update prototype.
22725 2016-04-17 Jan Hubicka <jh@suse.cz>
22727 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
22728 (tree_estimate_probability): Likewise.
22729 (pass_profile::execute): Update.
22730 (report_predictor_hitrates): New function.
22731 * profile.c (compute_branch_probabilities): Use it.
22732 * predict.h (report_predictor_hitrates): Declare.
22734 2016-04-17 Jan Hubicka <jh@suse.cz>
22737 * cgraph.h (cgraph_node::set_const_flag,
22738 cgraph_node::set_pure_flag): Update prototype to return bool;
22740 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
22741 of interposable symbol are interposable, too.
22742 (cgraph_set_const_flag_1): Rename to ...
22743 (set_const_flag_1): ... this one; change to self recursive function
22744 instead of call_for_symbol_thunks_and_aliases. Handle correctly
22745 clearnig the flag in all variants and also virtual thunks of const
22746 functions are pure; track if any change was done.
22747 (cgraph_node::set_const_flag): Update.
22748 (struct set_pure_flag_info): New struct.
22749 (cgraph_set_pure_flag_1): Rename to ...
22750 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
22751 rather than pointer encoded flags; track if any changes was done;
22752 handle correctly clearning flag and setting flag of aliases already
22754 (cgraph_node::set_pure_flag): Update.
22755 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
22757 2016-04-17 Tom de Vries <tom@codesourcery.com>
22760 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
22761 backslash in label.
22763 2016-04-17 Tom de Vries <tom@codesourcery.com>
22765 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
22766 '{}<> ' as escape-for-record.
22768 2016-04-17 Tom de Vries <tom@codesourcery.com>
22770 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
22773 2016-04-17 Tom de Vries <tom@codesourcery.com>
22776 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
22777 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
22778 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
22779 * passes.c (finish_optimization_passes): Only call
22780 finish_graph_dump_file if dfi->graph_dump_initialized.
22781 (execute_function_dump, pass_init_dump_file): Use
22782 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
22784 2016-04-17 Tom de Vries <tom@codesourcery.com>
22786 PR tree-optimization/70256
22787 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
22788 (debug_varmap): New function.
22790 2016-04-17 Tom de Vries <tom@codesourcery.com>
22793 * passes.c (pass_manager::register_pass): Propagate pflags.
22795 2016-04-17 Tom de Vries <tom@codesourcery.com>
22798 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
22799 * passes.c (pass_manager::pass_manager): Declare and init p_start in
22800 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
22801 check if it's equal to p_start.
22802 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
22804 2016-04-15 Jan Hubicka <jh@suse.cz>
22807 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
22808 function does not bind to current def.
22809 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
22810 handle conservatively calls to functions that does not need to bind
22812 (check_call): Update call of worse_state.
22813 (ignore_edge_for_nothrow): Update.
22814 (ignore_edge_for_pure_const): Likewise.
22815 (propagate_pure_const): Update calls to worse_state.
22816 (skip_function_for_local_pure_const): Reformat comments.
22818 2016-04-15 Jan Hubicka <jh@suse.cz>
22821 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
22822 (cgraph_node::function_symbol): Likewise.
22823 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
22824 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
22825 (symtab_node::ultimate_alias_target): Add REF parameter.
22826 (symtab_node::binds_to_current_def_p): Declare.
22827 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
22828 (cgraph_node::function_symbol): Likewise.
22829 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
22830 (cgraph_node::get_availability): Likewise.
22831 (cgraph_edge::binds_to_current_def_p): New inline function.
22832 (varpool_node::get_availability): Add REF parameter.
22833 (varpool_node::ultimate_alias_target): Likewise.
22834 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
22835 (symtab_node::binds_to_current_def_p): Likewise.
22836 * varpool.c (varpool_node::get_availability): Likewise.
22838 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
22841 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
22842 Fix mode size check.
22844 2016-04-15 Jakub Jelinek <jakub@redhat.com>
22846 * BASE-VER: Set to 7.0.0.
22848 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
22850 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
22852 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22854 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
22855 architecture revisions.
22857 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
22859 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
22860 * config/i386/i386.c (ix86_using_red_zone): No longer static.
22861 * config/i386/i386.md (stack decrement to push peepholes): Guard
22862 with !x86_using_red_zone ().
22864 2016-04-15 Jakub Jelinek <jakub@redhat.com>
22867 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
22868 to dump_generic_node.
22869 (NIY): Pass also flags to do_niy.
22871 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
22873 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
22874 (simd_clone_vector_of_formal_parm_types)
22875 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
22876 (simd_clone_mangle, simd_clone_create)
22877 (simd_clone_adjust_return_type, create_tmp_simd_array)
22878 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
22879 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
22880 (ipa_simd_modify_function_body, simd_clone_linear_addend)
22881 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
22882 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
22883 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
22884 * omp-simd-clone.c: ... this new file.
22885 (simd_clone_vector_of_formal_parm_types): Make it static.
22886 * Makefile.in (OBJS): Add omp-simd-clone.o.
22888 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
22891 * config/i386/sse.md: Use proper memory operand modifiers.
22894 2016-04-15 Richard Biener <rguenther@suse.de>
22895 Alan Modra <amodra@gmail.com>
22897 PR tree-optimization/70130
22898 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
22899 when alignment stays not the same and no not use the realign
22902 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
22905 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
22906 direct move handlers for KFmode. Change TFmode handlers test from
22907 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
22909 2016-04-14 Jakub Jelinek <jakub@redhat.com>
22912 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
22913 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
22914 (inlined_polymorphic_ctor_dtor_block_p): Use it.
22915 * tree-ssa-live.c (remove_unused_scope_block_p): When
22916 in_ctor_dtor_block, avoid discarding not just BLOCKs with
22917 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
22918 block_ultimate_origin is FUNCTION_DECL.
22919 (remove_unused_locals): If current_function_decl is
22920 polymorphic_ctor_dtor_p, pass initial true to
22921 remove_unused_scope_block_p' is_ctor_dtor_block.
22923 2016-04-14 Martin Sebor <msebor@redhat.com>
22928 * doc/extend.texi (Variable Length): Revert.
22930 2016-04-14 Marek Polacek <polacek@redhat.com>
22931 Jan Hubicka <hubicka@ucw.cz>
22934 * tree.c (verify_type): Disable the canonical type of main variant
22937 2016-04-14 Jason Merrill <jason@redhat.com>
22939 * cfgexpand.c, expr.c: Revert previous change.
22941 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
22943 PR middle-end/70643
22944 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
22945 when building a mem ref for the incoming reduction variable.
22947 2016-04-14 Richard Biener <rguenther@suse.de>
22949 PR tree-optimization/70614
22950 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
22951 loop if the evolution dropped to chrec_dont_know.
22952 (interpret_condition_phi): Likewise.
22954 2016-04-14 Richard Biener <rguenther@suse.de>
22956 PR tree-optimization/70623
22957 * tree-ssa-pre.c (changed_blocks): Make global ...
22958 (compute_antic): ... local here. Move and fix worklist
22959 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
22960 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
22961 worklist handling, dump when ANTIC_IN changed.
22962 (compute_partial_antic_aux): Remove worklist handling.
22963 (init_pre): Do not compute post dominators. Add a comment about
22964 the CFG order chosen.
22965 (fini_pre): Do not free post dominators.
22967 2016-04-13 Martin Sebor <msebor@redhat.com>
22972 * doc/extend.texi (Variable Length): Document C++ specifics.
22974 2016-04-13 Jakub Jelinek <jakub@redhat.com>
22977 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
22978 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
22979 eh edges have been purged.
22982 * tree-sra.c (create_access_replacement,
22983 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
22985 * tree-pretty-print.c (dump_fancy_name): New function.
22986 (dump_decl_name, dump_generic_node): Use it.
22988 2016-04-13 Jason Merrill <jason@redhat.com>
22990 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
22991 * expr.c (expand_expr_real_1): Likewise.
22993 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
22995 * config/i386/i386.md (kunpckhi): Swap operands.
22996 (kunpcksi): Likewise.
22997 (kunpckdi): Likewise.
22998 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
22999 (vec_pack_trunc_<mode>): Likewise.
23001 2016-04-13 Jakub Jelinek <jakub@redhat.com>
23004 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
23006 PR middle-end/70633
23007 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
23008 gimplification turns some element into non-constant.
23011 * rtl.h (convert_memory_address_addr_space_1): New prototype.
23012 * explow.c (convert_memory_address_addr_space_1): No longer static,
23013 add NO_EMIT argument and don't call convert_modes if true, pass
23014 it down recursively, remove break after return.
23015 (convert_memory_address_addr_space): Adjust caller.
23016 * simplify-rtx.c (simplify_unary_operation_1): Call
23017 convert_memory_address_addr_space_1 instead of convert_memory_address,
23018 if it returns NULL, don't simplify.
23020 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
23023 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
23025 2016-04-12 Jakub Jelinek <jakub@redhat.com>
23027 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23028 Bump the upper SIMDLEN limits, so that if the return type or
23029 characteristic type if the return type is void can be passed in
23030 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
23033 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
23036 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
23037 Do not use "=" constraint on an input constraint.
23038 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
23039 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
23040 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
23041 generates (neg (abs ...)) instead of (abs ...).
23043 2016-04-12 Jakub Jelinek <jakub@redhat.com>
23045 PR rtl-optimization/70596
23046 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
23047 just invalidate LRA data and reset them. Adjust dump wording.
23049 2016-04-12 Martin Liska <mliska@suse.cz>
23052 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
23054 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
23056 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
23057 max_loop_iterations_int.
23058 (tree_unswitch_outer_loop): Likewise.
23059 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
23060 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
23062 2016-04-12 Tom de Vries <tom@codesourcery.com>
23064 PR tree-optimization/68756
23065 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
23066 instead of new_name.
23068 2016-04-12 Jakub Jelinek <jakub@redhat.com>
23070 PR tree-optimization/70602
23071 * tree-sra.c (generate_subtree_copies): Don't write anything into
23072 constant pool decls.
23074 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
23075 regardless whether there are depend clauses or not.
23077 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23080 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
23081 target attribute and pragma from changing the -mfloat128
23082 and -mfloat128-hardware options.
23084 * doc/extend.texi (Additional Floating Types): Document PowerPC
23085 __float128 restrictions.
23087 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
23090 * config/aarch64/driver-aarch64.c
23091 (aarch64_get_extension_string_for_isa_flags): New.
23092 (arch_extension): Rename to...
23093 (aarch64_arch_extension): ...This.
23094 (ext_to_feat_string): Rename to...
23095 (aarch64_extensions): ...This.
23096 (aarch64_core_data): Keep track of architecture extension flags.
23097 (cpu_data): Rename to...
23098 (aarch64_cpu_data): ...This.
23099 (aarch64_arch_driver_info): Keep track of architecture extension
23101 (get_arch_name_from_id): Rename to...
23102 (get_arch_from_id): ...This, change return type.
23103 (host_detect_local_cpu): Update and reformat for renames, handle
23104 extensions through common infrastructure.
23106 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
23109 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
23110 track of a canonical flag name.
23111 (all_extensions): Likewise.
23112 (arch_to_arch_name): Also track extension flags enabled by the arch.
23113 (all_architectures): Likewise.
23114 (aarch64_parse_extension): Move to here.
23115 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
23117 (aarch64_rewrite_selected_cpu): Update for above change.
23118 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
23119 are handled, such that the single explicit value enabled by an
23120 extension is kept seperate from the implicit values it also enables.
23121 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
23123 (aarch64_parse_extension): New.
23124 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
23125 here to config/aarch64/aarch64-protos.h.
23126 (aarch64_parse_extension): Move from here to
23127 common/config/aarch64/aarch64-common.c.
23128 (aarch64_option_print): Update.
23129 (aarch64_declare_function_name): Likewise.
23130 (aarch64_start_file): Likewise.
23131 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
23132 the canonical flag for extensions.
23133 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
23136 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
23138 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
23141 2016-04-09 Tom de Vries <tom@codesourcery.com>
23143 PR tree-optimization/68953
23144 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
23145 first to last subscript.
23147 2016-04-09 Jakub Jelinek <jakub@redhat.com>
23149 PR tree-optimization/70586
23150 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
23153 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
23157 PR tree-optimization/70373
23158 PR middle-end/70533
23159 PR middle-end/70534
23160 PR middle-end/70535
23161 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
23162 clauses for acc parallel reductions as necessary. Error on those
23164 * omp-low.c (scan_sharing_clauses): Don't install variables which
23165 are used in acc parallel reductions.
23166 (lower_rec_input_clauses): Remove dead code.
23167 (lower_oacc_reductions): Add support for reference reductions.
23168 (lower_reduction_clauses): Remove dead code.
23169 (lower_omp_target): Don't remap variables appearing in acc parallel
23171 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
23173 2016-04-08 Jakub Jelinek <jakub@redhat.com>
23175 PR middle-end/70593
23176 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
23177 with multiple SSA_NAME defs, force the outputs other than first
23178 to be live before calling live_track_process_def on each output.
23180 PR rtl-optimization/70574
23181 * fwprop.c (forward_propagate_and_simplify): Don't add
23182 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
23183 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
23184 paradoxical subregs within *loc.
23186 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
23188 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
23189 -ftree-parallelize-loops={0,1}.
23190 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23191 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23192 * config/ia64/hpux.h (LIB_SPEC): Likewise.
23193 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23194 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23196 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
23199 * asan.c (instrument_derefs): If we get unknown location, extract it
23200 with EXPR_LOCATION.
23201 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
23203 2016-04-08 Tom de Vries <tom@codesourcery.com>
23205 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
23206 implicit firstprivate clause.
23208 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23211 * config/arm/thumb2.md (tst + branch-> lsls + branch
23212 peephole below *orsi_not_shiftsi_si): Require that condition
23213 register is dead after the peephole.
23214 (second peephole after the above): Likewise.
23216 2016-04-08 Alan Modra <amodra@gmail.com>
23219 * builtins.c (fold_builtin_classify): For IBM extended precision,
23220 look at just the high-order double to test for NaN.
23221 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
23222 test just the high double for Inf but both doubles for subnormal
23225 2016-04-07 Jakub Jelinek <jakub@redhat.com>
23227 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
23228 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
23229 node->simdclone->mask_mode != VOIDmode masks.
23230 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
23231 earlier, use it instead of node->simdclone.
23232 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23233 Set clonei->mask_mode.
23235 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
23238 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
23239 Pass it through to cp_parser_already_scoped_statement.
23240 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
23241 it through to cp_parser_statement.
23242 (cp_parser_statement): Pass IF_P through to
23243 cp_parser_iteration_statement.
23244 (cp_parser_pragma): Adjust call to
23245 cp_parser_iteration_statement.
23247 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
23250 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
23251 resolve a future -Wparentheses warning.
23252 * omp-low.c (scan_sharing_clauses): Likewise.
23253 * tree-parloops.c (eliminate_local_variables): Likewise.
23255 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
23257 PR rtl-optimization/70398
23258 * lra-constraints.c (process_address_1): Check zero scale and code
23259 for reloading with zero scale.
23261 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
23263 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
23264 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
23266 2016-04-06 Jakub Jelinek <jakub@redhat.com>
23268 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23269 Add support for AVX512F clones, include them by default for
23270 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
23271 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
23274 PR middle-end/70550
23275 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
23276 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
23277 firstprivate clauses.
23278 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
23279 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
23280 (lower_omp_target): Set TREE_NO_WARNING for
23281 non-addressable possibly uninitialized vars which are copied into
23282 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
23284 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
23286 * config/pa/predicates.md (integer_store_memory_operand): Accept
23287 REG+D operands with a large offset when reload_in_progress is true.
23288 (floating_point_store_memory_operand): Likewise.
23290 2016-04-05 Jakub Jelinek <jakub@redhat.com>
23293 * match.pd (nested int casts): Limit to GIMPLE.
23295 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
23298 * ipa-devirt.c (maybe_record_node): Fix comment; use
23299 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
23301 2016-04-05 Jakub Jelinek <jakub@redhat.com>
23303 PR rtl-optimization/70542
23304 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
23305 if there are any uses other than insn or debug insns.
23307 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
23308 Jakub Jelinek <jakub@redhat.com>
23310 PR tree-optimization/70509
23311 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
23312 Shift HOST_WIDE_INT_1U instead of 1.
23314 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
23316 PR tree-optimization/70509
23317 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
23318 of the vector base type for index.
23320 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
23323 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
23325 2016-04-05 Richard Biener <rguenther@suse.de>
23327 PR tree-optimization/70526
23328 * tree-sra.c (build_ref_for_offset): Use prev_base to
23329 extract the alias pointer type.
23331 2016-04-05 Richard Biener <rguenther@suse.de>
23333 * dse.c (struct store_info): Remove alias_set member.
23334 (struct read_info_type): Likewise.
23335 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
23336 spill_deleted, clear_alias_set_lookup): Remove.
23337 (get_group_info): Remove dead base == NULL_RTX case.
23338 (dse_step0): Remove initialization of removed variables.
23339 (delete_dead_store_insn): Reomve alias set dumping.
23340 (free_read_records): Remove alias_set handling.
23341 (canon_address): Remove alias_set_out parameter.
23342 (record_store): Remove spill_alias_set, it's always zero.
23343 (check_mem_read_rtx): Likewise.
23344 (dse_step2): Rename from ...
23345 (dse_step2_nospill): ... this. Adjust.
23346 (scan_stores): Rename from ...
23347 (scan_stores_nospill): ... this.
23348 (scan_reads): Rename from ...
23349 (scan_reads_nospill): ... this.
23350 (scan_stores_spill, scan_reads_spill): Remove.
23351 (dse_step3_scan): Remove for_spills argument which is always false.
23352 (dse_step3): Likewise.
23353 (dse_step5): Rename from ...
23354 (dse_step5_nospill): ... this. Remove alias_set handling.
23355 (rest_of_handle_dse): Adjust.
23357 2016-04-05 Jakub Jelinek <jakub@redhat.com>
23360 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
23361 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
23362 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
23363 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
23365 2016-04-05 Richard Biener <rguenther@suse.de>
23367 PR middle-end/70499
23368 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
23369 non-register type temporaries into SSA.
23371 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
23374 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
23375 calls when sanitizing.
23376 (possible_polymorphic_call_target_p): Fix formatting.
23378 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23379 Jakub Jelinek <jakub@redhat.com>
23381 PR middle-end/70457
23382 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
23383 to ensure a call statement is compatible with a built-in's
23385 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
23388 2016-04-04 Richard Biener <rguenther@suse.de>
23390 PR rtl-optimization/70484
23391 * rtl.h (canon_output_dependence): Declare.
23392 * alias.c (canon_output_dependence): New function.
23393 * dse.c (record_store): Use canon_output_dependence rather
23394 than canon_true_dependence.
23396 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
23399 * cgraph.h (symtab_node::copy_visibility_from): New function.
23400 * symtab.c (symtab_node::copy_visibility_from): New function.
23401 * ipa-visibility.c (optimize_weakref): New function.
23402 (function_and_variable_visibility): Use it.
23404 2016-04-04 Martin Liska <mliska@suse.cz>
23407 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
23408 value that is really in range handled by SBR instruction.
23409 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
23410 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
23411 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
23413 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
23417 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
23418 set, but not for SP_REG operands.
23420 2016-04-02 Martin Sebor <msebor@redhat.com>
23423 * fold-const.c (maybe_nonzero_address): New function.
23424 (fold_comparison): Call it. Fold equality and relational
23425 expressions involving null pointers.
23426 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
23428 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
23430 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
23431 the "Y" constraint (scalar FP 0.0 immediate).
23433 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
23434 Add the "const_double" to the list of operand constraints.
23436 2016-04-01 Jakub Jelinek <jakub@redhat.com>
23438 PR rtl-optimization/70467
23439 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
23440 If low word of the last operand is 0, just emit addition/subtraction
23443 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23446 * config/s390/s390.c (s390_expand_insv): Check for everything
23447 constant instead of just VOIDmode stuff.
23449 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23452 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
23454 2016-04-01 Nathan Sidwell <nathan@acm.org>
23456 * tree.def (TRY_CATCH_EXPR): Correct documentation.
23458 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
23460 PR rtl-optimization/70461
23461 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
23464 2016-03-31 Martin Liska <mliska@suse.cz>
23467 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
23468 a tree value or an immediate integer value to a buffer
23469 that is eventually copied to a BRIG section.
23470 (emit_immediate_operand): Call the function here.
23471 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
23472 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
23473 of class' fields that are removed.
23474 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
23475 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
23476 m_brig_repr_size fields.
23478 2016-03-31 Martin Liska <mliska@suse.cz>
23481 * hsa-gen.c (hsa_function_representation::update_dominance): New
23483 (convert_addr_to_flat_segment): Likewise.
23484 (gen_hsa_memory_set): New alignment argument.
23485 (gen_hsa_ctor_assignment): Likewise.
23486 (gen_hsa_insns_for_single_assignment): Provide alignment
23487 to gen_hsa_ctor_assignment.
23488 (gen_hsa_insns_for_direct_call): Add new argument.
23489 (expand_lhs_of_string_op): New function.
23490 (expand_string_operation_builtin): Likewise.
23491 (expand_memory_copy): New function.
23492 (expand_memory_set): New function.
23493 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
23494 (convert_switch_statements): Change signature.
23495 (generate_hsa): Use a return value of the function.
23496 (pass_gen_hsail::execute): Do not call
23497 convert_switch_statements here.
23498 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
23499 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
23500 (hsa_function_representation::update_dominance): New function.
23502 2016-03-31 Martin Liska <mliska@suse.cz>
23505 * hsa-brig.c (emit_directive_variable): Emit alignment
23506 according to hsa_symbol::m_align.
23507 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
23508 (dump_hsa_symbol): Dump alignment of HSA symbols.
23509 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
23510 (gen_hsa_addr_with_align): New function.
23511 (hsa_bitmemref_alignment): Use newly added function.
23512 (gen_hsa_insns_for_load): Likewise.
23513 (gen_hsa_insns_for_store): Likewise.
23514 (gen_hsa_memory_copy): New argument added.
23515 (gen_hsa_insns_for_single_assignment): Respect
23516 alignment for assignments processed via gen_hsa_memory_copy.
23517 (gen_hsa_insns_for_direct_call): Likewise.
23518 (gen_hsa_insns_for_return): Likewise.
23519 (gen_function_def_parameters): Set default alignment.
23520 * hsa.c (hsa_object_alignment): New function.
23521 (hsa_byte_alignment): Pasted function.
23522 * hsa.h (hsa_symbol::m_align): New field.
23524 2016-03-31 Bin Cheng <bin.cheng@arm.com>
23526 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
23527 scratch field for goto case.
23529 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
23531 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
23533 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
23536 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
23537 (scalar_chain::convert_insn): Call convert_op for reg
23538 moves to handle undefined registers.
23540 2016-03-31 Nathan Sidwell <nathan@acm.org>
23543 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
23544 Assert we don't want to move backwards.
23546 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
23549 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
23551 2016-03-31 Jakub Jelinek <jakub@redhat.com>
23553 PR rtl-optimization/70460
23554 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
23555 with operand from REG_LABEL_OPERAND, instead substitute
23556 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
23557 Don't do anything for REG_NON_LOCAL_GOTO jumps.
23559 2016-03-31 Martin Liska <mliska@suse.cz>
23561 * passes.c (execute_one_pass): Do not call
23562 todo_after for a discarded function.
23564 2016-03-31 Bin Cheng <bin.cheng@arm.com>
23566 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
23567 (no_cost, infinite_cost): Initialize the new field.
23568 (get_computation_cost_at): Record setup cost.
23569 (determine_use_iv_cost_address): Skip cost computation for sub
23570 uses if we can estimate it without losing accuracy.
23572 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
23574 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
23576 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
23577 max_loop_iterations_int.
23578 (tree_unswitch_outer_loop): Likewise.
23579 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
23580 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
23582 2016-03-30 Richard Biener <rguenther@suse.de>
23584 PR middle-end/70450
23585 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
23587 2016-03-30 Jakub Jelinek <jakub@redhat.com>
23590 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
23591 in gen_blendm expander.
23593 2016-03-30 Nick Clifton <nickc@redhat.com>
23596 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
23597 case where we are already provided with an SImode SUBREG.
23599 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
23602 * config/i386/i386.c (ix86_expand_epilogue): Properly check
23603 conflict between DRAP register and __builtin_eh_return.
23605 2016-03-30 Michael Matz <matz@suse.de>
23606 Richard Biener <rguenther@suse.de>
23609 * ipa-polymorphic-call.c (struct type_change_info): Change
23610 speculative to an unsigned allowing to limit the work we do.
23611 (csftc_abort_walking_p): New inline function..
23612 (check_stmt_for_type_change): Limit the number of may-defs
23613 skipped for speculative devirtualization to
23614 max-speculative-devirt-maydefs.
23615 * params.def (max-speculative-devirt-maydefs): New param.
23616 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
23618 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
23621 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
23624 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
23626 PR tree-optimization/59124
23627 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
23628 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
23630 2016-03-29 Jeff Law <law@redhat.com>
23632 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
23634 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23636 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
23639 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
23641 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
23642 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
23643 gcrt0.o if linking dynamically.
23645 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
23648 * ipa-devirt.c (methods_equal_p): New function.
23649 (compare_virtual_tables): Use it.
23650 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
23651 * cgraphclones.c (clone_function_name_1): Use
23652 symbol_table::symbol_suffix_separator.
23653 * coverage.c (build_var): Likewise.
23654 * symtab.c (symbol_table::symbol_suffix_separator): New.
23656 2016-03-29 Jakub Jelinek <jakub@redhat.com>
23658 PR rtl-optimization/70429
23659 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
23660 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
23661 mode != result_mode.
23664 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
23666 PR tree-optimization/70405
23667 * ssa-iterators.h (num_imm_uses): Add missing braces.
23669 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
23671 PR rtl-optimization/68695
23672 * ira-color.c (allocno_copy_cost_saving): New.
23673 (improve_allocation): Use it.
23675 2016-03-29 Richard Henderson <rth@redhat.com>
23677 PR middle-end/70355
23678 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
23680 2016-03-29 Richard Biener <rguenther@suse.de>
23682 PR middle-end/70424
23683 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
23684 use alignment returned by get_pointer_alignment_1 if it is
23685 bigger than BITS_PER_UNIT.
23686 * builtins.c (get_pointer_alignment_1): Do not return true
23687 for alignment extracted from SSA info.
23689 2016-03-28 James Bowman <james.bowman@ftdichip.com>
23691 * config/ft32/ft32.opt (mnodiv): New.
23692 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
23693 * doc/invoke.texi (FT32 Options -mnodiv): New.
23695 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
23698 * config/i386/i386.md (define_split, andn): Fix modes.
23700 2016-03-26 Richard Biener <rguenther@suse.de>
23701 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23704 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
23706 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
23707 as 2nd argument to cl_optimization_restore().
23709 2016-03-25 Richard Henderson <rth@redhat.com>
23712 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
23713 * config/aarch64/aarch64-protos.h: Declare it.
23714 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
23716 2016-03-25 Alan Modra <amodra@gmail.com>
23719 * config/rs6000/constraints.md (j): Simplify.
23720 * config/rs6000/predicates.md (easy_fp_constant): Exclude
23722 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
23723 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
23724 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
23725 in all constraint alternatives.
23726 (movtd_64bit_nodm): Delete "j" constraint alternative.
23728 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
23730 * tree-ssa-propagate.c: Enhance docs for
23731 SSA_PROP_NOT_INTERESTING.
23733 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
23735 * doc/extend.texi: Fix typo in documentation to pure attribute.
23737 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
23740 * config/pa/pa.md (bswapdi2): Use a scratch register.
23742 2016-03-24 Richard Henderson <rth@redhat.com>
23744 PR middle-end/69845
23745 * fold-const.c (extract_muldiv_1): Correct test for multiplication
23748 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
23750 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
23751 using ix86_expand_binary_operator instead of gen_andsi3.
23753 2016-03-24 Richard Biener <rguenther@suse.de>
23755 PR tree-optimization/70396
23756 * tree-vect-stmts.c (vectorizable_comparison): Use
23757 get_vectype_for_scalar_type.
23759 2016-03-24 Richard Biener <rguenther@suse.de>
23761 PR middle-end/70370
23762 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
23763 with register bases.
23765 2016-03-24 Richard Biener <rguenther@suse.de>
23767 PR tree-optimization/70372
23768 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
23769 build_all_ones_cst to also handle vector types correctly.
23771 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
23774 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
23777 2016-03-23 Marek Polacek <polacek@redhat.com>
23780 * doc/invoke.texi: Document -Wignored-attributes.
23782 2016-03-23 Bin Cheng <bin.cheng@arm.com>
23784 PR tree-optimization/69042
23785 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
23786 parameter from 30 to 40.
23788 2016-03-23 Bin Cheng <bin.cheng@arm.com>
23790 PR tree-optimization/69042
23791 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
23792 for use with constant offset stripped in base.
23794 2016-03-23 Richard Biener <rguenther@suse.de>
23796 PR middle-end/70251
23797 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
23798 mode compatibility check.
23799 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
23801 2016-03-23 Jeff Law <law@redhat.com>
23803 PR tree-optimization/64058
23804 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
23806 (struct ssa_conflicts): Move up earlier in the file.
23807 (conflicts_, var_map_): New static variables.
23808 (initialize_conflict_count): New function to initialize the
23809 CONFLICT_COUNT field for each conflict pair.
23810 (compare_pairs): Lazily initialize the conflict count and use it
23811 as the first tie-breaker.
23812 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
23813 and wipe conflicts_ and map_ around the call to qsort. Remove
23814 special case for 2 coalesce pairs.
23815 * bitmap.c (bitmap_count_unique_bits): New function.
23816 (bitmap_count_bits_in_word): New function, extracted from
23818 (bitmap_count_bits): Use bitmap_count_bits_in_word.
23819 * bitmap.h (bitmap_count_unique_bits): Declare it.
23821 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
23824 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
23825 transparent alias chain for decl assembler name.
23826 * config/sol2.c (solaris_assemble_visibility): Likewise.
23828 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23830 * config/arm/arm1020e.md (1020call_op): Reduce reservation
23832 (v10_fdivs): Likewise.
23833 (v10_fdivd): Likewise.
23835 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23838 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
23839 to not call fclose twice on file.
23841 2016-03-23 Jakub Jelinek <jakub@redhat.com>
23843 PR tree-optimization/70354
23844 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
23845 oprnd0 is wider than oprnd1 and there is a cast from the wider
23846 type to oprnd1, mask it with the mask of the narrower type.
23849 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
23850 Optimize TARGET_STV splitters, if high or low word of last argument
23853 2016-03-22 Jeff Law <law@redhat.com>
23856 tree-ssa-threadbackward.c
23857 (fsm_find_control_statement_thread_paths): Correctly distinguish
23858 between old style jump threads vs FSM jump threads.
23860 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
23863 * config/i386/i386.c (scalar_chain::convert_op): Support
23864 uninitialized register usage case.
23866 2016-03-22 Richard Biener <rguenther@suse.de>
23868 PR middle-end/70251
23869 * genmatch.c (gen_transform): Adjust last parameter to a three-state
23871 (capture::gen_transform): ... to change behavior when substituting
23872 a condition into cond or not-cond expr context.
23873 (dt_simplify::gen_1): Adjust.
23874 * gimple-match-head.c: Include gimplify.h for unshare_expr.
23875 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
23876 last change and instead change to
23877 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
23878 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
23880 2016-03-22 Anthony Green <green@moxielogic.com>
23882 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
23883 issue for moxiebox targets.
23884 (CC1PLUS_SPEC): Ditto.
23886 2016-03-22 Richard Biener <rguenther@suse.de>
23888 PR middle-end/70333
23889 * fold-const.c (extract_muldiv_1): Properly perform multiplication
23892 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
23894 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
23896 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
23899 * config/i386/i386.c (def_builtin): Handle
23900 OPTION_MASK_ISA_AVX512VL to be and-ed with other
23902 (const struct builtin_description bdesc_special_args[]):
23903 Remove duplicate ISA bits.
23905 2016-03-22 Jakub Jelinek <jakub@redhat.com>
23908 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
23909 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
23910 in a way that works also for AVX512BW.
23913 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
23914 instead of source if operands[1] is xmm16 and above and
23915 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
23916 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
23919 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
23920 on assign if (*from_p) is a comparison, set it to
23921 TREE_NO_WARNING (*from_p).
23923 2016-03-21 Jakub Jelinek <jakub@redhat.com>
23925 PR middle-end/70326
23926 * lra.c (restore_scratches): Ignore deleted insns.
23928 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
23929 Jakub Jelinek <jakub@redhat.com>
23931 PR tree-optimization/70317
23932 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
23935 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
23938 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
23939 of ix86_expand_move.
23941 (movti): Use general_operand for operand 1 predicate.
23943 2016-03-21 Martin Liska <mliska@suse.cz>
23945 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
23947 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
23949 2016-03-21 Martin Liska <mliska@suse.cz>
23952 * ipa-icf.c (sem_function::parse): Skip static
23953 constructors and destructors.
23955 2016-03-21 Jakub Jelinek <jakub@redhat.com>
23958 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
23959 function-like macro, peek following token(s) if it is followed
23960 by CPP_OPEN_PAREN token with optional padding in between, and
23961 if not, don't treat it like a macro.
23963 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
23964 Alexander Monakov <amonakov@ispras.ru>
23966 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
23967 for the stabs debug format.
23969 2016-03-21 Richard Biener <rguenther@suse.de>
23971 PR tree-optimization/70310
23972 * tree-vect-generic.c (expand_vector_condition): Fold the built
23975 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
23978 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
23979 Block third alternative for AVX-512VL target,
23981 2016-03-21 Martin Liska <mliska@suse.cz>
23984 * hsa-brig.c (emit_function_directives): Mark unemitted
23985 global variables for emission.
23986 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
23987 (get_symbol_for_decl): Likewise.
23988 * hsa.h (struct hsa_symbol): New flag.
23990 2016-03-21 Richard Biener <rguenther@suse.de>
23992 PR tree-optimization/70288
23993 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
23994 we do not estimate unsimplified all-constant conditionals or
23995 switches as optimized away.
23997 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
23999 PR rtl-optimization/69102
24000 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
24001 when we have a readonly dependency context.
24003 2016-03-18 Jeff Law <law@redhat.com>
24005 PR rtl-optimization/70263
24006 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
24007 (update_equiv_regs): When trying to move a store to after the insn
24008 that sets the source of the store, make sure the store occurs after
24009 the insn that sets the source of the store. When successful note
24010 the REG_EQUIV note created in the dump file.
24012 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
24013 Bernd Schmidt <bschmidt@redhat.com>
24015 * doc/extend.texi: Document more potential problems with basic asms.
24017 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
24019 PR rtl-optimization/70278
24020 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
24023 2016-03-18 Jason Merrill <jason@redhat.com>
24025 * calls.c (load_register_parameters): Fix zero size sibcall logic.
24027 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
24029 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
24030 values to 128b regs.
24032 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24034 PR tree-optimization/70252
24035 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
24036 boolean vector has a proper number of elements.
24037 (supportable_narrowing_operation): Likewise.
24039 2016-03-18 Tom de Vries <tom@codesourcery.com>
24042 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
24044 2016-03-18 Jakub Jelinek <jakub@redhat.com>
24046 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
24047 instead of replace_rtx for DEBUG_INSNs.
24049 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24051 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
24052 load type reservations.
24054 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
24057 * config/pa/constraints.md: Revert 2015-02-13 change. Use
24058 define_constraint for "Q" and "T" constraints.
24060 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
24062 Tweak the pipeline model for Exynos M1
24064 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
24067 2016-03-17 David Malcolm <dmalcolm@redhat.com>
24070 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
24071 where one or both locations aren't within a line_map.
24073 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
24076 * opts.c (finish_options): Don't set flag_pie to the default if
24077 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
24080 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
24082 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
24083 true as ALL_REGS argument to replace_rtx.
24085 2016-03-17 Richard Biener <rguenther@suse.de>
24088 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
24091 2016-03-17 Jakub Jelinek <jakub@redhat.com>
24094 * rtl.h (replace_rtx): Add ALL_REGS argument.
24095 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
24096 equality and assert mode is the same, instead of just rtx pointer
24098 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
24099 true as ALL_REGS argument to replace_rtx.
24101 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
24103 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
24104 for boolean vector with vector mode only.
24105 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
24107 2016-03-17 Nick Clifton <nickc@redhat.com>
24110 * config/rx/rx.c (rx_print_integer): Print negative constants in
24113 2016-03-17 Jakub Jelinek <jakub@redhat.com>
24116 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
24118 2016-03-16 Richard Henderson <rth@redhat.com>
24119 Richard Biener <rguenth@suse.de>
24121 PR middle-end/70240
24122 PR middle-end/68215
24124 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
24125 first operand as is_gimple_condexpr.
24127 PR middle-end/70240
24128 PR middle-end/68215
24130 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
24131 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
24132 Do not gimplify the result.
24133 (do_unop): Adjust call to tree_vec_extract.
24134 (do_binop): Likewise.
24135 (do_compare): Likewise.
24136 (do_plus_minus): Likewise.
24137 (do_negate): Likewise.
24138 (expand_vector_condition): Likewise.
24139 (do_cond): Likewise.
24141 2016-03-16 Richard Henderson <rth@redhat.com>
24144 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
24145 (aarch64_classify_address): Use it.
24146 (aarch64_legitimize_address): Force all subexpressions of PLUS
24147 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
24149 2016-03-16 Jakub Jelinek <jakub@redhat.com>
24150 Richard Biener <rguenth@suse.de>
24153 * rtlanal.c (replace_rtx): For REG, if from is a REG,
24154 return to even if only REGNO is equal, and assert
24157 2016-03-11 Jeff Law <law@redhat.com>
24159 PR rtl-optimization/70224
24160 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
24162 2016-03-16 Richard Henderson <rth@redhat.com>
24164 PR middle-end/70199
24165 * function.h (struct function): Add has_forced_label_in_static.
24166 * gimplify.c (force_labels_r): Set it.
24167 * lto-streamer-in.c (input_struct_function_base): Read it.
24168 * lto-streamer-out.c (output_struct_function_base): Write it.
24169 * tree-inline.c (has_label_address_in_static_1): Remove.
24170 (copy_forbidden): Remove fndecl parameter; test
24171 has_forced_label_in_static.
24172 (inline_forbidden_p): Update call to copy_forbidden.
24173 (tree_versionable_function_p): Likewise.
24174 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
24175 (chkp_versioning): Likewise.
24176 * tree-inline.h (copy_forbidden): Update decl.
24178 2016-03-16 Marek Polacek <polacek@redhat.com>
24181 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
24182 function being thunked if the result type doesn't have fixed size.
24183 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
24184 doesn't have fixed size.
24186 2016-03-16 Bin Cheng <bin.cheng@arm.com>
24188 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
24189 reporting malformed loop nest.
24191 2016-03-16 Tom de Vries <tom@codesourcery.com>
24194 * ipa-devirt.c (possible_polymorphic_call_targets): Move
24195 nodes.length () == 1 test to before first nodes[0] access.
24197 2016-03-16 Tom de Vries <tom@codesourcery.com>
24199 PR tree-optimization/68715
24200 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
24201 single_pred_p test.
24203 2016-03-16 Tom de Vries <tom@codesourcery.com>
24205 PR tree-optimization/68809
24206 * graphite-scop-detection.c (same_close_phi_node): Test if result types
24209 2016-03-16 Carlos O'Donell <carlos@redhat.com>
24210 Sandra Loosemore <sandra@codesourcery.com>
24212 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
24213 on leaf attribute. Mention ELF interposition problems.
24215 2016-03-16 Alan Modra <amodra@gmail.com>
24217 PR rtl-optimization/69195
24218 PR rtl-optimization/47992
24219 * ira.c (indirect_jump_optimize): Ignore artificial defs.
24222 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
24225 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
24227 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24229 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
24231 2016-03-15 Jakub Jelinek <jakub@redhat.com>
24233 PR rtl-optimization/70222
24234 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
24235 optimization if mode is different from result_mode, queue up masking
24236 of the result in outer_op. Formatting fix.
24238 PR middle-end/70239
24239 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
24242 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
24244 PR rtl-optimization/69032
24245 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
24246 looping backwards over basic block insns.
24248 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
24251 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
24252 to non-speculative when propagating trap bits.
24254 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
24256 PR rtl-optimization/63384
24257 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
24258 DEBUG_INSN_P insns.
24260 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
24263 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
24264 factored out from ...
24265 (sched_analyze_insn): ... here.
24266 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
24267 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
24268 get_implicit_reg_pending_clobbers in it.
24269 (setup_id_reg_sets): Use setup_id_implicit_regs.
24270 (deps_init_id): Ditto.
24272 2016-03-15 Tom de Vries <tom@codesourcery.com>
24275 * cgraph.c (cgraph_node::get_body): Save, reset and restore
24277 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
24278 execute_function_dump.
24279 (execute_one_pass): Don't dump function if it will be dumped after ipa
24282 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
24284 * genrecog.c (match_pattern_2): If pred is NULL don't call
24285 safe_predicate_mode on it.
24287 2016-03-14 Jakub Jelinek <jakub@redhat.com>
24289 PR middle-end/70219
24290 * lra-constraints.c (delete_move_and_clobber): Change assertion
24291 to also allow dregno == 0.
24293 2016-03-14 Richard Henderson <rth@redhat.com>
24296 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
24297 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
24298 (reassociate_bb): Use optimize_vec_cond_expr; avoid
24299 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
24302 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
24305 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
24307 (lra_create_live_ranges_1): initialize hard register biggest_mode to
24309 * lra-constraints.c (split_reg): For hard regs, try to find the
24310 biggest single-register mode used in the function.
24312 2016-03-14 Richard Biener <rguenther@suse.de>
24314 PR tree-optimization/56365
24315 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
24316 constants to compare against.
24318 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
24321 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
24322 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
24323 (define_split for the GPR case): Use int_reg_operand instead of
24324 gpc_reg_operand for the output.
24326 2016-03-14 Tom de Vries <tom@codesourcery.com>
24328 PR tree-optimization/70045
24329 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
24330 create_empty_if_region_on_edge argument.
24332 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
24334 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
24335 (STACK_CHECK_PROTECT): Likewise.
24336 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
24337 (STACK_CHECK_PROTECT): Likewise.
24338 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
24339 (STACK_CHECK_PROTECT): Likewise.
24340 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
24341 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
24342 (STACK_CHECK_PROTECT): Likewise.
24344 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
24346 PR rtl-optimization/69307
24347 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
24348 registers in modes that span more than one register.
24350 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
24353 * lra-constraints.c (delete_move_and_clobber): New.
24354 (remove_inheritance_pseudos): Use it.
24356 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
24359 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
24360 the libcall is LCT_THROW.
24361 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
24362 for the checking routine.
24364 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24367 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
24368 optimization if we have direct move.
24369 (roundu32<mode>2_fprs): Likewise.
24371 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
24374 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
24376 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
24377 Arguments swapped. All callers changed. Take reg_renumber into
24378 account, and Calculate and compare register ranges for hard regs.
24380 2016-03-11 Jeff Law <law@redhat.com>
24382 PR tree-optimization/70190
24383 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24384 Handle cases where we can not extract the taken edge, even though we
24385 found a constant value.
24387 PR tree-optimization/64058
24388 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
24389 (num_coalesce_pairs): Move up earlier in file.
24390 (find_coalesce_pair): Initialize the INDEX field for each pair
24392 (compare_pairs): No longer sort on the elements in each pair.
24393 Instead break ties with the index of the coalesce pair.
24395 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24398 * config/aarch64/aarch64-protos.h
24399 (aarch64_save_restore_target_globals): New prototype.
24400 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
24401 Call the above when popping pragma.
24402 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
24404 (aarch64_set_current_function): Rewrite using the above.
24406 2016-03-11 Jakub Jelinek <jakub@redhat.com>
24408 PR tree-optimization/70177
24409 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
24410 (extract_ops_from_tree): ... this. In the 2 argument
24411 overload remove _1 suffix.
24412 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
24413 (extract_ops_from_tree): ... this.
24414 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
24416 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
24417 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
24418 extract_ops_from_tree instead of 2 operand one.
24420 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
24422 PR tree-optimization/70013
24423 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
24424 for constant-pool entries.
24426 2016-03-11 Jakub Jelinek <jakub@redhat.com>
24428 PR rtl-optimization/70174
24429 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
24430 followed by gen_lowpart on force_reg instead of just gen_lowpart.
24432 PR tree-optimization/70169
24433 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
24434 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
24437 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
24438 Jakub Jelinek <jakub@redhat.com>
24441 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
24442 of uninitialized values.
24444 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24446 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
24448 ("*trunctddd2"): New pattern definition.
24449 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
24452 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24454 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
24455 definitions for BFP and DFP rounding modes.
24456 ("fixuns_truncdddi2", "fixuns_trunctddi2")
24457 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
24458 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
24459 ("fix_trunctf<mode>2"): Use the new constants instead of magic
24462 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24464 * config/s390/constraints.md: Adjust comment.
24465 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
24466 s390_decompose_addrstyle_without_index.
24467 * config/s390/predicates.md (shift_count_or_setmem_operand):
24468 Rename to setmem_operand.
24469 * config/s390/s390-protos.h
24470 (s390_decompose_shift_count): Rename to
24471 s390_decompose_addrstyle_without_index.
24472 * config/s390/s390.c (s390_decompose_shift_count)
24473 (s390_mem_constraint, print_shift_count_operand)
24474 (print_operand_address, print_operand): Rename
24475 s390_decompose_shift_count to
24476 s390_decompose_addrstyle_without_index and rename
24477 print_shift_count_operand to print_addrstyle_operand troughout the
24479 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
24480 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
24481 Rename shift_count_or_setmem_operand to setmem_operand.
24482 * config/s390/vx-builtins.md ("vec_insert<mode>")
24483 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
24486 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24489 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
24490 Handle overlapping retval and newval.
24492 2016-03-10 Nick Clifton <nickc@redhat.com>
24495 * config/aarch64/aarch64.c
24496 (aarch64_override_options_after_change_1): When forcing
24497 flag_omit_frame_pointer to be true, use a special value that can
24498 be detected if this function is called again, thus preventing
24499 flag_omit_leaf_frame_pointer from being forced to be false.
24501 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24503 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
24504 Set x_flag_omit_leaf_frame_pointer when handling
24505 -momit-leaf-frame-pointer.
24507 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
24510 * cgraph.c (cgraph_node::dump): Dump split_part and
24511 indirect_call_target.
24512 * cgraph.h (cgraph_node): Add indirect_call_target flag.
24513 * ipa.c (has_addr_references_p): Cleanup.
24514 (is_indirect_call_target_p): New.
24515 (walk_polymorphic_call_targets): Do not mark virtuals that may be
24516 called indirectly as local.
24517 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
24519 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
24522 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
24523 on cxa_pure_virtual.
24525 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
24528 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
24530 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
24533 * tree.c (need_assembler_name_p): Only record main variant type names.
24535 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
24538 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
24539 Always define to 0 or 1.
24540 (TARGET_FIX_ERR_A53_843419): New macro.
24541 * config/aarch64/aarch64-elf-raw.h
24542 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
24543 * config/aarch64/aarch64-linux.h: Likewise.
24544 * config/aarch64/aarch64.c
24545 (aarch64_override_options_after_change_1): Do not default
24546 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
24548 (aarch64_attributes): Handle fix-cortex-a53-843419.
24549 (aarch64_can_inline_p): Likewise.
24550 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
24552 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
24553 Jakub Jelinek <jakub@redhat.com>
24555 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
24556 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
24557 DECL_COMMONS if flag_unconstrained_commons is set.
24558 * tree-dfa.c (get_ref_base_and_extent): Likewise.
24559 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
24560 (funconstrained-commons): Document.
24562 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
24564 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
24565 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
24567 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
24569 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
24570 has a proper number of elements.
24572 2016-03-10 Alan Modra <amodra@gmail.com>
24574 PR rtl-optimization/69195
24575 PR rtl-optimization/47992
24576 * ira.c (recorded_label_ref): Delete.
24577 (update_equiv_regs): Return void.
24578 (indirect_jump_optimize): New function.
24579 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
24580 before regstat_compute_ri. Don't rebuild_jump_labels here.
24581 Delete update_regstat.
24583 2016-03-10 Richard Biener <rguenther@suse.de>
24585 PR tree-optimization/70128
24586 * tree-ssa-structalias.c (set_uids_in_ptset): Set
24587 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
24589 2016-03-09 Jakub Jelinek <jakub@redhat.com>
24591 PR tree-optimization/70152
24592 * tree-sra.c (replace_removed_params_ssa_names): Copy over
24593 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
24596 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
24597 instead of gen_sse2_loadlpd.
24598 * config/i386/sse.md (*vec_concatv2df): Rename to...
24599 (vec_concatv2df): ... this.
24601 PR tree-optimization/70127
24602 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
24604 2016-03-09 David Malcolm <dmalcolm@redhat.com>
24608 * diagnostic-show-locus.c (compatible_locations_p): New function.
24609 (layout::layout): Sanitize ranges using compatible_locations_p.
24611 2016-03-09 David Malcolm <dmalcolm@redhat.com>
24615 * diagnostic-show-locus.c (layout_range::layout_range): Replace
24616 location_range param with three const expanded_locations * and a
24618 (layout::layout): Replace call to
24619 rich_location::lazily_expand_location with get_expanded_location.
24620 Extract the range and perform location expansion here, passing
24621 the results to the layout_range ctor.
24622 * diagnostic.c (source_range::debug): Delete.
24623 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
24624 of rich_location::get_expanded_location.
24625 * gcc-rich-location.c (get_range_for_expr): Delete.
24626 (gcc_rich_location::add_expr): Reimplement to avoid the
24627 rich_location::add_range overload that took a location_range,
24628 passing a location_t instead.
24630 2016-03-09 Richard Biener <rguenther@suse.de>
24631 Jakub Jelinek <jakub@redhat.com>
24633 PR tree-optimization/70138
24634 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
24635 Also skip vect_double_reduction_def.
24637 2016-03-09 Jakub Jelinek <jakub@redhat.com>
24640 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
24641 if the operand is "m".
24643 2016-03-09 Nathan Sidwell <nathan@acm.org>
24645 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
24647 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24649 * config/i386/i386.c (processor_target_table): Fix cost table
24650 intialization order for znver1.
24652 2016-03-08 Jakub Jelinek <jakub@redhat.com>
24654 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
24655 - becuase -> because.
24656 * ipa-reference.c (ignore_module_statics): Likewise.
24657 * cgraph.c (cgraph_node::get_body): Likewise.
24658 * ipa-inline.c (early_inliner): Likewise.
24659 * ipa-devirt.c (types_same_for_odr): Likewise.
24660 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
24661 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
24663 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24665 * tree-ssa-math-opts.c: Fix typo in comment.
24667 2016-03-08 Jakub Jelinek <jakub@redhat.com>
24670 * config/i386/i386.c (scalar_chain::make_vector_copies,
24671 scalar_chain::convert_reg): Call end_sequence in between
24672 get_insns and emit_conversion_insns rather than after both
24675 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
24678 * config/i386/i386.h (machine_function): Add
24679 pc_thunk_call_expanded flag.
24680 (ix86_pc_thunk_call_expanded): New define.
24681 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
24682 (*set_got): Rename insn pattern from set_got.
24683 (*set_got_labelled): Rename inst pattern from set_got_labelled.
24684 * config/i386/i386.c (ix86_compute_frame_layout): Use
24685 ix86_pc_thunk_call_expanded to prevent red-zone.
24687 2016-03-07 Martin Jambor <mjambor@suse.cz>
24689 * hsa.h (hsa_get_ctor_statements): Declare.
24690 (hsa_get_dtor_statements): Likewise.
24691 (hsa_get_kernel_dispatch_type): Likewise.
24692 * hsa.c (hsa_get_ctor_statements): New function.
24693 (hsa_get_dtor_statements): Likewise.
24694 (hsa_get_kernel_dispatch_type): Likewise.
24695 * hsa-brig.c (hsa_cdtor_statements): Removed.
24696 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
24697 hsa_get_dtor_statements.
24698 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
24699 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
24701 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
24703 * config/arm/arm-cores.def (cortex-r8): New.
24704 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
24705 * config/arm/arm-tune.md: Likewise.
24706 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
24708 2016-03-07 Martin Sebor <msebor@redhat.com>
24710 PR rtl-optimization/19705
24711 * doc/invoke.texi (Options That Control Optimization): Clarify
24712 -fno-branch-count-reg.
24714 2016-02-26 Richard Biener <rguenther@suse.de>
24715 Jeff Law <law@redhat.com>
24717 PR tree-optimization/69740
24718 * cfghooks.c (remove_edge): Request loop fixups if we delete
24719 an edge that might turn an irreducible loop into a natural
24721 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
24722 Move after definition of loops_state_clear.
24724 2016-03-07 Bin Cheng <bin.cheng@arm.com>
24726 PR rtl-optimization/69052
24727 * rtlanal.c (commutative_operand_precedence): Set higher precedence
24730 2016-03-07 Tom de Vries <tom@codesourcery.com>
24732 PR tree-optimization/70116
24733 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
24734 is_tm_ending stmts and ubsan/asan internal functions.
24735 (find_duplicate): Use it. Don't test is_tm_ending here.
24737 2016-03-07 Richard Biener <rguenther@suse.de>
24739 PR tree-optimization/70115
24740 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
24741 (propagate_constants_for_unrolling): Use replace_uses_by.
24743 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
24745 PR middle-end/69916
24746 * omp-low.c (struct oacc_loop): Add ifns.
24747 (new_oacc_loop_raw): Initialize it.
24748 (finish_oacc_loop): Clear mask & flags if no ifns.
24749 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
24750 (oacc_loop_xform_loop): Add ifns arg & adjust.
24751 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
24753 2016-03-07 Richard Henderson <rth@redhat.com>
24756 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
24757 (insert_value_copy_on_edge): Likewise.
24759 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24761 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
24763 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24766 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
24768 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
24770 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
24772 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
24774 Fix sseimul type attribute.
24775 * config/i386/znver1.md
24776 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
24777 znver1_sseimul_avx256_load) : Fix the type attribute.
24778 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
24779 pipe usage and latency.
24781 2016-03-05 Jakub Jelinek <jakub@redhat.com>
24784 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
24785 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
24788 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
24791 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
24793 PR rtl-optimization/69941
24794 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
24795 the reg share its mode.
24797 2016-03-04 Jeff Law <law@redhat.com>
24799 PR tree-optimization/69196
24800 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24801 If the both SSA_NAMEs are anonymous, then consider them unassociated
24802 and include the PHI in the statement count.
24804 2016-03-05 Tom de Vries <tom@codesourcery.com>
24806 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
24807 construct in oacc routine. Check for oacc region in oacc routine.
24809 2016-03-04 Jakub Jelinek <jakub@redhat.com>
24812 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
24813 2016-02-22 changes, instead don't recurse if RECUR is already true.
24814 Don't change *dynamic_check if RECUR. Adjust recursive caller
24815 to pass true to the new argument.
24816 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
24819 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
24820 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
24822 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
24824 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
24826 PR rtl-optimization/57676
24827 * lra-assigns.c (lra_assign): Guard test for maximum iterations
24828 with flag_checking.
24830 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
24832 * tree-vect-patterns.c (search_type_for_mask): Handle
24833 comparison of booleans.
24835 2016-03-04 Jakub Jelinek <jakub@redhat.com>
24837 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
24841 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
24842 all other ops that have dw_val_class_die_ref operands,
24843 and DW_OP_GNU_entry_value.
24845 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24847 PR rtl-optimization/69904
24848 * config/arm/arm.c (arm_cannot_copy_insn_p):
24849 Return true for load-exclusive instructions.
24851 2016-03-03 Jakub Jelinek <jakub@redhat.com>
24854 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
24855 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
24856 the pattern no matter if it is used just by non-pattern, pattern
24858 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
24859 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
24860 oprnd1 def_stmt is in pattern, don't look through it.
24862 2016-03-03 Marek Polacek <polacek@redhat.com>
24864 PR middle-end/70050
24865 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
24867 2016-03-03 Martin Liska <mliska@suse.cz>
24869 PR tree-optimization/70043
24870 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
24871 previous statement if we see a debug statement.
24873 2016-03-03 Richard Biener <rguenther@suse.de>
24875 PR tree-optimization/55936
24876 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
24877 parameter and guard unsafe equivalence use.
24878 (vrp_evaluate_conditional_warnv_with_ops): Always use
24879 safe equivalences but not via the quadratic compare_names
24882 2016-03-03 Michael Collison <michael.collison@linaro.org>
24885 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
24886 for operand 1 to s_register_operand. Change predicate for operand
24887 2 to arm_not_immediate_operand.
24889 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
24891 * doc/tm.texi: Regenerated.
24893 2016-03-02 Richard Henderson <rth@redhat.com>
24896 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
24897 simplification when all args are positive non-fixed registers.
24899 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24901 * target.def (lra_p): Specify that new ports should use LRA.
24903 2016-03-02 Jakub Jelinek <jakub@redhat.com>
24906 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
24907 gimplify_type_sizes the type they refer to.
24908 (omp_notice_variable): Handle reference vars to VLAs.
24909 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
24910 reference to VLA decls in the second pass instead of first pass.
24912 2016-03-02 Tom de Vries <tom@codesourcery.com>
24914 PR tree-optimization/68659
24915 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
24916 new_expr == NULL_TREE.
24917 (get_new_name): Handle ADDR_EXPR.
24919 2016-03-02 Bin Cheng <bin.cheng@arm.com>
24921 PR rtl-optimization/69052
24922 * loop-invariant.c (canonicalize_address): New function.
24923 (inv_can_prop_to_addr_use): Check validity of address expression
24924 which is canonicalized by above function.
24926 2016-03-02 Alan Modra <amodra@gmail.com>
24929 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
24932 2016-03-02 Jakub Jelinek <jakub@redhat.com>
24935 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
24936 (*movhi_internal): Put mask moves from and to memory separately
24937 from moves from/to GPRs.
24939 2016-03-02 Richard Biener <rguenther@suse.de>
24941 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
24942 GENERIC expressions in GIMPLE.
24944 2016-03-02 Richard Biener <rguenther@suse.de>
24946 * config/i386/i386.c (type_natural_mode): Fix typo.
24948 2016-03-02 Nick Clifton <nickc@redhat.com>
24950 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
24952 2016-03-02 Richard Biener <rguenther@suse.de>
24953 Uros Bizjak <ubizjak@gmail.com>
24956 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
24958 2016-03-02 Richard Biener <rguenther@suse.de>
24960 PR middle-end/67278
24961 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
24963 2016-03-02 Marek Polacek <polacek@redhat.com>
24966 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
24967 "is promoted to" warning.
24969 2016-03-01 DJ Delorie <dj@redhat.com>
24971 * config.gcc: Deprecate mep-*.
24973 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
24975 PR middle-end/70025
24976 * lra-constraints.c (regno_val_use_in): New.
24977 (match_reload): Use it instead of regno_use_in.
24979 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
24981 PR rtl-optimization/70007
24982 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
24983 references present in REG_EQUAL notes attached to non-SET patterns.
24985 2016-03-01 Jeff Law <law@redhat.com>
24987 PR tree-optimization/69196
24988 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24989 Appropriately clamp the number of statements to copy when the
24990 thread path does not traverse a loop backedge.
24992 PR tree-optimization/69196
24993 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24994 Do count some PHIs in the thread path against the insn count. Decrease
24995 final statement count by one as the control statement in the last
24996 block will get removed. Remove special cased code for handling PHIs
24999 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
25002 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
25003 asm dialect alternatives to explicit GOTPCREL calls.
25005 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
25008 * ira.c (do_reload): Issue warning for generic stack checking here...
25009 * reload1.c (reload): ...instead of here and streamline it.
25011 2016-03-01 Nick Clifton <nickc@redhat.com>
25013 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
25015 2016-03-01 Richard Biener <rguenther@suse.de>
25017 PR tree-optimization/69983
25018 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
25019 types and fall back to operand_equal_p.
25021 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25024 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25026 * config/s390/constraints.md ("jm8"): New constraint.
25027 * config/s390/predicates.md ("const_int_8bitset_operand"): New
25029 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
25031 ("*setmem_long<setmem_and>"): New pattern.
25032 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
25034 ("*setmem_long_31z<setmem_and>"): New pattern.
25035 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
25036 New substitution rules with the required attributes.
25039 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25042 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25044 * gensupport.c (process_substs_on_one_elem): Split loop to
25045 complete mark_operands_used_in_match_dup on all expressions in the
25047 (adjust_operands_numbers): Inline into process_substs_on_one_elem
25048 and remove function.
25050 2016-03-01 Richard Biener <rguenther@suse.de>
25052 PR middle-end/70022
25053 * fold-const.c (fold_indirect_ref_1): Fix range checking for
25054 vector BIT_FIELD_REF extract.
25056 2016-03-01 Richard Biener <rguenther@suse.de>
25058 PR tree-optimization/69994
25059 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
25061 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
25063 PR tree-optimization/69956
25064 * tree-vect-stmts.c (supportable_widening_operation): Support
25065 multi-step conversion of boolean vectors.
25066 (supportable_narrowing_operation): Likewise.
25068 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25070 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
25073 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25075 * config/s390/subst.md (DSI_VI): New mode iterator.
25076 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
25077 * config/s390/vector.md ("vec_set<mode>"): Move expander before
25078 the insn definition.
25079 ("*vec_set<mode>"): Change predicate and add alternative to
25080 support only either register or const_int operands as element
25082 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
25084 ("vec_extract<mode>"): New expander.
25085 ("*vec_extract<mode>"): New insn definition supporting reg and
25086 const_int element selectors.
25087 ("*vec_extract<mode>_plus"): New insn definition supporting
25088 reg+const_int element selectors.
25089 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
25090 following expander+insn definition.
25091 ("<vec_shifts_name><mode>3"): New expander.
25092 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
25094 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25096 * config/s390/s390.md ("*tabort_1"): Change predicate to
25097 nonmemory_operand. Add a second alternative to cover
25098 register as well as const int operands.
25099 ("*tabort_1_plus"): New pattern definition.
25101 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25103 * config/s390/s390.md ("*ashrdi3_cc_31")
25104 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
25105 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
25106 Merge insn definitions into ...
25107 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
25108 New pattern definition.
25109 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
25110 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
25111 ("*ashr<mode>3_and"): Merge insn definitions into ...
25112 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
25113 New pattern definition.
25114 * config/s390/subst.md ("addr_style_op_cc_subst")
25115 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
25116 substitutions patterns plus attributes.
25117 Add ashiftrt to SUBST iterator.
25119 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25121 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
25122 op2 to nonmemory_operand.
25123 ("*<shift>di3_31", "*<shift>di3_31_and"):
25124 Merge into single pattern definition ...
25125 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
25126 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
25127 pattern definition ...
25128 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
25129 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
25132 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25134 * config/s390/predicates.md (const_int_6bitset_operand): New
25136 * config/s390/s390.md: Include subst.md.
25137 ("rotl<mode>3"): New expander.
25138 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
25140 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
25141 * config/s390/subst.md: New file.
25143 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25145 * config/s390/s390.md ("op_type", "atype", "length" attributes):
25146 Remove RRR type. It doesn't really exist.
25147 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
25149 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
25150 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
25151 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
25152 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
25153 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
25154 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
25155 `enabled' attribute.
25157 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25159 * gensupport.c (process_substs_on_one_elem): Split loop to
25160 complete mark_operands_used_in_match_dup on all expressions in the
25162 (adjust_operands_numbers): Inline into process_substs_on_one_elem
25163 and remove function.
25165 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
25168 * config/sparc/sparc.c (NWORDS_UP): Rename to...
25169 (CEIL_NWORDS): ...this. Use CEIL macro.
25170 (compute_fp_layout): Adjust to above renaming.
25171 (function_arg_union_value): Likewise.
25172 (sparc_arg_partial_bytes): Likewise.
25173 (sparc_function_arg_advance): Likewise.
25175 2016-02-29 Jeff Law <law@redhat.com>
25177 PR tree-optimization/70005
25178 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
25179 where an object with a boolean range is compared against a value
25182 PR tree-optimization/69999
25183 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
25184 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
25187 2016-02-29 Richard Biener <rguenther@suse.de>
25189 PR tree-optimization/69994
25190 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
25191 (get_unary_op): Look through nop conversions.
25192 (ops_equal_values_p): New function, look for equality diregarding
25194 (eliminate_plus_minus_pair): Use ops_equal_values_p
25195 (repropagate_negates): Do not use get_unary_op here.
25197 2016-02-29 Martin Liska <mliska@suse.cz>
25199 * system.h: Poison ENABLE_CHECKING macro.
25201 2016-02-29 Martin Liska <mliska@suse.cz>
25203 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
25204 is presented in dump flags.
25205 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
25206 (hsa_regalloc): Likewise.
25208 2016-02-19 Richard Biener <rguenther@suse.de>
25210 PR tree-optimization/69980
25211 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
25212 permutation of those we need to keep.
25214 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
25217 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
25218 (NWORDS_UP): ...this
25219 (init_cumulative_args): Minor tweaks.
25220 (sparc_promote_function_mode): Likewise.
25221 (scan_record_type): Delete.
25222 (traverse_record_type): New function template.
25223 (classify_data_t): New structure type.
25224 (classify_registers): New inline function.
25225 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
25226 exhausted. Instantiate traverse_record_type on classify_registers and
25227 deal with the case of a structure passed in slot #15 with no FP field
25229 (assign_data_t): New structure type.
25230 (compute_int_layout): New static function.
25231 (compute_fp_layout): Likewise.
25232 (count_registers): New inline function.
25233 (assign_int_registers): New static function.
25234 (assign_fp_registers): Likewise.
25235 (assign_registers): New inline function.
25236 (function_arg_record_value_1): Delete.
25237 (function_arg_record_value_2): Likewise.
25238 (function_arg_record_value_3): Likewise.
25239 (function_arg_record_value): Adjust to above changes. Instantiate
25240 traverse_record_type on count_registers to first count the number of
25241 registers to be used and then on assign_registers to assign them.
25242 (function_arg_union_value): Adjust to above renaming.
25243 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
25244 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
25245 case of a structure passed in slot #15
25246 (sparc_function_arg_advance): Likewise.
25247 (function_arg_padding): Minor tweak.
25249 2016-02-29 Richard Biener <rguenther@suse.de>
25251 PR tree-optimization/69720
25252 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
25253 the adjustment_def path for possibly vectorized defs.
25254 (vect_create_epilog_for_reduction): Handle vectorized initial
25257 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
25259 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
25261 2016-02-27 Jeff Law <law@redhat.com>
25264 2016-02-26 Richard Biener <rguenther@suse.de>
25265 Jeff Law <law@redhat.com>
25267 PR tree-optimization/69740
25268 * cfghooks.c (remove_edge): Request loop fixups if we delete
25269 an edge that might turn an irreducible loop into a natural
25272 2016-02-27 Jakub Jelinek <jakub@redhat.com>
25274 PR rtl-optimization/69896
25275 * tree-vect-generic.c (get_compute_type): Avoid single element
25278 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
25280 Rename the AArch64 tuning option and related functions to enable the
25281 Newton series for the reciprocal square root to reflect its
25282 approximative characteristic.
25284 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
25285 function to "aarch64_emit_approx_rsqrt".
25286 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
25287 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
25288 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
25289 (xgene1_tunings): Likewise.
25290 (use_rsqrt_p): Likewise.
25291 (aarch64_emit_swrsqrt): Use new function name.
25292 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
25293 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
25294 text explaining this option.
25295 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
25297 2016-02-26 Jakub Jelinek <jakub@redhat.com>
25300 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25301 complain about -mallow-movmisalign without -mvsx if
25302 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
25304 2016-02-26 Joel Sherrill <joel@rtems.org>
25306 * config.gcc: Add x86_64-*-rtems*.
25307 * config/i386/rtems-64.h: New file.
25309 2016-02-26 Joel Sherrill <joel@rtems.org>
25311 * config.gcc: Add aarch64-*-rtems*.
25312 * config/aarch64/rtems.h: New file.
25314 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
25317 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
25318 shift amount using %h. Add comment.
25320 2016-02-26 Richard Biener <rguenther@suse.de>
25321 Jeff Law <law@redhat.com>
25323 PR tree-optimization/69740
25324 * cfghooks.c (remove_edge): Request loop fixups if we delete
25325 an edge that might turn an irreducible loop into a natural
25328 2016-02-26 Martin Jambor <mjambor@suse.cz>
25330 PR middle-end/69920
25331 * tree-sra.c (sra_modify_assign): Do not remove loads of
25332 uninitialized aggregates to SSA_NAMEs.
25334 2016-02-26 Richard Henderson <rth@redhat.com>
25337 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
25338 pseudo in case the target rtx matches the source of the left
25341 2016-02-26 Martin Jambor <mjambor@suse.cz>
25344 * hsa.h (hsa_type_packed_p): Declare.
25345 * hsa.c (hsa_type_packed_p): New function.
25346 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
25348 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
25349 * hsa-brig.c (emit_basic_insn): Likewise.
25351 2016-02-26 Martin Jambor <mjambor@suse.cz>
25354 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
25356 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
25358 2016-02-26 Martin Jambor <mjambor@suse.cz>
25360 * hsa.h (is_a_helper): New overload for hsa_op_immed for
25361 hsa_op_with_type operands.
25362 (hsa_unsigned_type_for_type): Declare.
25363 * hsa.c (hsa_unsigned_type_for_type): New function.
25364 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
25365 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
25366 the finalizer. Do not emit extra move.
25368 2016-02-26 Martin Jambor <mjambor@suse.cz>
25370 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
25371 atomic operations in private segment.
25373 2016-02-26 Martin Jambor <mjambor@suse.cz>
25375 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
25376 statements to wi->info. Also disallow omp simd constructs.
25377 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
25378 for not gridifying. Dump special string for omp_for.
25380 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25383 * config/aarch64/aarch64.c (aarch64_set_current_function):
25384 Save/restore target globals when switching to
25385 target_option_default_node.
25387 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25390 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
25391 Return 0 if !SHIFT_COUNT_TRUNCATED.
25393 2016-02-26 Jakub Jelinek <jakub@redhat.com>
25394 Eric Botcazou <ebotcazou@adacore.com>
25396 PR rtl-optimization/69891
25397 * dse.c (scan_insn): If we can't figure out memset arguments
25398 or they are non-constant, call clear_rhs_from_active_local_stores.
25400 2016-02-26 Martin Liska <mliska@suse.cz>
25402 * doc/extend.texi: Mention clog10, clog10f an clog10l
25403 in Builtins section.
25405 2016-02-26 Martin Liska <mliska@suse.cz>
25407 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
25409 (resolve_args_picking_1): Likewise.
25410 * dwarf2out.h (struct GTY): Likewise.
25412 2016-02-26 Martin Liska <mliska@suse.cz>
25414 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
25415 with flag_checking.
25416 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
25418 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
25419 Martin Liska <mliska@suse.cz>
25421 * doc/install.texi: Mention --enable-valgrind-annotations.
25423 2016-02-26 Richard Biener <rguenther@suse.de>
25425 PR tree-optimization/69551
25426 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
25427 looking through aliases adjust DECL_PT_UID to refer to the
25428 ultimate alias target.
25430 2016-02-25 Martin Liska <mliska@suse.cz>
25432 PR middle-end/69919
25433 * alloc-pool.c (after_memory_report): New variable.
25434 * alloc-pool.h (base_pool_allocator ::release): Do not use
25435 the infrastructure if after_memory_report.
25436 * toplev.c (toplev::main): Mark after memory report.
25438 2016-02-25 Richard Biener <rguenther@suse.de>
25440 PR tree-optimization/48795
25441 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
25443 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
25446 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
25447 offloading is enabled and -fopenacc or -fopenmp is specified.
25448 (CRTOFFLOADEND): Likewise.
25449 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
25450 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
25451 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
25452 (offload_objects_file_name): New static var.
25453 (tool_cleanup): Remove offload_objects_file_name file.
25454 (find_offloadbeginend): Replace with ...
25455 (find_crtoffloadtable): ... this.
25456 (run_gcc): Remove offload_argc and offload_argv.
25457 Get offload_objects_file_name from -foffload-objects=... option.
25458 Read names of object files with offload from this file, pass them to
25459 compile_images_for_offload_targets. Don't call find_offloadbeginend and
25460 don't pass offloadbegin and offloadend to the linker. Don't pass
25461 offload non-LTO files to the linker, because now they're not claimed.
25463 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
25466 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
25467 on builtin_unreachable.
25469 2016-02-25 Jakub Jelinek <jakub@redhat.com>
25471 PR rtl-optimization/69896
25472 * regcprop.c: Include cfgrtl.h.
25473 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
25474 than remembered mode, either delete it (if noop_move_p), or
25475 treat like copy_p but not noop_p instruction.
25477 2016-02-24 Jakub Jelinek <jakub@redhat.com>
25480 * dwarf2out.c (gen_variable_die): Work around buggy LTO
25481 - allow NULL decl for Fortran DW_TAG_common_block variables.
25483 2016-02-24 Jason Merrill <jason@redhat.com>
25485 * common.opt (flifetime-dse): Add -flifetime-dse=1.
25487 2016-02-24 Richard Biener <rguenther@suse.de>
25488 Jakub Jelinek <jakub@redhat.com>
25490 PR middle-end/69760
25491 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
25492 conditionally executed ops to well-defined overflow behavior.
25494 2016-02-24 Jakub Jelinek <jakub@redhat.com>
25496 PR middle-end/69915
25497 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
25500 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25502 PR rtl-optimization/69886
25503 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
25504 argument. Use it when checking validity of set instructions.
25505 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
25506 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
25508 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
25509 * store-motion.c (find_moveable_store): Update
25510 can_assign_to_reg_without_clobbers_p callsite.
25512 2016-02-24 Richard Biener <rguenther@suse.de>
25514 PR middle-end/68963
25515 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
25517 (record_nonwrapping_iv): Do not fall back to the low/high bound
25518 for non-constant IV bases if the stmt is not always executed.
25520 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25522 * config/arm/arm-cores.def (cortex-a32): New entry.
25523 * config/arm/arm-tables.opt: Regenerate.
25524 * config/arm/arm-tune.md: Regenerate.
25525 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
25526 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
25527 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
25528 for -mcpu and -mtune.
25530 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25533 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
25534 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
25535 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
25536 (atomic_loaddi_1): Delete.
25537 (atomic_loaddi): Rewrite expander using the above changes.
25539 2016-02-24 Jakub Jelinek <jakub@redhat.com>
25542 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
25545 2016-02-24 Jakub Jelinek <jakub@redhat.com>
25546 Richard Biener <rguenth@suse.de>
25548 PR middle-end/69909
25549 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
25550 set_mem_attributes if tem is SSA_NAME which got expanded
25553 2016-02-24 Richard Biener <rguenther@suse.de>
25555 PR tree-optimization/69907
25556 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
25557 end of permutations for BB vectorization.
25559 2016-02-24 Christian Bruel <christian.bruel@st.com>
25561 * config/arm/arm-c.c (arm_option_override): Initialize
25562 target_option_current_node.
25563 * config/arm/arm.c (arm_pragma_target_parse): Replace
25564 build_target_option_node call by target_option_current_node.
25565 Set target_option_current_node.
25568 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
25571 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
25572 define_insn_and_split to define_insn.
25573 (zero_extendqi<mode>2_dot2): Same.
25574 (extendqi<mode>2_dot): Same.
25575 (extendqi<mode>2_dot2): Same.
25577 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
25579 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
25580 and add bypass for AES{D,E} and AESMC pairs.
25581 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
25584 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
25586 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
25587 series for reciprocal square root in Exynos M1.
25589 2016-02-23 Martin Sebor <msebor@redhat.com>
25592 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
25593 __builtin_alloca_with_align.
25595 2016-02-23 Richard Henderson <rth@redhat.com>
25597 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
25598 (ix86_register_pragmas): Remove __seg_tls.
25599 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
25600 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
25601 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
25602 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
25603 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
25604 * doc/extend.texi (__seg_tls): Remove item.
25606 2016-02-23 Richard Biener <rguenther@suse.de>
25608 * alloc-pool.h (struct allocation_object): Make id member
25609 conditional on CHECKING_P again.
25610 (get_instance): Adjust.
25611 (base_pool_allocator): Likewise.
25613 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
25615 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
25616 (parallelize_loops): In OpenACC kernels mode, set n_threads to
25618 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
25620 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
25622 2016-02-23 Richard Biener <rguenther@suse.de>
25624 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
25625 * bitmap.h (struct bitmap_usage): Likewise.
25626 (bitmap_move): Declare.
25627 * bitmap.c (register_overhead): Take size_t argument.
25628 (bitmap_move): New function.
25629 * df-problems.c (df_rd_transfer_function): Use bitmap_move
25630 to properly account overhead.
25631 * tree.c (free_node): Use tree_size.
25633 2016-02-23 Jakub Jelinek <jakub@redhat.com>
25636 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
25637 when inverting comparison.
25640 * common.opt (Wunreachable-code): Add Warning flag.
25642 2016-02-23 Mark Wielaard <mjw@redhat.com>
25643 Jakub Jelinek <jakub@redhat.com>
25646 * cgraphunit.c (check_global_declaration): Check main_input_filename
25647 and DECL_SOURCE_FILE are not NULL.
25649 2016-02-23 Martin Jambor <mjambor@suse.cz>
25651 PR tree-optimization/69666
25652 * tree-sra.c (sra_modify_assign): Do not attempt to create
25653 default_def replacements for unscalarizable regions.
25655 2016-02-20 Mark Wielaard <mjw@redhat.com>
25658 * cgraphunit.c (check_global_declaration): Check level of
25659 warn_unused_const_variable and main_input_filename.
25660 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
25661 (-Wunused-variable): For C implies -Wunused-const-variable=1.
25662 (-Wunused-const-variable): Explain levels 1 and 2.
25664 2016-02-22 Jakub Jelinek <jakub@redhat.com>
25667 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
25668 identical arguments. Formatting and spelling fixes.
25671 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
25676 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
25677 and m68k-devices.def.
25678 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
25679 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
25681 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
25683 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
25684 and HImode registers.
25686 2016-02-22 Richard Biener <rguenther@suse.de>
25688 PR tree-optimization/69882
25689 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
25690 preserve permutations present because of gaps.
25691 (vect_supported_load_permutation_p): Always continue checking
25692 permutations after vect_attempt_slp_rearrange_stmts.
25694 2016-02-22 Bin Cheng <bin.cheng@arm.com>
25696 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
25697 min_profitable_estimate, rather than min_profitable_iters.
25699 2016-02-22 Jakub Jelinek <jakub@redhat.com>
25702 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
25703 SImode for last match_operand.
25705 2016-02-22 Martin Liska <mliska@suse.cz>
25707 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
25708 return bitsize - 1 as the return value.
25710 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
25714 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
25715 Handle negative shift counts.
25716 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
25717 force_reg on the shift constant.
25718 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
25719 (lshrsi3_d): Handle negative shift counts.
25721 2016-02-22 Richard Biener <rguenther@suse.de>
25722 Tom de Vries <tom@codesourcery.com>
25724 * graph.c: Include dumpfile.h.
25725 (print_graph_cfg): Split into three overloads.
25726 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
25728 2016-02-22 Tom de Vries <tom@codesourcery.com>
25730 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
25733 2016-02-22 Richard Biener <rguenther@suse.de>
25736 * ipa-inline-transform.c (inline_call): When not updating
25737 overall summaries adjust self size by the growth estimate.
25738 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
25739 hash-set, do not update overall summaries here. Renamed from ...
25740 (inline_to_all_callers): ... this which is now wrapping the
25741 above and performing delayed overall summary update.
25742 (early_inline_small_functions): Delay updating of the overall
25745 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
25747 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
25750 2016-02-19 Jakub Jelinek <jakub@redhat.com>
25753 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
25754 :%* in %:gt() argument.
25755 (greater_than_spec_func): Adjust for expecting only numbers,
25756 if there are more than two numbers, compare the last two.
25758 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
25760 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
25761 -Wnarrowing with -std.
25763 2016-02-19 Jakub Jelinek <jakub@redhat.com>
25766 * expr.c (store_field): Don't use bit-field path if exp is
25767 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
25768 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
25769 and the assignment can be performed by bitwise copy. Formatting
25772 PR middle-end/69838
25773 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
25774 call copy_reg_eh_region_note_forward on before and/or after sequences
25775 and remove note from insn if it no longer can throw.
25778 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
25779 if TARGET_AVX512BW.
25781 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25783 * config/s390/vector.md: Add missing commutative operand markers
25784 to the patterns which qualify for one.
25785 * config/s390/vx-builtins.md: Likewise.
25787 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25789 * config/s390/vector.md (VI, VI_QHS): Add single element vector
25790 types to mode iterators.
25791 (vec_double): ... and mode attribute.
25792 * config/s390/vx-builtins.md (non_vec_int): Likewise.
25794 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25796 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
25797 Change the predicate of op2 from nonimmediate to general and let
25798 reload fix it if necessary.
25800 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25802 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
25804 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25806 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
25809 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25811 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
25812 * config/s390/s390.c (s390_expand_vec_movstr): New function.
25813 * config/s390/s390.md ("movstr<P:mode>"): Call
25814 s390_expand_vec_movstr.
25816 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25818 * config/s390/s390.md: Add missing output modifier for operand 1
25819 to print it as address properly.
25821 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25823 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
25824 * config/s390/2964.md: New file.
25825 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
25826 of insn grouping attributes depending on the CPU level.
25827 (s390_get_unit_mask): New function.
25828 (s390_sched_score): Remove the OOO from the scheduling macros.
25829 Add loop to calculate a score for the instruction mix.
25830 (s390_sched_reorder): Likewise plus improve debug output.
25831 (s390_sched_variable_issue): Rename macros as above. Calculate
25832 the unit distances after actually scheduling an insn. Improve
25834 (s390_sched_init): Clear last_scheduled_unit_distance array.
25835 * config/s390/s390.md: Include 2964.md.
25837 2016-02-18 Jakub Jelinek <jakub@redhat.com>
25840 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
25841 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
25842 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
25843 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
25844 *avx512f_<code>v8div16qi2_mask_1): New insns.
25846 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
25849 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
25852 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
25853 earlyclobber from target. Use wF constraint for fused memory
25855 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
25857 2016-02-18 Jakub Jelinek <jakub@redhat.com>
25858 Martin Liska <mliska@suse.cz>
25861 * cfgexpand.c (asan_sanitize_stack_p): New function.
25862 (partition_stack_vars): Use the function.
25863 (expand_stack_vars): Likewise.
25864 (defer_stack_allocation): Likewise.
25865 (expand_used_vars): Likewise.
25867 2016-02-18 Richard Biener <rguenther@suse.de>
25869 PR middle-end/69553
25870 * fold-const.c (operand_equal_p): Properly compare offsets for
25871 IMAGPART_EXPR and ARRAY_REF.
25873 2016-02-18 Nick Clifton <nickc@redhat.com>
25877 * config/arm/arm.c (arm_option_override_internal): Disable
25878 interworking if the target does not support thumb instructions.
25879 (arm_reload_in_hi): Handle the case where a register to register
25880 move needs reloading because there is no simple pattern to handle
25882 (arm_reload_out_hi): Likewise.
25884 2016-02-18 Richard Biener <rguenther@suse.de>
25886 PR middle-end/69854
25887 * match.pd: Don't use fold_binary or fold_unary for folding
25890 2016-02-17 Jakub Jelinek <jakub@redhat.com>
25893 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
25894 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
25895 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
25896 warn on gimple_no_warning_p statements.
25898 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
25900 * doc/extend.texi (C++ Attributes): Correct description of
25901 warn_unused type attribute.
25903 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25905 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
25906 correct instruction.
25908 2016-02-17 Richard Biener <rguenther@suse.de>
25910 PR rtl-optimization/69609
25911 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
25912 (find_traces_1_round): When ending a trace update cached priority
25914 (bb_to_key): Use cached priority when available.
25915 (copy_bb): Initialize cached priority.
25916 (reorder_basic_blocks_software_trace_cache): Likewise.
25918 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25921 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
25923 (aarch64_comparison_operator): Break overly long line into two.
25924 (aarch64_comparison_operation): Likewise.
25925 * config/aarch64/aarch64.md (cstorecc4): Use
25926 aarch64_comparison_operator_mode instead of
25927 aarch64_comparison_operator.
25928 (cstore<mode>4): Likewise.
25929 (aarch64_cstore<mode>): Likewise.
25930 (*cstoresi_insn_uxtw): Likewise.
25931 (cstore<mode>_neg): Likewise.
25932 (*cstoresi_neg_uxtw): Likewise.
25934 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25937 * config/arm/predicates.md (arm_comparison_operator_mode):
25939 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
25940 instead of arm_comparison_operator.
25941 (*mov_negscc): Likewise.
25942 (*mov_notscc): Likewise.
25943 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
25944 (*thumb2_mov_negscc): Likewise.
25945 (*thumb2_mov_negscc_strict_it): Likewise.
25946 (*thumb2_mov_notscc): Likewise.
25947 (*thumb2_mov_notscc_strict_it): Likewise.
25949 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
25951 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
25952 Add missing return.
25954 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
25956 * config/visium/visium.c (machine_libfunc_index): New enum.
25957 (machine_libfuncs): New structure.
25958 (visium_libfuncs): New static variable.
25959 (TARGET_INIT_LIBFUNCS): Define to...
25960 (visium_init_libfuncs): ...this. New function.
25961 (expand_block_move_4): Use the appropriate libfunc.
25962 (expand_block_move_2): Likewise.
25963 (expand_block_move_1): Likewise.
25964 (expand_block_set_4): Likewise.
25965 (expand_block_set_2): Likewise.
25966 (expand_block_set_1): Likewise.
25967 (visium_trampoline_init): Likewise.
25969 2016-02-17 Nick Clifton <nickc@redhat.com>
25971 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
25972 TI's devices.csv file as of March 2016.
25974 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
25977 * opts-global.c (handle_common_deferred_options): Introduce and
25978 initialize two global variables to remember command-line options
25979 specifying a stack-limiting register.
25980 * opts.h: Add extern declarations of the two new global variables.
25981 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
25982 variable based on the values of the two new global variables.
25984 2016-02-16 Jakub Jelinek <jakub@redhat.com>
25987 * common.opt (Wnonnull-compare): New warning.
25988 * doc/invoke.texi (-Wnonnull): Remove text about comparison
25989 of arguments against NULL.
25990 (-Wnonnull-compare): Document.
25991 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
25992 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
25993 * passes.def (pass_warn_nonnull_compare): Add.
25994 * gimple-ssa-nonnull-compare.c: New file.
25996 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
25998 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
25999 AARCH64_EXTRA_TUNE_RECIP_SQRT.
26001 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
26003 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
26004 reciprocal sqrt for -mlow-precision-recip-sqrt.
26006 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
26007 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26009 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
26010 always use lane loads to construct non-constant vectors.
26012 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
26014 * config/aarch64/aarch64.md
26015 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
26016 constraints for operand 3.
26017 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
26019 2016-02-16 Jakub Jelinek <jakub@redhat.com>
26020 Richard Biener <rguenther@suse.de>
26022 PR tree-optimization/69820
26023 * tree-vect-patterns.c (type_conversion_p): Return false if
26024 *orig_type is unsigned single precision or boolean.
26025 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
26028 2016-02-16 Jakub Jelinek <jakub@redhat.com>
26030 PR rtl-optimization/69764
26031 PR rtl-optimization/69771
26032 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
26033 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
26035 2016-02-16 Richard Biener <rguenther@suse.de>
26037 PR tree-optimization/69776
26038 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
26040 (indirect_refs_may_alias_p): Likewise.
26041 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
26042 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
26043 according to tbaa_p.
26044 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
26045 (optimize_stmt): For redundant store discovery do not allow tbaa.
26047 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
26049 PR tree-optimization/69714
26050 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
26051 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
26053 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
26055 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
26056 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
26057 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
26058 * config/arc/arc.c (arc_init): Check FPU options.
26059 (get_arc_condition_code): Handle new CC_FPU* modes.
26060 (arc_select_cc_mode): Likewise.
26061 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
26062 register pair only. Allow access for ARCv2 accumulator.
26063 (gen_compare_reg): Whenever we have FPU support use FPU compare
26065 (arc_reorg): Don't generate brcc insns when FPU compare
26066 instructions are involved.
26067 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
26068 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
26069 floating point emulation.
26070 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
26071 (REVERSE_CONDITION): Add new CC_FPU* modes.
26072 (TARGET_FP_SP_BASE): Define.
26073 (TARGET_FP_DP_BASE): Likewise.
26074 (TARGET_FP_SP_FUSED): Likewise.
26075 (TARGET_FP_DP_FUSED): Likewise.
26076 (TARGET_FP_SP_CONV): Likewise.
26077 (TARGET_FP_DP_CONV): Likewise.
26078 (TARGET_FP_SP_SQRT): Likewise.
26079 (TARGET_FP_DP_SQRT): Likewise.
26080 (TARGET_FP_DP_AX): Likewise.
26081 * config/arc/arc.md (ARCV2_ACC): New constant.
26082 (type): New fpu type attribute.
26083 (SDF): Conditional iterator.
26084 (cstore<mode>, cbranch<mode>): Change expand condition.
26085 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
26086 handles FPU/FPX cases as well.
26087 * config/arc/arc.opt (mfpu): New option.
26088 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
26090 (adddf3, muldf3, subdf3): Removed.
26091 * config/arc/predicates.md (proper_comparison_operator): Recognize
26093 * config/arc/fpu.md: New file.
26094 * doc/invoke.texi (ARC Options): Document mfpu option.
26096 2016-02-16 Richard Biener <rguenther@suse.de>
26098 PR rtl-optimization/69291
26099 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
26100 noce_operand_ok check.
26102 2016-02-16 Tom de Vries <tom@codesourcery.com>
26105 * omp-low.c (simd_clone_create): Remove call to
26106 symtab->call_cgraph_insertion_hooks.
26108 2016-02-16 Jakub Jelinek <jakub@redhat.com>
26110 PR tree-optimization/69802
26111 * tree-ssa-reassoc.c (update_range_test): If op is
26112 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
26113 op == 1 test of precision 1 integral op, otherwise handle
26114 that case as op itself. Fix up formatting.
26115 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
26118 2016-02-16 Richard Biener <rguenther@suse.de>
26120 PR tree-optimization/69586
26121 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
26122 types for conversion sources.
26124 2016-02-16 Richard Biener <rguenther@suse.de>
26126 PR middle-end/69801
26127 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
26128 mask OEP_ADDRESS_OF.
26130 2016-02-16 Alan Modra <amodra@gmail.com>
26133 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
26134 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
26135 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
26137 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
26138 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
26139 (p8_fmrgow_<mode>): Likewise.
26140 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
26142 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
26143 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
26144 to use movdi_internal64. Remove op0_di.
26145 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
26147 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
26149 Add support for the FCCMP insn types
26151 * config/aarch64/aarch64.md (fccmp): Change insn type.
26152 (fccmpe): Likewise.
26153 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
26154 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
26155 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
26156 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
26157 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
26158 * config/arm/types.md (fccmps): Add new insn type.
26159 (fccmpd): Likewise.
26161 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
26163 * alias.c (get_alias_set): Fix a typo in comment.
26165 2016-02-15 Richard Biener <rguenther@suse.de>
26167 PR tree-optimization/69595
26168 * match.pd: Complete range test simplification to true.
26170 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
26172 PR rtl-optimization/69648
26173 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
26174 pic_offset_table_rtx.
26176 PR rtl-optimization/69752
26177 * ira.c (update_equiv_regs): When looking for more than a single SET,
26178 also take other side effects into account.
26180 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
26182 * config/s390/s390.c (s390_function_profiler): Add a new sequence
26183 for z900+ CPUs in 31-bit mode.
26185 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
26187 * common/config/s390/s390-common.c (s390_supports_split_stack):
26189 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
26190 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
26191 * config/s390/s390.c (struct machine_function): New field
26192 split_stack_varargs_pointer.
26193 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
26194 in s390_emit_prologue.
26195 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
26197 (morestack_ref): New global.
26198 (SPLIT_STACK_AVAILABLE): New macro.
26199 (s390_expand_split_stack_prologue): New function.
26200 (s390_live_on_entry): New function.
26201 (s390_va_start): Use split-stack vararg pointer if appropriate.
26202 (s390_asm_file_end): Emit the split-stack note sections.
26203 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
26204 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
26205 (UNSPECV_SPLIT_STACK_CALL): New unspec.
26206 (UNSPECV_SPLIT_STACK_DATA): New unspec.
26207 (split_stack_prologue): New expand.
26208 (split_stack_space_check): New expand.
26209 (split_stack_data): New insn.
26210 (split_stack_call): New expand.
26211 (split_stack_call_*): New insn.
26212 (split_stack_cond_call): New expand.
26213 (split_stack_cond_call_*): New insn.
26215 2016-02-15 Richard Biener <rguenther@suse.de>
26217 PR tree-optimization/69783
26218 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26219 Add trivially correct cases.
26221 2016-02-15 Tom de Vries <tom@codesourcery.com>
26224 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
26226 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
26228 2016-02-15 Richard Biener <rguenther@suse.de>
26230 PR tree-optimization/69776
26231 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
26232 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
26233 indicate whether we can use TBAA to disambiguate against stores.
26234 Use alias-set zero if not.
26235 (visit_reference_op_store): Do not use TBAA when looking up
26237 * tree-ssa-pre.c (compute_avail): Use TBAA here.
26238 (eliminate_dom_walker::before_dom_children): But not when looking
26239 up redundant stores.
26241 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
26243 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
26245 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26247 * config/i386/znver1.md
26248 (znver1_pop, znver1_pop_mem,
26249 znver1_load_imov_double_store,
26250 znver1_load_imov_direct_store,
26251 znver1_load_imov_direct_load,
26252 znver1_load_imov_double_load): Add new.
26253 (znver1_insn, znver1_insn_load): Add icmov type.
26254 (znver1_sseavx_fma,
26255 znver1_sseavx_fma_load,
26257 znver1_avx256_fma_load): Fix pipe usage.
26259 2016-02-14 Alan Modra <amodra@gmail.com>
26262 * reload.c (find_reloads_address_1): For pre/post-inc/dec
26263 with an invalid hard reg, reload just the reg not the entire
26264 pre/post-inc/dec address expression.
26266 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
26269 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
26270 fixed R1_REG scratch reg.
26271 (sibcall_value_pcrel_fdpic): Likewise.
26273 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
26277 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
26279 2016-02-12 Walter Lee <walt@tilera.com>
26281 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
26282 * config/tilegx/t-tilegx: Likewise.
26284 2016-02-12 David Malcolm <dmalcolm@redhat.com>
26287 * diagnostic-show-locus.c (struct line_span): New struct.
26288 (layout::get_first_line): Delete.
26289 (layout::get_last_line): Delete.
26290 (layout::get_num_line_spans): New member function.
26291 (layout::get_line_span): Likewise.
26292 (layout::print_heading_for_line_span_index_p): Likewise.
26293 (layout::get_expanded_location): Likewise.
26294 (layout::calculate_line_spans): Likewise.
26295 (layout::m_first_line): Delete.
26296 (layout::m_last_line): Delete.
26297 (layout::m_line_spans): New field.
26298 (layout::layout): Update comment. Replace m_first_line and
26299 m_last_line with m_line_spans, replacing their initialization
26300 with a call to calculate_line_spans.
26301 (diagnostic_show_locus): When printing source lines and
26302 annotations, rather than looping over a single span
26303 of lines, instead loop over each line_span within
26304 the layout, with an inner loop over the lines within them.
26305 Call the context's start_span callback when changing line spans.
26306 * diagnostic.c (diagnostic_initialize): Initialize start_span.
26307 (diagnostic_build_prefix): Break out the building of the location
26308 part of the string into...
26309 (diagnostic_get_location_text): ...this new function, rewriting
26310 it from nested ternary expressions to a sequence of "if"
26312 (default_diagnostic_start_span_fn): New function.
26313 * diagnostic.h (diagnostic_start_span_fn): New typedef.
26314 (diagnostic_context::start_span): New field.
26315 (default_diagnostic_start_span_fn): New prototype.
26317 2016-02-12 David Malcolm <dmalcolm@redhat.com>
26320 * gcc.c (driver::finalize): Fix cleanup of "specs".
26322 2016-02-12 David Malcolm <dmalcolm@redhat.com>
26326 * gcc.c (driver::driver): Initialize m_option_suggestions.
26327 (driver::~driver): Clean up m_option_suggestions.
26328 (suggest_option): Convert to...
26329 (driver::suggest_option): ...this, and split out into
26330 driver::build_option_suggestions and find_closest_string.
26331 (driver::build_option_suggestions): New function, from
26332 first half of suggest_option. Special-case
26333 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
26334 the sanitizer_opts array. For options of enum types, add the
26335 various enum values to the candidate strings.
26336 (driver::handle_unrecognized_options): Remove "const".
26337 * gcc.h (driver::handle_unrecognized_options): Likewise.
26338 (driver::build_option_suggestions): New decl.
26339 (driver::suggest_option): New decl.
26340 (driver::m_option_suggestions): New field.
26341 * opts-common.c (add_misspelling_candidates): New function.
26342 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
26343 and make non-static.
26344 * opts.h (sanitizer_opts): New array decl.
26345 (add_misspelling_candidates): New function decl.
26346 * spellcheck.c (find_closest_string): New function.
26347 * spellcheck.h (find_closest_string): New function decl.
26349 2016-02-12 Jakub Jelinek <jakub@redhat.com>
26351 PR rtl-optimization/69764
26352 PR rtl-optimization/69771
26353 * optabs.c (expand_binop_directly): For shift_optab_p, force
26354 convert_modes with VOIDmode if xop1 has VOIDmode.
26356 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
26359 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
26360 to correctly determine instrumentation thunks.
26362 2016-02-12 Jakub Jelinek <jakub@redhat.com>
26365 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
26366 type by reference, force lhs on the call.
26369 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
26370 Compute retval and retbnd early in all cases if split_part_return_p
26371 and return_bb is not EXIT. Remove all clobber stmts and reset
26372 all debug stmts that refer to SSA_NAMEs defined in split part,
26373 except if it is retval, in that case replace the old retval with the
26374 lhs of the call to the split part.
26376 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26379 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26381 PR middle-end/66726
26382 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
26383 whose result is used in PHI.
26384 (maybe_optimize_range_tests): Likewise.
26385 (final_range_test_p): Likweise.
26387 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26389 PR middle-end/66726
26390 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
26391 whose result is used in PHI.
26392 (maybe_optimize_range_tests): Likewise.
26393 (final_range_test_p): Likweise.
26395 2016-02-12 Jakub Jelinek <jakub@redhat.com>
26397 * cgraph.c: Spelling fixes - behaviour -> behavior and
26398 neighbour -> neighbor.
26399 * target.def: Likewise.
26400 * sel-sched.c: Likewise.
26401 * config/mips/mips.c: Likewise.
26402 * config/arc/arc.md: Likewise.
26403 * config/arm/cortex-a57.md: Likewise.
26404 * config/arm/arm.c: Likewise.
26405 * config/arm/neon.md: Likewise.
26406 * config/arm/arm-c.c: Likewise.
26407 * config/vms/vms-c.c: Likewise.
26408 * config/s390/s390.c: Likewise.
26409 * config/i386/znver1.md: Likewise.
26410 * config/i386/i386.c: Likewise.
26411 * config/ia64/hpux-unix2003.h: Likewise.
26412 * config/msp430/msp430.md: Likewise.
26413 * config/rx/rx.c: Likewise.
26414 * config/rx/rx.md: Likewise.
26415 * config/aarch64/aarch64-simd.md: Likewise.
26416 * config/aarch64/aarch64.c: Likewise.
26417 * config/nvptx/nvptx.c: Likewise.
26418 * config/bfin/bfin.c: Likewise.
26419 * config/cris/cris.opt: Likewise.
26420 * config/rs6000/rs6000.c: Likewise.
26421 * target.h: Likewise.
26422 * spellcheck.c: Likewise.
26423 * ira-build.c: Likewise.
26424 * tree-inline.c: Likewise.
26425 * builtins.c: Likewise.
26426 * lra-constraints.c: Likewise.
26427 * explow.c: Likewise.
26428 * hwint.h: Likewise.
26429 * targhooks.c: Likewise.
26430 * tree-vect-data-refs.c: Likewise.
26431 * expr.c: Likewise.
26432 * doc/tm.texi: Likewise.
26433 * doc/extend.texi: Likewise.
26434 * doc/install.texi: Likewise.
26435 * doc/md.texi: Likewise.
26436 * tree-ssa-tail-merge.c: Likewise.
26437 * sched-int.h: Likewise.
26438 * match.pd: Likewise.
26439 * sched-ebb.c: Likewise.
26440 * target.def (omit_struct_return_reg): Likewise.
26441 * gimple-ssa-isolate-paths.c: Likewise.
26442 (find_implicit_erroneous_behaviour): Renamed to...
26443 (find_implicit_erroneous_behavior): ... this.
26444 (find_explicit_erroneous_behaviour): Renamed to...
26445 (find_explicit_erroneous_behavior): ... this.
26446 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
26448 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
26450 PR rtl-optimization/64682
26451 PR rtl-optimization/69567
26452 PR rtl-optimization/69737
26453 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
26454 in I2 as well, just lose it.
26456 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26458 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
26460 (aarch64_last_printed_tune_string): Likewise.
26461 (aarch64_declare_function_name): Only output .arch assembler
26462 directive if it will be different from the previously output
26463 directive. Same for .tune comment but only if -dA is set.
26464 (aarch64_start_file): New function.
26465 (TARGET_ASM_FILE_START): Define.
26467 2016-02-11 David Malcolm <dmalcolm@redhat.com>
26470 * Makefile.in (PLUGIN_HEADERS): Add params.list.
26472 2016-02-11 Jakub Jelinek <jakub@redhat.com>
26475 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
26476 -Wmaybe-uninitialized warning.
26478 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
26481 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
26483 2016-02-11 Richard Biener <rguenther@suse.de>
26485 PR rtl-optimization/69291
26486 * ifcvt.c (noce_try_store_flag_constants): Do not allow
26487 subexpressions affected by changing the result.
26489 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
26492 * lra-constraints.c (curr_insn_transform): Find in/out operands
26493 for secondary memory moves. Update dups.
26495 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
26497 PR tree-optimization/69652
26498 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
26499 to nested loop, did source re-formatting, skip debug statements,
26500 add check on statement with volatile operand, remove dead scalar
26503 2016-02-10 Jakub Jelinek <jakub@redhat.com>
26504 Patrick Palka <ppalka@gcc.gnu.org>
26508 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
26509 calls if the return type is TREE_ADDRESSABLE.
26510 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
26511 * ipa-split.c (split_function): Fix doubled "we" in comment.
26512 Use void return type for the split part even if
26513 !split_point->split_part_set_retval.
26515 2016-02-10 Bin Cheng <bin.cheng@arm.com>
26517 PR tree-optimization/68021
26518 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
26519 when computing the value of biv cand by itself.
26521 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
26523 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
26524 (cortexa57_tunings): Likewise.
26525 (cortexa72_tunings): Likewise.
26526 (arch_macro_fusion_pair_p): Add support for AES fusion.
26527 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
26528 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
26529 Allow virtual registers before reload so early scheduling works.
26530 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
26531 correct latency and pipeline.
26532 (cortex_a57_crypto_complex): Likewise.
26533 (cortex_a57_crypto_xor): Likewise.
26534 (define_bypass): Add AES bypass.
26536 2016-02-10 Richard Biener <rguenther@suse.de>
26538 PR tree-optimization/69726
26539 * passes.def: Add DCE pass before late uninit.
26540 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
26541 really fixup if-conversions job.
26543 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
26545 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
26546 (arm_cortex_a57_tune): Likewise.
26547 (aarch_macro_fusion_pair_p): Add support for AES fusion.
26548 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
26550 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
26552 * timevar.def (TV_PHASE_DBGINFO): Delete.
26553 (TV_PHASE_CHECK_DBGINFO): Likewise.
26554 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
26556 2016-02-10 Richard Biener <rguenther@suse.de>
26558 PR tree-optimization/69719
26559 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26560 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
26562 2016-02-09 Andrew Pinski <apinski@cavium.com>
26565 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
26566 get_vcond_mask_icode returns false.
26568 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
26571 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
26572 an ADDIS that adds a pointer to a large constant that sets the
26573 upper16 bits with a load operation.
26575 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
26578 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
26580 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
26582 (vzipq_s16): Likewise.
26583 (vzipq_s32): Likewise.
26584 (vzipq_f32): Likewise.
26585 (vzipq_u8): Likewise.
26586 (vzipq_u16): Likewise.
26587 (vzipq_u32): Likewise.
26588 (vzipq_p8): Likewise.
26589 (vzipq_p16): Likewise.
26591 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
26594 * config/arm/arm.c (neon_endian_lane_map): New function.
26595 (neon_vector_pair_endian_lane_map): New function.
26596 (arm_evpc_neon_vuzp): Allow for big endian lane order.
26597 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
26599 (vuzpq_s16): Likewise.
26600 (vuzpq_s32): Likewise.
26601 (vuzpq_f32): Likewise.
26602 (vuzpq_u8): Likewise.
26603 (vuzpq_u16): Likewise.
26604 (vuzpq_u32): Likewise.
26605 (vuzpq_p8): Likewise.
26606 (vuzpq_p16): Likewise.
26608 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
26611 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
26614 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
26616 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
26617 truncate const_int operand 1 to QImode.
26619 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
26621 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
26622 corresponding to an abnormal edge.
26624 2016-02-09 Tom de Vries <tom@codesourcery.com>
26626 PR tree-optimization/69599
26627 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
26629 (find_func_aliases_for_builtin_call, find_func_clobbers)
26630 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
26633 2016-02-09 Richard Biener <rguenther@suse.de>
26635 PR tree-optimization/69715
26636 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
26637 LHS on calls as non-rewritable.
26639 2016-02-09 Tom de Vries <tom@codesourcery.com>
26642 * lto-wrapper.c (append_diag_options): New function.
26643 (compile_offload_image): Call append_diag_options.
26645 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
26648 * doc/extend.texi (Flag Output Operands): Correct sectioning.
26649 Minor copy-edit to fix verb tenses.
26651 2016-02-08 Jakub Jelinek <jakub@redhat.com>
26653 PR tree-optimization/69209
26654 * ipa-split.c (split_function): If split part is not
26655 returning retval, retval has gimple type but is not
26656 gimple value, force it into a SSA_NAME first.
26658 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
26660 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
26663 2016-02-08 Jason Merrill <jason@redhat.com>
26666 * convert.c (convert_to_integer_1): Check dofold on truncation
26668 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
26669 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
26670 Rename from *_nofold.
26671 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
26672 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
26674 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
26677 * tree.c (build_common_tree_nodes): Remove short_double argument.
26678 All callers changed.
26679 * tree.h (build_common_tree_nodes): Adjust declaration.
26680 * doc/invoke.texi (-fshort-double): Remove documentation.
26681 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
26682 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
26683 * lto-wrapper.c (merge_and_complain, append_compiler_options)
26684 (append_linker_options): Don't handle OPT_fshort_double.
26686 PR rtl-optimization/68730
26687 * lra-remat.c (insn_to_cand_activation): New static variable.
26688 (lra_remat): Allocate and free it.
26689 (create_cand): New arg activation. Initialize a field in
26690 insn_to_cand_activation if it is nonnull.
26691 (create_cands): Pass the activation insn to create_cand when making
26692 a candidate involving an output reload. Reorganize code a little.
26693 (do_remat): Keep track of active status of candidates in a separate
26696 2016-02-08 Richard Biener <rguenther@suse.de>
26698 PR tree-optimization/69719
26699 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
26700 Properly use absolute of the difference of the two offsets to
26701 compare or adjust the segment length.
26703 2016-02-08 Richard Biener <rguenther@suse.de>
26704 Jeff Law <law@redhat.com>
26707 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
26708 types for anonymous SSA names.
26710 2016-02-08 Richard Biener <rguenther@suse.de>
26712 PR rtl-optimization/69274
26713 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
26715 2016-02-08 Jeff Law <law@redhat.com>
26717 PR tree-optimization/65917
26718 * tree-ssa-dom.c (record_temporary_equivalences): Record both
26719 equivalences from if (x == y) style conditionals.
26720 (loop_depth_of_name): Remove.
26721 (record_equality): Remove loop depth check.
26722 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
26723 (const_and_copies::record_const_or_copy_raw): New member function.
26724 * tree-ssa-scopedtables.c
26725 (const_and_copies::record_const_or_copy_raw): New, factored out of
26726 (const_and_copies::record_const_or_copy): Call new member function.
26728 2016-02-05 Jeff Law <law@redhat.com>
26730 PR tree-optimization/68541
26731 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
26732 (count_stmts_in_block): New function.
26733 (poor_ifcvt_candidate_code): Likewise.
26734 (is_feasible_trace): Add some heuristics to determine when path
26735 splitting is profitable.
26736 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
26737 is a diamond with a single exit.
26739 2016-02-05 Martin Sebor <msebor@redhat.com>
26742 * doc/invoke.texi: Update -Wplacement-new to take an optional
26745 2016-02-06 Richard Henderson <rth@redhat.com>
26748 * tree.c (tree_nop_conversion_p): Do not strip casts into or
26749 out of non-standard address spaces.
26751 2016-02-05 Jakub Jelinek <jakub@redhat.com>
26753 PR rtl-optimization/69691
26754 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
26756 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
26758 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
26759 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
26760 (*ieee128_mfvsrd_64bit): Likewise.
26761 (*ieee128_mfvsrd_32bit): Likewise.
26763 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
26767 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
26769 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
26770 instrumented_version.
26772 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
26774 * doc/invoke.texi (Optimize Options): In table of --param options
26775 rename second occurrence of tracer-min-branch-ratio to
26776 tracer-min-branch-probability, rename
26777 tracer-min-branch-ratio-feedback to
26778 tracer-min-branch-probability-feedback and clarify description,
26779 rename sched-spec-state-edge-prob-cutoff to
26780 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
26781 to selsched-insns-to-rename, rename lto-minpartition to
26782 lto-min-partition, delete reorder-blocks-duplicate and
26783 reorder-blocks-duplicate-feedback.
26785 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26787 * config/s390/s390.c (s390_register_info_set_ranges): Remove
26790 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
26792 * doc/extend.texi: S/390: Correct some typos.
26794 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26796 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
26798 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26801 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
26802 (s390_register_info_gprtofpr): Use new macros above.
26803 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
26805 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
26806 its name. Adjust restore and save gpr ranges.
26807 (s390_register_info_set_ranges): New function.
26808 (s390_register_info): Use new macros above. Call
26809 s390_register_info_set_ranges.
26810 (s390_optimize_register_info): Likewise.
26811 (s390_hard_regno_rename_ok): Use new macros.
26812 (s390_hard_regno_scratch_ok): Likewise.
26813 (s390_emit_epilogue): Likewise.
26814 (s390_can_use_return_insn): Likewise.
26815 (s390_optimize_prologue): Likewise.
26816 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
26818 2016-02-05 Jakub Jelinek <jakub@redhat.com>
26821 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
26823 (ix86_option_override_internal): Disable TARGET_STV even for
26824 -m{incoming,preferred}-stack-boundary=3.
26826 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26828 * config.gcc: Mark deprecated rtems targets as obsolete.
26830 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
26832 PR rtl-optimization/64682
26833 PR rtl-optimization/69567
26834 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
26835 before I2 only if the register is both used and set in I2.
26837 2016-02-04 DJ Delorie <dj@redhat.com>
26839 * config/msp430/msp430.c (msp430_start_function): Add function type.
26841 2016-02-04 Jakub Jelinek <jakub@redhat.com>
26844 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
26846 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
26848 PR rtl-optimization/69577
26850 2015-10-29 Richard Henderson <rth@redhat.com>
26854 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
26855 sse check to the exact conditions of PR 67609.
26857 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
26860 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
26861 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
26862 not allowed into the traditional Altivec registers.
26863 (movtd_64bit_nodm): Likewise.
26864 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
26866 2016-02-04 David Malcolm <dmalcolm@redhat.com>
26868 * config/aarch64/cortex-a57-fma-steering.c
26869 (aarch64_register_fma_steering): Remove "static" from arguments
26872 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
26875 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
26876 twice when complex.
26878 2016-02-04 Mike Frysinger <vapier@gentoo.org>
26880 * doc/invoke.texi: Delete -mno-fma4.
26882 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
26884 PR rtl-optimization/69577
26885 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
26886 (find_subregs_of_mode): Update accordingly. Iterate over partial
26889 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
26891 * config/arm/arm-protos.h (neon_reinterpret): Remove.
26892 * config/arm/arm.c (neon_reinterpret): Remove.
26893 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
26894 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
26895 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
26896 vreinterpretti): Remove.
26897 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
26898 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
26899 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
26900 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
26901 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
26902 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
26903 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
26904 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
26905 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
26906 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
26907 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
26908 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
26909 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
26910 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
26911 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
26912 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
26913 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
26914 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
26915 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
26916 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
26917 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
26918 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
26919 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
26920 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
26921 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
26922 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
26923 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
26924 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
26925 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
26926 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
26927 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
26928 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
26929 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
26930 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
26931 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
26932 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
26933 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
26934 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
26935 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
26936 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
26937 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
26938 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
26939 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
26940 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
26941 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
26942 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
26943 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
26944 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
26945 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
26946 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
26947 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
26948 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
26949 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
26950 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
26951 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
26952 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
26953 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
26954 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
26955 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
26956 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
26957 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
26958 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
26959 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
26960 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
26961 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
26962 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
26963 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
26964 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
26965 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
26966 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
26967 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
26968 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
26969 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
26970 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
26971 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
26972 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
26973 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
26974 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
26975 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
26976 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
26977 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
26978 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
26979 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
26980 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
26981 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
26982 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
26983 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
26984 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
26985 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
26986 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
26987 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
26988 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
26989 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
26990 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
26991 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
26992 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
26993 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
26994 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
26995 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
26996 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
26997 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
26998 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
26999 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
27001 2016-02-04 Martin Liska <mliska@suse.cz>
27004 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
27005 that are gimple_store_p.
27006 (maybe_instrument_call): Likewise.
27008 2016-02-04 Bin Cheng <bin.cheng@arm.com>
27010 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
27011 register scaling out of memory reference and comment why.
27013 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27017 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
27018 folding the source of a SET.
27020 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27024 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
27025 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
27027 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
27031 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
27034 2016-02-04 Christian Bruel <christian.bruel@st.com>
27036 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
27037 * config/arm/arm.c (arm_set_current_function): Likewise.
27039 2016-02-04 Jakub Jelinek <jakub@redhat.com>
27040 Ilya Enkovich <enkovich.gnu@gmail.com>
27041 H.J. Lu <hongjiu.lu@intel.com>
27044 * config/i386/i386.c (convert_scalars_to_vector): Remove
27045 stack alignment fixes.
27046 (ix86_option_override_internal): Disable TARGET_STV if stack
27047 might not be aligned enough.
27048 (ix86_minimum_alignment): Assert that TARGET_STV is false.
27050 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
27052 * config/i386/x86-tune.def: Disable default prefetching
27055 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27056 Vladimir Makarov <vmakarov@redhat.com>
27059 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
27060 in validating fused toc addresses.
27062 2016-02-03 Jakub Jelinek <jakub@redhat.com>
27065 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
27066 range->m_caret fields if range->m_show_caret_p is false.
27069 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
27070 Force oldval into register if it does not satisfy reg_or_short_operand
27071 predicate. Fix up formatting.
27073 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
27074 Alexandre Oliva <aoliva@redhat.com>
27077 * lra-constraints.c (simplify_operand_subreg): Check additionally
27078 address validity after potential reloading.
27079 (process_address_1): Check insns validity. In case of failure do
27082 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
27085 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
27088 2016-02-02 Jakub Jelinek <jakub@redhat.com>
27090 * wide-int.cc (canonize_uhwi): New function.
27091 (wi::divmod_internal): Use it.
27093 2016-02-02 James Norris <jnorris@codesourcery.com>
27095 * gimplify.c (omp_notice_variable): Add usage check.
27097 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
27099 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
27100 like LE, GE, LT, GT when emitting relational operator.
27102 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
27104 * ira-costs.c (find_costs_and_classes): Add extra argument.
27105 * target.def (ira_change_pseudo_allocno_class): Add parameter.
27106 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
27107 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
27108 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
27109 Add best_class parameter, and return it if not ALL_REGS.
27110 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
27112 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
27113 Update target hook.
27115 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
27117 * config/aarch64/aarch64.c
27118 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
27119 (aarch64_ira_change_pseudo_allocno_class): New function.
27121 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
27124 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
27126 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27128 * config/avr/avr.c (avr_option_override): Set
27129 PARAM_ALLOW_STORE_DATA_RACES to 1.
27131 2016-02-02 Richard Biener <rguenther@suse.de>
27133 PR tree-optimization/69595
27134 * match.pd: Add range test simplifications to true/false.
27136 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
27138 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
27139 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
27142 2016-02-02 Richard Biener <rguenther@suse.de>
27144 PR tree-optimization/69606
27145 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
27146 info on the result before moving a stmt.
27148 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
27150 PR middle-end/68542
27151 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
27152 branch with vector comparison.
27153 * config/i386/sse.md (VI48_AVX): New mode iterator.
27154 (define_expand "cbranch<mode>4): Add support for conditional branch
27155 with vector comparison.
27156 * tree-vect-loop.c (optimize_mask_stores): New function.
27157 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
27158 has_mask_store field of vect_info.
27159 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
27160 vectorized loops having masked stores after vec_info destroy.
27161 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
27162 correspondent macros.
27163 (optimize_mask_stores): Add prototype.
27165 2016-02-02 Alan Modra <amodra@gmail.com>
27168 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
27171 2016-02-02 Alan Modra <amodra@gmail.com>
27174 * config/rs6000/rs6000.c (need_toc_init): New var, set it
27175 whenever toc_label_name used.
27176 (rs6000_file_start): Don't set up toc section here,
27177 (rs6000_output_function_epilogue): do so here instead,
27178 (rs6000_xcoff_file_start): and here.
27179 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
27180 (load_toc_aix_di): Likewise.
27182 2016-02-01 Jakub Jelinek <jakub@redhat.com>
27184 PR rtl-optimization/69592
27185 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
27186 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
27187 (num_sign_bit_copies_binary_arith_p): New inline function.
27188 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
27190 2016-02-01 Jeff Law <law@redhat.com>
27192 PR tree-optimization/69580
27193 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
27194 * tree-ssa-threadbackward.c
27195 (fsm_find_control_statement_thread_paths): Do not try to walk
27196 through large PHI nodes.
27198 2016-02-01 Jakub Jelinek <jakub@redhat.com>
27200 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
27201 when count is incremented above limit, don't analyze further
27204 * omp-low.c (oacc_parse_default_dims): Avoid
27205 -Wsign-compare warning, make sure value fits into int
27206 rather than just unsigned int.
27208 2016-02-01 Bin Cheng <bin.cheng@arm.com>
27210 PR tree-optimization/67921
27211 * fold-const.c (split_tree): New parameters. Convert pointer
27212 type variable part to proper type before negating.
27213 (fold_binary_loc): Pass new arguments to split_tree.
27215 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
27217 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
27218 (nvptx_goacc_validate_dims): Extend to handle global defaults.
27219 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
27220 * doc/tm.texti: Rebuilt.
27221 * doc/invoke.texi (fopenacc-dim): Document.
27222 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
27223 (append_compiler_options): Likewise.
27224 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
27225 (oacc_parse_default_dims): New.
27226 (oacc_validate_dims): Add USED arg. Select non-unity default when
27228 (oacc_loop_fixed_partitions): Return mask of used partitions.
27229 (oacc_loop_auto_partitions): Emit dump info.
27230 (oacc_loop_partition): Return mask of used partitions.
27231 (execute_oacc_device_lower): Parse default dimension arg. Adjust
27232 loop partitioning and validation calls.
27234 2016-02-01 Richard Biener <rguenther@suse.de>
27236 PR middle-end/69556
27237 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
27239 2016-02-01 Richard Biener <rguenther@suse.de>
27241 PR tree-optimization/69574
27242 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
27243 of asserting return chrec_dont_know.
27245 2016-02-01 Martin Liska <mliska@suse.cz>
27247 * mem-stats-traits.h: Add copyright header.
27248 * mem-stats.h: Likewise.
27250 2016-02-01 Richard Biener <rguenther@suse.de>
27252 PR tree-optimization/69579
27253 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
27254 Do not propagate through abnormal PHI results.
27256 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
27258 * postreload.c (reload_cse_simplify): Remove dead code.
27260 2016-02-01 Jakub Jelinek <jakub@redhat.com>
27262 PR rtl-optimization/69570
27263 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
27264 if there is more than one set, not if there is a single set.
27266 2016-02-01 Richard Henderson <rth@redhat.com>
27269 * combine.c (make_compound_operation): When looking through a
27270 subreg, make sure to re-extend to the width of the outer mode.
27272 2016-01-30 Jakub Jelinek <jakub@redhat.com>
27274 PR tree-optimization/69546
27275 * wide-int.cc (wi::divmod_internal): For unsigned division
27276 where both operands fit into uhwi, if o1 is 1 and o0 has
27277 msb set, if divident_prec is larger than bits per hwi,
27278 clear another quotient word and return 2 instead of 1.
27279 Similarly for remainder with msb in HWI set, if dividend_prec
27280 is larger than bits per hwi.
27282 2016-01-29 Martin Jambor <mjambor@suse.cz>
27284 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
27285 Use short lowercase names.
27286 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
27287 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
27288 acq_rel one. Protect warning agains segfaults if
27289 get_memory_order_name returns NULL.
27290 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
27291 with release semantics. Do not warn if get_memory_order already did.
27292 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
27293 semantics. Fix check for relaxed or acquire semantics. Do not warn
27294 if get_memory_order already did.
27296 2016-01-29 Sebastian Pop <s.pop@samsung.com>
27298 * doc/install.texi: Document that isl-0.16 is supported.
27300 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
27303 * config/i386/constraints.md (Bm): Describe as special memory
27305 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
27306 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
27307 * genpreds.c (struct constraint_data): Add is_special_memory.
27308 (have_special_memory_constraints, special_memory_start): New
27310 (special_memory_end): Ditto.
27311 (add_constraint): Add new arg is_special_memory. Add code to
27312 process its true value. Update have_special_memory_constraints.
27313 (process_define_constraint): Pass the new arg.
27314 (process_define_register_constraint): Ditto.
27315 (choose_enum_order): Process special memory.
27316 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
27317 function insn_extra_special_memory_constraint.
27318 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
27319 * gensupport.c (process_rtx): Process
27320 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
27321 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
27322 * ira-lives.c (single_reg_class): Use
27323 insn_extra_special_memory_constraint.
27324 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
27325 * lra-constraints.c (process_alt_operands): Ditto.
27326 (curr_insn_transform): Use insn_extra_special_memory_constraint.
27327 * recog.c (asm_operand_ok, preprocess_constraints): Process
27329 * reload.c (find_reloads): Ditto.
27330 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
27331 * stmt.c (parse_input_constraint): Use
27332 insn_extra_special_memory_constraint.
27334 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
27337 * lra-splill.c (lra_final_code_change): Revert r229087 by
27338 removing all sub-registers.
27340 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
27343 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
27345 2016-01-29 Jakub Jelinek <jakub@redhat.com>
27348 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
27349 SSE1, copy target into the temporary reg first before recursing
27352 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
27354 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
27357 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
27359 * ginclude/stdarg.h: Test __cplusplus instead of
27360 __GXX_EXPERIMENTAL_CXX0X__.
27362 2016-01-29 Richard Biener <rguenther@suse.de>
27364 PR tree-optimization/69547
27365 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
27366 Do not mark clobbers necessary.
27367 (mark_all_reaching_defs_necessary_1): Likewise.
27369 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27371 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
27372 declaration name with %qs and print it in both error messages.
27373 Also fix indentation.
27375 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
27378 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
27379 trailing blank line from error message.
27381 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
27384 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
27387 2016-01-29 Richard Biener <rguenther@suse.de>
27389 PR middle-end/69537
27390 * match.pd: Allow all integral types when simplifying a
27391 widening or sign-changing conversion.
27393 2016-01-28 Sebastian Pop <s.pop@samsung.com>
27395 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
27396 back to setting codegen_error to fail codegen.
27398 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
27401 * config/i386/constraints.md (C): Only accept constant zero operand.
27402 (BC): New constraint.
27403 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
27404 instead of C constraint.
27405 * doc/md.texi (Machine Constraints): Update description
27408 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
27411 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
27413 2016-01-28 Jakub Jelinek <jakub@redhat.com>
27415 PR middle-end/69542
27416 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
27419 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
27421 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
27422 branches if using guessed profile.
27424 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
27426 * graphite-optimize-isl.c (optimize_isl): Fix dump.
27428 2016-01-28 Richard Henderson <rth@redhat.com>
27431 * config/aarch64/aarch64-modes.def (CC_Cmode): New
27432 * config/aarch64/aarch64-protos.h: Update.
27433 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
27434 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
27435 (aarch64_get_condition_code_1): Handle CC_Cmode.
27436 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
27437 (*add<mode>3_compareC_cconly_imm): New.
27438 (*add<mode>3_compareC_cconly): New.
27439 (*add<mode>3_compareC_imm): New.
27440 (add<mode>3_compareC): New.
27441 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
27442 to be first. Use aarch64_carry_operation.
27443 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
27444 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
27445 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
27446 (subti3): Use subdi3_compare1.
27447 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
27448 (sub<mode>3_compare1): New.
27449 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
27450 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
27451 (*subsi3_carryin_uxtw): Likewise.
27452 (*ngc<mode>, *ngcsi_uxtw): Likewise.
27453 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
27454 * config/aarch64/iterators.md (DWI): New.
27455 * config/aarch64/predicates.md (aarch64_carry_operation): New.
27456 (aarch64_borrow_operation): New.
27458 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
27460 * graphite-optimize-isl.c (optimize_isl): Print a different debug
27461 message when isl does not return a valid schedule.
27463 2016-01-28 Sebastian Pop <s.pop@samsung.com>
27465 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
27466 Remove comments from class declarations: they are already in the code
27469 2016-01-28 Sebastian Pop <s.pop@samsung.com>
27471 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
27473 (ternary_op_to_tree): Same.
27474 (unary_op_to_tree): Same.
27475 (nary_op_to_tree): Same.
27476 (gcc_expression_from_isl_expr_op): Same.
27477 (gcc_expression_from_isl_expression): Same.
27478 (graphite_create_new_loop): Same.
27479 (graphite_create_new_loop_guard): Same.
27480 (build_iv_mapping): Same.
27481 (graphite_create_new_guard): Same.
27482 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
27483 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
27485 2016-01-28 Sebastian Pop <s.pop@samsung.com>
27487 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
27488 instead of setting codegen_error to fail codegen.
27490 2016-01-28 Jason Merrill <jason@redhat.com>
27492 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
27494 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
27496 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
27497 Remove CONST_INT_P check in CCMP cost calculation.
27499 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
27501 * config/aarch64/aarch64.c (generic_vector_cost):
27502 Set vec_permute_cost.
27503 (cortexa57_vector_cost): Likewise.
27504 (exynosm1_vector_cost): Likewise.
27505 (xgene1_vector_cost): Likewise.
27506 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
27507 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
27508 Add vec_permute_cost entry.
27510 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
27512 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
27514 (add<mode>3_compare0): Likewise.
27515 (addsi3_compare0_uxtw): Likewise.
27516 (add<mode>3nr_compare0): Likewise.
27517 (compare_neg<mode>): Likewise.
27518 (<optab><mode>3): Likewise.
27520 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
27522 * tree-vect-stmts.c (vectorizable_comparison): Add
27523 NULL check for vectype.
27525 2016-01-28 Richard Biener <rguenther@suse.de>
27527 PR tree-optimization/69466
27528 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
27529 Account for PHIs we couldn't duplicate.
27531 2016-01-28 Martin Liska <mliska@suse.cz>
27534 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
27535 instead of ENABLE_VALGRIND_CHECKING.
27537 2016-01-27 Richard Henderson <rth@redhat.com>
27540 * lra-remat.c (subreg_regs): New.
27541 (dump_candidates_and_remat_bb_data): Dump it.
27542 (operand_to_remat): Reject if operand in subreg_regs.
27543 (set_bb_regs): Collect subreg_regs.
27544 (lra_remat): Init and free subreg_regs. Compute
27545 calculate_local_reg_remat_bb_data before create_cands.
27547 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
27550 * config/i386/i386.c (ix86_update_stack_boundary): Don't
27551 change stack_alignment_needed for __tls_get_addr call.
27553 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
27555 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
27557 2016-01-27 Jeff Law <law@redhat.com>
27559 PR tree-optimization/68398
27560 PR tree-optimization/69196
27561 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
27562 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
27563 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27564 Only count PHIs in the last block in the path. The others will
27565 const/copy propagate away. Add heuristic to allow more irreducible
27566 subloops to be created when it is likely profitable to do so.
27568 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
27569 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
27570 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
27572 2016-01-27 Jakub Jelinek <jakub@redhat.com>
27575 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
27576 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
27577 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
27578 * tree-streamer-in.c: Include asan.h.
27579 (streamer_get_builtin_tree): For builtins in sanitizer
27580 range call initialize_sanitizer_builtins and retry.
27582 2016-01-27 Ian Lance Taylor <iant@google.com>
27584 * common.opt (fkeep-gc-roots-live): New undocumented option.
27585 * tree-ssa-loop-ivopts.c (add_candidate_1): If
27586 -fkeep-gc-roots-live, skip pointers.
27587 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
27590 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
27593 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
27594 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
27596 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
27599 * configure.ac: NetBSD provides SSP in its C library.
27600 * configure: Updated.
27602 2016-01-27 Richard Biener <rguenther@suse.de>
27604 PR tree-optimization/69166
27605 * tree-vect-loop.c (vect_is_simple_reduction): Always check
27606 reduction code for commutativity / associativity.
27608 2016-01-27 Martin Jambor <mjambor@suse.cz>
27610 PR tree-optimization/69355
27611 * tree-sra.c (analyze_access_subtree): Correct hole detection when
27612 total_scalarization fails.
27614 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
27616 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
27619 2016-01-27 Christian Bruel <christian.bruel@st.com>
27622 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
27623 Move arm_reset_previous_fndecl and set_target_option_current_node in
27624 the conditional part. Call save_restore_target_globals.
27625 * config/arm/arm.c (arm_set_current_function):
27626 Refactor to better support #pragma target and attribute mix.
27627 Call save_restore_target_globals.
27628 * config/arm/arm-protos.h (save_restore_target_globals): New function.
27630 2016-01-27 Martin Liska <mliska@suse.cz>
27632 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
27633 reference for an HSA kernel and its host function.
27635 2016-01-27 Jakub Jelinek <jakub@redhat.com>
27637 PR tree-optimization/69399
27638 * wide-int.h (wi::lrshift): For larger precisions, only
27639 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
27641 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
27643 * config/arc/predicates.md (proper_comparison_operator): Reject
27644 constant-constant comparison.
27646 2016-01-26 Tom de Vries <tom@codesourcery.com>
27648 PR tree-optimization/69110
27649 * tree-data-ref.c (initialize_data_dependence_relation): Handle
27650 DR_NUM_DIMENSIONS == 0.
27652 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
27653 Sebastian Pop <s.pop@samsung.com>
27655 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
27656 isl_ast_op_cond and isl_ast_op_select.
27657 (gcc_expression_from_isl_expr_op): Same.
27659 2016-01-26 Jason Merrill <jason@redhat.com>
27662 * tree.c (recompute_constructor_flags): Split out from
27664 (verify_constructor_flags): New.
27665 * tree.h: Declare them.
27667 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
27669 PR rtl-optimization/69217
27670 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
27671 are no TYPE_FIELDS set for the record type.
27673 2016-01-26 Jakub Jelinek <jakub@redhat.com>
27676 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
27677 toc_label_name unconditionally.
27678 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
27679 SYMBOL_REF string. Use toc_label_name instead of constructing
27681 (rs6000_elf_declare_function_name): Use toc_label_name instead of
27682 constructing LCTOC1.
27684 2016-01-26 Martin Sebor <msebor@redhat.com>
27687 * doc/extend.texi (Common Type Attributes): Move text that talks about
27688 attribute packed from attribute aligned to the section discussing
27689 the former attribute for clarity.
27691 2016-01-26 Richard Henderson <rth@redhat.com>
27693 PR middle-end/60908
27694 * trans-mem.c (tm_region_init): Mark entry block as visited.
27696 2016-01-26 David Malcolm <dmalcolm@redhat.com>
27699 * diagnostic-show-locus.c (layout::print_source_line): Replace
27700 call to pp_newline with call to layout::print_newline.
27701 (layout::print_annotation_line): Likewise.
27702 (layout::move_to_column): Likewise.
27703 (layout::print_any_fixits): After printing any fixits, print a
27704 trailing newline, if necessary.
27705 (layout::print_newline): New method, resetting any colorization
27707 (diagnostic_show_locus): Move the pp_newline to before the
27708 early bailout. Remove dummy block enclosing the layout instance.
27709 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
27710 of pp_newline_and_flush with pp_flush.
27711 (diagnostic_append_note): Delete use of pp_newline.
27712 (diagnostic_append_note_at_rich_loc): Delete.
27713 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
27714 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
27715 when newline characters are added to the buffer.
27717 2016-01-26 Michael Matz <matz@suse.de>
27719 * configure.ac (ac_cv_std_swap_in_utility): New test.
27720 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
27721 * configure: Regenerate.
27722 * config.in: Regenerate.
27724 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
27726 * config/arc/arc.md (cstoresi4): Force operand into register.
27727 (arcset<code>): Fix predicate.
27728 (arcsetltu): Likewise.
27729 (arcsetgeu): Likewise.
27730 (arcsethi): Likewise.
27731 (arcsetls): Likewise.
27733 2016-01-26 Jakub Jelinek <jakub@redhat.com>
27735 PR tree-optimization/69483
27736 * gimple-fold.c (canonicalize_constructor_val): Return NULL
27737 if base has error_mark_node type.
27739 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
27742 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
27743 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
27745 (vget_lane_f16): Handle big-endian.
27746 (vgetq_lane_f16): Likewise.
27747 (vset_lane_f16): Likewise.
27748 (vsetq_lane_f16): Likewise.
27749 * config/arm/iterators.md (VQXMOV): Add V8HF.
27750 (VDQ): Add V4HF and V8HF.
27751 (V_reg): Handle V4HF and V8HF.
27752 (Is_float_mode): Likewise.
27753 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
27754 neon_vdup_nv8hf): New patterns.
27755 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
27756 Use VD_LANE iterator.
27757 (neon_vld1_dup<mode>): Use VQ2 iterator.
27759 2016-01-26 Nathan Sidwell <nathan@acm.org>
27761 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
27762 (set_oacc_fn_attrib): Add IS_KERNEL arg.
27763 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
27764 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
27765 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
27766 (oacc_validate_dims): Add LEVEL arg, don't return level.
27767 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
27768 oacc_validate_dims.
27769 (execute_oacc_device_lower): Adjust, add more dump output.
27770 * tree-ssa-loop.c (gate_oacc_kernels): Use
27771 oacc_fn_attrib_kernels_p.
27772 * tree-parloops.c (create_parallel_loop): Adjust
27773 set_oacc_fn_attrib call.
27775 2016-01-26 Jakub Jelinek <jakub@redhat.com>
27778 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
27779 (append_compiler_options): Handle -fcilkplus.
27780 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
27782 2016-01-26 Nick Clifton <nickc@redhat.com>
27785 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
27786 been marked as DECL_ONE_ONLY but we do not the means to make it
27787 so, then do not allow it to bind locally.
27789 2016-01-26 Jakub Jelinek <jakub@redhat.com>
27792 * opts.h (parse_sanitizer_options): New prototype.
27793 * opts.c (sanitizer_opts): New array.
27794 (parse_sanitizer_options): New function.
27795 (common_handle_option): Use parse_sanitizer_options.
27797 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
27800 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
27801 alignment adjustment to ...
27802 (ix86_update_stack_boundary): Here. Don't over-align stack for
27804 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
27805 if __tls_get_addr is called.
27807 2016-01-26 Christian Bruel <christian.bruel@st.com>
27809 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
27811 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
27813 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
27815 2016-01-26 Richard Biener <rguenther@suse.de>
27817 PR middle-end/69467
27818 * match.pd: Guard X * CST CMP 0 pattern with single_use.
27820 2016-01-26 Richard Biener <rguenther@suse.de>
27822 PR tree-optimization/69452
27823 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
27824 (move_computations_dom_walker::before_dom_children): Rename
27826 (move_computations_worker): This.
27827 (move_computations): Perform an RPO rather than a DOM walk.
27829 2016-01-26 Jakub Jelinek <jakub@redhat.com>
27832 * combine.c (combine_instructions): For REG_EQUAL note with
27833 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
27834 to the underlying register.
27835 * doc/rtl.texi (REG_EQUAL): Document the behavior of
27836 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
27838 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
27841 * config/aarch64/aarch64-builtins.c
27842 (aarch64_init_simd_builtin_types): Do not set structural
27843 equality to __Poly{8,16,64,128}_t types.
27845 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
27847 PR tree-optimization/69400
27848 * wide-int.cc (wi_pack): Take the precision as argument and
27849 perform canonicalization here rather than in the callers.
27850 Use the main loop to handle all full-width HWIs. Add a
27851 zero HWI if in_len isn't a full result.
27852 (wi::divmod_internal): Update accordingly.
27853 (wi::mul_internal): Likewise. Simplify.
27855 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
27856 Sebastian Pop <s.pop@samsung.com>
27858 * graphite-poly.c (apply_poly_transforms): Simplify.
27859 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
27860 (print_isl_map): Same.
27861 (print_isl_union_map): Same.
27862 (print_isl_schedule): New.
27863 (debug_isl_schedule): New.
27864 * graphite-dependences.c (scop_get_reads): Do not call
27865 isl_union_map_add_map that is undocumented isl functionality.
27866 (scop_get_must_writes): Same.
27867 (scop_get_may_writes): Same.
27868 (scop_get_original_schedule): Remove.
27869 (scop_get_dependences): Do not call isl_union_map_compute_flow that
27870 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
27871 (compute_deps): Remove.
27872 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
27873 (debug_schedule_ast): New.
27874 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
27875 set_separate_option.
27876 (graphite_regenerate_ast_isl): Add dump.
27877 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
27878 from scop->transformed_schedule.
27879 (graphite_regenerate_ast_isl): Add more dump.
27880 * graphite-optimize-isl.c (optimize_isl): Set
27881 scop->transformed_schedule. Check whether schedules are equal.
27882 (apply_poly_transforms): Move here.
27883 * graphite-poly.c (apply_poly_transforms): ... from here.
27884 (free_poly_bb): Static.
27885 (free_scop): Static.
27886 (pbb_number_of_iterations_at_time): Remove.
27887 (print_isl_ast): New.
27888 (debug_isl_ast): New.
27889 (debug_scop_pbb): New.
27890 * graphite-scop-detection.c (print_edge): Move.
27891 (print_sese): Move.
27892 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
27893 (build_scop_scattering): Remove.
27894 (create_pw_aff_from_tree): Assert instead of bailing out.
27895 (add_condition_to_pbb): Remove unused code, do not fail.
27896 (add_conditions_to_domain): Same.
27897 (add_conditions_to_constraints): Remove.
27898 (build_scop_context): New.
27899 (add_iter_domain_dimension): New.
27900 (build_iteration_domains): Initialize pbb->iterators.
27901 Call add_conditions_to_domain.
27904 (index_outermost_in_loop): New.
27905 (index_pbb_in_loop): New.
27906 (outermost_pbb_in): New.
27907 (add_in_sequence): New.
27908 (add_outer_projection): New.
27909 (outer_projection_mupa): New.
27910 (add_loop_schedule): New.
27911 (build_schedule_pbb): New.
27912 (build_schedule_loop): New.
27913 (embed_in_surrounding_loops): New.
27914 (build_schedule_loop_nest): New.
27915 (build_original_schedule): New.
27916 (build_poly_scop): Call build_original_schedule.
27917 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
27918 (free_poly_dr): Remove.
27919 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
27920 (free_poly_bb): Remove.
27921 (debug_loop_vec): Remove.
27922 (print_isl_ast): Declare.
27923 (debug_isl_ast): Declare.
27924 (scop_do_interchange): Remove.
27925 (scop_do_strip_mine): Remove.
27926 (scop_do_block): Remove.
27927 (flatten_all_loops): Remove.
27928 (optimize_isl): Remove.
27929 (pbb_number_of_iterations_at_time): Remove.
27930 (debug_scop_pbb): Declare.
27931 (print_schedule_ast): Declare.
27932 (debug_schedule_ast): Declare.
27933 (struct scop): Remove schedule. Add original_schedule,
27934 transformed_schedule.
27935 (free_gimple_poly_bb): Remove.
27936 (print_generated_program): Remove.
27937 (debug_generated_program): Remove.
27938 (unify_scattering_dimensions): Remove.
27939 * sese.c (print_edge): ... here.
27940 (print_sese): ... here.
27941 (debug_edge): ... here.
27942 (debug_sese): ... here.
27943 * sese.h (print_edge): Declare.
27944 (print_sese): Declare.
27945 (dump_edge): Declare.
27946 (dump_sese): Declare.
27948 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
27949 Sebastian Pop <s.pop@samsung.com>
27951 * Makefile.in: Set ISLVER in site.exp.
27953 2016-01-25 Jakub Jelinek <jakub@redhat.com>
27955 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
27956 DECL_VALUE_EXPR of new_var even for the non-array case. Look
27957 through DECL_VALUE_EXPR for expansion.
27959 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
27961 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
27962 the frame info after reload completed.
27964 2016-01-25 Jeff Law <law@redhat.com>
27966 PR tree-optimization/69196
27967 PR tree-optimization/68398
27968 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
27969 tree-ssa-threadupdate.c.
27970 (determine_bb_domination_status): Prototype
27971 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
27972 (determine_bb_domination_status): No longer static.
27973 (valid_jump_thread_path): Remove code to detect characteristics
27974 of the jump thread path not associated with correctness.
27975 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
27976 Correct test for thread path length. Count PHIs for real operands as
27977 statements that need to be copied. Do not count ASSERT_EXPRs.
27978 Look at all the blocks in the thread path. Compute and selectively
27979 filter thread paths based on threading through the latch, threading
27980 a multiway branch or crossing a multiway branch.
27982 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27984 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
27985 decl with __attribute__ ((unused)) annotation.
27987 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
27990 * tree-vect-stmts.c (vectorizable_condition): Check vectype
27991 of operands is compatible with a statement vectype.
27993 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
27995 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
27996 improve wording for mixed storage order support.
27998 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
28000 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
28001 (vcvt_u64_f64): Likewise.
28002 (vcvta_s64_f64): Likewise.
28003 (vcvta_u64_f64): Likewise.
28004 (vcvtm_s64_f64): Likewise.
28005 (vcvtm_u64_f64): Likewise.
28006 (vcvtn_s64_f64): Likewise.
28007 (vcvtn_u64_f64): Likewise.
28008 (vcvtp_s64_f64): Likewise.
28009 (vcvtp_u64_f64): Likewise.
28011 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
28013 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
28014 (arc_init): Check validity mll64 option.
28015 (arc_save_restore): Use double load/store instruction.
28016 (arc_expand_movmem): Likewise.
28017 (arc_split_move): Don't split if we have double load/store
28018 instructions. Returns a boolean.
28019 (arc_process_double_reg_moves): Change function to return boolean
28020 instead of a sequence of instructions.
28021 (arc_dwarf_register_span): New function.
28022 * config/arc/arc-protos.h (arc_split_move): Change prototype.
28023 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
28024 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
28025 (*movdf_insn): Likewise.
28026 * config/arc/arc.opt (mll64): New option.
28027 * config/arc/predicates.md (even_register_operand): New predicate.
28028 * doc/invoke.texi (ARC Options): Add mll64 documentation.
28030 2016-01-25 Richard Biener <rguenther@suse.de>
28033 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
28034 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
28036 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
28038 2016-01-25 Richard Biener <rguenther@suse.de>
28040 PR tree-optimization/69376
28041 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
28043 (VN_INFO_ANTI_RANGE_P): New inline.
28044 (VN_INFO_RANGE_TYPE): Likewise.
28045 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
28046 SSA_NAME_ANTI_RANGE_P.
28047 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
28048 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
28049 Properly query VN_INFO_RANGE_TYPE.
28051 2016-01-25 Nick Clifton <nickc@redhat.com>
28054 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
28056 2016-01-23 Tom de Vries <tom@codesourcery.com>
28058 PR tree-optimization/69426
28059 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
28062 2016-01-23 Jakub Jelinek <jakub@redhat.com>
28064 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
28065 "the the" with "the" in the comments.
28066 * ipa-devirt.c (build_type_inheritance_graph,
28067 update_type_inheritance_graph): Likewise.
28068 * tree.c (build_function_type_list_1): Likewise.
28069 * cfgloopmanip.c (scale_loop_profile): Likewise.
28070 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
28071 * gimple-ssa-split-paths.c
28072 (find_block_to_duplicate_for_splitting_paths): Likewise.
28073 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
28074 * expr.c (convert_move): Likewise.
28075 * var-tracking.c (vt_stack_adjustments): Likewise.
28076 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
28077 * tree-vrp.c (test_for_singularity): Likewise.
28079 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
28080 directly instead of building a temporary tree.
28083 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
28084 remove <algorithm> include.
28086 2016-01-22 Jakub Jelinek <jakub@redhat.com>
28089 * config/i386/i386.c: Include dojump.h.
28090 (expand_small_movmem_or_setmem,
28091 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
28093 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
28094 if dynamic_check != -1.
28096 2016-01-21 Jeff Law <law@redhat.com>
28098 PR middle-end/69347
28099 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
28100 record_temporary_equivalences. Rewritten to avoid unnecessary calls
28101 into dominated_by_p.
28102 (cprop_into_successor_phis): Avoid unnecessary tests.
28104 2016-01-22 Richard Henderson <rth@redhat.com>
28107 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
28108 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
28110 2016-01-22 Michael Matz <matz@suse.de>
28112 * system.h (string, algorithm): Include only conditionally.
28113 (new): Include always under C++.
28114 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
28115 * final.c (toplevel): Ditto.
28116 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
28117 * genconditions.c (write_header): Make gencondmd.c define
28119 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
28121 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
28122 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
28124 2016-01-22 Christian Bruel <christian.bruel@st.com>
28127 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
28129 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28132 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
28133 define_insn_and_split. Ensure operands[1] and operands[0] do not
28134 get assigned the same register.
28136 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
28138 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
28140 2016-01-22 Christian Bruel <christian.bruel@st.com>
28142 * config/arm/arm-c.c (arm_pragma_target_parse):
28143 Remove warn_builtin_macro_redefined overwrite.
28145 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
28147 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
28148 flag_non_call_exceptions compatibility.
28150 2016-01-22 Jakub Jelinek <jakub@redhat.com>
28153 * dwarf2out.c (add_child_die_after): New function.
28154 (dwarf_qual_info_t): New type.
28155 (dwarf_qual_info): New variable.
28156 (qualified_die_p): New function.
28157 (modified_type_die): For -fdebug-types-section, ensure
28158 canonical order of qualifiers. Put qualified DIEs adjacent
28159 to the corresponding non-qualified type DIE and search there
28160 for existing qualified DIEs.
28162 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
28164 * doc/extend.texi (scalar_storage_order type attribute): Document
28165 restriction on type punning and aliasing, and remove future tense.
28167 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
28170 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
28173 2016-01-21 Jeff Law <law@redhat.com>
28175 PR middle-end/69347
28176 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
28177 useless call to record_temporary_equivalences.
28178 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
28179 allocate 10 slots in the bb_path vector and let it grow as needed.
28180 (fsm_find_control_statement_thread_paths): Similarly for the next_path
28183 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
28185 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
28187 * configure: Regenerate.
28189 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
28191 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
28192 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
28194 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
28196 PR middle-end/66178
28197 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
28198 drop EXPAND_INITIALIZER.
28199 * rtl.h (contains_symbolic_reference_p): Declare.
28200 * rtlanal.c (contains_symbolic_reference_p): New function.
28201 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
28202 a subtraction into a NOT if symbolic constants are involved.
28204 2016-01-21 Anton Blanchard <anton@samba.org>
28205 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28208 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
28210 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
28213 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
28215 * config/microblaze/microblaze.c
28216 (get_branch_target): New.
28217 (insert_wic_for_ilb_runout): New.
28219 (microblaze_machine_dependent_reorg): New.
28220 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
28221 * config/microblaze/microblaze.md
28222 (UNSPEC_IPREFETCH): Define.
28223 (iprefetch): New pattern
28224 * config/microblaze/microblaze.opt
28225 (mxl-prefetch): New flag.
28227 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
28229 * config/microblaze/microblaze.h
28230 (FIXED_REGISTERS): Update in macro.
28231 (CALL_USED_REGISTERS): Update in macro.
28233 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
28235 PR rtl-optimization/68920
28236 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
28239 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
28241 PR rtl-optimization/68990
28242 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
28243 pseudo instead of inheritance ones.
28245 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
28246 Nick Clifton <nickc@redhat.com>
28250 * config/mips/mips.c (mips_compute_frame_info): Initialise
28251 args_size and hard_frame_pointer_offset fields of the frame
28252 structure before calling mips_global_pointer.
28254 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
28256 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
28258 * configure: Regenerate.
28260 2016-01-21 Richard Biener <rguenther@suse.de>
28262 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
28264 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
28266 * config/s390/s390.c (s390_asm_declare_function_size): Add code
28267 to actually emit the .size directive.
28269 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
28270 Jakub Jelinek <jakub@redhat.com>
28274 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
28275 args array size by one to avoid buffer overflow.
28277 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
28279 * config/s390/s390.md (pool_section_start): Use switch_to_section
28280 to select proper read-only data section instead of hardcoding
28282 (pool_section_end): Use switch_to_section to match the above.
28284 2016-01-21 Richard Biener <rguenther@suse.de>
28286 PR tree-optimization/69378
28287 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
28288 (set_ssa_val_to): Use it for dominance checks taking into
28289 account not executable edges.
28291 2016-01-21 Jakub Jelinek <jakub@redhat.com>
28294 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
28295 for bitsize instead of GET_MODE_PRECISION (mode).
28297 2016-01-20 Martin Sebor <msebor@redhat.com>
28300 * extend.texi (__sync Builtins): Clarify the semantics of
28301 __sync_fetch_and_OP built-ins on pointers.
28302 (__atomic Builtins): Same.
28304 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28305 Sebastian Pop <s.pop@samsung.com>
28307 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
28308 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
28309 (is_valid_rename): Same.
28310 (translate_isl_ast_to_gimple::get_rename): Same.
28311 (translate_isl_ast_to_gimple::rename_all_uses): Same.
28312 (translate_isl_ast_to_gimple::rename_uses): Same.
28313 (get_new_name): Check for close_phi nodes.
28314 (copy_loop_phi_args): Use phi_node_kind.
28315 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
28316 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
28318 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28319 Sebastian Pop <s.pop@samsung.com>
28321 Revert commit r229783.
28322 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
28323 Remove use of parameter_rename_map.
28324 (copy_def): Remove.
28325 (copy_internal_parameters): Remove.
28326 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
28327 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
28328 (free_sese_info): Do not free parameter_rename_map.
28329 (set_rename): Do not use parameter_rename_map.
28330 (rename_uses): Update call to set_rename.
28331 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
28332 * sese.h (parameter_rename_map_t): Remove.
28333 (struct sese_info_t): Remove field parameter_rename_map.
28335 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28336 Sebastian Pop <s.pop@samsung.com>
28338 * graphite-isl-ast-to-gimple.c: Fix comment.
28339 * graphite-scop-detection.c (defined_in_loop_p): New.
28340 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
28341 names defined in loop.
28343 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28344 Sebastian Pop <s.pop@samsung.com>
28346 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
28347 Discard unstructured if-then-else regions.
28349 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28350 Sebastian Pop <s.pop@samsung.com>
28352 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
28353 (cleanup_loop_iter_dom): Remove.
28354 (build_loop_iteration_domains): Remove.
28355 (build_scop_context): Remove.
28356 (build_scop_iteration_domain): Remove.
28357 (add_loop_constraints): New.
28358 (build_iteration_domains): New.
28359 (build_poly_scop): Call build_iteration_domains.
28361 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28362 Sebastian Pop <s.pop@samsung.com>
28364 * graphite-scop-detection.c
28365 (scop_detection::harmful_loop_in_region): Free dom and loops.
28366 (scop_detection::loop_body_is_valid_scop): Free bbs.
28368 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28369 Sebastian Pop <s.pop@samsung.com>
28371 * graphite-scop-detection.c (record_loop_in_sese): New.
28372 (gather_bbs::before_dom_children): Call record_loop_in_sese.
28373 (build_scops): Remove call to build_sese_loop_nests.
28374 * sese.c (sese_record_loop): Remove.
28375 (build_sese_loop_nests): Remove.
28376 (new_sese_info): Remove region->loops.
28377 (free_sese_info): Same.
28378 * sese.h (sese_contains_loop): Same.
28379 (build_sese_loop_nests): Remove.
28380 (sese_contains_loop): Remove.
28382 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28383 Sebastian Pop <s.pop@samsung.com>
28385 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
28386 loop_is_valid_in_scop.
28387 (scop_detection::harmful_stmt_in_region): Renamed
28388 harmful_loop_in_region.
28389 Call loop_is_valid_in_scop.
28391 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28392 Sebastian Pop <s.pop@samsung.com>
28394 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
28397 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28398 Sebastian Pop <s.pop@samsung.com>
28400 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
28401 * graphite.h (struct poly_bb): Remove field is_reduction.
28402 (PBB_IS_REDUCTION): Remove.
28404 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
28405 Sebastian Pop <s.pop@samsung.com>
28407 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
28408 (add_pdr_constraints): Same.
28409 (scop_get_reads): Same.
28410 (scop_get_must_writes): Same.
28411 (scop_get_may_writes): Same.
28412 (scop_get_original_schedule): Same.
28413 (extend_schedule): Same.
28414 (apply_schedule_on_deps): Same.
28415 (carries_deps): Same.
28416 (compute_deps): Same.
28417 (scop_get_dependences): Same.
28418 * graphite-isl-ast-to-gimple.c
28419 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
28420 * graphite-optimize-isl.c (get_schedule_for_band): Same.
28421 (get_schedule_for_band_list): Same.
28422 (get_schedule_map): Same.
28423 (apply_schedule_map_to_scop): Same.
28424 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
28425 (build_loop_iteration_domains): Same.
28426 (add_condition_to_pbb): Same.
28427 (add_param_constraints): Same.
28428 (pdr_add_memory_accesses): Same.
28429 (pdr_add_data_dimensions): Same.
28431 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
28433 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
28436 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
28438 * common.opt (feliminate-dwarf2-dups): Replace references to
28439 "DWARF 2" with just "DWARF".
28440 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
28441 * doc/extend.texi: Likewise.
28442 * doc/cpp.texi: Likewise.
28443 * doc/invoke.texi: Likewise.
28444 (Option Summary): Add -gdwarf to list of Debugging Options.
28445 (Debugging Options): Document -gdwarf.
28446 * doc/contrib.texi: Spell "DWARF" like that.
28448 2016-01-21 Jakub Jelinek <jakub@redhat.com>
28450 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
28451 warning. Fix up formatting.
28453 PR middle-end/67653
28454 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
28455 attempt to mark memory input operand addressable and
28456 call prepare_gimple_addressable in that case. Don't adjust
28457 input_location for diagnostics, use error_at instead.
28459 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
28461 * config/rs6000/ppc-auxv.h: New file.
28462 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
28463 (cpu_is): Likewise.
28464 (cpu_supports): Likewise.
28465 * config/rs6000/rs6000.c: include "ppc-auxv.h".
28466 (cpu_is_info): New variable.
28467 (cpu_supports_info): Likewise.
28468 (tcb_verification_symbol): Likewise.
28469 (cpu_builtin_p): Likewise.
28470 (cpu_expand_builtin): New function.
28471 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
28472 (rs6000_init_builtins): Likewise.
28473 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
28474 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
28475 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
28476 * configure: Regenerate.
28477 * config.in: Likewise.
28478 * doc/extend.texi (PowerPC Built-in Functions): Document
28479 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
28481 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
28484 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
28486 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
28489 2016-01-20 Richard Henderson <rth@redhat.com>
28495 * tree.c (tm_define_builtin): New.
28496 (find_tm_vector_type): New.
28497 (build_tm_vector_builtins): New.
28498 (build_common_builtin_nodes): Call it.
28500 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
28502 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
28503 (arm_fp_ok): Likewise.
28504 (arm_fp): Likewise.
28505 (arm_crypto): Likewise.
28507 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
28508 Richard Biener <rguenther@suse.de>
28510 PR tree-optimization/69328
28511 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
28512 vectors have same number of elements.
28513 (vectorizable_condition): Fix masked version recognition.
28515 2016-01-20 Richard Biener <rguenther@suse.de>
28517 PR tree-optimization/69345
28518 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
28519 (VN_INFO_PTR_INFO): Likewise.
28520 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
28521 info when it is equal between non-dominating SSA names.
28522 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
28523 Make sure to look at original SSA infos.
28525 2016-01-20 Jeff Law <law@redhat.com>
28528 * config/m68k/predicates.md (pow2_m1_operand): New predicate
28530 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
28531 (pc_or_label_operand): New predicate.
28532 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
28533 tests for small integers that are 2^n - 1.
28535 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
28537 * doc/invoke.texi (Options Summary): Add '.' after @xref.
28539 2016-01-19 Jeff Law <law@redhat.com>
28541 PR middle-end/69347
28542 * tree-ssa-threadbackwards.c
28543 (fsm_find_control_statement_thread_paths): Do not try to lookup
28544 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
28546 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
28548 * doc/lto.texi: Remove text that says only Gold has linker plugin
28551 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
28553 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
28554 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
28555 the DIE accordingly.
28556 (modified_type_die): Add REVERSE parameter and pass it recursively,
28557 as well as to base_type_die. Adjust presence check accordingly.
28558 (base_type_for_mode): Adjust call to modified_type_die.
28559 (add_type_attribute): Add REVERSE parameter and pass it to
28561 (generic_parameter_die): Adjust call to add_type_attribute.
28562 (add_scalar_info): Likewise.
28563 (add_subscript_info): Likewise.
28564 (gen_array_type_die): Likewise.
28565 (gen_descr_array_type_die): Likewise.
28566 (gen_entry_point_die): Likewise.
28567 (gen_enumeration_type_die): Likewise.
28568 (gen_formal_parameter_die): Likewise.
28569 (gen_subprogram_die): Likewise.
28570 (gen_variable_die ): Likewise.
28571 (gen_const_die): Likewise.
28572 (gen_field_die): Likewise.
28573 (gen_pointer_type_die): Likewise.
28574 (gen_reference_type_die): Likewise.
28575 (gen_ptr_to_mbr_type_die): Likewise.
28576 (gen_inheritance_die): Likewise.
28577 (gen_subroutine_type_die): Likewise.
28578 (gen_typedef_die): Likewise.
28579 (force_type_die): Adjust call to modified_type_die.
28581 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
28583 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
28584 flow throughout the file. Fix broken link to Objective-C 2.0
28586 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
28589 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
28591 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
28593 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28596 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
28597 (maybe_record_node): Record cxa_pure_virtual as the only possible
28598 target if there are not ohter candidates.
28599 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
28601 2016-01-19 Richard Biener <rguenther@suse.de>
28603 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
28604 (get_memory_order): Likewise.
28606 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
28608 * tree-vect-stmts.c (vectorizable_store): Check
28611 2016-01-19 David Malcolm <dmalcolm@redhat.com>
28614 * gcc.c (driver::decode_argv): Add call to
28615 init_opts_obstack before init_options_struct.
28616 * opts.c (init_opts_obstack): Remove idempotency.
28617 (init_options_struct): Replace call to init_opts_obstack
28618 with a gcc_assert to verify that it has already been called.
28619 * toplev.c (toplev::main): Add call to init_opts_obstack before
28620 calls to init_options_struct.
28621 (toplev::finalize): Move cleanup of opts_obstack next to
28622 cleanup of save_decoded_options, clearing the latter, and
28623 save_decoded_options_count.
28625 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28628 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
28629 attribute to unconditional. Remove %? from output template.
28631 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
28632 Jiong Wang <jiong.wang@arm.com>
28634 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
28635 generated from different expand order.
28637 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
28639 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
28640 Add support for CCMP costing.
28642 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
28644 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
28645 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
28646 (fccmpe<mode>): Likewise.
28647 (fcmp): Rename to fcmp and globalize pattern.
28649 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
28650 (aarch64_gen_ccmp_next): Add FP support.
28652 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
28654 * target.def (gen_ccmp_first): Update documentation.
28655 (gen_ccmp_next): Likewise.
28656 * doc/tm.texi (gen_ccmp_first): Update documentation.
28657 (gen_ccmp_next): Likewise.
28658 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
28659 expand_ccmp_expr_1. Improve comments.
28660 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
28661 (ccmp_ior<mode>): Remove pattern.
28662 (cmp<mode>): Remove expand.
28663 (cmp): Globalize pattern.
28664 (cstorecc4): Use cc_register.
28665 (mov<mode>cc): Remove ccmp_cc_register check.
28666 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
28667 Simplify after removal of CC_DNE/* modes.
28668 (aarch64_ccmp_mode_to_code): Remove.
28669 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
28670 In 'k' case use integer as condition.
28671 (aarch64_nzcv_codes): Remove inverted cases.
28672 (aarch64_code_to_ccmode): Remove.
28673 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
28674 comparison with CC register to be used in folowing CCMP/branch/CSEL.
28675 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
28676 pattern. Return the comparison with CC register. Invert conditions
28677 when bitcode is OR.
28678 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
28679 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
28681 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28683 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
28684 instrumented_version.
28686 2016-01-19 Richard Biener <rguenther@suse.de>
28688 PR tree-optimization/69336
28689 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
28690 handled components with get_ref_base_and_extent.
28691 (equal_mem_array_ref_p): Adjust.
28693 2016-01-19 Jakub Jelinek <jakub@redhat.com>
28696 * shrink-wrap.c: Include valtrack.h.
28697 (move_insn_for_shrink_wrap): Add DEBUG argument. If
28698 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
28699 in between insn and where it will be moved to. Call
28700 dead_debug_insert_temp.
28701 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
28702 first and dead_debug_local_finish at the end.
28703 For uses and defs bitmap, handle all regs in between REGNO and
28704 END_REGNO, not just the first one.
28706 2016-01-19 Richard Biener <rguenther@suse.de>
28708 PR tree-optimization/69352
28709 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
28710 (equal_mem_array_ref_p): Constrain size and max size properly.
28711 Compare the reverse flag.
28713 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
28715 * ira.c (ira): Update regstat data if we deleted insns.
28717 2016-01-19 Jakub Jelinek <jakub@redhat.com>
28719 PR rtl-optimization/68955
28720 PR rtl-optimization/64557
28721 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
28722 here. Fix up formatting.
28723 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
28725 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28728 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
28729 assume that the node has body.
28730 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
28733 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28735 * lto-streamer-out.c (lto_output): Do not stream instrumentation
28738 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
28740 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
28741 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
28743 2016-01-19 Martin Jambor <mjambor@suse.cz>
28744 Martin Liska <mliska@suse.cz>
28745 Michael Matz <matz@suse.de>
28747 * Makefile.in (OBJS): Add new source files.
28748 (GTFILES): Add hsa.c.
28749 * common.opt (disable_hsa): New variable.
28750 (-Whsa): New warning.
28751 * config.in (ENABLE_HSA): New.
28752 * configure.ac: Treat hsa differently from other accelerators.
28753 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
28754 $enable_offloading.
28755 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
28756 * doc/install.texi (Configuration): Document --with-hsa-runtime,
28757 --with-hsa-runtime-include, --with-hsa-runtime-lib and
28758 --with-hsa-kmt-lib.
28759 * doc/invoke.texi (-Whsa): Document.
28760 (hsa-gen-debug-stores): Likewise.
28761 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
28762 to invoke offload compiler for hsa acclerator.
28763 * opts.c (common_handle_option): Determine whether HSA offloading
28764 should be performed.
28765 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
28766 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
28767 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
28768 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
28769 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
28770 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
28771 GF_OMP_FOR_KIND_GRID_LOOP.
28772 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
28773 (pp_gimple_stmt_1): Likewise.
28774 * gimple-walk.c (walk_gimple_stmt): Likewise.
28775 * gimple.c (gimple_build_omp_grid_body): New function.
28776 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
28777 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
28778 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
28779 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
28780 GF_OMP_TEAMS_GRID_PHONY.
28781 (gimple_statement_omp_single_layout): Updated comments.
28782 (gimple_build_omp_grid_body): New function.
28783 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
28784 (gimple_omp_for_grid_phony): New function.
28785 (gimple_omp_for_set_grid_phony): Likewise.
28786 (gimple_omp_parallel_grid_phony): Likewise.
28787 (gimple_omp_parallel_set_grid_phony): Likewise.
28788 (gimple_omp_teams_grid_phony): Likewise.
28789 (gimple_omp_teams_set_grid_phony): Likewise.
28790 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
28791 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
28792 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
28793 (BUILT_IN_GOMP_TARGET): Updated type.
28794 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
28795 (adjust_for_condition): New function.
28796 (get_omp_for_step_from_incr): Likewise.
28797 (extract_omp_for_data): Moved parts to adjust_for_condition and
28798 get_omp_for_step_from_incr.
28799 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
28800 (fixup_child_record_type): Bail out if receiver_decl is NULL.
28801 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
28802 (scan_omp_parallel): Do not create child functions for phony
28804 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
28805 (scan_omp_1_op): Checking assert we are not remapping to
28806 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
28807 (parallel_needs_hsa_kernel_p): New function.
28808 (expand_parallel_call): Register apprpriate parallel child
28809 functions as HSA kernels.
28810 (grid_launch_attributes_trees): New type.
28811 (grid_attr_trees): New variable.
28812 (grid_create_kernel_launch_attr_types): New function.
28813 (grid_insert_store_range_dim): Likewise.
28814 (grid_get_kernel_launch_attributes): Likewise.
28815 (get_target_argument_identifier_1): Likewise.
28816 (get_target_argument_identifier): Likewise.
28817 (get_target_argument_value): Likewise.
28818 (push_target_argument_according_to_value): Likewise.
28819 (get_target_arguments): Likewise.
28820 (expand_omp_target): Call get_target_arguments instead of looking
28821 up for teams and thread limit.
28822 (grid_expand_omp_for_loop): New function.
28823 (grid_arg_decl_map): New type.
28824 (grid_remap_kernel_arg_accesses): New function.
28825 (grid_expand_target_kernel_body): New function.
28826 (expand_omp): Call it.
28827 (lower_omp_for): Do not emit phony constructs.
28828 (lower_omp_taskreg): Do not emit phony constructs but create for them
28829 a temporary variable receiver_decl.
28830 (lower_omp_taskreg): Do not emit phony constructs.
28831 (lower_omp_teams): Likewise.
28832 (lower_omp_grid_body): New function.
28833 (lower_omp_1): Call it.
28834 (grid_reg_assignment_to_local_var_p): New function.
28835 (grid_seq_only_contains_local_assignments): Likewise.
28836 (grid_find_single_omp_among_assignments_1): Likewise.
28837 (grid_find_single_omp_among_assignments): Likewise.
28838 (grid_find_ungridifiable_statement): Likewise.
28839 (grid_target_follows_gridifiable_pattern): Likewise.
28840 (grid_remap_prebody_decls): Likewise.
28841 (grid_copy_leading_local_assignments): Likewise.
28842 (grid_process_kernel_body_copy): Likewise.
28843 (grid_attempt_target_gridification): Likewise.
28844 (grid_gridify_all_targets_stmt): Likewise.
28845 (grid_gridify_all_targets): Likewise.
28846 (execute_lower_omp): Call grid_gridify_all_targets.
28847 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
28848 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
28849 (tree_omp_clause): Added union field dimension.
28850 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
28851 * tree.c (omp_clause_num_ops): Added number of arguments of
28852 OMP_CLAUSE__GRIDDIM_.
28853 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
28854 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
28855 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
28856 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
28857 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
28858 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
28859 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
28860 * tree-pass.h (make_pass_gen_hsail): Declare.
28861 (make_pass_ipa_hsa): Likewise.
28862 * ipa-hsa.c: New file.
28863 * lto-section-in.c (lto_section_name): Add hsa section name.
28864 * lto-streamer.h (lto_section_type): Add hsa section.
28865 * timevar.def (TV_IPA_HSA): New.
28866 * hsa-brig-format.h: New file.
28867 * hsa-brig.c: New file.
28868 * hsa-dump.c: Likewise.
28869 * hsa-gen.c: Likewise.
28872 * toplev.c (compile_file): Call hsa_output_brig.
28873 * hsa-regalloc.c: New file.
28875 2016-01-18 Jeff Law <law@redhat.com>
28877 PR tree-optimization/69320
28878 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
28879 ranged object, do nothing if the RHS constant is not [0..1].
28880 (optimize_stmt): Comparing a boolean ranged object against a
28881 constant outside [0..1] results in a compile-time constant.
28883 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
28886 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
28888 * doc/invoke.texi (Invoking GCC): Add new section to menu.
28889 (Option Summary): Update to reflect new section and moved options.
28890 (C++ Dialect Options): Move -fstats to new section.
28891 (Debugging Options): Move all dump, statistics, and other GCC
28892 developer options to new section. Rewrite section introduction
28893 and re-order remaining options to put the more basic ones first.
28894 (Optimization Options): Move -fira-verbose and -flto-report* to
28896 (Developer Options): New section incorporating moved options.
28897 * doc/cppopts.texi (-dM): Update cross-reference.
28899 2016-01-18 Richard Henderson <rth@redhat.com>
28902 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
28903 operands to pseudo only if CSE is expected. Split long immediate
28904 operands only after reload, and for the stack pointer.
28905 (*add<GPI>3_pluslong): Remove.
28906 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
28907 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
28908 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
28909 (*add<GPI>3 peepholes): New.
28910 (*add<GPI>3 splitters): New.
28911 * config/aarch64/constraints.md (Upl): New.
28912 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
28914 2016-01-18 Richard Biener <rguenther@suse.de>
28916 PR tree-optimization/69297
28917 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
28919 (vect_bb_vectorization_profitable_p): Clear visited flag again.
28921 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
28923 PR middle-end/68542
28924 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
28925 of mixind vector and scalar types.
28926 (fold_relational_const): Add handling of vector
28927 comparison with boolean result.
28928 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
28929 comparison of vector operands with boolean result for EQ/NE only.
28930 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
28931 (verify_gimple_cond): Likewise.
28932 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
28935 2016-01-18 Joseph Myers <joseph@codesourcery.com>
28937 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
28940 2016-01-18 Richard Biener <rguenther@suse.de>
28942 PR middle-end/69308
28943 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
28945 2016-01-18 Tom de Vries <tom@codesourcery.com>
28947 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
28949 2016-01-18 Tom de Vries <tom@codesourcery.com>
28951 * omp-low.c (set_oacc_fn_attrib): Make extern.
28952 * omp-low.h (set_oacc_fn_attrib): Declare.
28953 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
28954 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
28955 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
28956 Add and handle function parameter oacc_kernels_p.
28957 (find_reduc_addr, get_omp_data_i_param): New function.
28958 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
28959 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
28960 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
28961 Calculate dominance info. Skip loops that are not in a kernels region
28962 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
28963 (pass_parallelize_loops::execute): Call parallelize_loops with
28964 oacc_kernels_p argument.
28965 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
28966 New member function.
28967 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
28968 * passes.def: Add argument to pass_parallelize_loops instantation.
28970 2016-01-18 Tom de Vries <tom@codesourcery.com>
28972 * tree-parloops.c (pass_parallelize_loops::execute): Allow
28973 pass_parallelize_loops to be run outside the loop pipeline.
28975 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
28977 * tree-scalar-evolution.c (follow_copies_to_constant): New.
28978 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
28980 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
28983 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
28984 using get_ref_base_and_extent.
28985 (equal_mem_array_ref_p): New.
28986 (hashable_expr_equal_p): Add call to previous.
28988 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
28991 * tree-sra.c (disqualified_constants, constant_decl_p): New.
28992 (sra_initialize): Allocate disqualified_constants.
28993 (sra_deinitialize): Free disqualified_constants.
28994 (disqualify_candidate): Update disqualified_constants when appropriate.
28995 (create_access): Scan for constant-pool entries as we go along.
28996 (scalarizable_type_p): Add check against type_contains_placeholder_p.
28997 (maybe_add_sra_candidate): Allow constant-pool entries.
28998 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
28999 (initialize_constant_pool_replacements): New.
29000 (sra_modify_assign): Avoid mangling assignments created by previous,
29001 and don't generate writes into constant pool.
29002 (sra_modify_function_body): Call initialize_constant_pool_replacements.
29004 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
29006 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
29007 andnot instruction.
29008 (scalar_chain::convert_op): Likewise.
29009 * config/i386/i386.md (*andndi3_doubleword): New.
29011 2016-01-18 Richard Biener <rguenther@suse.de>
29013 PR tree-optimization/69170
29014 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
29015 building a vector from scalar results of a pattern stmt.
29017 2016-01-18 Jakub Jelinek <jakub@redhat.com>
29019 * haifa-sched.c (autopref_multipass_init): Work around
29020 -Wmaybe-uninitialized warning.
29022 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
29024 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
29025 against the constant 0.
29027 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29029 PR tree-optimization/68799
29030 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
29031 look up phi candidates in the statement-candidate map.
29032 (phi_add_costs): Likewise.
29033 (record_phi_increments): Likewise.
29034 (phi_incr_cost): Likewise.
29035 (ncd_with_phi): Likewise.
29036 (all_phi_incrs_profitable): Likewise.
29038 2016-01-17 Jakub Jelinek <jakub@redhat.com>
29040 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
29041 -Wmaybe-uninitialized warning.
29043 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
29045 * doc/invoke.texi (Invoking GCC): Add new section to menu.
29046 (Option Summary): Update to reflect new section and moved options.
29047 (C++ Dialect Options): Move -fvtable-verify and related options.
29048 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
29049 and profiling-related options.
29050 (Optimization Options): Move profile generation options and
29051 -fstack-protector and related options.
29052 (Instrumentation Options): New section incorporating moved options.
29053 (Code Generation Options): Move -finstrument-functions and
29054 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
29056 2016-01-16 Tom de Vries <tom@codesourcery.com>
29058 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
29060 2016-01-16 Tom de Vries <tom@codesourcery.com>
29062 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
29064 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
29066 * hash-table.h (hash_table::empty): Turn into an inline wrapper
29067 that checks whether the table is already empty. Rename the
29068 original implementation to...
29069 (hash_table::empty_slot): ...this new private function.
29071 2016-01-15 David Malcolm <dmalcolm@redhat.com>
29073 PR diagnostic/68899
29074 * diagnostic-show-locus.c (layout::print_source_line): Move x
29075 offset of line until after call to
29076 get_line_width_without_trailing_whitespace.
29078 2016-01-15 Jeff Law <law@redhat.com>
29080 PR tree-optimization/69270
29081 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
29082 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
29083 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
29084 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
29085 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
29086 ssa_name_has_boolean_range and constant_boolean_node.
29088 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
29090 PR rtl-optimization/69030
29091 * lra-spills.c (remove_pseudos): Check nrefs and make the function
29093 (spill_pseudos): Delete debug insn for dead pseudo.
29094 (lra_spill): Initiate spill_hard_reg and slots memory separately.
29096 2016-01-15 Jiong Wang <jiong.wang@arm.com>
29098 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
29100 (TYPES_UNOPUS): Likewise.
29101 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
29102 builtin type, from UNOP to UNOPUS.
29103 (lbtruncuv4sf): Likewise.
29104 (lbtruncuv2df): Likewise.
29105 (lrounduv2sf): Likewise.
29106 (lrounduv4sf): Likewise.
29107 (lrounduv2df): Likewise.
29108 (lroundusf): Likewise.
29109 (lroundusf): Likewise.
29110 (lceiluv2sf): Likewise.
29111 (lceiluv4sf): Likewise.
29112 (lceiluv2df): Likewise.
29113 (lceilusf): Likewise.
29114 (lceiludf): Likewise.
29115 (lflooruv2sf): Likewise.
29116 (lflooruv4sf): Likewise.
29117 (lflooruv2df): Likewise.
29118 (lfloorusf): Likewise.
29119 (lfloorudf): Likewise.
29120 (lfrintnuv2sf): Likewise.
29121 (lfrintnuv4sf): Likewise.
29122 (lfrintnuv2df): Likewise.
29123 (lfrintnusf): Likewise.
29124 (lfrintnudf): Likewise.
29125 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
29127 (vcvtq_u32_f32): Likewise.
29128 (vcvtq_u64_f64): Likewise.
29129 (vcvta_u32_f32): Likewise.
29130 (vcvtaq_u32_f32): Likewise.
29131 (vcvtaq_u64_f64): Likewise.
29132 (vcvtm_u32_f32): Likewise.
29133 (vcvtmq_u32_f32): Likewise.
29134 (vcvtmq_u64_f64): Likewise.
29135 (vcvtn_u32_f32): Likwise.
29136 (vcvtnq_u32_f32): Likewise.
29137 (vcvtnq_u64_f64): Likewise.
29138 (vcvtp_u32_f32): Likewise.
29139 (vcvtpq_u32_f32): Likewise.
29140 (vcvtpq_u64_f64): Likewise.
29141 (vcvtmd_u64_f64): Likewise.
29142 (vcvtms_u32_f32): Likewise.
29143 (vcvtad_u64_f64): Likewise.
29144 (vcvtas_u32_f32): Likewise.
29145 (vcvtnd_u64_f64): Likewise.
29146 (vcvtns_u32_f32): Likewise.
29147 (vcvtpd_u64_f64): Likewise.
29148 (vcvtps_u32_f32): Likewise.
29150 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29152 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
29153 CSEL of zero_extended registers.
29155 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29157 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
29158 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
29160 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29162 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
29163 false when argument string is not found in the attributes table
29166 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
29169 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
29170 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
29171 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
29172 precision estimate.
29174 2016-01-15 Richard Biener <rguenther@suse.de>
29176 PR tree-optimization/66856
29177 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
29178 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
29179 (vect_create_new_slp_node): Increment stmt reference count.
29180 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
29181 an SLP tree before swapping operands.
29182 (vect_build_slp_tree): Likewise.
29183 (destroy_bb_vec_info): Free stmt info after SLP instances.
29184 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
29185 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
29186 (STMT_VINFO_NUM_SLP_USES): New macro.
29188 2016-01-15 Richard Biener <rguenther@suse.de>
29191 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
29192 (add_linkage_name): ... here.
29193 (gen_typedef_die): Use add_linkage_name_raw instead of
29194 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
29197 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
29199 * gimplify.c (oacc_default_clause): Decode reference and pointer
29200 types for both kernels and parallel regions.
29202 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
29204 PR middle-end/69246
29205 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
29207 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29209 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
29210 (convert_scalars_to_vector): Likewise.
29212 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
29214 * doc/extend.texi (Type Traits): Fix grammar.
29216 2016-01-15 Martin Jambor <mjambor@suse.cz>
29218 * tree-inline.c (remap_decl): Use existing dclarations if
29219 remapping a type and prevent_decl_creation_for_types.
29220 (replace_locals_stmt): Do an initial remapping of non-VLA typed
29221 decls first. Do real remapping with
29222 prevent_decl_creation_for_types set.
29223 * tree-inline.h (copy_body_data): New field
29224 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
29227 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
29229 * config/s390/s390.opt (mmvcle): More verbose help text.
29231 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
29233 * config/s390/s390.opt: Add period to -mzvector option text.
29235 2016-01-15 Richard Biener <rguenther@suse.de>
29237 PR tree-optimization/68961
29238 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
29239 of invariants in stores again.
29241 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
29243 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
29245 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
29247 * config/i386/i386.c (ix86_expand_branch): Don't split
29248 DI mode xor instruction to SI mode.
29250 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
29253 * ipa-icf.c (sem_function::merge): Virtual functions may become
29254 reachable even if they address is not taken and there are no
29257 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
29259 * lto-streamer-out.c (subtract_estimated_size): New function.
29260 (get_symbol_initial_value): Use it.
29262 2016-01-15 Christian Bruel <christian.bruel@st.com>
29265 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
29266 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
29267 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
29268 use add_builtin_function_ext_scope instead of add_builtin_function.
29269 (neon_set_p, neon_crypto_set_p): Remove.
29270 (arm_init_builtins): Always call arm_init_neon_builtins and
29271 arm_init_crypto_builtins.
29272 (arm_expand_builtin): Check that builtins are allowed for the arch.
29273 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
29274 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
29275 arm_init_neon_builtins call.
29277 2016-01-15 Richard Biener <rguenther@suse.de>
29279 PR tree-optimization/69117
29280 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
29281 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
29282 of the leader conservatively.
29283 (free_scc_vn): Restore original SSA name infos.
29285 2016-01-14 Jeff Law <law@redhat.com>
29287 PR tree-optimization/69270
29288 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
29289 single bit of precision, verify it's also unsigned.
29290 (record_edge_info): Use constant_boolean_node rather than fold_convert
29291 to convert boolean_true/boolean_false to the right type.
29293 2016-01-14 Richard Henderson <rth@redhat.com>
29296 * loop-doloop.c (record_reg_sets): New.
29297 (doloop_optimize): Reject the transform if the sequence
29298 clobbers registers live at the end of the loop block.
29299 (doloop_optimize_loops): Enable df_live if needed.
29301 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
29303 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
29304 * config/rs6000/rs6000.c: Likewise.
29305 * config/rs6000/rs6000.h: Likewise.
29306 * config/rs6000/rs6000.md: Likewise.
29307 * doc/extend.texi: Likewsie.
29309 2016-01-14 Jeff Law <law@redhat.com>
29311 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
29314 2016-01-14 Richard Henderson <rth@redhat.com>
29318 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
29319 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
29320 instead of builtin_decl_declared_p to test for declaration.
29322 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
29324 * doc/loop.texi (Loop Analysis and Representation): Document
29325 loop_depth function.
29327 2016-01-14 Tom de Vries <tom@codesourcery.com>
29329 PR tree-optimization/68773
29330 * omp-low.c (expand_omp_target): Don't set force_output.
29331 * varpool.c (varpool_node::get_create): Same.
29332 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
29333 offload_funcs with force_output.
29335 2016-01-14 Jakub Jelinek <jakub@redhat.com>
29338 * lra-eliminations.c (move_plus_up): Don't change anything if either
29339 the outer or inner subreg mode is not MODE_INT.
29340 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
29341 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
29343 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
29345 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
29346 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
29347 reduc_uplus_@var{m}): Remove.
29348 * expr.c (expand_expr_real_2): Remove expansion path for
29349 reduc_[us](min|max|plus) optabs.
29350 * optabs-tree.c (scalar_reduc_to_vector): Remove.
29351 * optabs-tree.h (scalar_reduc_to_vector): Remove.
29352 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
29353 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
29354 * tree-vect-loop.c (vectorizable_reduction): Remove test for
29355 reduc_[us](min|max|plus) optabs.
29357 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
29359 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
29360 (reduc_plus_scal_v2sf): New.
29361 (reduc_smax_v2sf): Rename to...
29362 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
29363 (reduc_smin_v2sf): Rename to...
29364 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
29366 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
29368 * alias.c (compare_base_symbol_refs): New function.
29369 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
29372 2016-01-14 Jakub Jelinek <jakub@redhat.com>
29374 PR middle-end/68146
29375 PR tree-optimization/69155
29376 * tree-complex.c: Include cfganal.h.
29377 (phis_to_revisit): New variable.
29378 (extract_component): Add phiarg_p argument. Assert that returned
29379 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
29380 (update_phi_components): Partly rewrite to use loop over real/imag
29381 components instead of code duplication. If extract_component returns
29382 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
29383 create_tmp_reg into the PHI node instead, and mention the phi triplet
29384 in phis_to_revisit.
29385 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
29386 in phis_to_revisit at the end.
29388 2016-01-14 Richard Biener <rguenther@suse.de>
29390 PR tree-optimization/68060
29391 * tree-vect-loop.c (vect_is_simple_reduction): Check the
29392 outer loop reduction is only used in the inner loop before
29393 detecting a double reduction.
29395 2016-01-14 Jakub Jelinek <jakub@redhat.com>
29398 * combine.c (expand_field_assignment): Punt if compute_mode is
29399 unsupported scalar mode.
29401 2016-01-14 Richard Biener <rguenther@suse.de>
29403 PR tree-optimization/66856
29404 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
29405 SLP node only if it built successfully.
29406 (vect_analyze_slp_instance): Adjust.
29408 2016-01-14 Jeff Law <law@redhat.com>
29410 PR tree-optimization/69270
29411 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
29412 (record_edge_info): Use it. Convert boolean_{true,false}_node
29413 to the type of op0.
29415 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
29418 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
29419 use block_ultimate_origin
29420 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
29422 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
29424 * doc/invoke.texi (Submodel Options): Rename section to
29425 "Machine-Dependent Options" to better reflect its content.
29426 Rewrite introductory text to remove archaic CPU names.
29429 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
29431 * doc/invoke.texi (Code Gen Options): Move section up in file,
29432 before target-specific options. Update menu and option summary
29433 to reflect the new section ordering.
29435 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
29437 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
29438 (C++ Dialect Options): Add cross-reference to -std option.
29439 * doc/standards.texi (C++ Language): Document C++14 support.
29441 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
29443 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
29444 for pack/unpack functions for __ibm128.
29445 (PACK_IF): Likewise.
29446 (UNPACK_IF): Likewise.
29448 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
29449 support for __ibm128 pack/unpack functions.
29450 (rs6000_invalid_builtin): Likewise.
29451 (rs6000_init_builtins): Likewise.
29452 (rs6000_opt_masks): Likewise.
29454 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
29455 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
29457 (RS6000_BTM_COMMON): Likewise.
29459 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
29460 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
29461 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
29462 128-bit floating point. Add support for the double values to be
29463 in Altivec registers for TF/IF packing and unpacking, but restrict
29464 TD packing sub-fields to be FPR registers. Don't allow overlapped
29465 register support for packing. Allow pack inputs to be memory
29466 locations. Don't build generator functions for unpack<mode>_dm
29467 and unpack<mode>_nodm.
29468 (unpack<mode>_dm): Likewise.
29469 (unpack<mode>_nodm): Likewise.
29470 (pack<mode>): Likewise.
29472 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
29473 built-in functions to pack/unpack explicit __ibm128 values.
29474 (__builtin_unpack_ibm128): Likewise.
29476 * doc/extend.texi (PowerPC Built-in Functions): Document
29477 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
29479 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
29482 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
29483 Add new arg loc and pass it down as context.
29484 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
29485 to the location to use for the warning.
29486 (check_function_arguments): New arg loc. All callers changed. Pass
29487 it to check_function_nonnull.
29488 * c-common.h (check_function_arguments): Adjust declaration.
29490 2016-01-13 Jakub Jelinek <jakub@redhat.com>
29492 PR tree-optimization/69156
29493 * gimple.c (validate_type): Removed.
29494 (gimple_builtin_call_types_compatible_p): Use
29495 useless_type_conversion_p instead of validate_type.
29496 * value-prof.c (gimple_stringop_fixed_value): Fold
29497 icall_size to correct type.
29499 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
29501 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
29504 2016-01-13 Richard Henderson <rth@redhat.com>
29507 * target.def (builtin_tm_load, builtin_tm_store): Remove.
29508 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
29509 (ix86_builtin_tm_store): Remove.
29510 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
29511 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
29512 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
29513 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
29514 * doc/tm.texi: Rebuild.
29516 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
29517 (BUILT_IN_TM_MEMCPY_RTWN): New.
29518 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
29519 fallback from vector to integer helpers.
29520 (build_tm_load): Handle vector types directly, instead of
29522 (build_tm_store): Likewise.
29523 (expand_assign_tm): Prepare for register types not handled by
29524 the above. Copy them to memory and use memcpy.
29525 * tree.c (tm_define_builtin): New.
29526 (find_tm_vector_type): New.
29527 (build_tm_vector_builtins): New.
29528 (build_common_builtin_nodes): Call it.
29530 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
29532 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
29533 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
29535 2016-01-13 Tom de Vries <tom@codesourcery.com>
29537 PR tree-optimization/69169
29538 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
29539 handled_struct_type param.
29540 (create_variable_info_for, intra_create_variable_infos): Call
29541 create_variable_info_for_1 with extra arg.
29543 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
29545 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
29546 and "armv8.1-a+crc" entries.
29548 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
29551 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
29552 Change first operand predicate from register_or_constm1_operand
29553 to register_operand.
29554 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
29555 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
29556 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
29557 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
29558 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
29559 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
29560 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
29561 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
29562 comparison with constm1_rtx from vec_prefetch_gen part.
29564 2016-01-13 Richard Biener <rguenther@suse.de>
29566 PR tree-optimization/69013
29567 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
29568 Exchange assert for a test.
29570 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29573 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
29575 2016-01-13 Richard Biener <rguenther@suse.de>
29577 PR tree-optimization/69242
29578 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
29579 assert with a check.
29581 2016-01-13 Richard Biener <rguenther@suse.de>
29583 PR tree-optimization/69186
29584 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29585 Properly guard vect_update_misalignment_for_peel call.
29587 2016-01-12 Jeff Law <law@redhat.com>
29589 PR tree-optimization/pr67755
29590 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
29591 "need_profile_correction".
29592 (thread_block_1): Initialize new field to false by default. If we
29593 have multiple thread paths through a common joiner to different
29594 final targets, then set new field to true.
29595 (compute_path_counts): Only do count adjustment when it's really
29598 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
29600 * doc/invoke.texi (Spec Files): Move section down in file, past
29601 all command-line option descriptions.
29603 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29605 PR middle-end/54809
29606 * doc/gty.texi: Remove documentation of mark_hook.
29607 * gengtype.c (struct write_types_data): Remove code to support
29608 mark_hook attribute.
29609 (walk_type): Likewise.
29610 (write_func_for_structure): Likewise.
29612 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
29614 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
29615 Directory Options, and -specs= to Overall Options.
29616 (Overall Options): Adjust similarly. Reorder to group related
29617 options together. Make -specs= cross-reference the spec file details.
29618 (Directory Options): Adjust similarly.
29620 2016-01-12 Jeff Law <law@redhat.com>
29622 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
29624 2016-01-12 Olivier Hainque <hainque@adacore.com>
29626 * gcc.c (spec_undefvar_allowed): New global.
29627 (process_command): Set to true when running for --version or --help,
29629 (getenv_spec_function): When the variable is not defined, use the
29630 variable name as the variable value if we're allowed not to issue
29633 2016-01-12 Bin Cheng <bin.cheng@arm.com>
29635 PR tree-optimization/68911
29636 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
29637 information computed for expression "init + nit * step".
29639 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
29641 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
29642 about name of GCC executable. Remove deleted node from menu.
29643 (Directory Options) <-B>: Remove cross-reference to deleted node.
29644 (Target Options): Delete section.
29646 2016-01-12 Christian Bruel <christian.bruel@st.com>
29649 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
29650 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
29652 2016-01-12 Jakub Jelinek <jakub@redhat.com>
29655 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
29656 aligned_mem is properly set for AVX512-VL floating point masked
29660 * ifcvt.c (cond_exec_process_if_block): When removing the last
29661 insn from then_bb, remove also any possible barriers that follow it.
29663 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
29667 * config/i386/iamcu.h (SIZE_TYPE): New macro.
29668 (PTRDIFF_TYPE): Likewise.
29669 (WCHAR_TYPE): Likewise.
29670 (WCHAR_TYPE_SIZE): Likewise.
29671 (STDINT_LONG32): Likewise.
29673 2016-01-12 Richard Biener <rguenther@suse.de>
29675 PR tree-optimization/69053
29676 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
29677 convert initial value for cond reductions.
29679 2016-01-12 Richard Biener <rguenther@suse.de>
29681 PR tree-optimization/69007
29682 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
29683 widen_sum after dot_prod and sad.
29685 2016-01-12 Richard Biener <rguenther@suse.de>
29687 PR tree-optimization/69168
29688 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
29689 pattern stmt SLP type.
29690 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
29691 end up unused so cope with that case.
29693 2016-01-12 Richard Biener <rguenther@suse.de>
29695 PR tree-optimization/69157
29696 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
29697 stmts def type only during analyze phase.
29698 (vectorizable_call): Likewise.
29699 (vectorizable_simd_clone_call): Likewise.
29700 (vectorizable_conversion): Likewise.
29701 (vectorizable_assignment): Likewise.
29702 (vectorizable_shift): Likewise.
29703 (vectorizable_operation): Likewise.
29704 (vectorizable_store): Likewise.
29705 (vectorizable_load): Likewise.
29707 2016-01-12 Richard Biener <rguenther@suse.de>
29709 PR tree-optimization/69174
29710 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
29712 (vectorizable_load): Properly compute the number of loads needed
29713 for permuted strided SLP loads and do not spuriously assign
29714 to SLP_TREE_VEC_STMTS.
29716 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
29718 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
29719 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
29720 (MD_EXEC_PREFIX): Remove.
29721 (MD_STARTFILE_PREFIX) Removee.
29722 (FILE_NAME_ABSOLUTE_P): Remove.
29723 (CPP_SPEC): Do not read macros from sys/version.h.
29724 (LINK_COMMAND_SPEC): Remove.
29725 (LOCAL_INCLUDE_DIR): Remove.
29726 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
29727 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
29728 (POST_LINK_SPEC): Define to invoke stubify after linker
29729 (LIBSTDCXX): Remove define
29730 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
29731 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
29732 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
29733 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
29734 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
29735 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
29736 (i386_djgpp_asm_named_section): Add propotype of new procedure
29738 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
29739 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
29740 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
29741 in config/i386/djgpp.h).
29742 (STANDARD_STARTFILE_PREFIX_2): Define identical to
29743 STANDARD_STARTFILE_PREFIX_1.
29744 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
29745 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
29746 installation errors.
29747 (MAX_OFILE_ALIGNMENT): Define to 128.
29748 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
29750 * config/i386/djgpp.c: New file. Add implementation of
29751 i386_djgpp_asm_named_section.
29753 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
29755 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
29756 Add rule for building djgpp.o.
29758 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29760 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
29761 (rtx_is_swappable_p): Reductions are swappable.
29762 (insn_is_swappable_p): V2DF reductions are swappable.
29764 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
29766 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
29767 reloads for other unsupported memory operands.
29769 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
29770 Jim Wilson <jim.wilson@linaro.org>
29773 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
29774 copy_to_mode_reg instead of force_reg.
29776 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
29779 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
29780 TARGET_80387 is true.
29782 2016-01-11 Jakub Jelinek <jakub@redhat.com>
29785 * lra-eliminations.c (move_plus_up): Only move plus up
29786 if subreg of the constant can be simplified into constant
29787 and use the simplified subreg of the constant instead of
29788 the original constant.
29790 * fold-const.c (fold_convertible_p): Don't return true
29791 for conversion of VECTOR_TYPE to same sized integral type.
29792 (fold_convert_loc): Fix up formatting. Fold conversion of
29793 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
29794 instead of NOP_EXPR.
29796 PR tree-optimization/69214
29797 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
29798 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
29801 PR tree-optimization/69207
29802 * tree-vect-slp.c (vect_get_constant_vectors): For
29803 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
29804 fold_convertible_p to vector_type's element type, and always
29805 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
29807 2016-01-11 Richard Biener <rguenther@suse.de>
29809 PR tree-optimization/69173
29810 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
29811 fixup the cycle if all stmts are in a pattern.
29813 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
29815 PR middle-end/68999
29816 * alias.c (base_alias_check): Move check for addresses with
29817 alignment ANDs before the call for compare_base_decls.
29818 (memrefs_conflict_p): Return -1 for different decls
29819 that went through alignment adjustments.
29821 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29823 PR rtl-optimization/68796
29824 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
29825 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
29826 and QImode comparisons against zero with CC_NZmode.
29827 * config/aarch64/iterators.md (short_mask): New mode_attr.
29829 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
29831 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
29832 (<avx512>_store<mode>_mask): Likewise.
29834 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
29835 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29837 PR rtl-optimization/68841
29838 * ifcvt.c (struct noce_if_info): Add orig_x field.
29839 (bbs_ok_for_cmove_arith): Add to_rename parameter.
29840 Don't record conflicts on to_rename if it's present.
29841 Allow memory destinations in sets.
29842 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
29843 blocks, passing orig_x to the checks.
29844 (noce_process_if_block): Set if_info->orig_x appropriately.
29846 2016-01-11 Tom de Vries <tom@codesourcery.com>
29848 PR tree-optimization/69069
29849 * tree-parloops.c (create_parallel_loop): Add missing phi args.
29851 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
29853 PR rtl-optimization/68920
29854 * config/i386/i386.c (ix86_option_override_internal): Restrict number
29855 of conditional moves for RTL if-conversion to 1 for
29856 TARGET_ONE_IF_CONV_INSN.
29857 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
29858 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
29859 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
29860 parameter to restirct number of conditional moves for
29862 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
29863 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
29866 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
29869 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
29870 onepart vars. Fix typo in comment. Fix reversed condition in
29872 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
29875 * var-tracking.c (dump_onepart_variable_differences): New.
29876 (dataflow_set_different): If a detailed dump is requested,
29877 delay early returns and dump differences between onepart
29878 variables present before and after, and added variables.
29880 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
29883 * expr.c (expand_expr_real_1): For boolean vector constants
29884 with a scalar mode use const_scalar_mask_from_tree.
29885 (const_scalar_mask_from_tree): New.
29886 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
29887 assigned to a mask type to handle constants.
29889 2016-01-11 Martin Jambor <mjambor@suse.cz>
29892 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
29893 useless parameters if we cannot change function signature.
29895 2016-01-11 Martin Jambor <mjambor@suse.cz>
29898 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
29901 2016-01-11 Tom de Vries <tom@codesourcery.com>
29903 PR tree-optimization/69109
29904 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
29907 2016-01-11 Tom de Vries <tom@codesourcery.com>
29909 PR tree-optimization/69108
29910 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
29911 res is not used in a phi.
29913 2016-01-11 Yury Gribov <y.gribov@samsung.com>
29916 * common.opt (frandom-seed): Fix parameter name.
29917 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
29919 2016-01-11 Tom de Vries <tom@codesourcery.com>
29921 PR tree-optimization/69058
29922 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
29925 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
29927 * config/arc/arc.opt (mdiv-rem): Add period to the end.
29928 (mcode-density): Likewise.
29930 2016-01-10 Tom de Vries <tom@codesourcery.com>
29932 PR tree-optimization/69062
29933 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
29934 (parallelize_loops): Don't paralelize loop that has phi with address
29937 2016-01-10 Tom de Vries <tom@codesourcery.com>
29939 PR tree-optimization/69039
29940 * tree-parloops.c (try_create_reduction_list): Only allow single exit
29943 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
29945 PR middle-end/68743
29946 * match.pd: Require target has function_c99_misc before doing
29947 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
29949 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
29951 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
29953 * configure: Regenerate.
29955 2016-01-09 Jakub Jelinek <jakub@redhat.com>
29957 PR middle-end/50865
29958 PR tree-optimization/69097
29959 * fold-const.h (expr_not_equal_to): New prototype.
29960 * fold-const.c: Include stringpool.h and tree-ssanames.h.
29961 (expr_not_equal_to): New function.
29962 * match.pd (X % -Y is the same as X % Y): Don't optimize
29963 unless X is known not to be equal to minimum or Y is known
29964 not to be equal to -1.
29965 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
29966 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
29967 (simplify_stmt_using_ranges): Adjust caller.
29968 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
29969 substitute_and_fold.
29971 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
29973 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
29976 2016-01-08 Jakub Jelinek <jakub@redhat.com>
29978 PR tree-optimization/69167
29979 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
29980 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
29982 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
29984 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
29985 Richard Biener <rguenther@suse.de>
29987 PR tree-optimization/68707
29988 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
29989 instances that can be handled via vect_load_lanes.
29991 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
29993 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
29994 if we can't determine address equivalence.
29995 * alias.c (compare_base_decl): Update for changed return value of
29996 symtab_node::equal_address_to.
29998 2016-01-08 Jason Merrill <jason@redhat.com>
30002 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
30003 * expr.c (store_field): Not here.
30004 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
30005 call with TREE_ADDRESSABLE type.
30006 * tree-cfg.c (verify_gimple_call): Adjust.
30008 2016-01-08 Olivier Hainque <hainque@adacore.com>
30010 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
30013 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
30015 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
30016 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
30017 (reduc_smin_v2sf): Rename to...
30018 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
30019 (reduc_splus_v2sf): Rename to...
30020 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
30022 2016-01-08 Jakub Jelinek <jakub@redhat.com>
30024 PR tree-optimization/69162
30025 * gimplify.c (gimplify_va_arg_expr): Encode original type of
30026 valist argument in another argument.
30027 (gimplify_modify_expr): Adjust for the above change. Cleanup.
30028 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
30029 to determine the va_list type, build a MEM_REF instead of
30030 build_fold_indirect_ref.
30032 PR tree-optimization/69172
30033 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
30036 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
30038 PR tree-optimization/67781
30039 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
30040 and cmpnop in two steps: first the ones not accessed in original
30041 gimple expression in a endian independent way and then the ones not
30042 accessed in the final result in an endian-specific way.
30044 2016-01-08 Jakub Jelinek <jakub@redhat.com>
30046 PR tree-optimization/69083
30047 * tree-vect-slp.c (vect_get_constant_vectors): For
30048 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
30049 element type. If op is fold_convertible_p to vector_type's element
30050 type, use NOP_EXPR instead of VCE.
30052 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
30054 PR rtl-optimization/67778
30055 PR rtl-optimization/68634
30056 PR rtl-optimization/68909
30057 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
30058 block from the stack until done with it. Remove a superfluous
30059 bitmap set. Remove a superfluous bitmap test.
30061 2016-01-07 Martin Sebor <msebor@redhat.com>
30064 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
30065 constraint on the type of arguments.
30067 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
30069 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
30070 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
30071 unaligned_access on the gcc_options set.
30072 * config/arm/arm.c (arm_option_override_internal): Use
30073 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
30075 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
30078 * config/i386/i386.c (ix86_frame_pointer_required): Enable
30079 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
30081 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
30084 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
30087 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
30088 depending on frame_pointer_needed before remaining integer and SSE
30089 registers are saved.
30091 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
30094 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
30096 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
30099 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
30100 Use the "xBm" constraint.
30101 (float<sseintvecmodelower><mode>2<mask_name><round_name):
30103 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
30104 (sse_cvtsi2ssq<round_name>): Likewise.
30105 (sse_cvtss2si<round_name>): Likewise.
30106 (sse_cvtss2siq<round_name>): Likewise.
30107 (sse2_cvtsi2sdq<round_name>): Likewise.
30108 (sse2_cvtsd2si<round_name>): Likewise.
30109 (sse2_cvtsd2siq<round_name>): Likewise.
30110 * config/i386/subst.md (round_nimm_scalar_predicate): New
30113 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
30115 PR middle-end/67639
30116 * varasm.c (make_decl_rtl): Mark invalid register vars as
30119 PR rtl-optimization/66206
30120 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
30121 All callers changed.
30123 2016-01-07 Jakub Jelinek <jakub@redhat.com>
30125 PR tree-optimization/69141
30126 * tree-ssa-pre.c: Include langhooks.h.
30127 (eliminate_dom_walker::before_dom_children): Use
30128 lang_hooks.decl_printable_name instead of
30129 cgraph_node::get ()->name ().
30131 PR middle-end/68960
30132 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
30133 it and DECL_ALIGN too.
30135 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
30137 * config/mips/mips-ftypes.def: Sort to lexicographical order.
30139 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
30142 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
30143 depending on frame_pointer_needed before remaining integer and SSE
30144 registers are saved.
30146 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30148 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
30149 mode iterator with VSX_M2.
30150 (*p9_vecstore_<mode>): Likewise.
30151 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
30152 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
30153 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
30154 (define_split for VSX_LE128 stores): Likewise.
30155 (define_peephole2 for TImode LE swaps): Likewise.
30156 (define_split for VSX_LE128 post-reload stores): Likewise.
30158 2016-01-06 Marek Polacek <polacek@redhat.com>
30161 * convert.c (convert_to_integer_1): Adjust call to
30162 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
30163 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
30164 EXPR instead of ARG.
30165 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
30167 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
30170 * doc/extend.texi (RL78 Variable Attributes): New section.
30172 2016-01-05 Marek Polacek <polacek@redhat.com>
30175 * builtins.c (get_memmodel): Use expansion point location rather than
30176 the input location. Call warning_at rather than warning.
30177 (expand_builtin_atomic_compare_exchange): Likewise.
30178 (expand_builtin_atomic_load): Likewise.
30179 (expand_builtin_atomic_store): Likewise.
30180 (expand_builtin_atomic_clear): Likewise.
30182 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
30185 * config/i386/i386.c (ix86_expand_vector_logical_operator):
30186 Replace nonimmediate_operand with vector_operand.
30187 * config/i386/predicates.md (vector_operand): New predicate.
30188 (general_vector_operand): Replace nonimmediate_operand with
30190 * config/i386/sse.md: Replace nonimmediate_operand with
30191 vector_operand and m constraint with Bm constraint on SSE
30192 patterns with 16-byte memory operand.
30193 * config/i386/subst.md (round_nimm_predicate): Replace
30194 nonimmediate_operand with vector_operand.
30195 (round_saeonly_nimm_predicate): Likewise.
30196 (round_saeonly_nimm_scalar_predicate): New.
30198 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
30201 * config/i386/constraints.md (Bm): New constraint.
30202 * config/i386/predicates.md (vector_memory_operand): New
30204 * config/i386/sse.md: Replace xm with xBm in plusminus and
30205 any_logic patterns.
30207 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
30210 * doc/extend.texi (V850 Function Attributes): New section.
30211 (V850 Variable Attributes): New section.
30213 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
30216 * doc/extend.texi (MicroBlaze Function Attributes): Document
30217 interrupt_handler and fast_interrupt attributes.
30219 2016-01-05 Sergei Trofimovich <siarheit@google.com>
30222 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
30223 for local symbolic operands.
30224 * config/ia64/predicates.md (local_symbolic_operand64): New
30227 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30229 PR rtl-optimization/68651
30230 * combine.c (combine_simplify_rtx): Canonicalize x + x into
30233 2016-01-05 Nathan Sidwell <nathan@acm.org>
30235 * alias.c (compare_base_decls): Use symtab_node::get.
30237 2016-01-05 Nick Clifton <nickc@redhat.com>
30240 * ira-costs.c (copy_cost): Initialise the t_icode field of the
30241 secondary_reload_info structure.
30244 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
30245 decls if weak support is available.
30247 2016-01-04 Martin Sebor <msebor@redhat.com>
30249 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
30251 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
30253 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
30254 OPTION_MASK_P9_DFORM.
30256 * config/rs6000/constraints.md (wo constraint): New constraint for
30259 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
30261 (rs6000_init_hard_regno_mode_ok): Likewise.
30263 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
30266 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
30267 expanders not to have constraints. Add support for ISA 3.0 xxperm
30268 instruction. Add support for fusing xxlor with xxperm.
30269 (altivec_vperm_<mode>_internal): Likewise.
30270 (altivec_vperm_v8hiv16qi): Likewise.
30271 (altivec_vperm_<mode>v16q): Likewise.
30272 (altivec_vperm_<mode>_uns): Likewise.
30273 (vperm_v8hiv4si): Likewise.
30274 (vperm_v16qiv8hi): Likewise.
30276 * doc/md.texi (RS/6000 constraints): Document wo constraint.
30278 2016-01-04 Jakub Jelinek <jakub@redhat.com>
30280 Update copyright years.
30282 * gcc.c (process_command): Update copyright notice dates.
30283 * gcov-dump.c (print_version): Ditto.
30284 * gcov.c (print_version): Ditto.
30285 * gcov-tool.c (print_version): Ditto.
30286 * gengtype.c (create_file): Ditto.
30287 * doc/cpp.texi: Bump @copying's copyright year.
30288 * doc/cppinternals.texi: Ditto.
30289 * doc/gcc.texi: Ditto.
30290 * doc/gccint.texi: Ditto.
30291 * doc/gcov.texi: Ditto.
30292 * doc/install.texi: Ditto.
30293 * doc/invoke.texi: Ditto.
30295 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
30297 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
30298 modes larger than TImode as TImode if NEON is not enabled.
30300 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
30303 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
30304 mode for %f0-%f31 only if TARGET_FPU.
30306 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
30309 * config/sparc/sparc.c (scan_record_type): Take into account subfields
30310 to compute the PACKED_P predicate.
30311 (function_arg_record_value): Minor tweaks.
30313 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
30315 * doc/install.texi (--with-multilib-list): Describe the meaning of the
30316 option for arm*-*-* targets.
30318 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
30320 * doc/extend.texi (Common Function Attributes): Move docs for
30321 MSP430-specific attributes to....
30322 (MSP430 Function Attributes): ...here. Delete the redundant
30323 entries and copy-edit the remaining text.
30324 (MSP430 Variable Attributes): Use uniform format for index
30325 entries and add a cross-reference to the corresponding function
30328 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
30330 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
30332 (x86 Options): Likewise.
30334 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
30338 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
30339 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
30340 to corresponding attribute.
30342 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
30344 * doc/extend.texi (Common Function Attributes) <noplt>: Move
30345 to correct alphabetization of table. Copy-edit and correct
30347 <stack_protect>: Likewise.
30348 <target_clones>: Likewise.
30350 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
30351 Correct punctuation.
30352 (Code Gen Options) <-fno-plt>: Copy-edit.
30354 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
30357 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
30358 SI values. Explicitly convert SI to DI and vice-versa.
30360 2016-01-01 Jakub Jelinek <jakub@redhat.com>
30362 PR tree-optimization/69070
30363 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
30364 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
30367 * ubsan.c (ubsan_instrument_float_cast): Call
30368 initialize_sanitizer_builtins.
30371 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
30373 Copyright (C) 2016 Free Software Foundation, Inc.
30375 Copying and distribution of this file, with or without modification,
30376 are permitted in any medium without royalty provided the copyright
30377 notice and this notice are preserved.