1 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
3 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7 * config/i386/znver1.md
8 (znver1_pop, znver1_pop_mem,
9 znver1_load_imov_double_store,
10 znver1_load_imov_direct_store,
11 znver1_load_imov_direct_load,
12 znver1_load_imov_double_load): Add new.
13 (znver1_insn, znver1_insn_load): Add icmov type.
15 znver1_sseavx_fma_load,
17 znver1_avx256_fma_load): Fix pipe usage.
19 2016-02-14 Alan Modra <amodra@gmail.com>
22 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
23 with an invalid hard reg, reload just the reg not the entire
24 pre/post-inc/dec address expression.
26 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
29 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
30 fixed R1_REG scratch reg.
31 (sibcall_value_pcrel_fdpic): Likewise.
33 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
37 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
39 2016-02-12 Walter Lee <walt@tilera.com>
41 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
42 * config/tilegx/t-tilegx: Likewise.
44 2016-02-12 David Malcolm <dmalcolm@redhat.com>
47 * diagnostic-show-locus.c (struct line_span): New struct.
48 (layout::get_first_line): Delete.
49 (layout::get_last_line): Delete.
50 (layout::get_num_line_spans): New member function.
51 (layout::get_line_span): Likewise.
52 (layout::print_heading_for_line_span_index_p): Likewise.
53 (layout::get_expanded_location): Likewise.
54 (layout::calculate_line_spans): Likewise.
55 (layout::m_first_line): Delete.
56 (layout::m_last_line): Delete.
57 (layout::m_line_spans): New field.
58 (layout::layout): Update comment. Replace m_first_line and
59 m_last_line with m_line_spans, replacing their initialization
60 with a call to calculate_line_spans.
61 (diagnostic_show_locus): When printing source lines and
62 annotations, rather than looping over a single span
63 of lines, instead loop over each line_span within
64 the layout, with an inner loop over the lines within them.
65 Call the context's start_span callback when changing line spans.
66 * diagnostic.c (diagnostic_initialize): Initialize start_span.
67 (diagnostic_build_prefix): Break out the building of the location
68 part of the string into...
69 (diagnostic_get_location_text): ...this new function, rewriting
70 it from nested ternary expressions to a sequence of "if"
72 (default_diagnostic_start_span_fn): New function.
73 * diagnostic.h (diagnostic_start_span_fn): New typedef.
74 (diagnostic_context::start_span): New field.
75 (default_diagnostic_start_span_fn): New prototype.
77 2016-02-12 David Malcolm <dmalcolm@redhat.com>
80 * gcc.c (driver::finalize): Fix cleanup of "specs".
82 2016-02-12 David Malcolm <dmalcolm@redhat.com>
86 * gcc.c (driver::driver): Initialize m_option_suggestions.
87 (driver::~driver): Clean up m_option_suggestions.
88 (suggest_option): Convert to...
89 (driver::suggest_option): ...this, and split out into
90 driver::build_option_suggestions and find_closest_string.
91 (driver::build_option_suggestions): New function, from
92 first half of suggest_option. Special-case
93 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
94 the sanitizer_opts array. For options of enum types, add the
95 various enum values to the candidate strings.
96 (driver::handle_unrecognized_options): Remove "const".
97 * gcc.h (driver::handle_unrecognized_options): Likewise.
98 (driver::build_option_suggestions): New decl.
99 (driver::suggest_option): New decl.
100 (driver::m_option_suggestions): New field.
101 * opts-common.c (add_misspelling_candidates): New function.
102 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
104 * opts.h (sanitizer_opts): New array decl.
105 (add_misspelling_candidates): New function decl.
106 * spellcheck.c (find_closest_string): New function.
107 * spellcheck.h (find_closest_string): New function decl.
109 2016-02-12 Jakub Jelinek <jakub@redhat.com>
111 PR rtl-optimization/69764
112 PR rtl-optimization/69771
113 * optabs.c (expand_binop_directly): For shift_optab_p, force
114 convert_modes with VOIDmode if xop1 has VOIDmode.
116 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
119 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
120 to correctly determine instrumentation thunks.
122 2016-02-12 Jakub Jelinek <jakub@redhat.com>
125 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
126 type by reference, force lhs on the call.
129 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
130 Compute retval and retbnd early in all cases if split_part_return_p
131 and return_bb is not EXIT. Remove all clobber stmts and reset
132 all debug stmts that refer to SSA_NAMEs defined in split part,
133 except if it is retval, in that case replace the old retval with the
134 lhs of the call to the split part.
136 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
139 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
142 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
143 whose result is used in PHI.
144 (maybe_optimize_range_tests): Likewise.
145 (final_range_test_p): Likweise.
147 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
150 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
151 whose result is used in PHI.
152 (maybe_optimize_range_tests): Likewise.
153 (final_range_test_p): Likweise.
155 2016-02-12 Jakub Jelinek <jakub@redhat.com>
157 * cgraph.c: Spelling fixes - behaviour -> behavior and
158 neighbour -> neighbor.
159 * target.def: Likewise.
160 * sel-sched.c: Likewise.
161 * config/mips/mips.c: Likewise.
162 * config/arc/arc.md: Likewise.
163 * config/arm/cortex-a57.md: Likewise.
164 * config/arm/arm.c: Likewise.
165 * config/arm/neon.md: Likewise.
166 * config/arm/arm-c.c: Likewise.
167 * config/vms/vms-c.c: Likewise.
168 * config/s390/s390.c: Likewise.
169 * config/i386/znver1.md: Likewise.
170 * config/i386/i386.c: Likewise.
171 * config/ia64/hpux-unix2003.h: Likewise.
172 * config/msp430/msp430.md: Likewise.
173 * config/rx/rx.c: Likewise.
174 * config/rx/rx.md: Likewise.
175 * config/aarch64/aarch64-simd.md: Likewise.
176 * config/aarch64/aarch64.c: Likewise.
177 * config/nvptx/nvptx.c: Likewise.
178 * config/bfin/bfin.c: Likewise.
179 * config/cris/cris.opt: Likewise.
180 * config/rs6000/rs6000.c: Likewise.
181 * target.h: Likewise.
182 * spellcheck.c: Likewise.
183 * ira-build.c: Likewise.
184 * tree-inline.c: Likewise.
185 * builtins.c: Likewise.
186 * lra-constraints.c: Likewise.
187 * explow.c: Likewise.
189 * targhooks.c: Likewise.
190 * tree-vect-data-refs.c: Likewise.
192 * doc/tm.texi: Likewise.
193 * doc/extend.texi: Likewise.
194 * doc/install.texi: Likewise.
195 * doc/md.texi: Likewise.
196 * tree-ssa-tail-merge.c: Likewise.
197 * sched-int.h: Likewise.
198 * match.pd: Likewise.
199 * sched-ebb.c: Likewise.
200 * target.def (omit_struct_return_reg): Likewise.
201 * gimple-ssa-isolate-paths.c: Likewise.
202 (find_implicit_erroneous_behaviour): Renamed to...
203 (find_implicit_erroneous_behavior): ... this.
204 (find_explicit_erroneous_behaviour): Renamed to...
205 (find_explicit_erroneous_behavior): ... this.
206 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
208 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
210 PR rtl-optimization/64682
211 PR rtl-optimization/69567
212 PR rtl-optimization/69737
213 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
214 in I2 as well, just lose it.
216 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
218 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
220 (aarch64_last_printed_tune_string): Likewise.
221 (aarch64_declare_function_name): Only output .arch assembler
222 directive if it will be different from the previously output
223 directive. Same for .tune comment but only if -dA is set.
224 (aarch64_start_file): New function.
225 (TARGET_ASM_FILE_START): Define.
227 2016-02-11 David Malcolm <dmalcolm@redhat.com>
230 * Makefile.in (PLUGIN_HEADERS): Add params.list.
232 2016-02-11 Jakub Jelinek <jakub@redhat.com>
235 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
236 -Wmaybe-uninitialized warning.
238 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
241 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
243 2016-02-11 Richard Biener <rguenther@suse.de>
245 PR rtl-optimization/69291
246 * ifcvt.c (noce_try_store_flag_constants): Do not allow
247 subexpressions affected by changing the result.
249 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
252 * lra-constraints.c (curr_insn_transform): Find in/out operands
253 for secondary memory moves. Update dups.
255 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
257 PR tree-optimization/69652
258 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
259 to nested loop, did source re-formatting, skip debug statements,
260 add check on statement with volatile operand, remove dead scalar
263 2016-02-10 Jakub Jelinek <jakub@redhat.com>
264 Patrick Palka <ppalka@gcc.gnu.org>
268 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
269 calls if the return type is TREE_ADDRESSABLE.
270 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
271 * ipa-split.c (split_function): Fix doubled "we" in comment.
272 Use void return type for the split part even if
273 !split_point->split_part_set_retval.
275 2016-02-10 Bin Cheng <bin.cheng@arm.com>
277 PR tree-optimization/68021
278 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
279 when computing the value of biv cand by itself.
281 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
283 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
284 (cortexa57_tunings): Likewise.
285 (cortexa72_tunings): Likewise.
286 (arch_macro_fusion_pair_p): Add support for AES fusion.
287 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
288 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
289 Allow virtual registers before reload so early scheduling works.
290 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
291 correct latency and pipeline.
292 (cortex_a57_crypto_complex): Likewise.
293 (cortex_a57_crypto_xor): Likewise.
294 (define_bypass): Add AES bypass.
296 2016-02-10 Richard Biener <rguenther@suse.de>
298 PR tree-optimization/69726
299 * passes.def: Add DCE pass before late uninit.
300 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
301 really fixup if-conversions job.
303 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
305 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
306 (arm_cortex_a57_tune): Likewise.
307 (aarch_macro_fusion_pair_p): Add support for AES fusion.
308 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
310 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
312 * timevar.def (TV_PHASE_DBGINFO): Delete.
313 (TV_PHASE_CHECK_DBGINFO): Likewise.
314 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
316 2016-02-10 Richard Biener <rguenther@suse.de>
318 PR tree-optimization/69719
319 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
320 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
322 2016-02-09 Andrew Pinski <apinski@cavium.com>
325 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
326 get_vcond_mask_icode returns false.
328 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
331 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
332 an ADDIS that adds a pointer to a large constant that sets the
333 upper16 bits with a load operation.
335 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
338 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
340 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
342 (vzipq_s16): Likewise.
343 (vzipq_s32): Likewise.
344 (vzipq_f32): Likewise.
345 (vzipq_u8): Likewise.
346 (vzipq_u16): Likewise.
347 (vzipq_u32): Likewise.
348 (vzipq_p8): Likewise.
349 (vzipq_p16): Likewise.
351 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
354 * config/arm/arm.c (neon_endian_lane_map): New function.
355 (neon_vector_pair_endian_lane_map): New function.
356 (arm_evpc_neon_vuzp): Allow for big endian lane order.
357 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
359 (vuzpq_s16): Likewise.
360 (vuzpq_s32): Likewise.
361 (vuzpq_f32): Likewise.
362 (vuzpq_u8): Likewise.
363 (vuzpq_u16): Likewise.
364 (vuzpq_u32): Likewise.
365 (vuzpq_p8): Likewise.
366 (vuzpq_p16): Likewise.
368 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
371 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
374 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
376 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
377 truncate const_int operand 1 to QImode.
379 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
381 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
382 corresponding to an abnormal edge.
384 2016-02-09 Tom de Vries <tom@codesourcery.com>
386 PR tree-optimization/69599
387 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
389 (find_func_aliases_for_builtin_call, find_func_clobbers)
390 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
393 2016-02-09 Richard Biener <rguenther@suse.de>
395 PR tree-optimization/69715
396 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
397 LHS on calls as non-rewritable.
399 2016-02-09 Tom de Vries <tom@codesourcery.com>
402 * lto-wrapper.c (append_diag_options): New function.
403 (compile_offload_image): Call append_diag_options.
405 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
408 * doc/extend.texi (Flag Output Operands): Correct sectioning.
409 Minor copy-edit to fix verb tenses.
411 2016-02-08 Jakub Jelinek <jakub@redhat.com>
413 PR tree-optimization/69209
414 * ipa-split.c (split_function): If split part is not
415 returning retval, retval has gimple type but is not
416 gimple value, force it into a SSA_NAME first.
418 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
420 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
423 2016-02-08 Jason Merrill <jason@redhat.com>
426 * convert.c (convert_to_integer_1): Check dofold on truncation
428 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
429 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
430 Rename from *_nofold.
431 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
432 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
434 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
437 * tree.c (build_common_tree_nodes): Remove short_double argument.
439 * tree.h (build_common_tree_nodes): Adjust declaration.
440 * doc/invoke.texi (-fshort-double): Remove documentation.
441 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
442 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
443 * lto-wrapper.c (merge_and_complain, append_compiler_options)
444 (append_linker_options): Don't handle OPT_fshort_double.
446 PR rtl-optimization/68730
447 * lra-remat.c (insn_to_cand_activation): New static variable.
448 (lra_remat): Allocate and free it.
449 (create_cand): New arg activation. Initialize a field in
450 insn_to_cand_activation if it is nonnull.
451 (create_cands): Pass the activation insn to create_cand when making
452 a candidate involving an output reload. Reorganize code a little.
453 (do_remat): Keep track of active status of candidates in a separate
456 2016-02-08 Richard Biener <rguenther@suse.de>
458 PR tree-optimization/69719
459 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
460 Properly use absolute of the difference of the two offsets to
461 compare or adjust the segment length.
463 2016-02-08 Richard Biener <rguenther@suse.de>
464 Jeff Law <law@redhat.com>
467 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
468 types for anonymous SSA names.
470 2016-02-08 Richard Biener <rguenther@suse.de>
472 PR rtl-optimization/69274
473 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
475 2016-02-08 Jeff Law <law@redhat.com>
477 PR tree-optimization/65917
478 * tree-ssa-dom.c (record_temporary_equivalences): Record both
479 equivalences from if (x == y) style conditionals.
480 (loop_depth_of_name): Remove.
481 (record_equality): Remove loop depth check.
482 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
483 (const_and_copies::record_const_or_copy_raw): New member function.
484 * tree-ssa-scopedtables.c
485 (const_and_copies::record_const_or_copy_raw): New, factored out of
486 (const_and_copies::record_const_or_copy): Call new member function.
488 2016-02-05 Jeff Law <law@redhat.com>
490 PR tree-optimization/68541
491 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
492 (count_stmts_in_block): New function.
493 (poor_ifcvt_candidate_code): Likewise.
494 (is_feasible_trace): Add some heuristics to determine when path
495 splitting is profitable.
496 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
497 is a diamond with a single exit.
499 2016-02-05 Martin Sebor <msebor@redhat.com>
502 * doc/invoke.texi: Update -Wplacement-new to take an optional
505 2016-02-06 Richard Henderson <rth@redhat.com>
508 * tree.c (tree_nop_conversion_p): Do not strip casts into or
509 out of non-standard address spaces.
511 2016-02-05 Jakub Jelinek <jakub@redhat.com>
513 PR rtl-optimization/69691
514 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
516 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
518 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
519 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
520 (*ieee128_mfvsrd_64bit): Likewise.
521 (*ieee128_mfvsrd_32bit): Likewise.
523 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
527 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
529 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
530 instrumented_version.
532 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
534 * doc/invoke.texi (Optimize Options): In table of --param options
535 rename second occurrence of tracer-min-branch-ratio to
536 tracer-min-branch-probability, rename
537 tracer-min-branch-ratio-feedback to
538 tracer-min-branch-probability-feedback and clarify description,
539 rename sched-spec-state-edge-prob-cutoff to
540 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
541 to selsched-insns-to-rename, rename lto-minpartition to
542 lto-min-partition, delete reorder-blocks-duplicate and
543 reorder-blocks-duplicate-feedback.
545 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
547 * config/s390/s390.c (s390_register_info_set_ranges): Remove
550 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
552 * doc/extend.texi: S/390: Correct some typos.
554 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
556 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
558 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
561 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
562 (s390_register_info_gprtofpr): Use new macros above.
563 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
565 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
566 its name. Adjust restore and save gpr ranges.
567 (s390_register_info_set_ranges): New function.
568 (s390_register_info): Use new macros above. Call
569 s390_register_info_set_ranges.
570 (s390_optimize_register_info): Likewise.
571 (s390_hard_regno_rename_ok): Use new macros.
572 (s390_hard_regno_scratch_ok): Likewise.
573 (s390_emit_epilogue): Likewise.
574 (s390_can_use_return_insn): Likewise.
575 (s390_optimize_prologue): Likewise.
576 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
578 2016-02-05 Jakub Jelinek <jakub@redhat.com>
581 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
583 (ix86_option_override_internal): Disable TARGET_STV even for
584 -m{incoming,preferred}-stack-boundary=3.
586 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
588 * config.gcc: Mark deprecated rtems targets as obsolete.
590 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
592 PR rtl-optimization/64682
593 PR rtl-optimization/69567
594 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
595 before I2 only if the register is both used and set in I2.
597 2016-02-04 DJ Delorie <dj@redhat.com>
599 * config/msp430/msp430.c (msp430_start_function): Add function type.
601 2016-02-04 Jakub Jelinek <jakub@redhat.com>
604 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
606 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
608 PR rtl-optimization/69577
610 2015-10-29 Richard Henderson <rth@redhat.com>
614 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
615 sse check to the exact conditions of PR 67609.
617 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
620 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
621 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
622 not allowed into the traditional Altivec registers.
623 (movtd_64bit_nodm): Likewise.
624 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
626 2016-02-04 David Malcolm <dmalcolm@redhat.com>
628 * config/aarch64/cortex-a57-fma-steering.c
629 (aarch64_register_fma_steering): Remove "static" from arguments
632 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
635 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
638 2016-02-04 Mike Frysinger <vapier@gentoo.org>
640 * doc/invoke.texi: Delete -mno-fma4.
642 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
644 PR rtl-optimization/69577
645 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
646 (find_subregs_of_mode): Update accordingly. Iterate over partial
649 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
651 * config/arm/arm-protos.h (neon_reinterpret): Remove.
652 * config/arm/arm.c (neon_reinterpret): Remove.
653 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
654 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
655 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
656 vreinterpretti): Remove.
657 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
658 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
659 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
660 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
661 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
662 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
663 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
664 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
665 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
666 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
667 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
668 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
669 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
670 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
671 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
672 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
673 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
674 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
675 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
676 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
677 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
678 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
679 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
680 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
681 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
682 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
683 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
684 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
685 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
686 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
687 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
688 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
689 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
690 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
691 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
692 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
693 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
694 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
695 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
696 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
697 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
698 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
699 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
700 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
701 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
702 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
703 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
704 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
705 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
706 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
707 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
708 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
709 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
710 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
711 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
712 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
713 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
714 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
715 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
716 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
717 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
718 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
719 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
720 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
721 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
722 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
723 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
724 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
725 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
726 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
727 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
728 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
729 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
730 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
731 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
732 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
733 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
734 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
735 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
736 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
737 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
738 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
739 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
740 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
741 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
742 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
743 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
744 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
745 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
746 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
747 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
748 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
749 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
750 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
751 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
752 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
753 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
754 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
755 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
756 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
757 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
758 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
759 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
761 2016-02-04 Martin Liska <mliska@suse.cz>
764 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
765 that are gimple_store_p.
766 (maybe_instrument_call): Likewise.
768 2016-02-04 Bin Cheng <bin.cheng@arm.com>
770 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
771 register scaling out of memory reference and comment why.
773 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
777 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
778 folding the source of a SET.
780 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
784 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
785 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
787 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
791 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
794 2016-02-04 Christian Bruel <christian.bruel@st.com>
796 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
797 * config/arm/arm.c (arm_set_current_function): Likewise.
799 2016-02-04 Jakub Jelinek <jakub@redhat.com>
800 Ilya Enkovich <enkovich.gnu@gmail.com>
801 H.J. Lu <hongjiu.lu@intel.com>
804 * config/i386/i386.c (convert_scalars_to_vector): Remove
805 stack alignment fixes.
806 (ix86_option_override_internal): Disable TARGET_STV if stack
807 might not be aligned enough.
808 (ix86_minimum_alignment): Assert that TARGET_STV is false.
810 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
812 * gcc/config/i386/x86-tune.def: Disable default prefetching
815 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
816 Vladimir Makarov <vmakarov@redhat.com>
819 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
820 in validating fused toc addresses.
822 2016-02-03 Jakub Jelinek <jakub@redhat.com>
825 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
826 range->m_caret fields if range->m_show_caret_p is false.
829 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
830 Force oldval into register if it does not satisfy reg_or_short_operand
831 predicate. Fix up formatting.
833 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
834 Alexandre Oliva <aoliva@redhat.com>
837 * lra-constraints.c (simplify_operand_subreg): Check additionally
838 address validity after potential reloading.
839 (process_address_1): Check insns validity. In case of failure do
842 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
845 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
848 2016-02-02 Jakub Jelinek <jakub@redhat.com>
850 * wide-int.cc (canonize_uhwi): New function.
851 (wi::divmod_internal): Use it.
853 2016-02-02 James Norris <jnorris@codesourcery.com
855 * gimplify.c (omp_notice_variable): Add usage check.
857 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
859 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
860 like LE, GE, LT, GT when emitting relational operator.
862 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
864 * ira-costs.c (find_costs_and_classes): Add extra argument.
865 * target.def (ira_change_pseudo_allocno_class): Add parameter.
866 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
867 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
868 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
869 Add best_class parameter, and return it if not ALL_REGS.
870 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
872 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
875 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
877 * config/aarch64/aarch64.c
878 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
879 (aarch64_ira_change_pseudo_allocno_class): New function.
881 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
884 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
886 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
888 * config/avr/avr.c (avr_option_override): Set
889 PARAM_ALLOW_STORE_DATA_RACES to 1.
891 2016-02-02 Richard Biener <rguenther@suse.de>
893 PR tree-optimization/69595
894 * match.pd: Add range test simplifications to true/false.
896 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
898 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
899 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
902 2016-02-02 Richard Biener <rguenther@suse.de>
904 PR tree-optimization/69606
905 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
906 info on the result before moving a stmt.
908 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
911 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
912 branch with vector comparison.
913 * config/i386/sse.md (VI48_AVX): New mode iterator.
914 (define_expand "cbranch<mode>4): Add support for conditional branch
915 with vector comparison.
916 * tree-vect-loop.c (optimize_mask_stores): New function.
917 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
918 has_mask_store field of vect_info.
919 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
920 vectorized loops having masked stores after vec_info destroy.
921 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
922 correspondent macros.
923 (optimize_mask_stores): Add prototype.
925 2016-02-02 Alan Modra <amodra@gmail.com>
928 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
931 2016-02-02 Alan Modra <amodra@gmail.com>
934 * config/rs6000/rs6000.c (need_toc_init): New var, set it
935 whenever toc_label_name used.
936 (rs6000_file_start): Don't set up toc section here,
937 (rs6000_output_function_epilogue): do so here instead,
938 (rs6000_xcoff_file_start): and here.
939 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
940 (load_toc_aix_di): Likewise.
942 2016-02-01 Jakub Jelinek <jakub@redhat.com>
944 PR rtl-optimization/69592
945 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
946 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
947 (num_sign_bit_copies_binary_arith_p): New inline function.
948 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
950 2016-02-01 Jeff Law <law@redhat.com>
952 PR tree-optimization/69580
953 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
954 * tree-ssa-threadbackward.c
955 (fsm_find_control_statement_thread_paths): Do not try to walk
956 through large PHI nodes.
958 2016-02-01 Jakub Jelinek <jakub@redhat.com>
960 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
961 when count is incremented above limit, don't analyze further
964 * omp-low.c (oacc_parse_default_dims): Avoid
965 -Wsign-compare warning, make sure value fits into int
966 rather than just unsigned int.
968 2016-02-01 Bin Cheng <bin.cheng@arm.com>
970 PR tree-optimization/67921
971 * fold-const.c (split_tree): New parameters. Convert pointer
972 type variable part to proper type before negating.
973 (fold_binary_loc): Pass new arguments to split_tree.
975 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
977 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
978 (nvptx_goacc_validate_dims): Extend to handle global defaults.
979 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
980 * doc/tm.texti: Rebuilt.
981 * doc/invoke.texi (fopenacc-dim): Document.
982 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
983 (append_compiler_options): Likewise.
984 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
985 (oacc_parse_default_dims): New.
986 (oacc_validate_dims): Add USED arg. Select non-unity default when
988 (oacc_loop_fixed_partitions): Return mask of used partitions.
989 (oacc_loop_auto_partitions): Emit dump info.
990 (oacc_loop_partition): Return mask of used partitions.
991 (execute_oacc_device_lower): Parse default dimension arg. Adjust
992 loop partitioning and validation calls.
994 2016-02-01 Richard Biener <rguenther@suse.de>
997 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
999 2016-02-01 Richard Biener <rguenther@suse.de>
1001 PR tree-optimization/69574
1002 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
1003 of asserting return chrec_dont_know.
1005 2016-02-01 Martin Liska <mliska@suse.cz>
1007 * mem-stats-traits.h: Add copyright header.
1008 * mem-stats.h: Likewise.
1010 2016-02-01 Richard Biener <rguenther@suse.de>
1012 PR tree-optimization/69579
1013 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
1014 Do not propagate through abnormal PHI results.
1016 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
1018 * postreload.c (reload_cse_simplify): Remove dead code.
1020 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1022 PR rtl-optimization/69570
1023 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
1024 if there is more than one set, not if there is a single set.
1026 2016-02-01 Richard Henderson <rth@redhat.com>
1029 * combine.c (make_compound_operation): When looking through a
1030 subreg, make sure to re-extend to the width of the outer mode.
1032 2016-01-30 Jakub Jelinek <jakub@redhat.com>
1034 PR tree-optimization/69546
1035 * wide-int.cc (wi::divmod_internal): For unsigned division
1036 where both operands fit into uhwi, if o1 is 1 and o0 has
1037 msb set, if divident_prec is larger than bits per hwi,
1038 clear another quotient word and return 2 instead of 1.
1039 Similarly for remainder with msb in HWI set, if dividend_prec
1040 is larger than bits per hwi.
1042 2016-01-29 Martin Jambor <mjambor@suse.cz>
1044 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
1045 Use short lowercase names.
1046 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
1047 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
1048 acq_rel one. Protect warning agains segfaults if
1049 get_memory_order_name returns NULL.
1050 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
1051 with release semantics. Do not warn if get_memory_order already did.
1052 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
1053 semantics. Fix check for relaxed or acquire semantics. Do not warn
1054 if get_memory_order already did.
1056 2016-01-29 Sebastian Pop <s.pop@samsung.com>
1058 * doc/install.texi: Document that isl-0.16 is supported.
1060 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
1063 * config/i386/constraints.md (Bm): Describe as special memory
1065 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
1066 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1067 * genpreds.c (struct constraint_data): Add is_special_memory.
1068 (have_special_memory_constraints, special_memory_start): New
1070 (special_memory_end): Ditto.
1071 (add_constraint): Add new arg is_special_memory. Add code to
1072 process its true value. Update have_special_memory_constraints.
1073 (process_define_constraint): Pass the new arg.
1074 (process_define_register_constraint): Ditto.
1075 (choose_enum_order): Process special memory.
1076 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
1077 function insn_extra_special_memory_constraint.
1078 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1079 * gensupport.c (process_rtx): Process
1080 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1081 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
1082 * ira-lives.c (single_reg_class): Use
1083 insn_extra_special_memory_constraint.
1084 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
1085 * lra-constraints.c (process_alt_operands): Ditto.
1086 (curr_insn_transform): Use insn_extra_special_memory_constraint.
1087 * recog.c (asm_operand_ok, preprocess_constraints): Process
1089 * reload.c (find_reloads): Ditto.
1090 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
1091 * stmt.c (parse_input_constraint): Use
1092 insn_extra_special_memory_constraint.
1094 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1097 * lra-splill.c (lra_final_code_change): Revert r229087 by
1098 removing all sub-registers.
1100 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
1103 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
1105 2016-01-29 Jakub Jelinek <jakub@redhat.com>
1108 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
1109 SSE1, copy target into the temporary reg first before recursing
1112 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1114 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
1117 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1119 * ginclude/stdarg.h: Test __cplusplus instead of
1120 __GXX_EXPERIMENTAL_CXX0X__.
1122 2016-01-29 Richard Biener <rguenther@suse.de>
1124 PR tree-optimization/69547
1125 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1126 Do not mark clobbers necessary.
1127 (mark_all_reaching_defs_necessary_1): Likewise.
1129 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1131 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
1132 declaration name with %qs and print it in both error messages.
1133 Also fix indentation.
1135 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1138 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
1139 trailing blank line from error message.
1141 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1144 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
1147 2016-01-29 Richard Biener <rguenther@suse.de>
1150 * match.pd: Allow all integral types when simplifying a
1151 widening or sign-changing conversion.
1153 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1155 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
1156 back to setting codegen_error to fail codegen.
1158 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
1161 * config/i386/constraints.md (C): Only accept constant zero operand.
1162 (BC): New constraint.
1163 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
1164 instead of C constraint.
1165 * doc/md.texi (Machine Constraints): Update description
1168 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
1171 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
1173 2016-01-28 Jakub Jelinek <jakub@redhat.com>
1176 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
1179 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
1181 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
1182 branches if using guessed profile.
1184 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1186 * graphite-optimize-isl.c (optimize_isl): Fix dump.
1188 2016-01-28 Richard Henderson <rth@redhat.com>
1191 * config/aarch64/aarch64-modes.def (CC_Cmode): New
1192 * config/aarch64/aarch64-protos.h: Update.
1193 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
1194 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
1195 (aarch64_get_condition_code_1): Handle CC_Cmode.
1196 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
1197 (*add<mode>3_compareC_cconly_imm): New.
1198 (*add<mode>3_compareC_cconly): New.
1199 (*add<mode>3_compareC_imm): New.
1200 (add<mode>3_compareC): New.
1201 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
1202 to be first. Use aarch64_carry_operation.
1203 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
1204 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
1205 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
1206 (subti3): Use subdi3_compare1.
1207 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
1208 (sub<mode>3_compare1): New.
1209 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
1210 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
1211 (*subsi3_carryin_uxtw): Likewise.
1212 (*ngc<mode>, *ngcsi_uxtw): Likewise.
1213 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
1214 * config/aarch64/iterators.md (DWI): New.
1215 * config/aarch64/predicates.md (aarch64_carry_operation): New.
1216 (aarch64_borrow_operation): New.
1218 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1220 * graphite-optimize-isl.c (optimize_isl): Print a different debug
1221 message when isl does not return a valid schedule.
1223 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1225 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1226 Remove comments from class declarations: they are already in the code
1229 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1231 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
1233 (ternary_op_to_tree): Same.
1234 (unary_op_to_tree): Same.
1235 (nary_op_to_tree): Same.
1236 (gcc_expression_from_isl_expr_op): Same.
1237 (gcc_expression_from_isl_expression): Same.
1238 (graphite_create_new_loop): Same.
1239 (graphite_create_new_loop_guard): Same.
1240 (build_iv_mapping): Same.
1241 (graphite_create_new_guard): Same.
1242 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
1243 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
1245 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1247 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
1248 instead of setting codegen_error to fail codegen.
1250 2016-01-28 Jason Merrill <jason@redhat.com>
1252 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
1254 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1256 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1257 Remove CONST_INT_P check in CCMP cost calculation.
1259 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1261 * config/aarch64/aarch64.c (generic_vector_cost):
1262 Set vec_permute_cost.
1263 (cortexa57_vector_cost): Likewise.
1264 (exynosm1_vector_cost): Likewise.
1265 (xgene1_vector_cost): Likewise.
1266 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
1267 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
1268 Add vec_permute_cost entry.
1270 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1272 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
1274 (add<mode>3_compare0): Likewise.
1275 (addsi3_compare0_uxtw): Likewise.
1276 (add<mode>3nr_compare0): Likewise.
1277 (compare_neg<mode>): Likewise.
1278 (<optab><mode>3): Likewise.
1280 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
1282 * tree-vect-stmts.c (vectorizable_comparison): Add
1283 NULL check for vectype.
1285 2016-01-28 Richard Biener <rguenther@suse.de>
1287 PR tree-optimization/69466
1288 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1289 Account for PHIs we couldn't duplicate.
1291 2016-01-28 Martin Liska <mliska@suse.cz>
1294 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
1295 instead of ENABLE_VALGRIND_CHECKING.
1297 2016-01-27 Richard Henderson <rth@redhat.com>
1300 * lra-remat.c (subreg_regs): New.
1301 (dump_candidates_and_remat_bb_data): Dump it.
1302 (operand_to_remat): Reject if operand in subreg_regs.
1303 (set_bb_regs): Collect subreg_regs.
1304 (lra_remat): Init and free subreg_regs. Compute
1305 calculate_local_reg_remat_bb_data before create_cands.
1307 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
1310 * config/i386/i386.c (ix86_update_stack_boundary): Don't
1311 change stack_alignment_needed for __tls_get_addr call.
1313 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
1315 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
1317 2016-01-27 Jeff Law <law@redhat.com>
1319 PR tree-optimization/68398
1320 PR tree-optimization/69196
1321 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
1322 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
1323 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1324 Only count PHIs in the last block in the path. The others will
1325 const/copy propagate away. Add heuristic to allow more irreducible
1326 subloops to be created when it is likely profitable to do so.
1328 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1329 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
1330 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
1332 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1335 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
1336 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
1337 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
1338 * tree-streamer-in.c: Include asan.h.
1339 (streamer_get_builtin_tree): For builtins in sanitizer
1340 range call initialize_sanitizer_builtins and retry.
1342 2016-01-27 Ian Lance Taylor <iant@google.com>
1344 * common.opt (fkeep-gc-roots-live): New undocumented option.
1345 * tree-ssa-loop-ivopts.c (add_candidate_1): If
1346 -fkeep-gc-roots-live, skip pointers.
1347 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
1350 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
1353 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
1354 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
1356 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
1359 * configure.ac: NetBSD provides SSP in its C library.
1360 * configure: Updated.
1362 2016-01-27 Richard Biener <rguenther@suse.de>
1364 PR tree-optimization/69166
1365 * tree-vect-loop.c (vect_is_simple_reduction): Always check
1366 reduction code for commutativity / associativity.
1368 2016-01-27 Martin Jambor <mjambor@suse.cz>
1370 PR tree-optimization/69355
1371 * tree-sra.c (analyze_access_subtree): Correct hole detection when
1372 total_scalarization fails.
1374 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
1376 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
1379 2016-01-27 Christian Bruel <christian.bruel@st.com>
1382 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
1383 Move arm_reset_previous_fndecl and set_target_option_current_node in
1384 the conditional part. Call save_restore_target_globals.
1385 * config/arm/arm.c (arm_set_current_function):
1386 Refactor to better support #pragma target and attribute mix.
1387 Call save_restore_target_globals.
1388 * config/arm/arm-protos.h (save_restore_target_globals): New function.
1390 2016-01-27 Martin Liska <mliska@suse.cz>
1392 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
1393 reference for an HSA kernel and its host function.
1395 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1397 PR tree-optimization/69399
1398 * wide-int.h (wi::lrshift): For larger precisions, only
1399 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
1401 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
1403 * config/arc/predicates.md (proper_comparison_operator): Reject
1404 constant-constant comparison.
1406 2016-01-26 Tom de Vries <tom@codesourcery.com>
1408 PR tree-optimization/69110
1409 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1410 DR_NUM_DIMENSIONS == 0.
1412 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1413 Sebastian Pop <s.pop@samsung.com>
1415 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
1416 isl_ast_op_cond and isl_ast_op_select.
1417 (gcc_expression_from_isl_expr_op): Same.
1419 2016-01-26 Jason Merrill <jason@redhat.com>
1422 * tree.c (recompute_constructor_flags): Split out from
1424 (verify_constructor_flags): New.
1425 * tree.h: Declare them.
1427 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
1429 PR rtl-optimization/69217
1430 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
1431 are no TYPE_FIELDS set for the record type.
1433 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1436 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
1437 toc_label_name unconditionally.
1438 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
1439 SYMBOL_REF string. Use toc_label_name instead of constructing
1441 (rs6000_elf_declare_function_name): Use toc_label_name instead of
1442 constructing LCTOC1.
1444 2016-01-26 Martin Sebor <msebor@redhat.com>
1447 * doc/extend.texi (Common Type Attributes): Move text that talks about
1448 attribute packed from attribute aligned to the section discussing
1449 the former attribute for clarity.
1451 2016-01-26 Richard Henderson <rth@redhat.com>
1454 * trans-mem.c (tm_region_init): Mark entry block as visited.
1456 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1459 * diagnostic-show-locus.c (layout::print_source_line): Replace
1460 call to pp_newline with call to layout::print_newline.
1461 (layout::print_annotation_line): Likewise.
1462 (layout::move_to_column): Likewise.
1463 (layout::print_any_fixits): After printing any fixits, print a
1464 trailing newline, if necessary.
1465 (layout::print_newline): New method, resetting any colorization
1467 (diagnostic_show_locus): Move the pp_newline to before the
1468 early bailout. Remove dummy block enclosing the layout instance.
1469 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
1470 of pp_newline_and_flush with pp_flush.
1471 (diagnostic_append_note): Delete use of pp_newline.
1472 (diagnostic_append_note_at_rich_loc): Delete.
1473 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
1474 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
1475 when newline characters are added to the buffer.
1477 2016-01-26 Michael Matz <matz@suse.de>
1479 * configure.ac (ac_cv_std_swap_in_utility): New test.
1480 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
1481 * configure: Regenerate.
1482 * config.in: Regenerate.
1484 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
1486 * config/arc/arc.md (cstoresi4): Force operand into register.
1487 (arcset<code>): Fix predicate.
1488 (arcsetltu): Likewise.
1489 (arcsetgeu): Likewise.
1490 (arcsethi): Likewise.
1491 (arcsetls): Likewise.
1493 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1495 PR tree-optimization/69483
1496 * gimple-fold.c (canonicalize_constructor_val): Return NULL
1497 if base has error_mark_node type.
1499 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
1502 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
1503 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
1505 (vget_lane_f16): Handle big-endian.
1506 (vgetq_lane_f16): Likewise.
1507 (vset_lane_f16): Likewise.
1508 (vsetq_lane_f16): Likewise.
1509 * config/arm/iterators.md (VQXMOV): Add V8HF.
1510 (VDQ): Add V4HF and V8HF.
1511 (V_reg): Handle V4HF and V8HF.
1512 (Is_float_mode): Likewise.
1513 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
1514 neon_vdup_nv8hf): New patterns.
1515 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
1516 Use VD_LANE iterator.
1517 (neon_vld1_dup<mode>): Use VQ2 iterator.
1519 2016-01-26 Nathan Sidwell <nathan@acm.org>
1521 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
1522 (set_oacc_fn_attrib): Add IS_KERNEL arg.
1523 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
1524 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
1525 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
1526 (oacc_validate_dims): Add LEVEL arg, don't return level.
1527 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
1529 (execute_oacc_device_lower): Adjust, add more dump output.
1530 * tree-ssa-loop.c (gate_oacc_kernels): Use
1531 oacc_fn_attrib_kernels_p.
1532 * tree-parloops.c (create_parallel_loop): Adjust
1533 set_oacc_fn_attrib call.
1535 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1538 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
1539 (append_compiler_options): Handle -fcilkplus.
1540 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
1542 2016-01-26 Nick Clifton <nickc@redhat.com>
1545 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
1546 been marked as DECL_ONE_ONLY but we do not the means to make it
1547 so, then do not allow it to bind locally.
1549 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1552 * opts.h (parse_sanitizer_options): New prototype.
1553 * opts.c (sanitizer_opts): New array.
1554 (parse_sanitizer_options): New function.
1555 (common_handle_option): Use parse_sanitizer_options.
1557 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
1560 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
1561 alignment adjustment to ...
1562 (ix86_update_stack_boundary): Here. Don't over-align stack for
1564 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
1565 if __tls_get_addr is called.
1567 2016-01-26 Christian Bruel <christian.bruel@st.com>
1569 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
1571 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
1573 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
1575 2016-01-26 Richard Biener <rguenther@suse.de>
1578 * match.pd: Guard X * CST CMP 0 pattern with single_use.
1580 2016-01-26 Richard Biener <rguenther@suse.de>
1582 PR tree-optimization/69452
1583 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
1584 (move_computations_dom_walker::before_dom_children): Rename
1586 (move_computations_worker): This.
1587 (move_computations): Perform an RPO rather than a DOM walk.
1589 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1592 * combine.c (combine_instructions): For REG_EQUAL note with
1593 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
1594 to the underlying register.
1595 * doc/rtl.texi (REG_EQUAL): Document the behavior of
1596 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
1598 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
1601 * config/aarch64/aarch64-builtins.c
1602 (aarch64_init_simd_builtin_types): Do not set structural
1603 equality to __Poly{8,16,64,128}_t types.
1605 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
1607 PR tree-optimization/69400
1608 * wide-int.cc (wi_pack): Take the precision as argument and
1609 perform canonicalization here rather than in the callers.
1610 Use the main loop to handle all full-width HWIs. Add a
1611 zero HWI if in_len isn't a full result.
1612 (wi::divmod_internal): Update accordingly.
1613 (wi::mul_internal): Likewise. Simplify.
1615 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
1616 Sebastian Pop <s.pop@samsung.com>
1618 * graphite-poly.c (apply_poly_transforms): Simplify.
1619 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
1620 (print_isl_map): Same.
1621 (print_isl_union_map): Same.
1622 (print_isl_schedule): New.
1623 (debug_isl_schedule): New.
1624 * graphite-dependences.c (scop_get_reads): Do not call
1625 isl_union_map_add_map that is undocumented isl functionality.
1626 (scop_get_must_writes): Same.
1627 (scop_get_may_writes): Same.
1628 (scop_get_original_schedule): Remove.
1629 (scop_get_dependences): Do not call isl_union_map_compute_flow that
1630 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
1631 (compute_deps): Remove.
1632 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
1633 (debug_schedule_ast): New.
1634 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
1635 set_separate_option.
1636 (graphite_regenerate_ast_isl): Add dump.
1637 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
1638 from scop->transformed_schedule.
1639 (graphite_regenerate_ast_isl): Add more dump.
1640 * graphite-optimize-isl.c (optimize_isl): Set
1641 scop->transformed_schedule. Check whether schedules are equal.
1642 (apply_poly_transforms): Move here.
1643 * graphite-poly.c (apply_poly_transforms): ... from here.
1644 (free_poly_bb): Static.
1645 (free_scop): Static.
1646 (pbb_number_of_iterations_at_time): Remove.
1647 (print_isl_ast): New.
1648 (debug_isl_ast): New.
1649 (debug_scop_pbb): New.
1650 * graphite-scop-detection.c (print_edge): Move.
1652 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1653 (build_scop_scattering): Remove.
1654 (create_pw_aff_from_tree): Assert instead of bailing out.
1655 (add_condition_to_pbb): Remove unused code, do not fail.
1656 (add_conditions_to_domain): Same.
1657 (add_conditions_to_constraints): Remove.
1658 (build_scop_context): New.
1659 (add_iter_domain_dimension): New.
1660 (build_iteration_domains): Initialize pbb->iterators.
1661 Call add_conditions_to_domain.
1664 (index_outermost_in_loop): New.
1665 (index_pbb_in_loop): New.
1666 (outermost_pbb_in): New.
1667 (add_in_sequence): New.
1668 (add_outer_projection): New.
1669 (outer_projection_mupa): New.
1670 (add_loop_schedule): New.
1671 (build_schedule_pbb): New.
1672 (build_schedule_loop): New.
1673 (embed_in_surrounding_loops): New.
1674 (build_schedule_loop_nest): New.
1675 (build_original_schedule): New.
1676 (build_poly_scop): Call build_original_schedule.
1677 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
1678 (free_poly_dr): Remove.
1679 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
1680 (free_poly_bb): Remove.
1681 (debug_loop_vec): Remove.
1682 (print_isl_ast): Declare.
1683 (debug_isl_ast): Declare.
1684 (scop_do_interchange): Remove.
1685 (scop_do_strip_mine): Remove.
1686 (scop_do_block): Remove.
1687 (flatten_all_loops): Remove.
1688 (optimize_isl): Remove.
1689 (pbb_number_of_iterations_at_time): Remove.
1690 (debug_scop_pbb): Declare.
1691 (print_schedule_ast): Declare.
1692 (debug_schedule_ast): Declare.
1693 (struct scop): Remove schedule. Add original_schedule,
1694 transformed_schedule.
1695 (free_gimple_poly_bb): Remove.
1696 (print_generated_program): Remove.
1697 (debug_generated_program): Remove.
1698 (unify_scattering_dimensions): Remove.
1699 * sese.c (print_edge): ... here.
1700 (print_sese): ... here.
1701 (debug_edge): ... here.
1702 (debug_sese): ... here.
1703 * sese.h (print_edge): Declare.
1704 (print_sese): Declare.
1705 (dump_edge): Declare.
1706 (dump_sese): Declare.
1708 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
1709 Sebastian Pop <s.pop@samsung.com>
1711 * Makefile.in: Set ISLVER in site.exp.
1713 2016-01-25 Jakub Jelinek <jakub@redhat.com>
1715 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
1716 DECL_VALUE_EXPR of new_var even for the non-array case. Look
1717 through DECL_VALUE_EXPR for expansion.
1719 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1721 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
1722 the frame info after reload completed.
1724 2016-01-25 Jeff Law <law@redhat.com>
1726 PR tree-optimization/69196
1727 PR tree-optimization/68398
1728 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
1729 tree-ssa-threadupdate.c.
1730 (determine_bb_domination_status): Prototype
1731 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
1732 (determine_bb_domination_status): No longer static.
1733 (valid_jump_thread_path): Remove code to detect characteristics
1734 of the jump thread path not associated with correctness.
1735 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
1736 Correct test for thread path length. Count PHIs for real operands as
1737 statements that need to be copied. Do not count ASSERT_EXPRs.
1738 Look at all the blocks in the thread path. Compute and selectively
1739 filter thread paths based on threading through the latch, threading
1740 a multiway branch or crossing a multiway branch.
1742 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1744 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
1745 decl with __attribute__ ((unused)) annotation.
1747 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
1750 * tree-vect-stmts.c (vectorizable_condition): Check vectype
1751 of operands is compatible with a statement vectype.
1753 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
1755 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
1756 improve wording for mixed storage order support.
1758 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
1760 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
1761 (vcvt_u64_f64): Likewise.
1762 (vcvta_s64_f64): Likewise.
1763 (vcvta_u64_f64): Likewise.
1764 (vcvtm_s64_f64): Likewise.
1765 (vcvtm_u64_f64): Likewise.
1766 (vcvtn_s64_f64): Likewise.
1767 (vcvtn_u64_f64): Likewise.
1768 (vcvtp_s64_f64): Likewise.
1769 (vcvtp_u64_f64): Likewise.
1771 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
1773 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
1774 (arc_init): Check validity mll64 option.
1775 (arc_save_restore): Use double load/store instruction.
1776 (arc_expand_movmem): Likewise.
1777 (arc_split_move): Don't split if we have double load/store
1778 instructions. Returns a boolean.
1779 (arc_process_double_reg_moves): Change function to return boolean
1780 instead of a sequence of instructions.
1781 (arc_dwarf_register_span): New function.
1782 * config/arc/arc-protos.h (arc_split_move): Change prototype.
1783 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
1784 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
1785 (*movdf_insn): Likewise.
1786 * config/arc/arc.opt (mll64): New option.
1787 * config/arc/predicates.md (even_register_operand): New predicate.
1788 * doc/invoke.texi (ARC Options): Add mll64 documentation.
1790 2016-01-25 Richard Biener <rguenther@suse.de>
1793 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
1794 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
1796 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
1798 2016-01-25 Richard Biener <rguenther@suse.de>
1800 PR tree-optimization/69376
1801 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
1803 (VN_INFO_ANTI_RANGE_P): New inline.
1804 (VN_INFO_RANGE_TYPE): Likewise.
1805 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
1806 SSA_NAME_ANTI_RANGE_P.
1807 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
1808 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1809 Properly query VN_INFO_RANGE_TYPE.
1811 2016-01-25 Nick Clifton <nickc@redhat.com>
1814 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
1816 2016-01-23 Tom de Vries <tom@codesourcery.com>
1818 PR tree-optimization/69426
1819 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
1822 2016-01-23 Jakub Jelinek <jakub@redhat.com>
1824 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
1825 "the the" with "the" in the comments.
1826 * ipa-devirt.c (build_type_inheritance_graph,
1827 update_type_inheritance_graph): Likewise.
1828 * tree.c (build_function_type_list_1): Likewise.
1829 * cfgloopmanip.c (scale_loop_profile): Likewise.
1830 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
1831 * gimple-ssa-split-paths.c
1832 (find_block_to_duplicate_for_splitting_paths): Likewise.
1833 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
1834 * expr.c (convert_move): Likewise.
1835 * var-tracking.c (vt_stack_adjustments): Likewise.
1836 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1837 * tree-vrp.c (test_for_singularity): Likewise.
1839 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
1840 directly instead of building a temporary tree.
1843 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
1844 remove <algorithm> include.
1846 2016-01-22 Jakub Jelinek <jakub@redhat.com>
1849 * config/i386/i386.c: Include dojump.h.
1850 (expand_small_movmem_or_setmem,
1851 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
1853 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
1854 if dynamic_check != -1.
1856 2016-01-21 Jeff Law <law@redhat.com>
1859 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
1860 record_temporary_equivalences. Rewritten to avoid unnecessary calls
1861 into dominated_by_p.
1862 (cprop_into_successor_phis): Avoid unnecessary tests.
1864 2016-01-22 Richard Henderson <rth@redhat.com>
1867 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
1868 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
1870 2016-01-22 Michael Matz <matz@suse.de>
1872 * system.h (string, algorithm): Include only conditionally.
1873 (new): Include always under C++.
1874 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
1875 * final.c (toplevel): Ditto.
1876 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
1877 * genconditions.c (write_header): Make gencondmd.c define
1879 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
1881 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
1882 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
1884 2016-01-22 Christian Bruel <christian.bruel@st.com>
1887 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
1889 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1892 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
1893 define_insn_and_split. Ensure operands[1] and operands[0] do not
1894 get assigned the same register.
1896 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
1898 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
1900 2016-01-22 Christian Bruel <christian.bruel@st.com>
1902 * config/arm/arm-c.c (arm_pragma_target_parse):
1903 Remove warn_builtin_macro_redefined overwrite.
1905 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
1907 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
1908 flag_non_call_exceptions compatibility.
1910 2016-01-22 Jakub Jelinek <jakub@redhat.com>
1913 * dwarf2out.c (add_child_die_after): New function.
1914 (dwarf_qual_info_t): New type.
1915 (dwarf_qual_info): New variable.
1916 (qualified_die_p): New function.
1917 (modified_type_die): For -fdebug-types-section, ensure
1918 canonical order of qualifiers. Put qualified DIEs adjacent
1919 to the corresponding non-qualified type DIE and search there
1920 for existing qualified DIEs.
1922 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
1924 * doc/extend.texi (scalar_storage_order type attribute): Document
1925 restriction on type punning and aliasing, and remove future tense.
1927 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
1930 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
1933 2016-01-21 Jeff Law <law@redhat.com>
1936 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
1937 useless call to record_temporary_equivalences.
1938 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
1939 allocate 10 slots in the bb_path vector and let it grow as needed.
1940 (fsm_find_control_statement_thread_paths): Similarly for the next_path
1943 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
1945 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
1947 * configure: Regenerate.
1949 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
1951 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
1952 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
1954 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
1957 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
1958 drop EXPAND_INITIALIZER.
1959 * rtl.h (contains_symbolic_reference_p): Declare.
1960 * rtlanal.c (contains_symbolic_reference_p): New function.
1961 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
1962 a subtraction into a NOT if symbolic constants are involved.
1964 2016-01-21 Anton Blanchard <anton@samba.org>
1965 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1968 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
1970 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
1973 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
1975 * config/microblaze/microblaze.c
1976 (get_branch_target): New.
1977 (insert_wic_for_ilb_runout): New.
1979 (microblaze_machine_dependent_reorg): New.
1980 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
1981 * config/microblaze/microblaze.md
1982 (UNSPEC_IPREFETCH): Define.
1983 (iprefetch): New pattern
1984 * config/microblaze/microblaze.opt
1985 (mxl-prefetch): New flag.
1987 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
1989 * config/microblaze/microblaze.h
1990 (FIXED_REGISTERS): Update in macro.
1991 (CALL_USED_REGISTERS): Update in macro.
1993 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
1995 PR rtl-optimization/68920
1996 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
1999 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
2001 PR rtl-optimization/68990
2002 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
2003 pseudo instead of inheritance ones.
2005 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2006 Nick Clifton <nickc@redhat.com>
2010 * config/mips/mips.c (mips_compute_frame_info): Initialise
2011 args_size and hard_frame_pointer_offset fields of the frame
2012 structure before calling mips_global_pointer.
2014 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2016 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
2018 * configure: Regenerate.
2020 2016-01-21 Richard Biener <rguenther@suse.de>
2022 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
2024 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2026 * config/s390/s390.c (s390_asm_declare_function_size): Add code
2027 to actually emit the .size directive.
2029 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
2030 Jakub Jelinek <jakub@redhat.com>
2034 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
2035 args array size by one to avoid buffer overflow.
2037 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2039 * config/s390/s390.md (pool_section_start): Use switch_to_section
2040 to select proper read-only data section instead of hardcoding
2042 (pool_section_end): Use switch_to_section to match the above.
2044 2016-01-21 Richard Biener <rguenther@suse.de>
2046 PR tree-optimization/69378
2047 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
2048 (set_ssa_val_to): Use it for dominance checks taking into
2049 account not executable edges.
2051 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2054 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
2055 for bitsize instead of GET_MODE_PRECISION (mode).
2057 2016-01-20 Martin Sebor <msebor@redhat.com>
2060 * extend.texi (__sync Builtins): Clarify the semantics of
2061 __sync_fetch_and_OP built-ins on pointers.
2062 (__atomic Builtins): Same.
2064 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2065 Sebastian Pop <s.pop@samsung.com>
2067 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
2068 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
2069 (is_valid_rename): Same.
2070 (translate_isl_ast_to_gimple::get_rename): Same.
2071 (translate_isl_ast_to_gimple::rename_all_uses): Same.
2072 (translate_isl_ast_to_gimple::rename_uses): Same.
2073 (get_new_name): Check for close_phi nodes.
2074 (copy_loop_phi_args): Use phi_node_kind.
2075 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2076 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
2078 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2079 Sebastian Pop <s.pop@samsung.com>
2081 Revert commit r229783.
2082 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2083 Remove use of parameter_rename_map.
2085 (copy_internal_parameters): Remove.
2086 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2087 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2088 (free_sese_info): Do not free parameter_rename_map.
2089 (set_rename): Do not use parameter_rename_map.
2090 (rename_uses): Update call to set_rename.
2091 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2092 * sese.h (parameter_rename_map_t): Remove.
2093 (struct sese_info_t): Remove field parameter_rename_map.
2095 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2096 Sebastian Pop <s.pop@samsung.com>
2098 * graphite-isl-ast-to-gimple.c: Fix comment.
2099 * graphite-scop-detection.c (defined_in_loop_p): New.
2100 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
2101 names defined in loop.
2103 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2104 Sebastian Pop <s.pop@samsung.com>
2106 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2107 Discard unstructured if-then-else regions.
2109 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2110 Sebastian Pop <s.pop@samsung.com>
2112 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
2113 (cleanup_loop_iter_dom): Remove.
2114 (build_loop_iteration_domains): Remove.
2115 (build_scop_context): Remove.
2116 (build_scop_iteration_domain): Remove.
2117 (add_loop_constraints): New.
2118 (build_iteration_domains): New.
2119 (build_poly_scop): Call build_iteration_domains.
2121 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2122 Sebastian Pop <s.pop@samsung.com>
2124 * graphite-scop-detection.c
2125 (scop_detection::harmful_loop_in_region): Free dom and loops.
2126 (scop_detection::loop_body_is_valid_scop): Free bbs.
2128 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2129 Sebastian Pop <s.pop@samsung.com>
2131 * graphite-scop-detection.c (record_loop_in_sese): New.
2132 (gather_bbs::before_dom_children): Call record_loop_in_sese.
2133 (build_scops): Remove call to build_sese_loop_nests.
2134 * sese.c (sese_record_loop): Remove.
2135 (build_sese_loop_nests): Remove.
2136 (new_sese_info): Remove region->loops.
2137 (free_sese_info): Same.
2138 * sese.h (sese_contains_loop): Same.
2139 (build_sese_loop_nests): Remove.
2140 (sese_contains_loop): Remove.
2142 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2143 Sebastian Pop <s.pop@samsung.com>
2145 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
2146 loop_is_valid_in_scop.
2147 (scop_detection::harmful_stmt_in_region): Renamed
2148 harmful_loop_in_region.
2149 Call loop_is_valid_in_scop.
2151 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2152 Sebastian Pop <s.pop@samsung.com>
2154 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
2157 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2158 Sebastian Pop <s.pop@samsung.com>
2160 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
2161 * graphite.h (struct poly_bb): Remove field is_reduction.
2162 (PBB_IS_REDUCTION): Remove.
2164 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2165 Sebastian Pop <s.pop@samsung.com>
2167 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
2168 (add_pdr_constraints): Same.
2169 (scop_get_reads): Same.
2170 (scop_get_must_writes): Same.
2171 (scop_get_may_writes): Same.
2172 (scop_get_original_schedule): Same.
2173 (extend_schedule): Same.
2174 (apply_schedule_on_deps): Same.
2175 (carries_deps): Same.
2176 (compute_deps): Same.
2177 (scop_get_dependences): Same.
2178 * graphite-isl-ast-to-gimple.c
2179 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
2180 * graphite-optimize-isl.c (get_schedule_for_band): Same.
2181 (get_schedule_for_band_list): Same.
2182 (get_schedule_map): Same.
2183 (apply_schedule_map_to_scop): Same.
2184 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2185 (build_loop_iteration_domains): Same.
2186 (add_condition_to_pbb): Same.
2187 (add_param_constraints): Same.
2188 (pdr_add_memory_accesses): Same.
2189 (pdr_add_data_dimensions): Same.
2191 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2193 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
2196 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2198 * common.opt (feliminate-dwarf2-dups): Replace references to
2199 "DWARF 2" with just "DWARF".
2200 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
2201 * doc/extend.texi: Likewise.
2202 * doc/cpp.texi: Likewise.
2203 * doc/invoke.texi: Likewise.
2204 (Option Summary): Add -gdwarf to list of Debugging Options.
2205 (Debugging Options): Document -gdwarf.
2206 * doc/contrib.texi: Spell "DWARF" like that.
2208 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2210 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
2211 warning. Fix up formatting.
2214 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
2215 attempt to mark memory input operand addressable and
2216 call prepare_gimple_addressable in that case. Don't adjust
2217 input_location for diagnostics, use error_at instead.
2219 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
2221 * config/rs6000/ppc-auxv.h: New file.
2222 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
2224 (cpu_supports): Likewise.
2225 * config/rs6000/rs6000.c: include "ppc-auxv.h".
2226 (cpu_is_info): New variable.
2227 (cpu_supports_info): Likewise.
2228 (tcb_verification_symbol): Likewise.
2229 (cpu_builtin_p): Likewise.
2230 (cpu_expand_builtin): New function.
2231 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
2232 (rs6000_init_builtins): Likewise.
2233 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
2234 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
2235 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
2236 * configure: Regenerate.
2237 * config.in: Likewise.
2238 * doc/extend.texi (PowerPC Built-in Functions): Document
2239 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
2241 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
2244 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
2246 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
2249 2016-01-20 Richard Henderson <rth@redhat.com>
2255 * tree.c (tm_define_builtin): New.
2256 (find_tm_vector_type): New.
2257 (build_tm_vector_builtins): New.
2258 (build_common_builtin_nodes): Call it.
2260 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
2262 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
2263 (arm_fp_ok): Likewise.
2265 (arm_crypto): Likewise.
2267 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
2268 Richard Biener <rguenther@suse.de>
2270 PR tree-optimization/69328
2271 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
2272 vectors have same number of elements.
2273 (vectorizable_condition): Fix masked version recognition.
2275 2016-01-20 Richard Biener <rguenther@suse.de>
2277 PR tree-optimization/69345
2278 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
2279 (VN_INFO_PTR_INFO): Likewise.
2280 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
2281 info when it is equal between non-dominating SSA names.
2282 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2283 Make sure to look at original SSA infos.
2285 2016-01-20 Jeff Law <law@redhat.com>
2288 * config/m68k/predicates.md (pow2_m1_operand): New predicate
2290 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
2291 (pc_or_label_operand): New predicate.
2292 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
2293 tests for small integers that are 2^n - 1.
2295 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
2297 * doc/invoke.texi (Options Summary): Add '.' after @xref.
2299 2016-01-19 Jeff Law <law@redhat.com>
2302 * tree-ssa-threadbackwards.c
2303 (fsm_find_control_statement_thread_paths): Do not try to lookup
2304 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
2306 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
2308 * doc/lto.texi: Remove text that says only Gold has linker plugin
2311 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
2313 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
2314 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
2315 the DIE accordingly.
2316 (modified_type_die): Add REVERSE parameter and pass it recursively,
2317 as well as to base_type_die. Adjust presence check accordingly.
2318 (base_type_for_mode): Adjust call to modified_type_die.
2319 (add_type_attribute): Add REVERSE parameter and pass it to
2321 (generic_parameter_die): Adjust call to add_type_attribute.
2322 (add_scalar_info): Likewise.
2323 (add_subscript_info): Likewise.
2324 (gen_array_type_die): Likewise.
2325 (gen_descr_array_type_die): Likewise.
2326 (gen_entry_point_die): Likewise.
2327 (gen_enumeration_type_die): Likewise.
2328 (gen_formal_parameter_die): Likewise.
2329 (gen_subprogram_die): Likewise.
2330 (gen_variable_die ): Likewise.
2331 (gen_const_die): Likewise.
2332 (gen_field_die): Likewise.
2333 (gen_pointer_type_die): Likewise.
2334 (gen_reference_type_die): Likewise.
2335 (gen_ptr_to_mbr_type_die): Likewise.
2336 (gen_inheritance_die): Likewise.
2337 (gen_subroutine_type_die): Likewise.
2338 (gen_typedef_die): Likewise.
2339 (force_type_die): Adjust call to modified_type_die.
2341 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
2343 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
2344 flow throughout the file. Fix broken link to Objective-C 2.0
2346 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
2349 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2351 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
2353 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2356 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
2357 (maybe_record_node): Record cxa_pure_virtual as the only possible
2358 target if there are not ohter candidates.
2359 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
2361 2016-01-19 Richard Biener <rguenther@suse.de>
2363 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
2364 (get_memory_order): Likewise.
2366 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
2368 * tree-vect-stmts.c (vectorizable_store): Check
2371 2016-01-19 David Malcolm <dmalcolm@redhat.com>
2374 * gcc.c (driver::decode_argv): Add call to
2375 init_opts_obstack before init_options_struct.
2376 * opts.c (init_opts_obstack): Remove idempotency.
2377 (init_options_struct): Replace call to init_opts_obstack
2378 with a gcc_assert to verify that it has already been called.
2379 * toplev.c (toplev::main): Add call to init_opts_obstack before
2380 calls to init_options_struct.
2381 (toplev::finalize): Move cleanup of opts_obstack next to
2382 cleanup of save_decoded_options, clearing the latter, and
2383 save_decoded_options_count.
2385 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2388 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
2389 attribute to unconditional. Remove %? from output template.
2391 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2392 Jiong Wang <jiong.wang@arm.com>
2394 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
2395 generated from different expand order.
2397 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2399 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2400 Add support for CCMP costing.
2402 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2404 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
2405 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
2406 (fccmpe<mode>): Likewise.
2407 (fcmp): Rename to fcmp and globalize pattern.
2409 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
2410 (aarch64_gen_ccmp_next): Add FP support.
2412 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2414 * target.def (gen_ccmp_first): Update documentation.
2415 (gen_ccmp_next): Likewise.
2416 * doc/tm.texi (gen_ccmp_first): Update documentation.
2417 (gen_ccmp_next): Likewise.
2418 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
2419 expand_ccmp_expr_1. Improve comments.
2420 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
2421 (ccmp_ior<mode>): Remove pattern.
2422 (cmp<mode>): Remove expand.
2423 (cmp): Globalize pattern.
2424 (cstorecc4): Use cc_register.
2425 (mov<mode>cc): Remove ccmp_cc_register check.
2426 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
2427 Simplify after removal of CC_DNE/* modes.
2428 (aarch64_ccmp_mode_to_code): Remove.
2429 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
2430 In 'k' case use integer as condition.
2431 (aarch64_nzcv_codes): Remove inverted cases.
2432 (aarch64_code_to_ccmode): Remove.
2433 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
2434 comparison with CC register to be used in folowing CCMP/branch/CSEL.
2435 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
2436 pattern. Return the comparison with CC register. Invert conditions
2438 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
2439 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
2441 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2443 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2444 instrumented_version.
2446 2016-01-19 Richard Biener <rguenther@suse.de>
2448 PR tree-optimization/69336
2449 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
2450 handled components with get_ref_base_and_extent.
2451 (equal_mem_array_ref_p): Adjust.
2453 2016-01-19 Jakub Jelinek <jakub@redhat.com>
2456 * shrink-wrap.c: Include valtrack.h.
2457 (move_insn_for_shrink_wrap): Add DEBUG argument. If
2458 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
2459 in between insn and where it will be moved to. Call
2460 dead_debug_insert_temp.
2461 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
2462 first and dead_debug_local_finish at the end.
2463 For uses and defs bitmap, handle all regs in between REGNO and
2464 END_REGNO, not just the first one.
2466 2016-01-19 Richard Biener <rguenther@suse.de>
2468 PR tree-optimization/69352
2469 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
2470 (equal_mem_array_ref_p): Constrain size and max size properly.
2471 Compare the reverse flag.
2473 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
2475 * ira.c (ira): Update regstat data if we deleted insns.
2477 2016-01-19 Jakub Jelinek <jakub@redhat.com>
2479 PR rtl-optimization/68955
2480 PR rtl-optimization/64557
2481 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
2482 here. Fix up formatting.
2483 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
2485 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2488 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
2489 assume that the node has body.
2490 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
2493 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2495 * lto-streamer-out.c (lto_output): Do not stream instrumentation
2498 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2500 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
2501 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
2503 2016-01-19 Martin Jambor <mjambor@suse.cz>
2504 Martin Liska <mliska@suse.cz>
2505 Michael Matz <matz@suse.de>
2507 * Makefile.in (OBJS): Add new source files.
2508 (GTFILES): Add hsa.c.
2509 * common.opt (disable_hsa): New variable.
2510 (-Whsa): New warning.
2511 * config.in (ENABLE_HSA): New.
2512 * configure.ac: Treat hsa differently from other accelerators.
2513 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
2515 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
2516 * doc/install.texi (Configuration): Document --with-hsa-runtime,
2517 --with-hsa-runtime-include, --with-hsa-runtime-lib and
2519 * doc/invoke.texi (-Whsa): Document.
2520 (hsa-gen-debug-stores): Likewise.
2521 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
2522 to invoke offload compiler for hsa acclerator.
2523 * opts.c (common_handle_option): Determine whether HSA offloading
2524 should be performed.
2525 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
2526 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
2527 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
2528 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
2529 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
2530 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
2531 GF_OMP_FOR_KIND_GRID_LOOP.
2532 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
2533 (pp_gimple_stmt_1): Likewise.
2534 * gimple-walk.c (walk_gimple_stmt): Likewise.
2535 * gimple.c (gimple_build_omp_grid_body): New function.
2536 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
2537 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
2538 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
2539 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
2540 GF_OMP_TEAMS_GRID_PHONY.
2541 (gimple_statement_omp_single_layout): Updated comments.
2542 (gimple_build_omp_grid_body): New function.
2543 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
2544 (gimple_omp_for_grid_phony): New function.
2545 (gimple_omp_for_set_grid_phony): Likewise.
2546 (gimple_omp_parallel_grid_phony): Likewise.
2547 (gimple_omp_parallel_set_grid_phony): Likewise.
2548 (gimple_omp_teams_grid_phony): Likewise.
2549 (gimple_omp_teams_set_grid_phony): Likewise.
2550 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
2551 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
2552 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
2553 (BUILT_IN_GOMP_TARGET): Updated type.
2554 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
2555 (adjust_for_condition): New function.
2556 (get_omp_for_step_from_incr): Likewise.
2557 (extract_omp_for_data): Moved parts to adjust_for_condition and
2558 get_omp_for_step_from_incr.
2559 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
2560 (fixup_child_record_type): Bail out if receiver_decl is NULL.
2561 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
2562 (scan_omp_parallel): Do not create child functions for phony
2564 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
2565 (scan_omp_1_op): Checking assert we are not remapping to
2566 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
2567 (parallel_needs_hsa_kernel_p): New function.
2568 (expand_parallel_call): Register apprpriate parallel child
2569 functions as HSA kernels.
2570 (grid_launch_attributes_trees): New type.
2571 (grid_attr_trees): New variable.
2572 (grid_create_kernel_launch_attr_types): New function.
2573 (grid_insert_store_range_dim): Likewise.
2574 (grid_get_kernel_launch_attributes): Likewise.
2575 (get_target_argument_identifier_1): Likewise.
2576 (get_target_argument_identifier): Likewise.
2577 (get_target_argument_value): Likewise.
2578 (push_target_argument_according_to_value): Likewise.
2579 (get_target_arguments): Likewise.
2580 (expand_omp_target): Call get_target_arguments instead of looking
2581 up for teams and thread limit.
2582 (grid_expand_omp_for_loop): New function.
2583 (grid_arg_decl_map): New type.
2584 (grid_remap_kernel_arg_accesses): New function.
2585 (grid_expand_target_kernel_body): New function.
2586 (expand_omp): Call it.
2587 (lower_omp_for): Do not emit phony constructs.
2588 (lower_omp_taskreg): Do not emit phony constructs but create for them
2589 a temporary variable receiver_decl.
2590 (lower_omp_taskreg): Do not emit phony constructs.
2591 (lower_omp_teams): Likewise.
2592 (lower_omp_grid_body): New function.
2593 (lower_omp_1): Call it.
2594 (grid_reg_assignment_to_local_var_p): New function.
2595 (grid_seq_only_contains_local_assignments): Likewise.
2596 (grid_find_single_omp_among_assignments_1): Likewise.
2597 (grid_find_single_omp_among_assignments): Likewise.
2598 (grid_find_ungridifiable_statement): Likewise.
2599 (grid_target_follows_gridifiable_pattern): Likewise.
2600 (grid_remap_prebody_decls): Likewise.
2601 (grid_copy_leading_local_assignments): Likewise.
2602 (grid_process_kernel_body_copy): Likewise.
2603 (grid_attempt_target_gridification): Likewise.
2604 (grid_gridify_all_targets_stmt): Likewise.
2605 (grid_gridify_all_targets): Likewise.
2606 (execute_lower_omp): Call grid_gridify_all_targets.
2607 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
2608 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
2609 (tree_omp_clause): Added union field dimension.
2610 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
2611 * tree.c (omp_clause_num_ops): Added number of arguments of
2612 OMP_CLAUSE__GRIDDIM_.
2613 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
2614 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
2615 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
2616 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
2617 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
2618 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
2619 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
2620 * tree-pass.h (make_pass_gen_hsail): Declare.
2621 (make_pass_ipa_hsa): Likewise.
2622 * ipa-hsa.c: New file.
2623 * lto-section-in.c (lto_section_name): Add hsa section name.
2624 * lto-streamer.h (lto_section_type): Add hsa section.
2625 * timevar.def (TV_IPA_HSA): New.
2626 * hsa-brig-format.h: New file.
2627 * hsa-brig.c: New file.
2628 * hsa-dump.c: Likewise.
2629 * hsa-gen.c: Likewise.
2632 * toplev.c (compile_file): Call hsa_output_brig.
2633 * hsa-regalloc.c: New file.
2635 2016-01-18 Jeff Law <law@redhat.com>
2637 PR tree-optimization/69320
2638 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
2639 ranged object, do nothing if the RHS constant is not [0..1].
2640 (optimize_stmt): Comparing a boolean ranged object against a
2641 constant outside [0..1] results in a compile-time constant.
2643 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
2646 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
2648 * doc/invoke.texi (Invoking GCC): Add new section to menu.
2649 (Option Summary): Update to reflect new section and moved options.
2650 (C++ Dialect Options): Move -fstats to new section.
2651 (Debugging Options): Move all dump, statistics, and other GCC
2652 developer options to new section. Rewrite section introduction
2653 and re-order remaining options to put the more basic ones first.
2654 (Optimization Options): Move -fira-verbose and -flto-report* to
2656 (Developer Options): New section incorporating moved options.
2657 * doc/cppopts.texi (-dM): Update cross-reference.
2659 2016-01-18 Richard Henderson <rth@redhat.com>
2662 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
2663 operands to pseudo only if CSE is expected. Split long immediate
2664 operands only after reload, and for the stack pointer.
2665 (*add<GPI>3_pluslong): Remove.
2666 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
2667 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
2668 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
2669 (*add<GPI>3 peepholes): New.
2670 (*add<GPI>3 splitters): New.
2671 * config/aarch64/constraints.md (Upl): New.
2672 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
2674 2016-01-18 Richard Biener <rguenther@suse.de>
2676 PR tree-optimization/69297
2677 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
2679 (vect_bb_vectorization_profitable_p): Clear visited flag again.
2681 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
2684 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
2685 of mixind vector and scalar types.
2686 (fold_relational_const): Add handling of vector
2687 comparison with boolean result.
2688 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
2689 comparison of vector operands with boolean result for EQ/NE only.
2690 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
2691 (verify_gimple_cond): Likewise.
2692 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
2695 2016-01-18 Joseph Myers <joseph@codesourcery.com>
2697 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
2700 2016-01-18 Richard Biener <rguenther@suse.de>
2703 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
2705 2016-01-18 Tom de Vries <tom@codesourcery.com>
2707 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
2709 2016-01-18 Tom de Vries <tom@codesourcery.com>
2711 * omp-low.c (set_oacc_fn_attrib): Make extern.
2712 * omp-low.h (set_oacc_fn_attrib): Declare.
2713 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
2714 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
2715 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
2716 Add and handle function parameter oacc_kernels_p.
2717 (find_reduc_addr, get_omp_data_i_param): New function.
2718 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
2719 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
2720 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
2721 Calculate dominance info. Skip loops that are not in a kernels region
2722 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
2723 (pass_parallelize_loops::execute): Call parallelize_loops with
2724 oacc_kernels_p argument.
2725 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
2726 New member function.
2727 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
2728 * passes.def: Add argument to pass_parallelize_loops instantation.
2730 2016-01-18 Tom de Vries <tom@codesourcery.com>
2732 * tree-parloops.c (pass_parallelize_loops::execute): Allow
2733 pass_parallelize_loops to be run outside the loop pipeline.
2735 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
2737 * tree-scalar-evolution.c (follow_copies_to_constant): New.
2738 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
2740 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
2743 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
2744 using get_ref_base_and_extent.
2745 (equal_mem_array_ref_p): New.
2746 (hashable_expr_equal_p): Add call to previous.
2748 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
2751 * tree-sra.c (disqualified_constants, constant_decl_p): New.
2752 (sra_initialize): Allocate disqualified_constants.
2753 (sra_deinitialize): Free disqualified_constants.
2754 (disqualify_candidate): Update disqualified_constants when appropriate.
2755 (create_access): Scan for constant-pool entries as we go along.
2756 (scalarizable_type_p): Add check against type_contains_placeholder_p.
2757 (maybe_add_sra_candidate): Allow constant-pool entries.
2758 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
2759 (initialize_constant_pool_replacements): New.
2760 (sra_modify_assign): Avoid mangling assignments created by previous,
2761 and don't generate writes into constant pool.
2762 (sra_modify_function_body): Call initialize_constant_pool_replacements.
2764 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2766 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
2768 (scalar_chain::convert_op): Likewise.
2769 * config/i386/i386.md (*andndi3_doubleword): New.
2771 2016-01-18 Richard Biener <rguenther@suse.de>
2773 PR tree-optimization/69170
2774 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
2775 building a vector from scalar results of a pattern stmt.
2777 2016-01-18 Jakub Jelinek <jakub@redhat.com>
2779 * haifa-sched.c (autopref_multipass_init): Work around
2780 -Wmaybe-uninitialized warning.
2782 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
2784 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
2785 against the constant 0.
2787 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2789 PR tree-optimization/68799
2790 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
2791 look up phi candidates in the statement-candidate map.
2792 (phi_add_costs): Likewise.
2793 (record_phi_increments): Likewise.
2794 (phi_incr_cost): Likewise.
2795 (ncd_with_phi): Likewise.
2796 (all_phi_incrs_profitable): Likewise.
2798 2016-01-17 Jakub Jelinek <jakub@redhat.com>
2800 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
2801 -Wmaybe-uninitialized warning.
2803 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
2805 * doc/invoke.texi (Invoking GCC): Add new section to menu.
2806 (Option Summary): Update to reflect new section and moved options.
2807 (C++ Dialect Options): Move -fvtable-verify and related options.
2808 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
2809 and profiling-related options.
2810 (Optimization Options): Move profile generation options and
2811 -fstack-protector and related options.
2812 (Instrumentation Options): New section incorporating moved options.
2813 (Code Generation Options): Move -finstrument-functions and
2814 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
2816 2016-01-16 Tom de Vries <tom@codesourcery.com>
2818 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
2820 2016-01-16 Tom de Vries <tom@codesourcery.com>
2822 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
2824 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
2826 * hash-table.h (hash_table::empty): Turn into an inline wrapper
2827 that checks whether the table is already empty. Rename the
2828 original implementation to...
2829 (hash_table::empty_slot): ...this new private function.
2831 2016-01-15 David Malcolm <dmalcolm@redhat.com>
2834 * diagnostic-show-locus.c (layout::print_source_line): Move x
2835 offset of line until after call to
2836 get_line_width_without_trailing_whitespace.
2838 2016-01-15 Jeff Law <law@redhat.com>
2840 PR tree-optimization/69270
2841 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
2842 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
2843 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
2844 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
2845 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
2846 ssa_name_has_boolean_range and constant_boolean_node.
2848 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
2850 PR rtl-optimization/69030
2851 * lra-spills.c (remove_pseudos): Check nrefs and make the function
2853 (spill_pseudos): Delete debug insn for dead pseudo.
2854 (lra_spill): Initiate spill_hard_reg and slots memory separately.
2856 2016-01-15 Jiong Wang <jiong.wang@arm.com>
2858 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
2860 (TYPES_UNOPUS): Likewise.
2861 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
2862 builtin type, from UNOP to UNOPUS.
2863 (lbtruncuv4sf): Likewise.
2864 (lbtruncuv2df): Likewise.
2865 (lrounduv2sf): Likewise.
2866 (lrounduv4sf): Likewise.
2867 (lrounduv2df): Likewise.
2868 (lroundusf): Likewise.
2869 (lroundusf): Likewise.
2870 (lceiluv2sf): Likewise.
2871 (lceiluv4sf): Likewise.
2872 (lceiluv2df): Likewise.
2873 (lceilusf): Likewise.
2874 (lceiludf): Likewise.
2875 (lflooruv2sf): Likewise.
2876 (lflooruv4sf): Likewise.
2877 (lflooruv2df): Likewise.
2878 (lfloorusf): Likewise.
2879 (lfloorudf): Likewise.
2880 (lfrintnuv2sf): Likewise.
2881 (lfrintnuv4sf): Likewise.
2882 (lfrintnuv2df): Likewise.
2883 (lfrintnusf): Likewise.
2884 (lfrintnudf): Likewise.
2885 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
2887 (vcvtq_u32_f32): Likewise.
2888 (vcvtq_u64_f64): Likewise.
2889 (vcvta_u32_f32): Likewise.
2890 (vcvtaq_u32_f32): Likewise.
2891 (vcvtaq_u64_f64): Likewise.
2892 (vcvtm_u32_f32): Likewise.
2893 (vcvtmq_u32_f32): Likewise.
2894 (vcvtmq_u64_f64): Likewise.
2895 (vcvtn_u32_f32): Likwise.
2896 (vcvtnq_u32_f32): Likewise.
2897 (vcvtnq_u64_f64): Likewise.
2898 (vcvtp_u32_f32): Likewise.
2899 (vcvtpq_u32_f32): Likewise.
2900 (vcvtpq_u64_f64): Likewise.
2901 (vcvtmd_u64_f64): Likewise.
2902 (vcvtms_u32_f32): Likewise.
2903 (vcvtad_u64_f64): Likewise.
2904 (vcvtas_u32_f32): Likewise.
2905 (vcvtnd_u64_f64): Likewise.
2906 (vcvtns_u32_f32): Likewise.
2907 (vcvtpd_u64_f64): Likewise.
2908 (vcvtps_u32_f32): Likewise.
2910 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2912 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
2913 CSEL of zero_extended registers.
2915 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2917 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
2918 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
2920 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2922 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
2923 false when argument string is not found in the attributes table
2926 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
2929 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
2930 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
2931 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
2934 2016-01-15 Richard Biener <rguenther@suse.de>
2936 PR tree-optimization/66856
2937 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
2938 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
2939 (vect_create_new_slp_node): Increment stmt reference count.
2940 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
2941 an SLP tree before swapping operands.
2942 (vect_build_slp_tree): Likewise.
2943 (destroy_bb_vec_info): Free stmt info after SLP instances.
2944 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
2945 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
2946 (STMT_VINFO_NUM_SLP_USES): New macro.
2948 2016-01-15 Richard Biener <rguenther@suse.de>
2951 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
2952 (add_linkage_name): ... here.
2953 (gen_typedef_die): Use add_linkage_name_raw instead of
2954 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
2957 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
2959 * gimplify.c (oacc_default_clause): Decode reference and pointer
2960 types for both kernels and parallel regions.
2962 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
2965 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
2967 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
2969 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
2970 (convert_scalars_to_vector): Likewise.
2972 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
2974 * doc/extend.texi (Type Traits): Fix grammar.
2976 2016-01-15 Martin Jambor <mjambor@suse.cz>
2978 * tree-inline.c (remap_decl): Use existing dclarations if
2979 remapping a type and prevent_decl_creation_for_types.
2980 (replace_locals_stmt): Do an initial remapping of non-VLA typed
2981 decls first. Do real remapping with
2982 prevent_decl_creation_for_types set.
2983 * tree-inline.h (copy_body_data): New field
2984 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
2987 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
2989 * config/s390/s390.opt (mmvcle): More verbose help text.
2991 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
2993 * config/s390/s390.opt: Add period to -mzvector option text.
2995 2016-01-15 Richard Biener <rguenther@suse.de>
2997 PR tree-optimization/68961
2998 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
2999 of invariants in stores again.
3001 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
3003 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
3005 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3007 * config/i386/i386.c (ix86_expand_branch): Don't split
3008 DI mode xor instruction to SI mode.
3010 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3013 * ipa-icf.c (sem_function::merge): Virtual functions may become
3014 reachable even if they address is not taken and there are no
3017 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3019 * lto-streamer-out.c (subtract_estimated_size): New function.
3020 (get_symbol_initial_value): Use it.
3022 2016-01-15 Christian Bruel <christian.bruel@st.com>
3025 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
3026 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
3027 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
3028 use add_builtin_function_ext_scope instead of add_builtin_function.
3029 (neon_set_p, neon_crypto_set_p): Remove.
3030 (arm_init_builtins): Always call arm_init_neon_builtins and
3031 arm_init_crypto_builtins.
3032 (arm_expand_builtin): Check that builtins are allowed for the arch.
3033 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
3034 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
3035 arm_init_neon_builtins call.
3037 2016-01-15 Richard Biener <rguenther@suse.de>
3039 PR tree-optimization/69117
3040 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
3041 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
3042 of the leader conservatively.
3043 (free_scc_vn): Restore original SSA name infos.
3045 2016-01-14 Jeff Law <law@redhat.com>
3047 PR tree-optimization/69270
3048 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
3049 single bit of precision, verify it's also unsigned.
3050 (record_edge_info): Use constant_boolean_node rather than fold_convert
3051 to convert boolean_true/boolean_false to the right type.
3053 2016-01-14 Richard Henderson <rth@redhat.com>
3056 * loop-doloop.c (record_reg_sets): New.
3057 (doloop_optimize): Reject the transform if the sequence
3058 clobbers registers live at the end of the loop block.
3059 (doloop_optimize_loops): Enable df_live if needed.
3061 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3063 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
3064 * gcc/config/rs6000/rs6000.c: Likewise.
3065 * gcc/config/rs6000/rs6000.h: Likewise.
3066 * gcc/config/rs6000/rs6000.md: Likewise.
3067 * gcc/doc/extend.texi: Likewsie.
3069 2016-01-14 Jeff Law <law@redhat.com>
3071 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
3074 2016-01-14 Richard Henderson <rth@redhat.com>
3078 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
3079 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
3080 instead of builtin_decl_declared_p to test for declaration.
3082 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
3084 * doc/loop.texi (Loop Analysis and Representation): Document
3085 loop_depth function.
3087 2016-01-14 Tom de Vries <tom@codesourcery.com>
3089 PR tree-optimization/68773
3090 * omp-low.c (expand_omp_target): Don't set force_output.
3091 * varpool.c (varpool_node::get_create): Same.
3092 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
3093 offload_funcs with force_output.
3095 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3098 * lra-eliminations.c (move_plus_up): Don't change anything if either
3099 the outer or inner subreg mode is not MODE_INT.
3100 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
3101 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
3103 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3105 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
3106 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
3107 reduc_uplus_@var{m}): Remove.
3108 * expr.c (expand_expr_real_2): Remove expansion path for
3109 reduc_[us](min|max|plus) optabs.
3110 * optabs-tree.c (scalar_reduc_to_vector): Remove.
3111 * optabs-tree.h (scalar_reduc_to_vector): Remove.
3112 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
3113 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
3114 * tree-vect-loop.c (vectorizable_reduction): Remove test for
3115 reduc_[us](min|max|plus) optabs.
3117 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3119 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
3120 (reduc_plus_scal_v2sf): New.
3121 (reduc_smax_v2sf): Rename to...
3122 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
3123 (reduc_smin_v2sf): Rename to...
3124 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
3126 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
3128 * alias.c (compare_base_symbol_refs): New function.
3129 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
3132 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3135 PR tree-optimization/69155
3136 * tree-complex.c: Include cfganal.h.
3137 (phis_to_revisit): New variable.
3138 (extract_component): Add phiarg_p argument. Assert that returned
3139 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
3140 (update_phi_components): Partly rewrite to use loop over real/imag
3141 components instead of code duplication. If extract_component returns
3142 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
3143 create_tmp_reg into the PHI node instead, and mention the phi triplet
3145 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
3146 in phis_to_revisit at the end.
3148 2016-01-14 Richard Biener <rguenther@suse.de>
3150 PR tree-optimization/68060
3151 * tree-vect-loop.c (vect_is_simple_reduction): Check the
3152 outer loop reduction is only used in the inner loop before
3153 detecting a double reduction.
3155 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3158 * combine.c (expand_field_assignment): Punt if compute_mode is
3159 unsupported scalar mode.
3161 2016-01-14 Richard Biener <rguenther@suse.de>
3163 PR tree-optimization/66856
3164 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
3165 SLP node only if it built successfully.
3166 (vect_analyze_slp_instance): Adjust.
3168 2016-01-14 Jeff Law <law@redhat.com>
3170 PR tree-optimization/69270
3171 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
3172 (record_edge_info): Use it. Convert boolean_{true,false}_node
3175 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
3178 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
3179 use block_ultimate_origin
3180 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
3182 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3184 * doc/invoke.texi (Submodel Options): Rename section to
3185 "Machine-Dependent Options" to better reflect its content.
3186 Rewrite introductory text to remove archaic CPU names.
3189 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3191 * doc/invoke.texi (Code Gen Options): Move section up in file,
3192 before target-specific options. Update menu and option summary
3193 to reflect the new section ordering.
3195 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3197 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
3198 (C++ Dialect Options): Add cross-reference to -std option.
3199 * doc/standards.texi (C++ Language): Document C++14 support.
3201 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3203 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
3204 for pack/unpack functions for __ibm128.
3205 (PACK_IF): Likewise.
3206 (UNPACK_IF): Likewise.
3208 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3209 support for __ibm128 pack/unpack functions.
3210 (rs6000_invalid_builtin): Likewise.
3211 (rs6000_init_builtins): Likewise.
3212 (rs6000_opt_masks): Likewise.
3214 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
3215 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
3217 (RS6000_BTM_COMMON): Likewise.
3219 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
3220 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
3221 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
3222 128-bit floating point. Add support for the double values to be
3223 in Altivec registers for TF/IF packing and unpacking, but restrict
3224 TD packing sub-fields to be FPR registers. Don't allow overlapped
3225 register support for packing. Allow pack inputs to be memory
3226 locations. Don't build generator functions for unpack<mode>_dm
3227 and unpack<mode>_nodm.
3228 (unpack<mode>_dm): Likewise.
3229 (unpack<mode>_nodm): Likewise.
3230 (pack<mode>): Likewise.
3232 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
3233 built-in functions to pack/unpack explicit __ibm128 values.
3234 (__builtin_unpack_ibm128): Likewise.
3236 * doc/extend.texi (PowerPC Built-in Functions): Document
3237 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
3239 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
3242 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
3243 Add new arg loc and pass it down as context.
3244 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
3245 to the location to use for the warning.
3246 (check_function_arguments): New arg loc. All callers changed. Pass
3247 it to check_function_nonnull.
3248 * c-common.h (check_function_arguments): Adjust declaration.
3250 2016-01-13 Jakub Jelinek <jakub@redhat.com>
3252 PR tree-optimization/69156
3253 * gimple.c (validate_type): Removed.
3254 (gimple_builtin_call_types_compatible_p): Use
3255 useless_type_conversion_p instead of validate_type.
3256 * value-prof.c (gimple_stringop_fixed_value): Fold
3257 icall_size to correct type.
3259 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3261 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
3264 2016-01-13 Richard Henderson <rth@redhat.com>
3267 * target.def (builtin_tm_load, builtin_tm_store): Remove.
3268 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
3269 (ix86_builtin_tm_store): Remove.
3270 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3271 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3272 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3273 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3274 * doc/tm.texi: Rebuild.
3276 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
3277 (BUILT_IN_TM_MEMCPY_RTWN): New.
3278 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
3279 fallback from vector to integer helpers.
3280 (build_tm_load): Handle vector types directly, instead of
3282 (build_tm_store): Likewise.
3283 (expand_assign_tm): Prepare for register types not handled by
3284 the above. Copy them to memory and use memcpy.
3285 * tree.c (tm_define_builtin): New.
3286 (find_tm_vector_type): New.
3287 (build_tm_vector_builtins): New.
3288 (build_common_builtin_nodes): Call it.
3290 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
3292 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
3293 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
3295 2016-01-13 Tom de Vries <tom@codesourcery.com>
3297 PR tree-optimization/69169
3298 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
3299 handled_struct_type param.
3300 (create_variable_info_for, intra_create_variable_infos): Call
3301 create_variable_info_for_1 with extra arg.
3303 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
3305 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
3306 and "armv8.1-a+crc" entries.
3308 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
3311 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
3312 Change first operand predicate from register_or_constm1_operand
3313 to register_operand.
3314 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
3315 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
3316 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
3317 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
3318 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
3319 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
3320 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
3321 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
3322 comparison with constm1_rtx from vec_prefetch_gen part.
3324 2016-01-13 Richard Biener <rguenther@suse.de>
3326 PR tree-optimization/69013
3327 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
3328 Exchange assert for a test.
3330 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3333 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
3335 2016-01-13 Richard Biener <rguenther@suse.de>
3337 PR tree-optimization/69242
3338 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
3339 assert with a check.
3341 2016-01-13 Richard Biener <rguenther@suse.de>
3343 PR tree-optimization/69186
3344 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3345 Properly guard vect_update_misalignment_for_peel call.
3347 2016-01-12 Jeff Law <law@redhat.com>
3349 PR tree-optimization/pr67755
3350 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
3351 "need_profile_correction".
3352 (thread_block_1): Initialize new field to false by default. If we
3353 have multiple thread paths through a common joiner to different
3354 final targets, then set new field to true.
3355 (compute_path_counts): Only do count adjustment when it's really
3358 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3360 * doc/invoke.texi (Spec Files): Move section down in file, past
3361 all command-line option descriptions.
3363 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3366 * doc/gty.texi: Remove documentation of mark_hook.
3367 * gengtype.c (struct write_types_data): Remove code to support
3368 mark_hook attribute.
3369 (walk_type): Likewise.
3370 (write_func_for_structure): Likewise.
3372 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3374 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
3375 Directory Options, and -specs= to Overall Options.
3376 (Overall Options): Adjust similarly. Reorder to group related
3377 options together. Make -specs= cross-reference the spec file details.
3378 (Directory Options): Adjust similarly.
3380 2016-01-12 Jeff Law <law@redhat.com>
3382 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
3384 2016-01-12 Olivier Hainque <hainque@adacore.com>
3386 * gcc.c (spec_undefvar_allowed): New global.
3387 (process_command): Set to true when running for --version or --help,
3389 (getenv_spec_function): When the variable is not defined, use the
3390 variable name as the variable value if we're allowed not to issue
3393 2016-01-12 Bin Cheng <bin.cheng@arm.com>
3395 PR tree-optimization/68911
3396 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
3397 information computed for expression "init + nit * step".
3399 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3401 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
3402 about name of GCC executable. Remove deleted node from menu.
3403 (Directory Options) <-B>: Remove cross-reference to deleted node.
3404 (Target Options): Delete section.
3406 2016-01-12 Christian Bruel <christian.bruel@st.com>
3409 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
3410 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
3412 2016-01-12 Jakub Jelinek <jakub@redhat.com>
3415 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
3416 aligned_mem is properly set for AVX512-VL floating point masked
3420 * ifcvt.c (cond_exec_process_if_block): When removing the last
3421 insn from then_bb, remove also any possible barriers that follow it.
3423 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
3427 * config/i386/iamcu.h (SIZE_TYPE): New macro.
3428 (PTRDIFF_TYPE): Likewise.
3429 (WCHAR_TYPE): Likewise.
3430 (WCHAR_TYPE_SIZE): Likewise.
3431 (STDINT_LONG32): Likewise.
3433 2016-01-12 Richard Biener <rguenther@suse.de>
3435 PR tree-optimization/69053
3436 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
3437 convert initial value for cond reductions.
3439 2016-01-12 Richard Biener <rguenther@suse.de>
3441 PR tree-optimization/69007
3442 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
3443 widen_sum after dot_prod and sad.
3445 2016-01-12 Richard Biener <rguenther@suse.de>
3447 PR tree-optimization/69168
3448 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
3449 pattern stmt SLP type.
3450 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
3451 end up unused so cope with that case.
3453 2016-01-12 Richard Biener <rguenther@suse.de>
3455 PR tree-optimization/69157
3456 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3457 stmts def type only during analyze phase.
3458 (vectorizable_call): Likewise.
3459 (vectorizable_simd_clone_call): Likewise.
3460 (vectorizable_conversion): Likewise.
3461 (vectorizable_assignment): Likewise.
3462 (vectorizable_shift): Likewise.
3463 (vectorizable_operation): Likewise.
3464 (vectorizable_store): Likewise.
3465 (vectorizable_load): Likewise.
3467 2016-01-12 Richard Biener <rguenther@suse.de>
3469 PR tree-optimization/69174
3470 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
3472 (vectorizable_load): Properly compute the number of loads needed
3473 for permuted strided SLP loads and do not spuriously assign
3474 to SLP_TREE_VEC_STMTS.
3476 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
3478 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
3479 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
3480 (MD_EXEC_PREFIX): Remove.
3481 (MD_STARTFILE_PREFIX) Removee.
3482 (FILE_NAME_ABSOLUTE_P): Remove.
3483 (CPP_SPEC): Do not read macros from sys/version.h.
3484 (LINK_COMMAND_SPEC): Remove.
3485 (LOCAL_INCLUDE_DIR): Remove.
3486 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
3487 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
3488 (POST_LINK_SPEC): Define to invoke stubify after linker
3489 (LIBSTDCXX): Remove define
3490 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
3491 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
3492 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
3493 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
3494 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
3495 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
3496 (i386_djgpp_asm_named_section): Add propotype of new procedure
3498 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
3499 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
3500 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
3501 in config/i386/djgpp.h).
3502 (STANDARD_STARTFILE_PREFIX_2): Define identical to
3503 STANDARD_STARTFILE_PREFIX_1.
3504 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
3505 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
3506 installation errors.
3507 (MAX_OFILE_ALIGNMENT): Define to 128.
3508 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
3510 * config/i386/djgpp.c: New file. Add implementation of
3511 i386_djgpp_asm_named_section.
3513 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
3515 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
3516 Add rule for building djgpp.o.
3518 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3520 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
3521 (rtx_is_swappable_p): Reductions are swappable.
3522 (insn_is_swappable_p): V2DF reductions are swappable.
3524 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
3526 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
3527 reloads for other unsupported memory operands.
3529 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3530 Jim Wilson <jim.wilson@linaro.org>
3533 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
3534 copy_to_mode_reg instead of force_reg.
3536 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
3539 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
3540 TARGET_80387 is true.
3542 2016-01-11 Jakub Jelinek <jakub@redhat.com>
3545 * lra-eliminations.c (move_plus_up): Only move plus up
3546 if subreg of the constant can be simplified into constant
3547 and use the simplified subreg of the constant instead of
3548 the original constant.
3550 * fold-const.c (fold_convertible_p): Don't return true
3551 for conversion of VECTOR_TYPE to same sized integral type.
3552 (fold_convert_loc): Fix up formatting. Fold conversion of
3553 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
3554 instead of NOP_EXPR.
3556 PR tree-optimization/69214
3557 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
3558 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3561 PR tree-optimization/69207
3562 * tree-vect-slp.c (vect_get_constant_vectors): For
3563 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
3564 fold_convertible_p to vector_type's element type, and always
3565 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
3567 2016-01-11 Richard Biener <rguenther@suse.de>
3569 PR tree-optimization/69173
3570 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
3571 fixup the cycle if all stmts are in a pattern.
3573 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
3576 * alias.c (base_alias_check): Move check for addresses with
3577 alignment ANDs before the call for compare_base_decls.
3578 (memrefs_conflict_p): Return -1 for different decls
3579 that went through alignment adjustments.
3581 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3583 PR rtl-optimization/68796
3584 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
3585 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
3586 and QImode comparisons against zero with CC_NZmode.
3587 * config/aarch64/iterators.md (short_mask): New mode_attr.
3589 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
3591 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
3592 (<avx512>_store<mode>_mask): Likewise.
3594 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
3595 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3597 PR rtl-optimization/68841
3598 * ifcvt.c (struct noce_if_info): Add orig_x field.
3599 (bbs_ok_for_cmove_arith): Add to_rename parameter.
3600 Don't record conflicts on to_rename if it's present.
3601 Allow memory destinations in sets.
3602 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
3603 blocks, passing orig_x to the checks.
3604 (noce_process_if_block): Set if_info->orig_x appropriately.
3606 2016-01-11 Tom de Vries <tom@codesourcery.com>
3608 PR tree-optimization/69069
3609 * tree-parloops.c (create_parallel_loop): Add missing phi args.
3611 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3613 PR rtl-optimization/68920
3614 * config/i386/i386.c (ix86_option_override_internal): Restrict number
3615 of conditional moves for RTL if-conversion to 1 for
3616 TARGET_ONE_IF_CONV_INSN.
3617 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
3618 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
3619 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
3620 parameter to restirct number of conditional moves for
3622 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
3623 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
3626 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
3629 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
3630 onepart vars. Fix typo in comment. Fix reversed condition in
3632 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
3635 * var-tracking.c (dump_onepart_variable_differences): New.
3636 (dataflow_set_different): If a detailed dump is requested,
3637 delay early returns and dump differences between onepart
3638 variables present before and after, and added variables.
3640 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
3643 * expr.c (expand_expr_real_1): For boolean vector constants
3644 with a scalar mode use const_scalar_mask_from_tree.
3645 (const_scalar_mask_from_tree): New.
3646 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
3647 assigned to a mask type to handle constants.
3649 2016-01-11 Martin Jambor <mjambor@suse.cz>
3652 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
3653 useless parameters if we cannot change function signature.
3655 2016-01-11 Martin Jambor <mjambor@suse.cz>
3658 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
3661 2016-01-11 Tom de Vries <tom@codesourcery.com>
3663 PR tree-optimization/69109
3664 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
3667 2016-01-11 Tom de Vries <tom@codesourcery.com>
3669 PR tree-optimization/69108
3670 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
3671 res is not used in a phi.
3673 2016-01-11 Yury Gribov <y.gribov@samsung.com>
3676 * common.opt (frandom-seed): Fix parameter name.
3677 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
3679 2016-01-11 Tom de Vries <tom@codesourcery.com>
3681 PR tree-optimization/69058
3682 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
3685 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
3687 * config/arc/arc.opt (mdiv-rem): Add period to the end.
3688 (mcode-density): Likewise.
3690 2016-01-10 Tom de Vries <tom@codesourcery.com>
3692 PR tree-optimization/69062
3693 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
3694 (parallelize_loops): Don't paralelize loop that has phi with address
3697 2016-01-10 Tom de Vries <tom@codesourcery.com>
3699 PR tree-optimization/69039
3700 * tree-parloops.c (try_create_reduction_list): Only allow single exit
3703 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
3706 * match.pd: Require target has function_c99_misc before doing
3707 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
3709 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
3711 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
3713 * configure: Regenerate.
3715 2016-01-09 Jakub Jelinek <jakub@redhat.com>
3718 PR tree-optimization/69097
3719 * fold-const.h (expr_not_equal_to): New prototype.
3720 * fold-const.c: Include stringpool.h and tree-ssanames.h.
3721 (expr_not_equal_to): New function.
3722 * match.pd (X % -Y is the same as X % Y): Don't optimize
3723 unless X is known not to be equal to minimum or Y is known
3724 not to be equal to -1.
3725 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
3726 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
3727 (simplify_stmt_using_ranges): Adjust caller.
3728 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
3729 substitute_and_fold.
3731 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
3733 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
3736 2016-01-08 Jakub Jelinek <jakub@redhat.com>
3738 PR tree-optimization/69167
3739 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
3740 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
3742 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
3744 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
3745 Richard Biener <rguenther@suse.de>
3747 PR tree-optimization/68707
3748 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
3749 instances that can be handled via vect_load_lanes.
3751 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
3753 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
3754 if we can't determine address equivalence.
3755 * alias.c (compare_base_decl): Update for changed return value of
3756 symtab_node::equal_address_to.
3758 2016-01-08 Jason Merrill <jason@redhat.com>
3762 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
3763 * expr.c (store_field): Not here.
3764 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
3765 call with TREE_ADDRESSABLE type.
3766 * tree-cfg.c (verify_gimple_call): Adjust.
3768 2016-01-08 Olivier Hainque <hainque@adacore.com>
3770 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
3773 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
3775 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
3776 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
3777 (reduc_smin_v2sf): Rename to...
3778 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
3779 (reduc_splus_v2sf): Rename to...
3780 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
3782 2016-01-08 Jakub Jelinek <jakub@redhat.com>
3784 PR tree-optimization/69162
3785 * gimplify.c (gimplify_va_arg_expr): Encode original type of
3786 valist argument in another argument.
3787 (gimplify_modify_expr): Adjust for the above change. Cleanup.
3788 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
3789 to determine the va_list type, build a MEM_REF instead of
3790 build_fold_indirect_ref.
3792 PR tree-optimization/69172
3793 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
3796 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
3798 PR tree-optimization/67781
3799 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
3800 and cmpnop in two steps: first the ones not accessed in original
3801 gimple expression in a endian independent way and then the ones not
3802 accessed in the final result in an endian-specific way.
3804 2016-01-08 Jakub Jelinek <jakub@redhat.com>
3806 PR tree-optimization/69083
3807 * tree-vect-slp.c (vect_get_constant_vectors): For
3808 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
3809 element type. If op is fold_convertible_p to vector_type's element
3810 type, use NOP_EXPR instead of VCE.
3812 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
3814 PR rtl-optimization/67778
3815 PR rtl-optimization/68634
3816 PR rtl-optimization/68909
3817 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
3818 block from the stack until done with it. Remove a superfluous
3819 bitmap set. Remove a superfluous bitmap test.
3821 2016-01-07 Martin Sebor <msebor@redhat.com>
3824 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
3825 constraint on the type of arguments.
3827 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
3829 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
3830 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
3831 unaligned_access on the gcc_options set.
3832 * config/arm/arm.c (arm_option_override_internal): Use
3833 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
3835 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
3838 * config/i386/i386.c (ix86_frame_pointer_required): Enable
3839 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
3841 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
3844 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
3847 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3848 depending on frame_pointer_needed before remaining integer and SSE
3849 registers are saved.
3851 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
3854 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
3856 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
3859 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
3860 Use the "xBm" constraint.
3861 (float<sseintvecmodelower><mode>2<mask_name><round_name):
3863 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
3864 (sse_cvtsi2ssq<round_name>): Likewise.
3865 (sse_cvtss2si<round_name>): Likewise.
3866 (sse_cvtss2siq<round_name>): Likewise.
3867 (sse2_cvtsi2sdq<round_name>): Likewise.
3868 (sse2_cvtsd2si<round_name>): Likewise.
3869 (sse2_cvtsd2siq<round_name>): Likewise.
3870 * config/i386/subst.md (round_nimm_scalar_predicate): New
3873 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
3876 * varasm.c (make_decl_rtl): Mark invalid register vars as
3879 PR rtl-optimization/66206
3880 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
3881 All callers changed.
3883 2016-01-07 Jakub Jelinek <jakub@redhat.com>
3885 PR tree-optimization/69141
3886 * tree-ssa-pre.c: Include langhooks.h.
3887 (eliminate_dom_walker::before_dom_children): Use
3888 lang_hooks.decl_printable_name instead of
3889 cgraph_node::get ()->name ().
3892 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
3893 it and DECL_ALIGN too.
3895 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
3897 * config/mips/mips-ftypes.def: Sort to lexicographical order.
3899 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
3902 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3903 depending on frame_pointer_needed before remaining integer and SSE
3904 registers are saved.
3906 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3908 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
3909 mode iterator with VSX_M2.
3910 (*p9_vecstore_<mode>): Likewise.
3911 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
3912 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
3913 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
3914 (define_split for VSX_LE128 stores): Likewise.
3915 (define_peephole2 for TImode LE swaps): Likewise.
3916 (define_split for VSX_LE128 post-reload stores): Likewise.
3918 2016-01-06 Marek Polacek <polacek@redhat.com>
3921 * convert.c (convert_to_integer_1): Adjust call to
3922 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
3923 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
3924 EXPR instead of ARG.
3925 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
3927 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
3930 * doc/extend.texi (RL78 Variable Attributes): New section.
3932 2016-01-05 Marek Polacek <polacek@redhat.com>
3935 * builtins.c (get_memmodel): Use expansion point location rather than
3936 the input location. Call warning_at rather than warning.
3937 (expand_builtin_atomic_compare_exchange): Likewise.
3938 (expand_builtin_atomic_load): Likewise.
3939 (expand_builtin_atomic_store): Likewise.
3940 (expand_builtin_atomic_clear): Likewise.
3942 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
3945 * config/i386/i386.c (ix86_expand_vector_logical_operator):
3946 Replace nonimmediate_operand with vector_operand.
3947 * config/i386/predicates.md (vector_operand): New predicate.
3948 (general_vector_operand): Replace nonimmediate_operand with
3950 * config/i386/sse.md: Replace nonimmediate_operand with
3951 vector_operand and m constraint with Bm constraint on SSE
3952 patterns with 16-byte memory operand.
3953 * config/i386/subst.md (round_nimm_predicate): Replace
3954 nonimmediate_operand with vector_operand.
3955 (round_saeonly_nimm_predicate): Likewise.
3956 (round_saeonly_nimm_scalar_predicate): New.
3958 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
3961 * config/i386/constraints.md (Bm): New constraint.
3962 * config/i386/predicates.md (vector_memory_operand): New
3964 * config/i386/sse.md: Replace xm with xBm in plusminus and
3967 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
3970 * doc/extend.texi (V850 Function Attributes): New section.
3971 (V850 Variable Attributes): New section.
3973 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
3976 * doc/extend.texi (MicroBlaze Function Attributes): Document
3977 interrupt_handler and fast_interrupt attributes.
3979 2016-01-05 Sergei Trofimovich <siarheit@google.com>
3982 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
3983 for local symbolic operands.
3984 * config/ia64/predicates.md (local_symbolic_operand64): New
3987 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3989 PR rtl-optimization/68651
3990 * combine.c (combine_simplify_rtx): Canonicalize x + x into
3993 2016-01-05 Nathan Sidwell <nathan@acm.org>
3995 * alias.c (compare_base_decls): Use symtab_node::get.
3997 2016-01-05 Nick Clifton <nickc@redhat.com>
4000 * ira-costs.c (copy_cost): Initialise the t_icode field of the
4001 secondary_reload_info structure.
4004 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
4005 decls if weak support is available.
4007 2016-01-04 Martin Sebor <msebor@redhat.com>
4009 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
4011 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4013 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4014 OPTION_MASK_P9_DFORM.
4016 * config/rs6000/constraints.md (wo constraint): New constraint for
4019 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
4021 (rs6000_init_hard_regno_mode_ok): Likewise.
4023 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
4026 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
4027 expanders not to have constraints. Add support for ISA 3.0 xxperm
4028 instruction. Add support for fusing xxlor with xxperm.
4029 (altivec_vperm_<mode>_internal): Likewise.
4030 (altivec_vperm_v8hiv16qi): Likewise.
4031 (altivec_vperm_<mode>v16q): Likewise.
4032 (altivec_vperm_<mode>_uns): Likewise.
4033 (vperm_v8hiv4si): Likewise.
4034 (vperm_v16qiv8hi): Likewise.
4036 * doc/md.texi (RS/6000 constraints): Document wo constraint.
4038 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4040 Update copyright years.
4042 * gcc.c (process_command): Update copyright notice dates.
4043 * gcov-dump.c (print_version): Ditto.
4044 * gcov.c (print_version): Ditto.
4045 * gcov-tool.c (print_version): Ditto.
4046 * gengtype.c (create_file): Ditto.
4047 * doc/cpp.texi: Bump @copying's copyright year.
4048 * doc/cppinternals.texi: Ditto.
4049 * doc/gcc.texi: Ditto.
4050 * doc/gccint.texi: Ditto.
4051 * doc/gcov.texi: Ditto.
4052 * doc/install.texi: Ditto.
4053 * doc/invoke.texi: Ditto.
4055 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4057 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
4058 modes larger than TImode as TImode if NEON is not enabled.
4060 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4063 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
4064 mode for %f0-%f31 only if TARGET_FPU.
4066 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4069 * config/sparc/sparc.c (scan_record_type): Take into account subfields
4070 to compute the PACKED_P predicate.
4071 (function_arg_record_value): Minor tweaks.
4073 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4075 * doc/install.texi (--with-multilib-list): Describe the meaning of the
4076 option for arm*-*-* targets.
4078 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
4080 * doc/extend.texi (Common Function Attributes): Move docs for
4081 MSP430-specific attributes to....
4082 (MSP430 Function Attributes): ...here. Delete the redundant
4083 entries and copy-edit the remaining text.
4084 (MSP430 Variable Attributes): Use uniform format for index
4085 entries and add a cross-reference to the corresponding function
4088 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
4090 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
4092 (x86 Options): Likewise.
4094 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4098 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
4099 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
4100 to corresponding attribute.
4102 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4104 * doc/extend.texi (Common Function Attributes) <noplt>: Move
4105 to correct alphabetization of table. Copy-edit and correct
4107 <stack_protect>: Likewise.
4108 <target_clones>: Likewise.
4110 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
4111 Correct punctuation.
4112 (Code Gen Options) <-fno-plt>: Copy-edit.
4114 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4117 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
4118 SI values. Explicitly convert SI to DI and vice-versa.
4120 2016-01-01 Jakub Jelinek <jakub@redhat.com>
4122 PR tree-optimization/69070
4123 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
4124 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
4127 * ubsan.c (ubsan_instrument_float_cast): Call
4128 initialize_sanitizer_builtins.
4131 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
4133 Copyright (C) 2016 Free Software Foundation, Inc.
4135 Copying and distribution of this file, with or without modification,
4136 are permitted in any medium without royalty provided the copyright
4137 notice and this notice are preserved.