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