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