Change PRED_LOOP_EXIT from 92 to 85.
[gcc.git] / gcc / ChangeLog
1 2016-06-17 Martin Liska <mliska@suse.cz>
2
3 * predict.def: PRED_LOOP_EXIT from 92 to 85.
4
5 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
6
7 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
8 __FAST_MATH__.
9 (vaddq_f32): Likewise.
10 (vmul_f32): Likewise.
11 (vmulq_f32): Likewise.
12 (vsub_f32): Likewise.
13 (vsubq_f32): Likewise.
14
15 2016-06-17 Bin Cheng <bin.cheng@arm.com>
16
17 PR tree-optimization/71347
18 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
19 cost for all uses in group.
20
21 2016-06-17 Bin Cheng <bin.cheng@arm.com>
22
23 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
24 insert gimple seq if it's not empty.
25
26 2016-06-17 Bin Cheng <bin.cheng@arm.com>
27
28 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
29 member OFFSET.
30 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
31 rather than OFFSET.
32 (comp_dr_with_seg_len_pair): Ditto.
33 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
34 struct dr_with_seg_len_pair against DR_OFFSET.
35 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
36 DR_OFFSET directly.
37
38 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
39
40 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
41
42 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
43
44 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
45 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
46 (pa_output_millicode_call): Likewise.
47 (pa_output_call): Likewise.
48 (pa_output_indirect_call): Likewise.
49 (pa_asm_output_mi_thunk): Likewise.
50
51 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
52
53 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
54
55 2016-06-16 Martin Liska <mliska@suse.cz>
56
57 * predict.c (combine_predictions_for_insn): When we find a first
58 match predictor, we should consider just predictors with
59 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
60 DS theory predictor.
61 (combine_predictions_for_bb): Likewise.
62
63 2016-06-16 Jakub Jelinek <jakub@redhat.com>
64
65 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
66 with base of reference to struct.
67
68 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
69
70 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
71
72 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
73
74 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
75 progmem_swtable_section.
76 (progmem_swtable_section): Remove.
77 (avr_asm_function_rodata_section): Remove.
78 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
79 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
80
81 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
82
83 * config/i386/driver-i386.c (host_detect_local_cpu): Set
84 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
85 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
86 signature_CENTAUR_ebx.
87 * config/i386/i386.c (ix86_option_override_internal): Add
88 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
89 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
90 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
91
92 2016-06-16 Martin Liska <mliska@suse.cz>
93
94 * predict.def: Add fortran loop preheader predictor.
95 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
96 fold IFN_BUILTIN_EXPECT with a known constant argument.
97
98 2016-06-16 Martin Liska <mliska@suse.cz>
99
100 * predict.def: Add 'Fortran' to display text of all
101 PRED_FORTRAN_* predictors.
102
103 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
104
105 PR target/71242
106 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
107 [IA64_BUILTIN_NANSQ]: Ditto.
108 (ia64_fold_builtin): New function.
109 (TARGET_FOLD_BUILTIN): New define.
110 (ia64_init_builtins) Declare const_string_type node.
111 Add __builtin_nanq and __builtin_nansq builtin functions.
112 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
113
114 2016-06-16 Nick Clifton <nickc@redhat.com>
115
116 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
117 MSP430_HWMULT_ prefix to enum values.
118 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
119 * config/msp430/msp430.c: Update use of enum values.
120 * config/msp430/msp430.md: Likewise.
121 * config/msp430/msp430.opt: Likewise.
122
123 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
124
125 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
126 of comparsions in the last iteration.
127
128 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
129 Joern Rennecke <joern.rennecke@embecosm.com>
130
131 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
132 addresses.
133 (arc_needs_pcl_p): Add GOTOFFPC.
134 (arc_legitimate_pic_addr_p): Likewise.
135 (arc_output_pic_addr_const): Likewise.
136 (arc_legitimize_pic_address): Generate a pc-relative address using
137 GOTOFFPC.
138 (arc_output_libcall): Use @pcl syntax.
139 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
140 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
141 (*movsi_insn): Use @pcl syntax.
142 (doloop_begin_i): Likewise.
143
144 2016-06-16 Martin Liska <mliska@suse.cz>
145
146 * predict.def: Define a new predictor.
147
148 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
149
150 * config/arc/arc.opt (mtp-regno): Update text.
151
152 2016-06-16 Renlin Li <renlin.li@arm.com>
153
154 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
155
156 2016-06-16 Jakub Jelinek <jakub@redhat.com>
157
158 PR target/71554
159 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
160 (setcc + and peephole2): Likewise.
161
162 PR rtl-optimization/71532
163 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
164 memory slots.
165
166 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
167
168 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
169 DImode constants with XXSPLTIB in vector registers.
170 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
171 vsx_extract_<mode>_internal{1,2} into a single insn that handles
172 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
173 extraction of the element at the top of the register as a scalar
174 value.
175 (vsx_extract_<mode>_internal1): Likewise.
176 (vsx_extract_<mode>_internal2): Likewise.
177 * config/rs6000/constraints.md (wi constraint): Remove a comment
178 about DImode not being allowed in Altivec registers.
179 (wB constraint): New constraint for constants that can be
180 generated in Altivec registers with VSPLTISW/VUPKHSW.
181 * config/rs6000/predicates.md (xxspltib_constant_split): Update
182 comments.
183 (xxspltib_constant_nosplit): Likewise.
184 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
185 support for -mupper-regs-di to enable DImode to go into Altivec
186 registers.
187 (POWERPC_MASKS): Likewise.
188 (power7 cpu): Likewise.
189 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
190 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
191 for DImode being allowed in Altivec registers. Update wi/wj
192 constraints. Set scalar_in_vmx_p flag.
193 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
194 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
195 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
196 (rs6000_opt_masks): Add -mupper-regs-di.
197 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
198 direct move to use wi and not wj.
199 (lfiwzx): Likewise.
200 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
201 alternative.
202 (floatunssi<mode>2_lfiwzx_mem): Likewise.
203 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
204 any VSX register, instead of just Altivec registers, to allow
205 either operand to be an Altivec register or both.
206 (fixuns_trunc<mode>di2_fctiduz): Likewise.
207 (movdi_internal32): Add support for -mupper-regs-di. Add support
208 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
209 the alternatives and attributes to be lined up to be easier to
210 read.
211 (movdi_internal64): Likewise.
212 (64-bit DImode splitters): Change predicates to only split loading
213 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
214 load constants in ISA 3.0 or ISA 2.07 respectively.
215 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
216 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
217 mention -mcpu=power9 sets these options.
218 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
219 wB constraint.
220
221 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
222
223 PR target/67353
224 * config/avr/avr.c (avr_set_current_function): Warn misspelled
225 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
226 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
227 by default to warn misspelled interrupt/ signal handler.
228 * doc/invoke.texi (AVR Options): Document it. Update description
229 for -nodevicelib option.
230
231 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
232
233 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
234 up parentheses. Use GET_MODE_UNIT_BITSIZE.
235 (aarch64_<sur>shll2_n<mode>): Likewise.
236
237 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
238
239 PR middle-end/71529
240 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
241 DECL_CONTEXT for copied arguments.
242
243 2016-06-15 Alan Hayward <alan.hayward@arm.com>
244
245 PR tree-optimization/71483
246 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
247 for slp
248
249 2016-06-15 Martin Liska <mliska@suse.cz>
250
251 * predict.c (tree_predict_by_opcode): Call predict_edge_def
252 instead of predict_edge w/o a probability.
253
254 2016-06-15 Alan Hayward <alan.hayward@arm.com>
255
256 PR tree-optimization/71439
257 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
258 live PHIs.
259
260 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
261
262 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
263 register subregs in SET_SRC.
264
265 2016-06-15 Richard Biener <rguenther@suse.de>
266
267 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
268 store restrictions.
269
270 2016-06-15 Richard Biener <rguenther@suse.de>
271
272 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
273 not consider dependences between accesses that belong to the
274 same group.
275 (vect_analyze_data_ref_dependences): Do not analyze read-read
276 or self-dependences.
277
278 2016-06-14 David Malcolm <dmalcolm@redhat.com>
279
280 * spellcheck-tree.c: Include spellcheck-tree.h rather than
281 spellcheck.h.
282 (find_closest_identifier): Reimplement in terms of
283 best_match<tree,tree>.
284 * spellcheck-tree.h: New file.
285 * spellcheck.c (struct edit_distance_traits<const char *>): New
286 struct.
287 (find_closest_string): Reimplement in terms of
288 best_match<const char *, const char *>.
289 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
290 overload to spellcheck-tree.h.
291 (find_closest_identifier): Likewise.
292 (struct edit_distance_traits<T>): New template.
293 (class best_match): New class.
294
295 2016-06-14 David Malcolm <dmalcolm@redhat.com>
296
297 * selftest-run-tests.c (selftest::run_tests): Call
298 selftest::spellcheck_tree_c_tests.
299 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
300 * spellcheck-tree.c: Include selftest.h and stringpool.h.
301 (selftest::test_find_closest_identifier): New function.
302 (selftest::spellcheck_tree_c_tests): New function.
303 * spellcheck.c (selftest::test_find_closest_string): Verify that
304 the order of the vec does not affect the results for this case.
305 (selftest::test_data): New array.
306 (selftest::test_metric_conditions): New function.
307 (selftest::spellcheck_c_tests): Add a test of case-comparison.
308 Call selftest::test_metric_conditions.
309
310 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
311
312 * config/rs6000/rs6000-builtin.def (commentary): Typo.
313 (BU_P9_MISC_1): Likewise.
314 (BU_P9_64BIT_MISC_0): Likewise.
315 (BU_P9_MISC_0): Likewise.
316
317 2016-06-14 David Malcolm <dmalcolm@redhat.com>
318
319 * gcc-rich-location.c
320 (gcc_rich_location::add_fixit_misspelled_id): New method.
321 * gcc-rich-location.h
322 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
323
324 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
325
326 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
327 FreeBSD 11 and above.
328
329 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
330
331 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
332
333 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
334
335 * expmed.h: Close parenthesis in "at your option" in copyright
336 boilerplate.
337 * lower-subreg.h: Likewise.
338
339 2016-06-14 Richard Biener <rguenther@suse.de>
340
341 PR middle-end/71526
342 * genmatch.c (expr::gen_transform): Use in_type for comparisons
343 if available.
344
345 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
346
347 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
348 New function.
349 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
350 mask+shift version.
351 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
352 New prototype.
353 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
354 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
355
356 2016-06-14 Richard Biener <rguenther@suse.de>
357
358 PR tree-optimization/71522
359 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
360 copying into float copying.
361
362 2016-06-14 Jakub Jelinek <jakub@redhat.com>
363
364 PR tree-optimization/71520
365 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
366 (replace_block_by): Move user labels from bb1 to bb2.
367
368 2016-06-14 Richard Biener <rguenther@suse.de>
369
370 PR middle-end/71310
371 PR bootstrap/71510
372 * expr.h (get_bit_range): Declare.
373 * expr.c (get_bit_range): Export.
374 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
375 word_mode again to constrain the bitfield access.
376
377 2016-06-14 Richard Biener <rguenther@suse.de>
378
379 PR tree-optimization/71521
380 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
381 division int_const_binop against zero divisor.
382
383 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
384
385 * config/i386/i386.md (signbittf2): New expander.
386 * config/i386/sse.md (ptesttf2): New insn pattern.
387
388 2016-06-13 David Malcolm <dmalcolm@redhat.com>
389
390 PR bootstrap/71481
391 * input.c (selftest::test_reading_source_line): Avoid reading from
392 __FILE__ by creating a tempfile with known content and reading
393 from that instead.
394
395 2016-06-13 David Malcolm <dmalcolm@redhat.com>
396
397 * pretty-print.c (assert_pp_format_colored): Skip the test if
398 GCC_COLORS is set.
399 (test_pp_format): Remove comment about GCC_COLORS.
400
401 2016-06-13 David Malcolm <dmalcolm@redhat.com>
402
403 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
404 * pretty-print.c (assert_pp_format_va): Add location param and use
405 it with ASSERT_STREQ_AT.
406 (assert_pp_format): Add location param and pass it to
407 assert_pp_format_va.
408 (assert_pp_format_colored): Likewise.
409 (ASSERT_PP_FORMAT_1): New.
410 (ASSERT_PP_FORMAT_2): New.
411 (ASSERT_PP_FORMAT_3): New.
412 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
413 explicitly, or implicitly via the above macros.
414 * selftest.c (selftest::pass): Use a selftest::location rather
415 than file and line.
416 (selftest::fail): Likewise. Print the function name.
417 (selftest::fail_formatted): Likewise.
418 (selftest::assert_streq): Use a selftest::location rather than
419 file and line.
420 * selftest.h (selftest::location): New struct.
421 (SELFTEST_LOCATION): New macro.
422 (selftest::pass): Accept a const location & rather than file
423 and line.
424 (selftest::fail): Likewise.
425 (selftest::fail_formatted): Likewise.
426 (selftest::assert_streq): Likewise.
427 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
428 (ASSERT_FALSE): Likewise.
429 (ASSERT_EQ): Likewise.
430 (ASSERT_NE): Likewise.
431 (ASSERT_STREQ): Likewise.
432 (ASSERT_PRED1): Likewise.
433 (ASSERT_STREQ_AT): New macro.
434
435 2016-06-13 David Malcolm <dmalcolm@redhat.com>
436
437 * selftest.c (selftest::fail_formatted): New function.
438 (selftest::assert_streq): New function.
439 * selftest.h (selftests::fail_formatted): New decl.
440 (selftest::assert_streq): New decl.
441 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
442
443 2016-06-13 Jeff Law <law@redhat.com>
444
445 PR tree-optimization/71403
446 * tree-ssa-threadbackward.c
447 (convert_and_register_jump_thread_path): No longer accept reference
448 to path. Do not pop items off the path anymore.
449 (fsm_find_control_statement_thread_paths): Do not allow threading
450 to a deeper loop nest. Pop the last item off the path here rather
451 than in convert_and_register_jump_thread_path.
452
453 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
454 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
455
456 [AArch64] Emit division using the Newton series
457
458 * config/aarch64/aarch64-protos.h
459 (cpu_approx_modes): Add new member "division".
460 (aarch64_emit_approx_div): Declare new function.
461 * config/aarch64/aarch64.c
462 (generic_approx_modes): New member "division".
463 (exynosm1_approx_modes): Likewise.
464 (xgene1_approx_modes): Likewise.
465 (aarch64_emit_approx_div): Define new function.
466 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
467 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
468 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
469 * doc/invoke.texi (-mlow-precision-div): Describe new option.
470
471 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
472 Wilco Dijkstra <wilco.dijkstra@arm.com>
473
474 [AArch64] Emit square root using the Newton series
475
476 * config/aarch64/aarch64-protos.h
477 (aarch64_emit_approx_rsqrt): Replace with new function
478 "aarch64_emit_approx_sqrt".
479 (cpu_approx_modes): New member "sqrt".
480 * config/aarch64/aarch64.c
481 (generic_approx_modes): New member "sqrt".
482 (exynosm1_approx_modes): Likewise.
483 (xgene1_approx_modes): Likewise.
484 (aarch64_emit_approx_rsqrt): Replace with new function
485 "aarch64_emit_approx_sqrt".
486 (aarch64_override_options_after_change_1): Handle new option.
487 * config/aarch64/aarch64-simd.md
488 (rsqrt<mode>2): Use new function instead.
489 (sqrt<mode>2): New expansion and insn definitions.
490 * config/aarch64/aarch64.md: Likewise.
491 * config/aarch64/aarch64.opt
492 (mlow-precision-sqrt): Add new option description.
493 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
494
495 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
496
497 [AArch64] Add more choices for the reciprocal square root approximation
498
499 Allow a target to prefer such operation depending on the operation mode.
500
501 * config/aarch64/aarch64-protos.h
502 (AARCH64_APPROX_MODE): New macro.
503 (AARCH64_APPROX_{NONE,ALL}): Likewise.
504 (cpu_approx_modes): New structure.
505 (tune_params): New member "approx_modes".
506 * config/aarch64/aarch64-tuning-flags.def
507 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
508 * config/aarch64/aarch64.c
509 (generic_approx_modes): New core "cpu_approx_modes" structure.
510 (exynosm1_approx_modes): Likewise.
511 (xgene1_approx_modes): Likewise.
512 (generic_tunings): New member "approx_modes".
513 (cortexa35_tunings): Likewise.
514 (cortexa53_tunings): Likewise.
515 (cortexa57_tunings): Likewise.
516 (cortexa72_tunings): Likewise.
517 (exynosm1_tunings): Likewise.
518 (thunderx_tunings): Likewise.
519 (xgene1_tunings): Likewise.
520 (use_rsqrt_p): New argument for the mode and use new member from
521 "tune_params".
522 (aarch64_builtin_reciprocal): Devise mode from builtin.
523 (aarch64_optab_supported_p): New argument for the mode.
524 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
525
526 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
527
528 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
529 RS6000_BTM_MODULO flag into the set of flags that are considered
530 to be part of the common configuration.
531
532 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
533
534 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
535 difference unsigned.
536 (vec_absdb): New macro for vector absolute difference unsigned
537 byte.
538 (vec_absdh): New macro for vector absolute difference unsigned
539 half-word.
540 (vec_absdw): New macro for vector absolute difference unsigned word.
541 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
542 (vadu<mode>3): New insn.
543 (*p9_vadu<mode>3): New insn.
544 * config/rs6000/rs6000-builtin.def (vadub): New built-in
545 definition.
546 (vaduh): New built-in definition.
547 (vaduw): New built-in definition.
548 (vadu): New overloaded built-in definition.
549 (vadub): New overloaded built-in definition.
550 (vaduh): New overloaded built-in definition.
551 (vaduw): New overloaded built-in definition.
552 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
553 overloaded vector absolute difference unsigned functions.
554 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
555 the ISA 3.0 vector absolute difference unsigned built-in functions.
556
557 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
558
559 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
560 update shared_lookup_references only once after changing operands.
561
562 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
563
564 PR middle-end/71373
565 * tree-nested.c (convert_nonlocal_omp_clauses)
566 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
567
568 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
569 * tree.def (CASE_LABEL_EXPR): Likewise.
570
571 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
572
573 PR bootstrap/71481
574 * input.c (test_builtins): Fix an assertion.
575
576 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
577
578 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
579 (paritysi2): Ditto.
580 (isinfxf2): Ditto.
581 (isinf<mode>2): Ditto.
582
583 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
584
585 * ggc-tests.c (test_finalization): Only test need_finalization_p
586 for GCC_VERSION >= 4003.
587
588 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
589
590 * config/s390/vecintrin.h: Fix file description in comment.
591
592 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
593
594 * config/s390/s390-builtin-types.def: Change builtin type naming
595 scheme to match builtin-types.def.
596
597 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
598
599 * fold-const.c (optimize_minmax_comparison): Remove.
600 (fold_comparison): Remove call to the above.
601 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
602 New transformations.
603
604 2016-06-13 Alan Hayward <alan.hayward@arm.com>
605
606 PR tree-optimization/71416
607 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
608 multiple entries
609
610 2016-06-13 Martin Liska <mliska@suse.cz>
611
612 * predict.c (enum predictor_reason): Prefix enum with REASON_.
613 (combine_predictions_for_insn): Likewise.
614 (prune_predictions_for_bb): Likewise.
615 (combine_predictions_for_bb): Likewise.
616
617 2016-06-13 Richard Biener <rguenther@suse.de>
618
619 PR tree-optimization/71505
620 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
621 assert match comment.
622
623 2016-06-13 Marek Polacek <polacek@redhat.com>
624
625 PR middle-end/71476
626 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
627 gimplify_switch_expr.
628 (warn_switch_unreachable_r): New function.
629
630 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
631
632 PR target/71379
633 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
634 one.
635
636 2016-06-13 Richard Biener <rguenther@suse.de>
637
638 PR middle-end/64516
639 * fold-const.c (fold_unary_loc): Preserve alignment when
640 folding a VIEW_CONVERT_EXPR into a MEM_REF.
641
642 2016-06-13 Martin Liska <mliska@suse.cz>
643
644 PR sanitizer/71458
645 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
646 w/ -fsanitize=bounds.
647
648 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
649
650 * config/i386/i386.c (ix86_init_builtins): Calculate
651 FLOAT128_FTYPE_CONST_STRING function type only once.
652 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
653 built-in functions are available for x86-32 and x86-64 targets.
654
655 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
656
657 PR target/71241
658 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
659 New primitive type.
660 (FLOAT128_FTYPE_CONST_STRING): New function type.
661 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
662 [IX86_BUILTIN_NANSQ]: Ditto.
663 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
664 (ix86_init_builtin_types): Declare const_string_type_node.
665 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
666 builtin functions.
667 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
668 * doc/extend.texi (x86 Built-in Functions): Document
669 __builtin_nanq and __builtin_nansq.
670
671 2016-06-11 Jiong Wang <jiong.wang@arm.com>
672
673 PR target/71061
674 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
675 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
676 length for pop patterns.
677 (arm_attr_length_push_multi): Update comments.
678 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
679 attribute.
680 (*pop_multiple_with_writeback_and_return): Likewise.
681 (*pop_multiple_with_return): Likewise.
682
683 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
684
685 PR middle-end/71310
686 * fold-const.c (optimize_bit_field_compare): Don't try to use
687 word_mode unconditionally for reading the bit field, look at
688 DECL_BIT_FIELD_REPRESENTATIVE instead.
689
690 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
691
692 PR middle-end/71478
693 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
694 vector integer type.
695
696 2016-06-10 Jakub Jelinek <jakub@redhat.com>
697
698 PR middle-end/71494
699 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
700 without LABEL_DECL, set *handled_ops_p to false instead of true.
701
702 2016-06-10 Martin Sebor <msebor@redhat.com>
703
704 PR c/71392
705 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
706 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
707 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
708 them.
709 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
710 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
711 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
712 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
713 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
714 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
715 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
716 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
717
718 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
719
720 * config/arm/arm.h (pool_vector_label,
721 return_used_this_function): Remove.
722
723 2016-06-10 Jeff Law <law@redhat.com>
724
725 PR tree-optimization/71335
726 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
727 zero length paths here.
728 (convert_and_register_jump_thread_path): Remove hacks related to
729 duplicated blocks in the jump thread path.
730 (fsm_find_control_statement_thread_paths): Avoid putting the same
731 block on the thread path twice, but ensure the thread path is
732 unchanged from the caller's point of view.
733
734 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
735
736 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
737 * predict.def (PRED_LOOP_BRANCH): Remove.
738
739 2016-06-10 David Malcolm <dmalcolm@redhat.com>
740
741 * Makefile.in (OBJS): Add ggc-tests.o.
742 (GTFILES): Add ggc-tests.c.
743 * ggc-tests.c: New file.
744 * selftest-run-tests.c (selftest::run_tests): Call
745 selftest::ggc_tests_c_tests.
746 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
747
748 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
749
750 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
751
752 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
753
754 PR sanitizer/71480
755 * varasm.c (place_block_symbol): Adjust alignment for asan protected
756 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
757
758 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
759
760 * profile.c: Include cfgloop.h.
761 (branch_prob): Compute estimated number of iterations.
762 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
763 recompute estimate number of iterations from profile.
764
765 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
766
767 PR inline-asm/68843
768 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
769 must be grouped on top of stack. Don't force early clobber
770 on ordinary reg outputs.
771
772 2016-06-10 Richard Biener <rguenther@suse.de>
773
774 * targhooks.c (default_builtin_vectorization_cost): Adjust
775 vec_construct cost.
776
777 2016-06-10 Richard Biener <rguenther@suse.de>
778
779 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
780 to fold the RHS to a constant if possible.
781
782 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
783
784 PR middle-end/71373
785 * tree-nested.c (convert_nonlocal_omp_clauses)
786 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
787 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
788 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
789
790 * gimplify.c (gimplify_adjust_omp_clauses): Discard
791 OMP_CLAUSE_TILE.
792 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
793
794 * omp-low.c (scan_sharing_clauses): Don't expect
795 OMP_CLAUSE__CACHE_.
796
797 2016-06-10 Alan Hayward <alan.hayward@arm.com>
798
799 PR tree-optimization/71407
800 PR tree-optimization/71416
801 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
802 BIT_FIELD_REF type.
803
804 2016-06-10 Richard Biener <rguenther@suse.de>
805
806 PR middle-end/71477
807 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
808
809 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
810
811 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
812
813 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
814 Jiong Wang <jiong.wang@arm.com>
815
816 PR rtl-optimization/70751
817 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
818 spilled into memory.
819
820 2016-06-09 Jonathan Yong <10walls@gmail.com>
821
822 Revert:
823 2015-09-21 Jonathan Yong <10walls@gmail.com>
824
825 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
826 sysroot/usr/lib/32api for additional win32 libraries,
827 fixes failing Cygwin bootstrapping.
828
829 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
830
831 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
832 Delete.
833
834 2016-06-09 David Malcolm <dmalcolm@redhat.com>
835
836 PR bootstrap/71471
837 * pretty-print.c (pp_indent): Specify that %p is printed in a
838 host-dependent manner.
839 (test_pp_format): Remove the test for %p.
840
841 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
842
843 * config/mips/mips.c (mips_output_jump): Fix formatting.
844
845 2016-06-09 Richard Biener <rguenther@suse.de>
846
847 PR tree-optimization/71462
848 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
849 removed blocks.
850
851 2016-06-09 Martin Liska <mliska@suse.cz>
852
853 * predict.c (dump_prediction): Add new argument.
854 (enum predictor_reason): New enum.
855 (struct predictor_hash): New struct.
856 (predictor_hash::hash): New function.
857 (predictor_hash::equal): Likewise.
858 (not_removed_prediction_p): New function.
859 (prune_predictions_for_bb): Likewise.
860 (combine_predictions_for_bb): Prune predictions.
861
862 2016-06-09 Martin Liska <mliska@suse.cz>
863
864 * predict.c (filter_predictions): New function.
865 (remove_predictions_associated_with_edge): Use the filter
866 function.
867 (equal_edge_p): New function.
868
869 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
870
871 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
872 Correct usage of @samp vs @option, add @samp where appropriate.
873 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
874 Add armv6s-m and document it, as it is no official ARM name.
875
876 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
877
878 * ifcvt.c (struct noce_if_info): Add transform_name field.
879 (noce_try_move): Set if_info->transform_name to the function name.
880 (noce_try_ifelse_collapse): Likewise.
881 (noce_try_store_flag): Likewise.
882 (noce_try_inverse_constants): Likewise.
883 (noce_try_store_flag_constants): Likewise.
884 (noce_try_addcc): Likewise.
885 (noce_try_store_flag_mask): Likewise.
886 (noce_try_cmove): Likewise.
887 (noce_try_cmove_arith): Likewise.
888 (noce_try_minmax): Likewise.
889 (noce_try_abs): Likewise.
890 (noce_try_sign_mask): Likewise.
891 (noce_try_bitop): Likewise.
892 (noce_convert_multiple_sets): Likewise.
893 (noce_process_if_block): Print if_info->transform_name to
894 dump_file if transformation succeeded.
895
896 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
897
898 * config/arm/cortex-a57.md (cortex_a57_alu):
899 Handle csel type.
900
901 2016-06-08 Martin Sebor <msebor@redhat.com>
902 Jakub Jelinek <jakub@redhat.com>
903
904 PR c++/70507
905 PR c/68120
906 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
907 BUILT_IN_MUL_OVERFLOW_P): New builtins.
908 * builtins.c: Include gimple-fold.h.
909 (fold_builtin_arith_overflow): Handle
910 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
911 (fold_builtin_3): Likewise.
912 * doc/extend.texi (Integer Overflow Builtins): Document
913 __builtin_{add,sub,mul}_overflow_p.
914
915 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
916
917 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
918 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
919
920 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
921
922 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
923 Rewrite, looking one level down for records and arrays.
924
925 2016-06-08 David Malcolm <dmalcolm@redhat.com>
926
927 * pretty-print.c: Include "selftest.h".
928 (pp_format): Fix comment.
929 (identifier_to_locale): Likewise.
930 (selftest::test_basic_printing): New function.
931 (selftest::assert_pp_format): New function.
932 (selftest::test_pp_format): New function.
933 (selftest::pretty_print_c_tests): New function.
934 * selftest-run-tests.c (selftest::run_tests): Call
935 selftest::pretty_print_c_tests.
936 * selftest.h (pretty_print_c_tests): New declaration.
937
938 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
939
940 * invoke.texi (max-loop-headers-insns): Document.
941 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
942 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
943 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
944
945 2016-06-08 Richard Biener <rguenther@suse.de>
946
947 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
948 on strided SLP loads and fall back to scalar loads in case
949 we can't chunk them.
950
951 2016-06-08 Richard Biener <rguenther@suse.de>
952
953 PR tree-optimization/71452
954 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
955 type used for the SSA rewrite has enough precision to cover
956 the dynamic type of the location.
957
958 2016-06-08 Jakub Jelinek <jakub@redhat.com>
959 Richard Biener <rguenther@suse.de>
960
961 PR c++/71448
962 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
963 the same as DECL_P (base0) for indirect_base0. Use equality_code
964 in one further place.
965
966 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
967
968 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
969 to one word if the field is known to overlap other words.
970 (extract_bit_field_1): Likewise.
971 (store_split_bit_field): Remove compensating code.
972 (extract_split_bit_field): Likewise.
973
974 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
975
976 PR debug/71432
977 PR ada/71413
978 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
979
980 2016-06-08 Jiong Wang <jiong.wang@arm.com>
981
982 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
983 VDQF.
984 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
985 (arch64_addpv4sf): Delete.
986 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
987 "gen_aarch64_addpv4sf".
988 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
989 builtin.
990 (vpadds_f32): Likewise.
991 (vpaddq_f32): Likewise.
992 (vpaddq_f64): Likewise.
993
994 2016-06-08 Jiong Wang <jiong.wang@arm.com>
995
996 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
997 VALLF.
998 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
999 to VALLF. Rename to "fabd<mode>3".
1000 "*fabd_scalar<mode>3): Delete.
1001 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
1002 Use builtin.
1003 (vabdd_f64): Likewise.
1004 (vabd_f32): Likewise.
1005 (vabd_f64): Likewise.
1006 (vabdq_f32): Likewise.
1007 (vabdq_f64): Likewise.
1008
1009 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1010
1011 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
1012 VALLF.
1013 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
1014 "aarch64_rsqrts<mode>".
1015 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
1016 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
1017 builtin.
1018 (vrsqrtsd_f64): Likewise.
1019 (vrsqrts_f32): Likewise.
1020 (vrsqrts_f64): Likewise.
1021 (vrsqrtsq_f32): Likewise.
1022 (vrsqrtsq_f64): Likewise.
1023
1024 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1025
1026 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
1027 VALLF.
1028 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
1029 "aarch64_rsqrte<mode>".
1030 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
1031 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
1032 builtin.
1033 (vrsqrted_f64): Likewise.
1034 (vrsqrte_f32): Likewise.
1035 (vrsqrte_f64): Likewise.
1036 (vrsqrteq_f32): Likewise.
1037 (vrsqrteq_f64): Likewise.
1038
1039 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1040
1041 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
1042 (ucvtf): Likewise.
1043 (fcvtzs): Likewise.
1044 (fcvtzu): Likewise.
1045 * config/aarch64/aarch64-simd.md
1046 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
1047 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
1048 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
1049 Use builtin.
1050 (vcvt_n_f32_u32): Likewise.
1051 (vcvt_n_s32_f32): Likewise.
1052 (vcvt_n_u32_f32): Likewise.
1053 (vcvtq_n_f32_s32): Likewise.
1054 (vcvtq_n_f32_u32): Likewise.
1055 (vcvtq_n_f64_s64): Likewise.
1056 (vcvtq_n_f64_u64): Likewise.
1057 (vcvtq_n_s32_f32): Likewise.
1058 (vcvtq_n_s64_f64): Likewise.
1059 (vcvtq_n_u32_f32): Likewise.
1060 (vcvtq_n_u64_f64): Likewise.
1061 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
1062 (VSDQ_SDI): Likewise.
1063 (fcvt_target): Support V4DI, V4SI and V2SI.
1064 (FCVT_TARGET): Likewise.
1065
1066 2016-06-08 Jiong Wang <jiong.wang@arm.com>
1067
1068 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
1069 (TYPES_BINOP_SUS): Likewise.
1070 (aarch64_simd_builtin_data): Update include file name.
1071 (aarch64_builtins): Likewise.
1072 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
1073 for conversion between scalar float-point and fixed-point.
1074 (ucvtf): Likewise.
1075 (fcvtzs): Likewise.
1076 (fcvtzu): Likewise.
1077 * config/aarch64/aarch64.md
1078 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
1079 pattern for conversion between scalar float to fixed-pointer.
1080 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
1081 (UNSPEC_FCVTZS): New UNSPEC enumeration.
1082 (UNSPEC_FCVTZU): Likewise.
1083 (UNSPEC_SCVTF): Likewise.
1084 (UNSPEC_UCVTF): Likewise.
1085 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
1086 Use builtin.
1087 (vcvtd_n_f64_u64): Likewise.
1088 (vcvtd_n_s64_f64): Likewise.
1089 (vcvtd_n_u64_f64): Likewise.
1090 (vcvtd_n_f32_s32): Likewise.
1091 (vcvts_n_f32_u32): Likewise.
1092 (vcvtd_n_s32_f32): Likewise.
1093 (vcvts_n_u32_f32): Likewise.
1094 * config/aarch64/iterators.md (fcvt_target): Support integer to float
1095 mapping.
1096 (FCVT_TARGET): Likewise.
1097 (FCVT_FIXED2F): New iterator.
1098 (FCVT_F2FIXED): Likewise.
1099 (fcvt_fixed_insn): New define_int_attr.
1100
1101 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1102
1103 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
1104 some statements was removed.
1105
1106 2016-06-08 Alan Hayward <alan.hayward@arm.com>
1107
1108 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
1109 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
1110 (vect_can_advance_ivs_p): likewise.
1111 (vect_update_ivs_after_vectorizer): likewise.
1112 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
1113 (vect_analyze_scalar_cycles_1): likewise.
1114 (vect_analyze_loop_operations): likewise.
1115 (report_vect_op): likewise.
1116 (vect_is_slp_reduction): likewise.
1117 (vect_is_simple_reduction): likewise.
1118 (get_initial_def_for_induction): likewise.
1119 (vect_transform_loop): likewise.
1120 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
1121 (vect_recog_sad_pattern): likewise.
1122 (vect_recog_widen_sum_pattern): likewise.
1123 (vect_recog_widening_pattern): likewise.
1124 (vect_recog_divmod_pattern): likewise.
1125 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
1126 (vect_analyze_slp_instance): likewise.
1127 (vect_transform_slp_perm_load): likewise.
1128 (vect_schedule_slp_instance): likewise.
1129
1130 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1131
1132 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
1133 (return_prediction): PRED_CONST_RETURN predict return as not taken.
1134 * predict.def (PRED_CONTINUE): Change hitrate 50->67
1135 (PRED_LOOP_BRANCH): Document predictor as broken.
1136 (PRED_LOOP_EXIT): Change hitrate 91->92.
1137 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
1138 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
1139 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
1140 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
1141 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
1142 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
1143 (PRED_CALL): Chane hitrate 71->67.
1144 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
1145 (PRED_GOTO): Document as unused right now.
1146 (PRED_CONST_RETURN): Change hitrate 67->69
1147 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
1148 (PRED_NULL_RETURN): Change hitrate 91->90.
1149 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
1150 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
1151 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
1152
1153 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
1154
1155 * config/rs6000/altivec.h: Add __builtin_vec_mul.
1156 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
1157 special case Altivec builtin.
1158 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1159 VSX_BUILTIN_VEC_MUL (replaced with special case code).
1160 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1161 code for ALTIVEC_BUILTIN_VEC_MUL.
1162 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1163 for __builtin_vec_mul.
1164
1165 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
1166
1167 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
1168 -mno-htm.
1169
1170 2016-06-07 David Malcolm <dmalcolm@redhat.com>
1171
1172 * spellcheck.c (selftest::test_find_closest_string): New function.
1173 (spellcheck_c_tests): Call the above.
1174
1175 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1176
1177 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
1178
1179 2016-06-07 Jakub Jelinek <jakub@redhat.com>
1180
1181 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
1182 Yv=Yv,C alternatives.
1183
1184 2016-06-07 Richard Biener <rguenther@suse.de>
1185
1186 PR c/61564
1187 * common.opt (ffast-math): Make Optimization.
1188
1189 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
1190 Prachi Godbole <prachi.godbole@imgtec.com>
1191
1192 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
1193 `fabs' and `fneg' type attributes.
1194 (p5600_fpu_fabs): Add `fmove' to the comment.
1195
1196 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
1197
1198 * gimple.c: Include builtins.h
1199 (gimple_inexpensive_call_p): New function.
1200 * gimple.h (gimple_inexpensive_call_p): Declare.
1201 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
1202 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
1203 fix formatting.
1204
1205 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
1206
1207 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
1208 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
1209 warning_at_rich_loc, warning_n, pedwarn, permerror,
1210 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
1211 sorry, fatal_error, internal_error, internal_error_no_backtrace):
1212 Use the above.
1213
1214 2016-06-07 Richard Biener <rguenther@suse.de>
1215
1216 PR tree-optimization/71428
1217 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
1218 BIT_FIELD_REF op vs. load.
1219
1220 2016-06-07 Richard Biener <rguenther@suse.de>
1221
1222 PR middle-end/71423
1223 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
1224 for signed ops.
1225
1226 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
1227
1228 * config/pa/pa.md (call): Generate indirect long calls to non-local
1229 functions on TARGET_64BIT.
1230 (call_value): Likewise.
1231
1232 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
1233
1234 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
1235 pattern and subsequent splitters.
1236 (call_val_reg_64bit_post_reload): Likewise.
1237
1238 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1239
1240 PR middle-end/71408
1241 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
1242 propagate_op_to_single_use.
1243
1244 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
1245
1246 PR middle-end/71281
1247 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
1248
1249 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
1250
1251 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
1252 (enum x86_dirflag_state): New enum.
1253 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
1254 (machine_function): Remove needs_cld.
1255 (ix86_current_function_needs_cld): Remove.
1256 * config/i386/i386.c (ix86_set_func_type): Set
1257 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
1258 (ix86_expand_prologue): Do not emit CLD here.
1259 (ix86_dirflag_mode_needed): New function.
1260 (ix86_dirflag_mode_entry): Ditto.
1261 (ix86_mode_needed): Handle X86_DIRFLAG entity.
1262 (ix86_mode_after): Ditto.
1263 (ix86_mode_entry): Ditto.
1264 (ix86_mode_exit): Ditto.
1265 (ix86_emit_mode_set): Ditto.
1266 * config/i386/i386.md (strmov_singleop): Set
1267 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
1268 Do not set ix86_current_function_needs_cld.
1269 (rep_mov): Ditto.
1270 (strset_singleop): Ditto.
1271 (rep_stos): Ditto.
1272 (cmpstrnqi_nz_1): Ditto.
1273 (cmpstrnqi_1): Ditto.
1274 (strlenqi_1): Ditto.
1275
1276 2016-06-06 Jakub Jelinek <jakub@redhat.com>
1277
1278 PR tree-optimization/71259
1279 * tree-vect-slp.c (vect_get_constant_vectors): For
1280 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
1281 one for constant op, and use COND_EXPR for non-constant.
1282
1283 2016-06-06 David Malcolm <dmalcolm@redhat.com>
1284
1285 * Makefile.in (OBJS): Add function-tests.o,
1286 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
1287 selftest-run-tests.o.
1288 (OBJS-libcommon): Add selftest.o.
1289 (OBJS-libcommon-target): Add selftest.o.
1290 (all.internal): Add "selftest".
1291 (all.cross): Likewise.
1292 (selftest): New phony target.
1293 (s-selftest): New target.
1294 (selftest-gdb): New phony target.
1295 (COLLECT2_OBJS): Add selftest.o.
1296 * bitmap.c: Include "selftest.h".
1297 (selftest::test_gc_alloc): New function.
1298 (selftest::test_set_range): New function.
1299 (selftest::test_clear_bit_in_middle): New function.
1300 (selftest::test_copying): New function.
1301 (selftest::test_bitmap_single_bit_set_p): New function.
1302 (selftest::bitmap_c_tests): New function.
1303 * common.opt (fself-test): New.
1304 * diagnostic-show-locus.c: Include "selftest.h".
1305 (make_range): New function.
1306 (test_range_contains_point_for_single_point): New function.
1307 (test_range_contains_point_for_single_line): New function.
1308 (test_range_contains_point_for_multiple_lines): New function.
1309 (assert_eq): New function.
1310 (test_get_line_width_without_trailing_whitespace): New function.
1311 (selftest::diagnostic_show_locus_c_tests): New function.
1312 * et-forest.c: Include "selftest.h".
1313 (selftest::test_single_node): New function.
1314 (selftest::test_simple_tree): New function.
1315 (selftest::test_disconnected_nodes): New function.
1316 (selftest::et_forest_c_tests): New function.
1317 * fold-const.c: Include "selftest.h".
1318 (selftest::assert_binop_folds_to_const): New function.
1319 (selftest::assert_binop_folds_to_nonlvalue): New function.
1320 (selftest::test_arithmetic_folding): New function.
1321 (selftest::fold_const_c_tests): New function.
1322 * function-tests.c: New file.
1323 * gimple.c: Include "selftest.h".
1324 Include "gimple-pretty-print.h".
1325 (selftest::verify_gimple_pp): New function.
1326 (selftest::test_assign_single): New function.
1327 (selftest::test_assign_binop): New function.
1328 (selftest::test_nop_stmt): New function.
1329 (selftest::test_return_stmt): New function.
1330 (selftest::test_return_without_value): New function.
1331 (selftest::gimple_c_tests): New function.
1332 * hash-map-tests.c: New file.
1333 * hash-set-tests.c: New file.
1334 * input.c: Include "selftest.h".
1335 (selftest::assert_loceq): New function.
1336 (selftest::test_accessing_ordinary_linemaps): New function.
1337 (selftest::test_unknown_location): New function.
1338 (selftest::test_builtins): New function.
1339 (selftest::test_reading_source_line): New function.
1340 (selftest::input_c_tests): New function.
1341 * rtl-tests.c: New file.
1342 * selftest-run-tests.c: New file.
1343 * selftest.c: New file.
1344 * selftest.h: New file.
1345 * spellcheck.c: Include "selftest.h".
1346 (selftest::levenshtein_distance_unit_test_oneway): New function,
1347 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
1348 (selftest::levenshtein_distance_unit_test): Likewise.
1349 (selftest::spellcheck_c_tests): Likewise.
1350 * toplev.c: Include selftest.h.
1351 (toplev::run_self_tests): New.
1352 (toplev::main): Handle -fself-test.
1353 * toplev.h (toplev::run_self_tests): New.
1354 * tree.c: Include "selftest.h".
1355 (selftest::test_integer_constants): New function.
1356 (selftest::test_identifiers): New function.
1357 (selftest::test_labels): New function.
1358 (selftest::tree_c_tests): New function.
1359 * tree-cfg.c: Include "selftest.h".
1360 (selftest::push_fndecl): New function.
1361 (selftest::test_linear_chain): New function.
1362 (selftest::test_diamond): New function.
1363 (selftest::test_fully_connected): New function.
1364 (selftest::tree_cfg_c_tests): New function.
1365 * vec.c: Include "selftest.h".
1366 (selftest::safe_push_range): New function.
1367 (selftest::test_quick_push): New function.
1368 (selftest::test_safe_push): New function.
1369 (selftest::test_truncate): New function.
1370 (selftest::test_safe_grow_cleared): New function.
1371 (selftest::test_pop): New function.
1372 (selftest::test_safe_insert): New function.
1373 (selftest::test_ordered_remove): New function.
1374 (selftest::test_unordered_remove): New function.
1375 (selftest::test_block_remove): New function.
1376 (selftest::reverse_cmp): New function.
1377 (selftest::test_qsort): New function.
1378 (selftest::vec_c_tests): New function.c.
1379 * wide-int.cc: Include selftest.h and wide-int-print.h.
1380 (selftest::from_int <wide_int>): New function.
1381 (selftest::from_int <offset_int>): New function.
1382 (selftest::from_int <widest_int>): New function.
1383 (selftest::assert_deceq): New function.
1384 (selftest::assert_hexeq): New function.
1385 (selftest::test_printing <VALUE_TYPE>): New function template.
1386 (selftest::test_ops <VALUE_TYPE>): New function template.
1387 (selftest::test_comparisons <VALUE_TYPE>): New function template.
1388 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
1389 template.
1390 (selftest::wide_int_cc_tests): New function.
1391
1392 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1393
1394 PR middle-end/37780
1395 * ifcvt.c (noce_try_ifelse_collapse): New function.
1396 Declare prototype.
1397 (noce_process_if_block): Call noce_try_ifelse_collapse.
1398 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
1399 (simplify_ternary_operation): Use the above to simplify
1400 conditional CLZ/CTZ expressions.
1401
1402 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1403
1404 PR middle-end/37780
1405 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
1406 define_insn_and_split.
1407
1408 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1409
1410 PR middle-end/37780
1411 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
1412
1413 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
1414
1415 PR c/24414
1416 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
1417 Implicitly clobber memory for basic asm with non-empty assembler
1418 string. Use targetm.md_asm_adjust also here.
1419 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
1420 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
1421 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
1422 non-empty assembler string.
1423 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
1424 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
1425 (decode_asm_operands): Handle basic asm in PARALLEL block.
1426 (extract_insn): Handle basic asm in PARALLEL block.
1427 * doc/extend.texi: Mention new behavior of basic asm.
1428 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
1429 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
1430 branch_needs_nop_p): Use asm_noperands.
1431
1432 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
1433
1434 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
1435 Include the M7 SPARC DFA scheduler.
1436 New attribute v3pipe.
1437 Annotate insns with v3pipe where appropriate.
1438 Define cpu_feature vis4.
1439 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
1440 Add (V8QI "8") to vbits.
1441 Add insns {add,sub}v8qi3
1442 Add insns ss{add,sub}v8qi3
1443 Add insns us{add,sub}{v8qi,v4hi}3
1444 Add insns {min,max}{v8qi,v4hi,v2si}3
1445 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
1446 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
1447 * config/sparc/niagara4.md: Add a comment explaining the
1448 discrepancy between the documented latenty numbers and the
1449 implemented ones.
1450 * config/sparc/niagara7.md: New file.
1451 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
1452 supports SPARC5 and VIS 4.0 instructions.
1453 * configure: Regenerate.
1454 * config.in: Likewise.
1455 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
1456 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
1457 TARGET_CPU_niagara7.
1458 (ASM_CPU64_DEFAULT_SPEC): Likewise.
1459 (CPP_CPU_SPEC): Handle niagara7.
1460 (ASM_CPU_SPEC): Likewise.
1461 * config/sparc/sparc-opts.h (processor_type): Add
1462 PROCESSOR_NIAGARA7.
1463 (mvis4): New option.
1464 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
1465 (AS_NIAGARA7_FLAG): Define.
1466 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
1467 (CPP_CPU64_DEFAULT_SPEC): Likewise.
1468 (CPP_CPU_SPEC): Handle niagara7.
1469 (ASM_CPU_SPEC): Likewise.
1470 * config/sparc/sparc.c (niagara7_costs): Define.
1471 (sparc_option_override): Handle niagara7 and adjust cache-related
1472 parameters with better values for niagara cpus. Also support VIS4.
1473 (sparc32_initialize_trampoline): Likewise.
1474 (sparc_use_sched_lookahead): Likewise.
1475 (sparc_issue_rate): Likewise.
1476 (sparc_register_move_cost): Likewise.
1477 (dump_target_flag_bits): Support VIS4.
1478 (sparc_vis_init_builtins): Likewise.
1479 (sparc_builtins): Likewise.
1480 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
1481 VIS4 4.0.
1482 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
1483 UltraSparc M7.
1484 * config/sparc/sparc.opt (sparc_processor_type): New value
1485 niagara7.
1486 * config/sparc/visintrin.h (__attribute__): Prototypes for the
1487 VIS4 builtins.
1488 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
1489 -mvis4.
1490 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
1491 VIS4 builtins.
1492
1493 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
1494
1495 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
1496
1497 2016-06-06 Richard Biener <rguenther@suse.de>
1498
1499 PR tree-optimization/71398
1500 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
1501 remove edges.
1502
1503 2016-06-05 James Bowman <james.bowman@ftdichip.com>
1504
1505 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
1506 ft32_expand_prolog, ft32_expand_epilogue):
1507 Handle pretend_args.
1508 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
1509 * config/ft32/ft32.md: Add pretend_returner.
1510
1511 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
1512
1513 PR target/71389
1514 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1515 Copy op1 RTX to avoid invalid sharing.
1516 (ix86_expand_vector_move_misalign): Ditto.
1517
1518 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
1519
1520 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
1521 ATTRIBUTE_UNUSED.
1522
1523 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
1524
1525 * predict.c (predicted_by_loop_heuristics_p): New function.
1526 (predict_iv_comparison): Use it.
1527 (predict_loops): Walk from innermost loops; do not predict edges
1528 leaving multiple loops multiple times; implement
1529 PRED_LOOP_ITERATIONS_MAX heuristics.
1530 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
1531
1532 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
1533
1534 * cfg.c (check_bb_profile): Do not report mismatched profiles when
1535 only edges out of BB are EH edges.
1536
1537 2016-06-04 Martin Sebor <msebor@redhat.com>
1538 Marcin Baczyński <marbacz@gmail.com>
1539
1540 PR c/48116
1541 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
1542 a void expression in a void function.
1543
1544 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
1545
1546 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
1547 aux; dump reasons of decisions.
1548 (should_duplicate_loop_header_p): Likewise.
1549 (do_while_loop_p): Likewise.
1550 (ch_base::copy_headers): Dump asi num insns duplicated.
1551
1552 2016-06-04 Jakub Jelinek <jakub@redhat.com>
1553
1554 PR tree-optimization/71405
1555 * tree-ssa.c (execute_update_addresses_taken): For clobber with
1556 incompatible type, build a new clobber with the right type instead
1557 of building a VIEW_CONVERT_EXPR around it.
1558
1559 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
1560
1561 PR tree-optimization/52171
1562 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
1563 by_pieces_ninsns instead of move_by_pieces_ninsns.
1564
1565 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
1566
1567 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
1568 for reg+reg addressing mode.
1569
1570 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1571
1572 * rs6000-c.c (c/c-tree.h): Add #include.
1573 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
1574 in C++ when found in the base position of vec_ld or vec_st.
1575
1576 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
1577
1578 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
1579 use of profile unless profile status is PROFILE_READ.
1580 * profile.c (compute_branch_probabilities): Set profile status
1581 only after reporting predictor hitrates.
1582
1583 2016-06-03 Joseph Myers <joseph@codesourcery.com>
1584
1585 PR target/71276
1586 PR target/71277
1587 * common.opt (ffp-int-builtin-inexact): New option.
1588 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
1589 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
1590 (ceil@var{m}2): Document dependence on this option.
1591 * ipa-inline-transform.c (inline_call): Handle
1592 flag_fp_int_builtin_inexact.
1593 * ipa-inline.c (can_inline_edge_p): Likewise.
1594 * config/i386/i386.md (rintxf2): Do not test
1595 flag_unsafe_math_optimizations.
1596 (rint<mode>2_frndint): New define_insn.
1597 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
1598 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
1599 for 387 instead of extending and truncating.
1600 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
1601 !flag_trapping_math instead of flag_unsafe_math_optimizations.
1602 Change to frndint<mode>2_<rounding>.
1603 (frndintxf2_<rounding>_i387): Likewise. Change to
1604 frndint<mode>2_<rounding>_i387.
1605 (<rounding_insn>xf2): Likewise.
1606 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
1607 !flag_trapping_math instead of flag_unsafe_math_optimizations for
1608 x87. Test TARGET_ROUND || !flag_trapping_math ||
1609 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
1610 SSE. Use ROUND_NO_EXC in constant operand of
1611 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
1612 for 387 instead of extending and truncating.
1613
1614 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
1615 Julia Koval <julia.koval@intel.com>
1616
1617 PR target/66960
1618 PR target/67630
1619 PR target/67634
1620 PR target/67841
1621 PR target/68037
1622 PR target/68618
1623 PR target/68661
1624 PR target/69575
1625 PR target/69596
1626 PR target/69734
1627 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
1628 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
1629 all registers, except for function return registers if there are
1630 no caller-saved registers.
1631 (ix86_set_func_type): New function.
1632 (ix86_set_current_function): Call ix86_set_func_type to set
1633 no_caller_saved_registers and func_type. Call reinit_regs if
1634 caller-saved registers are changed. Don't allow MPX, SSE, MMX
1635 nor x87 instructions in interrupt handler nor function with
1636 no_caller_saved_registers attribute.
1637 (ix86_function_ok_for_sibcall): Return false if there are no
1638 caller-saved registers.
1639 (type_natural_mode): Don't warn ABI change for MMX in interrupt
1640 handler.
1641 (ix86_function_arg_advance): Skip for callee in interrupt handler.
1642 (ix86_function_arg): Return special arguments in interrupt handler.
1643 (ix86_promote_function_mode): Promote pointer to word_mode only
1644 for normal functions.
1645 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
1646 interrupt handler.
1647 (ix86_epilogue_uses): New function.
1648 (ix86_hard_regno_scratch_ok): Likewise.
1649 (ix86_save_reg): Preserve all registers in interrupt handler
1650 after reload. Preserve all registers, except for function return
1651 registers, if there are no caller-saved registers after reload.
1652 (find_drap_reg): Always use callee-saved register if there are
1653 no caller-saved registers.
1654 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
1655 for interrupt handler.
1656 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
1657 Emit cld instruction if stringops are used in interrupt handler
1658 or interrupt handler isn't a leaf function.
1659 (ix86_expand_epilogue): Generate interrupt return for interrupt
1660 handler and pop the 'ERROR_CODE' off the stack before interrupt
1661 return in exception handler.
1662 (ix86_expand_call): Disallow calling interrupt handler directly.
1663 If there are no caller-saved registers, mark all registers that
1664 are clobbered by the call which returns as clobbered.
1665 (ix86_handle_no_caller_saved_registers_attribute): New function.
1666 (ix86_handle_interrupt_attribute): Likewise.
1667 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
1668 attributes.
1669 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
1670 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
1671 accumulation in interrupt function if stack may be realigned to
1672 avoid DRAP.
1673 (EPILOGUE_USES): New.
1674 (function_type): New enum.
1675 (machine_function): Add func_type and no_caller_saved_registers.
1676 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
1677 (interrupt_return): New pattern.
1678 * doc/extend.texi: Document x86 interrupt and
1679 no_caller_saved_registers attributes.
1680
1681 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
1682
1683 PR tree-optimization/52171
1684 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
1685 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
1686 Look for constant strings. Move some code to emit_block_cmp_hints
1687 and use it.
1688 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
1689 * defaults.h (COMPARE_MAX_PIECES): New macro.
1690 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
1691 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
1692 (clear_by_pieces_1): Don't declare. Move definition before use.
1693 (can_do_by_pieces): New static function.
1694 (can_move_by_pieces): Use it. Return bool.
1695 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
1696 OP. All callers changed. Handle COMPARE_BY_PIECES.
1697 (class pieces_addr); New.
1698 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
1699 pieces_addr::adjust, pieces_addr::increment_address,
1700 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
1701 functions for it.
1702 (class op_by_pieces_d): New.
1703 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
1704 functions for it.
1705 (class move_by_pieces_d, class compare_by_pieces_d,
1706 class store_by_pieces_d): New subclasses of op_by_pieces_d.
1707 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
1708 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
1709 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
1710 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
1711 compare_by_pieces_d::finish_mode): New member functions.
1712 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
1713 functions.
1714 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
1715 (emit_block_cmp_hints): New function.
1716 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
1717 use the newly defined classes.
1718 * expr.h (by_pieces_constfn): New typedef.
1719 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
1720 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
1721 (move_by_pieces_ninsns): Don't declare.
1722 (can_move_by_pieces): Change return value to bool.
1723 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
1724 (compare_by_pieces_branch_ratio): New hook.
1725 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
1726 (by_pieces_ninsns): Declare.
1727 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
1728 COMPARE_BY_PIECES.
1729 (default_compare_by_pieces_branch_ratio): New function.
1730 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
1731 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
1732 * doc/tm.texi: Regenerate.
1733 * tree-ssa-strlen.c: Include "builtins.h".
1734 (handle_builtin_memcmp): New static function.
1735 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
1736 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
1737
1738 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1739
1740 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
1741 relevant stmts which are simple and invariant.
1742 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
1743 instead of simple and invariant
1744
1745 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1746
1747 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
1748 (vectorizable_reduction): Check for new relevant state.
1749 (vectorizable_live_operation): vectorize live stmts using
1750 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
1751 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
1752 (vect_stmt_relevant_p): Check for stmts which are only used live.
1753 (process_use): Use of a stmt does not inherit it's live value.
1754 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
1755 (vect_analyze_stmt): Check for new relevant state.
1756 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
1757 outside the loop, but not inside it.
1758
1759 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1760
1761 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
1762 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
1763 (vect_get_vec_def_for_operand): Split out code.
1764
1765 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
1766
1767 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
1768
1769 2016-06-03 Alan Hayward <alan.hayward@arm.com>
1770
1771 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
1772
1773 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1774
1775 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
1776
1777 2016-06-03 Jakub Jelinek <jakub@redhat.com>
1778
1779 PR middle-end/71387
1780 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
1781 to noreturn e->callee->decl that has void return type and void
1782 arguments, adjust gimple_call_fntype and remove lhs even if it had
1783 previously addressable type.
1784
1785 2016-06-02 Jeff Law <law@redhat.com>
1786
1787 PR tree-optimization/71328
1788 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
1789 error when checking for a jump back onto the copied path.
1790
1791 2016-06-02 David Malcolm <dmalcolm@redhat.com>
1792
1793 * config/microblaze/microblaze.c (get_branch_target): Add return
1794 NULL_RTX for the non-CALL_P case.
1795 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
1796 (insert_wic): Remove unused local "j".
1797
1798 2016-06-02 Martin Liska <mliska@suse.cz>
1799
1800 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
1801
1802 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
1803 Julia Koval <julia.koval@intel.com>
1804
1805 * function.c (assign_parm_setup_stack): Force source into a
1806 register if needed.
1807 * target.def (function_incoming_arg): Update documentation to
1808 allow arbitrary address computation based on hard register.
1809 * doc/tm.texi: Regenerated.
1810
1811 2016-06-02 Martin Liska <mliska@suse.cz>
1812
1813 * predict.c (combine_predictions_for_bb): Fix first match in
1814 cases where a first predictor contains more than one occurence
1815 in list of predictors. Take the best value in such case.
1816
1817 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1818
1819 PR rtl-optimization/71295
1820 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
1821 offset would go over the size of the inner mode reject it.
1822
1823 2016-06-02 Jakub Jelinek <jakub@redhat.com>
1824
1825 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
1826 x=x,x and v=v,m instead of x=x,m.
1827
1828 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
1829 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
1830 alternative to v=rm,C.
1831
1832 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
1833 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
1834 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
1835 instead of vex for the last two above mentioned alternatives.
1836
1837 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1838
1839 PR target/70830
1840 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
1841
1842 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
1843
1844 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
1845
1846 2016-06-01 David Malcolm <dmalcolm@redhat.com>
1847
1848 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
1849 from int to unsigned.
1850
1851 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1852
1853 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
1854 alternatives, eliminating preferred register class. Add support
1855 for the MTVSRDD instruction in ISA 3.0.
1856 (vsx_splat_v4si_internal): Use splat_input_operand instead of
1857 reg_or_indexed_operand.
1858 (vsx_splat_v4sf_internal): Likewise.
1859
1860 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1861
1862 PR target/71186
1863 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
1864 for loading up all 0's or all 1's.
1865
1866 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
1867
1868 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
1869
1870 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
1871
1872 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
1873 extension.
1874 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
1875 * gcc.c (set_source_date_epoch_envvar): New function, sets
1876 the SOURCE_DATE_EPOCH environment variable to the current time.
1877
1878 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
1879
1880 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
1881 the factor for live Phi nodes.
1882
1883 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
1884
1885 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
1886 * tree-parloops.c (parallelize_loops): likewise.
1887 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
1888 tree_unswitch_outer_loop): likewise.
1889
1890 2016-06-01 Jakub Jelinek <jakub@redhat.com>
1891
1892 PR middle-end/71371
1893 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
1894 around creation of the temporary.
1895
1896 2016-06-01 Richard Biener <rguenther@suse.de>
1897
1898 PR tree-optimization/71366
1899 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
1900 (unloop_loops): Move removing edges here ...
1901 (try_unroll_loop_completely): ... from here.
1902 (try_peel_loop): ... and here.
1903 (tree_unroll_loops_completely_1): Track parent loops via
1904 bitmap of header BBs.
1905 (tree_unroll_loops_completely): Adjust for that.
1906
1907 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1908
1909 * config/rs6000/altivec.h (vec_slv): New macro.
1910 (vec_srv): New macro.
1911 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
1912 (UNSPEC_VSRV): New value.
1913 (vslv): New insn.
1914 (vsrv): New insn.
1915 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
1916 (vsrv): New builtin definition.
1917 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
1918 define argument types for new builtin.
1919 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
1920 new builtin.
1921 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
1922 functions.
1923
1924 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
1925 Jocelyn Mayer <l_indien@magic.fr>
1926
1927 PR target/67310
1928 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
1929 detect processor family for signature_CENTAUR_ebx.
1930 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
1931 signature_CENTAUR_ebx.
1932 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
1933 <default>: Pass x86-64 for has_longmode.
1934
1935 2016-06-01 Nathan Sidwell <nathan@acm.org>
1936
1937 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
1938 undefined weak.
1939
1940 2016-06-01 Richard Biener <rguenther@suse.de>
1941
1942 PR tree-optimization/71261
1943 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
1944 of stmts successfully put in the bool pattern. Remove
1945 single-use restriction.
1946 (adjust_bool_pattern_cast): Add cast at the use site via the
1947 pattern def sequence.
1948 (adjust_bool_pattern): Remove recursion, maintain a hash-map
1949 of patterned defs. Use the pattern def seqence instead of
1950 multiple independent patterns.
1951 (sort_after_uid): New qsort compare function.
1952 (adjust_bool_stmts): New function to process stmts in the bool
1953 pattern in IL order.
1954 (vect_recog_bool_pattern): Adjust.
1955 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
1956 (ifcvt_walk_pattern_tree): Likewise.
1957 (stmt_is_root_of_bool_pattern): Likewise.
1958 (ifcvt_repair_bool_pattern): Likewise.
1959 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
1960
1961 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
1962
1963 * loop-unroll.c (decide_unroll_constant_iterations,
1964 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
1965 likely upper bounds.
1966 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
1967
1968 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
1969
1970 * tree-core.h (enum omp_clause_code): Remove
1971 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
1972
1973 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1974
1975 * config/arm/sync.md (arm_store_exclusive<mode>):
1976 Use 'H' output modifier on operands[2] rather than creating a new
1977 entry in out-of-bounds memory of the operands array.
1978 (arm_store_release_exclusivedi): Likewise.
1979
1980 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1981
1982 * config/arm/arm.c (arm_fusion_enabled_p): New function.
1983 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
1984 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
1985 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
1986
1987 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
1988
1989 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
1990 into account live statements for mask producers.
1991
1992 2016-06-01 Richard Biener <rguenther@suse.de>
1993
1994 PR tree-optimization/71311
1995 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
1996 restrict to non-INTEGER_CST @0.
1997
1998 2016-06-01 Richard Biener <rguenther@suse.de>
1999
2000 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
2001 (relational patterns): Use :c to avoid pattern duplications.
2002
2003 2016-06-01 Richard Biener <rguenther@suse.de>
2004
2005 * genmatch.c (comparison_code_p): New predicate.
2006 (swap_tree_comparison): New function.
2007 (commutate): Add for_vec parameter to append new for entries.
2008 Support commutating relational operators by swapping it alongside
2009 operands.
2010 (lower_commutative): Adjust.
2011 (dt_simplify::gen): Do not pass artificial operators to gen
2012 functions.
2013 (decision_tree::gen): Do not add artificial operators as parameters.
2014 (parser::parse_expr): Verify operator commutativity when :c is
2015 applied. Allow :C to override this.
2016 * match.pd: Adjust patterns to use :C instead of :c where required.
2017
2018 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
2019
2020 PR tree-optimization/71077
2021 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
2022 the combining step, use boolean_false_node and boolean_true_node
2023 as the designated false/true return values.
2024
2025 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2026
2027 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
2028 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
2029 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
2030 PRED_LOOP_EXIT.
2031
2032 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2033
2034 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
2035 of flags impliying the register renaming.
2036 * toplev.c (process_options): Do not imply flag_rename_registers with
2037 loop peeling.
2038
2039 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2040
2041 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
2042 default implementation.
2043
2044 2016-05-31 Nathan Sidwell <nathan@acm.org>
2045
2046 * dwarf2out.c (cur_line_info_table): Add GTY marker.
2047
2048 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2049
2050 * config/sh/constraints.md (b): Remove constraint.
2051 * config/sh/predicates.md (arith_reg_operand): Remove
2052 TARGET_REGISTER_P.
2053 * config/sh/sh-modes.def (PDI): Remove.
2054 * config/sh/sh.c (sh_target_reg_class,
2055 sh_optimize_target_register_callee_saved): Remove functions.
2056 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
2057 (sh_expand_epilogue): Update comment.
2058 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
2059 sh_secondary_reload): Remove TARGET_REGS related code.
2060 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
2061 TARGET_REGISTER_P): Remove macros.
2062 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
2063 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
2064 TR1_REG, TR2_REG): Remove constants.
2065 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
2066
2067 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2068
2069 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
2070 define_expand patterns.
2071 (adddi3_compact): Rename to adddi3.
2072 (subdi3_compact): Rename to subdi3.
2073 (*negdi2): Rename to negdi2.
2074 (*abs<mode>2): Rename to abs<mode>2.
2075
2076 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
2077
2078 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
2079 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
2080 (atomic_sub_fetchsi): ... this new pattern.
2081 (mvtc): Add CC_REG clobber.
2082
2083 2016-05-31 Marek Polacek <polacek@redhat.com>
2084
2085 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
2086
2087 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2088
2089 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
2090 aarch64_fusion_enabled_p to check for fusion capabilities.
2091
2092 2016-05-31 Richard Biener <rguenther@suse.de>
2093
2094 PR tree-optimization/71352
2095 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
2096 minus one and a negate.
2097
2098 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2099
2100 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
2101 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
2102 Delete prototype.
2103 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
2104 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
2105 Remove use of aarch64_simd_attr_length_move, set length attribute
2106 directly.
2107 (*aarch64_be_movoi): Likewise.
2108 (*aarch64_be_movci): Likewise.
2109 (*aarch64_be_movxi): Likewise.
2110
2111 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
2112
2113 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
2114 It no longer does that.
2115 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
2116
2117 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
2118
2119 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
2120 attribute __unused__.
2121
2122 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
2123
2124 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
2125 * config/arm/arm.c (arm_arch_thumb1): Define.
2126 (arm_option_override): Initialize arm_arch_thumb1.
2127 * config/arm/arm.h (arm_arch_thumb1): Declare.
2128 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
2129 support Thumb-1 ISA.
2130
2131 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
2132
2133 PR target/71346
2134 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
2135 `Yv' for scalar operand.
2136
2137 2016-05-31 Tom de Vries <tom@codesourcery.com>
2138
2139 PR tree-optimization/69068
2140 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
2141 phis with more than two args.
2142
2143 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
2144
2145 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
2146 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
2147 target.
2148
2149 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
2150
2151 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
2152 tune_64.
2153 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2154 support on SPARC.
2155 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
2156 cpu_32, cpu_64, tune_32 and tune_64.
2157 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
2158
2159 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
2160
2161 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
2162
2163 2016-05-30 Andi Kleen <ak@linux.intel.com>
2164
2165 * auto-profile.c (read_profile): Replace asserts with errors
2166 when file does not exist.
2167 * gcov-io.c (gcov_read_words): Dito.
2168
2169 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2170
2171 * tree-cfg.c (print_loop): Print likely upper bounds.
2172
2173 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2174
2175 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
2176 * opts.c (default_options): Enable peel loops at -O3.
2177 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
2178 (try_peel_loop): Do not re-peel already peeled loops;
2179 use likely upper bounds; fix profile updating.
2180 (pass_complete_unroll::execute): Initialize peeled_loops.
2181
2182 2016-05-30 Martin Liska <mliska@suse.cz>
2183
2184 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
2185 computed costs by frequency of BB they belong to.
2186 (get_scaled_computation_cost_at): New function.
2187
2188 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
2189 Marc Glisse <marc.glisse@inria.fr>
2190
2191 PR tree-optimization/71289
2192 * match.pd (-1 / B < A, A > -1 / B): New transformations.
2193
2194 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2195
2196 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
2197
2198 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2199
2200 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
2201 for peeled copies; avoid underflow when updating estimates; correctly
2202 scale loop profile.
2203
2204 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2205
2206 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
2207 r236875. Corrected oe3 to oe2 as obvious.
2208
2209 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2210
2211 PR middle-end/71269
2212 PR middle-end/71252
2213 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
2214 that inserted stmt will not dominate stmts that defines its operand.
2215 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
2216 (rewrite_expr_tree_parallel): Likewise.
2217
2218 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
2219
2220 PR middle-end/71252
2221 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
2222 all fields including stmt_to_insert are swapped.
2223
2224 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2225
2226 * predict.h (force_edge_cold): Declare.
2227 * predict.c (force_edge_cold): New function.
2228 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
2229 updating.
2230 (canonicalize_loop_induction_variables): Fix formating.
2231
2232 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
2233
2234 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
2235 (visium_expand_copysign): Use gen_int_mode directly.
2236 (visium_compute_frame_size): Minor tweaks.
2237
2238 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
2239
2240 * tree-vect-loop.c (vect_analyze_loop_2): Use
2241 likely_max_stmt_executions_int.
2242
2243 2016-05-30 Tom de Vries <tom@codesourcery.com>
2244
2245 PR tree-optimization/69067
2246 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
2247
2248 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
2249
2250 PR target/71245
2251 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
2252 New peepholes to remove unneeded fild/fistp pairs.
2253 (define_peephole2 atomic_loaddi_fpu): Ditto.
2254
2255 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2256
2257 * predict.c (maybe_hot_frequency_p): Avoid division.
2258
2259 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
2260
2261 * doc/install.texi: Use https for shop.fsf.org.
2262
2263 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2264
2265 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
2266 likely_max_stmt_executions_int.
2267
2268 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2269
2270 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2271 likely_max_stmt_executions_int.
2272
2273 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2274
2275 * profile.c (compute_branch_probabilities): Do not report hitrates
2276 here.
2277 (branch_prob): Report hitrates here.
2278 * predict.c (gimple_predict_edge): Do not assert profile status;
2279 fix formatting issues.
2280
2281 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2282
2283 * predict.c (edge_predicted_by_p): New function.
2284 (predict_paths_for_bb): Do not put multiple predictions of the same type
2285 on one edge.
2286
2287 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2288
2289 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
2290 commit.
2291
2292 2016-05-28 Alan Modra <amodra@gmail.com>
2293
2294 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
2295
2296 2016-05-28 Alan Modra <amodra@gmail.com>
2297
2298 PR rtl-optimization/71275
2299 * ira.c (ira): Free dominance info.
2300
2301 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
2302
2303 * doc/sourcebuild.texi: New address for upstream Go repository.
2304
2305 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
2306
2307 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
2308 (TARGET_ARM_V7M): Likewise.
2309
2310 2016-05-26 Jeff Law <law@redhat.com>
2311
2312 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
2313 (thread_across_edge): Remove calls to find_jump_threads_backwards.
2314 * passes.def: Add jump threading passes before DOM/VRP.
2315 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
2316 argument to a basic block from an edge. Remove tests which are
2317 handled elsewhere.
2318 (pass_data_thread_jumps, class pass_thread_jumps): New.
2319 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
2320 (make_pass_thread_jumps): Likewise.
2321 * tree-pass.h (make_pass_thread_jumps): Declare.
2322
2323 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
2324
2325 * config/visium/visium-protos.h (split_double_move): Rename into...
2326 (visium_split_double_move): ...this.
2327 (visium_split_double_add): Declare.
2328 * config/visium/visium.c (split_double_move): Rename into...
2329 (visium_split_double_move): ...this.
2330 (visium_split_double_add): New function.
2331 (visium_expand_copysign): Renumber operands for consistency.
2332 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
2333 (DFmode move splitter): Likewise.
2334 (*addi3_insn): Split by means of visium_split_double_add.
2335 (*adddi3_insn_flags): Delete.
2336 (*plus_plus_sltu<subst_arith>): New insn.
2337 (*subdi3_insn): Split by means of visium_split_double_add.
2338 (subdi3_insn_flags): Delete.
2339 (*minus_minus_sltu<subst_arith>): New insn.
2340 (*negdi2_insn): Split by means of visium_split_double_add.
2341 (*negdi2_insn_flags): Delete.
2342
2343 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
2344
2345 * configure.ac: Treat a --with-headers option without argument
2346 the same as the default (i.e. consult sys-include directory).
2347 * configure: Regenerate.
2348
2349 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2350
2351 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
2352 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
2353 prototype.
2354 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
2355 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
2356
2357 2016-05-27 Jiong Wang <jiong.wang@arm.com>
2358
2359 PR target/63596
2360 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
2361 tree-stdarg analysis results.
2362 (aarch64_setup_incoming_varargs): Likewise.
2363
2364 2016-05-27 Jiong Wang <jiong.wang@arm.com>
2365
2366 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
2367 va_list_gpr_counter_field and va_list_fpr_counter_field.
2368
2369 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
2370
2371 PR67609
2372 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
2373 * config/aarch64/aarch64.c
2374 (aarch64_cannot_change_mode_class): Remove function.
2375 * config/aarch64/aarch64-protos.h
2376 (aarch64_cannot_change_mode_class): Remove.
2377
2378 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
2379
2380 * cfgloop.c (record_niter_bound): Record likely upper bounds.
2381 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
2382 get_likely_max_loop_iterations_int): New.
2383 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
2384 any_likely_upper_bound.
2385 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
2386 Declare.
2387 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
2388 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
2389 upper bound.
2390 (unroll_loop_constant_iterations): Likewise.
2391 (unroll_loop_runtime_iterations): Likewise.
2392 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
2393 * lto-streamer-out.c (output_cfg): Likewise.
2394 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
2395 bounds.
2396 (canonicalize_loop_induction_variables): Dump likely upper bounds.
2397 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
2398 (likely_max_loop_iterations): New.
2399 (likely_max_loop_iterations_int): New.
2400 (likely_max_stmt_executions): New.
2401 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
2402 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
2403 likely_max_stmt_executions): Declare.
2404
2405 2016-05-27 Marek Polacek <polacek@redhat.com>
2406
2407 PR middle-end/71308
2408 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
2409
2410 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2411
2412 * config/s390/s390.md (2x risbg splitters): Use
2413 reg_overlap_mentioned_p instead of rtx_equal_p.
2414
2415 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2416
2417 * combine.c (make_compound_operation): Take known zero bits into
2418 account when checking for possible zero_extend.
2419
2420 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2421
2422 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
2423 Use const_int_operand for operand 2 predicate. Simplify expand code
2424 as a result.
2425
2426 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
2427
2428 PR middle-end/71279
2429 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
2430 into comparison.
2431
2432 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2433
2434 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
2435 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
2436 that returns CC_SESWPmode and CC_ZESWPmode.
2437 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
2438 and CC_SESWPmode.
2439 (aarch64_rtx_costs): Likewise.
2440
2441 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2442
2443 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
2444 for ISA 3.0 min/max support.
2445 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
2446 conditional move support.
2447 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
2448 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
2449 available.
2450 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
2451 conditional moves where the comparison type is different from move
2452 type.
2453 (fp_minmax): New code iterator for smin/smax.
2454 (minmax): New code attributes for min/max.
2455 (SMINMAX): Likewise.
2456 (smax<mode>3): Combine min, max insns into one insn using the
2457 fp_minmax code iterator. Add support for ISA 3.0 min/max
2458 instructions that don't need -ffast-math.
2459 (s<minmax><mode>3): Likewise.
2460 (smax<mode>3_vsx): Likewise.
2461 (smin<mode>3): Likewise.
2462 (s<minmax><mode>3_vsx): Likewise.
2463 (smin<mode>3_vsx): Likewise.
2464 (pre-VSX min/max splitters): Likewise.
2465 (s<minmax><mode>3_fpr): Likewise.
2466 (movsfcc): Rewrite floating point conditional moves to combine
2467 SFmode/DFmode into a single insn.
2468 (mov<mode>cc): Likewise.
2469 (movdfcc): Likewise.
2470 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
2471 SFDF2 iterators to handle all combinations.
2472 (fseldfsf4): Likewise.
2473 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
2474 (fseldfdf4): Likewise.
2475 (fselsfdf4): Likewise.
2476 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
2477 comparison instructions that set a 0/-1 mask, and use it for
2478 floating point conditional move via XXSEL.
2479 (fpmask<mode>): Likewise.
2480 (xxsel<mode>): Likewise.
2481 * config/rs6000/predicates.md (min_max_operator): Delete, no
2482 longer used.
2483 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
2484 instructions that generate a 0/-1 mask for use with XXSEL.
2485 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
2486 say whether floating point min/max is available, either through
2487 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
2488 (TARGET_MINMAX_DF): Likewise.
2489
2490 2016-05-27 Alan Modra <amodra@gmail.com>
2491
2492 PR rtl-optimization/71275
2493 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
2494 for update_equiv_regs and combine_and_move_insns.
2495
2496 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
2497
2498 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
2499 if_then_else or cond RTXes to calculate attribute value.
2500 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
2501 <attr "length_immediate>: Ditto.
2502 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
2503 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
2504 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
2505 <attr "type">: Ditto.
2506 <attr "prefix_data16">: Ditto.
2507 <attr "prefix_extra">: Ditto.
2508 <attr "length_immediate">: Ditto.
2509 <attr "prefix">: Ditto.
2510 (vec_set<mode>_0) <attr "isa">: Ditto.
2511 <attr "prefix_extra">: Ditto.
2512 <attr "length_immediate">: Ditto.
2513 <attr "prefix">: Ditto.
2514 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
2515 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
2516 (sse2_storelpd) <attr "prefix_data16">: Ditto.
2517 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
2518 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
2519 <attr "length_immediate">: Ditto.
2520 <attr "prefix">: Ditto.
2521 (sse2_movsd) <attr "length_immediate">: Ditto.
2522 <attr "prefix">: Ditto.
2523 (vec_concatv2df) <attr "isa">: Ditto.
2524 <attr "prefix">: Ditto.
2525 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
2526 (*vec_extractv2di_1) <attr "isa">: Ditto.
2527 <attr "type">: Ditto.
2528 <attr "length_immediate">: Ditto.
2529 <attr "prefix_rex">: Ditto.
2530 <attr "prefix_extra">: Ditto.
2531 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
2532 <attr "prefix_extra">: Ditto.
2533 <attr "length_immediate">: Ditto.
2534 (vec_concatv2di) <attr "isa">: Ditto.
2535 <attr "prefix_extra">: Ditto.
2536 <attr "length_immediate">: Ditto.
2537 <attr "prefix">: Ditto.
2538
2539 2016-05-26 Martin Liska <mliska@suse.cz>
2540
2541 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
2542 function.
2543 (operator+): Likewise.
2544 (operator-): Likewise.
2545 (comp_cost::operator+=): Likewise.
2546 (comp_cost::operator-=): Likewise.
2547 (comp_cost::operator/=): Likewise.
2548 (comp_cost::operator*=): Likewise.
2549 (operator<): Likewise.
2550 (operator==): Likewise.
2551 (operator<=): Likewise.
2552 (new_cost): Remove.
2553 (infinite_cost_p): Likewise.
2554 (add_costs): Likewise.
2555 (sub_costs): Likewise.
2556 (compare_costs): Likewise.
2557 (set_group_iv_cost): Use the newly introduced functions.
2558 (get_address_cost): Likewise.
2559 (get_shiftadd_cost): Likewise.
2560 (force_expr_to_var_cost): Likewise.
2561 (split_address_cost): Likewise.
2562 (ptr_difference_cost): Likewise.
2563 (difference_cost): Likewise.
2564 (get_computation_cost_at): Likewise.
2565 (determine_group_iv_cost_generic): Likewise.
2566 (determine_group_iv_cost_address): Likewise.
2567 (determine_group_iv_cost_cond): Likewise.
2568 (autoinc_possible_for_pair): Likewise.
2569 (determine_group_iv_costs): Likewise.
2570 (cheaper_cost_pair): Likewise.
2571 (iv_ca_recount_cost): Likewise.
2572 (iv_ca_set_no_cp): Likewise.
2573 (iv_ca_set_cp): Likewise.
2574 (iv_ca_cost): Likewise.
2575 (iv_ca_new): Likewise.
2576 (iv_ca_dump): Likewise.
2577 (iv_ca_narrow): Likewise.
2578 (iv_ca_prune): Likewise.
2579 (iv_ca_replace): Likewise.
2580 (try_add_cand_for): Likewise.
2581 (try_improve_iv_set): Likewise.
2582 (find_optimal_iv_set): Likewise.
2583
2584 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
2585
2586 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
2587 that internal functions will clobber all caller-saved registers.
2588
2589 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
2590
2591 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
2592 Return a better case_values_threshold when optimizing.
2593
2594 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
2595
2596 * config/aarch64/aarch64-simd.md (aarch64_combinez):
2597 Add ? to integer variant.
2598 (aarch64_combinez_be): Likewise.
2599
2600 2016-05-26 Jakub Jelinek <jakub@redhat.com>
2601
2602 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
2603 instead of x constraint.
2604 (vcvtps2ph256<mask_name>): Likewise.
2605
2606 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
2607 alternative. Formatting fix.
2608
2609 * config/i386/sse.md
2610 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
2611 to ...
2612 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
2613 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
2614 maybe_evex prefix instead of vex.
2615 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
2616 EXT_REX_SSE_REG_P (op0) case in the splitter.
2617
2618 2016-05-25 Jeff Law <law@redhat.com>
2619
2620 PR tree-optimization/71272
2621 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
2622 Update comments. Add test for empty path.
2623
2624 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
2625
2626 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
2627 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
2628 special case builtin.
2629 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
2630 code for ALTIVEC_BUILTIN_VEC_CMPNE.
2631 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
2632 for __builtin_vec_cmpne.
2633
2634 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
2635
2636 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
2637 redundant test and bail out if the type of the new operand is not
2638 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
2639
2640 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
2641
2642 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
2643 (x_ix86_target_flags_explicit): Remove.
2644 * config/i386/i386.c (ix86_function_specific_save): Do not copy
2645 x_ix86_target_flags_explicit.
2646 (ix86_function_specific_restore): Ditto.
2647
2648 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
2649 H.J. Lu <hongjiu.lu@intel.com>
2650
2651 PR target/70738
2652 * common/config/i386/i386-common.c
2653 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
2654 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
2655 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
2656 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
2657 (-mgeneral-regs-only): Add new option.
2658 * config/i386/i386.c (ix86_option_override_internal): Don't enable
2659 x87 instructions if only general registers are allowed.
2660 (ix86_target_string): Add ix86_flags argument. Handle additional
2661 flags options through ix86_flags argument. Update all callers.
2662 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
2663
2664 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2665
2666 PR rtl-optimization/66940
2667 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
2668 decrementing desired_val will not overflow before performing these
2669 operations.
2670
2671 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
2672
2673 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
2674 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
2675 * config/i386/i386.c (enum ix86_builtins): Add
2676 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
2677 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
2678 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
2679 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
2680 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
2681 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
2682 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
2683 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
2684 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
2685 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
2686 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
2687 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
2688 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
2689 __builtin_ia32_cvtps2dq512_mask.
2690 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
2691 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
2692 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
2693 * config/i386/sse.md
2694 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
2695 Rename to ...
2696 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
2697 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
2698 to ...
2699 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
2700 (avx512f_vec_pack_sfix_v8df): New define_expand.
2701 (avx512f_roundpd512): Rename to ...
2702 (avx512f_round<castmode>512): ... this. Change iterator.
2703 (avx512f_roundps512_sfix): New define_expand.
2704 (round<mode>2_sfix): Change iterator.
2705
2706 2016-05-25 Nick Clifton <nickc@redhat.com>
2707
2708 * config/msp430/msp430.c (msp430_attr): Produce an error if a
2709 static interrupt handler is detected.
2710 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
2711 default linker script.
2712 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
2713 the low part of a symbolic pointer.
2714
2715 2016-05-25 Richard Biener <rguenther@suse.de>
2716
2717 PR tree-optimization/71261
2718 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
2719 interesting stmt instead of immediate uses when looking
2720 for the use operand to replace.
2721
2722 2016-05-25 Martin Liska <mliska@suse.cz>
2723
2724 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
2725
2726 2016-05-25 Richard Biener <rguenther@suse.de>
2727
2728 PR tree-optimization/71264
2729 * tree-vect-stmts.c (vect_init_vector): Properly deal with
2730 vector type val.
2731
2732 2016-05-25 Martin Liska <mliska@suse.cz>
2733
2734 PR tree-optimization/71239
2735 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
2736 if DECL_SIZE is NULL.
2737
2738 2016-05-25 Richard Biener <rguenther@suse.de>
2739
2740 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
2741 * tree-if-conv.c (pass_data_if_conversion): Use it.
2742
2743 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2744
2745 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
2746 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
2747 * varpool.c (varpool_node::get_availability): Likewise.
2748
2749 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2750
2751 * config/rs6000/altivec.md (VNEG iterator): New iterator for
2752 VNEGW/VNEGD instructions.
2753 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
2754 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
2755 support for ISA 3.0 VNEGW/VNEGD instructions.
2756
2757 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
2758
2759 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
2760 pointers inside OACC_DATA regions.
2761 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
2762 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
2763 (gimplify_adjust_omp_clauses): Fix typo in comment.
2764
2765 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2766
2767 * config/rs6000/altivec.md (VParity): New mode iterator for vector
2768 parity built-in functions.
2769 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
2770 zeros.
2771 (p9v_parity<mode>2): Likewise.
2772 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
2773 parity.
2774 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
2775 (parity<mode>2): ISA 3.0 expander for vector parity.
2776 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
2777 power9 built-ins.
2778 (BU_P9_64BIT_MISC_0): Likewise.
2779 (BU_P9_MISC_0): Likewise.
2780 (BU_P9V_AV_1): Likewise.
2781 (BU_P9V_AV_2): Likewise.
2782 (BU_P9V_AV_3): Likewise.
2783 (BU_P9V_AV_P): Likewise.
2784 (BU_P9V_VSX_1): Likewise.
2785 (BU_P9V_OVERLOAD_1): Likewise.
2786 (BU_P9V_OVERLOAD_2): Likewise.
2787 (BU_P9V_OVERLOAD_3): Likewise.
2788 (VCTZB): Add vector count trailing zeros support.
2789 (VCTZH): Likewise.
2790 (VCTZW): Likewise.
2791 (VCTZD): Likewise.
2792 (VPRTYBD): Add vector parity support.
2793 (VPRTYBQ): Likewise.
2794 (VPRTYBW): Likewise.
2795 (VCTZ): Add overloaded vector count trailing zeros support.
2796 (VPRTYB): Add overloaded vector parity support.
2797 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2798 overloaded vector count trailing zeros and parity instructions.
2799 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
2800 vector parity support.
2801 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
2802 trailing zeros support.
2803 (vec_cntlz): Likewise.
2804 (vec_vctzb): Likewise.
2805 (vec_vctzd): Likewise.
2806 (vec_vctzh): Likewise.
2807 (vec_vctzw): Likewise.
2808 (vec_vprtyb): Add ISA 3.0 vector parity support.
2809 (vec_vprtybd): Likewise.
2810 (vec_vprtybw): Likewise.
2811 (vec_vprtybq): Likewise.
2812 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2813 the ISA 3.0 vector count trailing zeros and vector parity built-in
2814 functions.
2815
2816 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
2817
2818 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
2819 when there is stmt_to_insert.
2820
2821 2016-05-24 Martin Sebor <msebor@redhat.com>
2822
2823 PR c++/71147
2824 * tree.h (complete_or_array_type_p): New inline function.
2825
2826 2016-05-24 Jakub Jelinek <jakub@redhat.com>
2827
2828 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
2829 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
2830 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
2831
2832 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
2833 Limit 1st alternative to noavx isa, split 2nd alternative into one
2834 noavx and one avx alternative, use *x and Bm in the former and
2835 x and m in the latter.
2836
2837 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
2838 of sse4 for the first alternative, drop %v from the template
2839 and d operand modifier. Split second alternative into one sse4_noavx
2840 and one avx alternative, use *x instead of *v in the former and v
2841 instead of *v in the latter.
2842 (*sse4_1_extractps): Use noavx isa instead of * for the first
2843 alternative, drop %v from the template. Split second alternative into
2844 one noavx and one avx alternative, use *x instead of *v in the
2845 former and v instead of *v in the latter.
2846 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
2847 with noavx and the last one with avx.
2848 (sse4_1_phminposuw): Guard first alternative with noavx isa,
2849 split the second one into one noavx and one avx alternative,
2850 use *x and Bm in the former and x and m in the latter one.
2851 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
2852 alternatives.
2853
2854 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
2855 first two alternatives to noavx, use *x instead of *v in the second
2856 one, add avx alternative without *.
2857 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
2858 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
2859 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
2860
2861 2016-05-24 Jeff Law <law@redhat.com>
2862
2863 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
2864 New function, extracted from...
2865 (fsm_find_control_statement_thread_paths): Here. Use the new function.
2866 Allow simple copies and constant initializations in the SSA chain.
2867
2868 2016-05-24 Marek Polacek <polacek@redhat.com>
2869
2870 PR c/71249
2871 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
2872 scope.
2873
2874 2016-05-24 Jakub Jelinek <jakub@redhat.com>
2875
2876 PR c++/71257
2877 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
2878 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
2879 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
2880 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
2881 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
2882
2883 2016-05-24 Richard Biener <rguenther@suse.de>
2884
2885 PR tree-optimization/71240
2886 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
2887 has integral type.
2888
2889 2016-05-24 Richard Biener <rguenther@suse.de>
2890
2891 PR tree-optimization/71230
2892 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
2893
2894 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
2895
2896 * tree-vectorizer.h (vectorizable_comparison): Delete.
2897 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
2898 PURE_SLP_STMT check.
2899 * tree-vect-stmts.c (vectorizable_call): Likewise.
2900 (vectorizable_simd_clone_call): Likewise.
2901 (vectorizable_conversion): Likewise.
2902 (vectorizable_assignment): Likewise.
2903 (vectorizable_shift): Likewise.
2904 (vectorizable_operation): Likewise.
2905 (vectorizable_load): Likewise.
2906 (vectorizable_condition): Likewise.
2907 (vectorizable_store): Likewise. Assert that we don't have
2908 hybrid SLP.
2909 (vectorizable_comparison): Make static. Remove redundant
2910 PURE_SLP_STMT check.
2911 (vect_transform_stmt): Assert that we always have an slp_node
2912 if PURE_SLP_STMT.
2913
2914 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2915
2916 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
2917 operands[2] against 1 with comparison against CONST1_RTX.
2918 (<shift>di3_neon): Likewise.
2919 * config/arm/predicates.md (const0_operand): Replace with comparison
2920 against CONST0_RTX.
2921
2922 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2923
2924 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
2925 operands[2] against 1 with comparison against CONST1_RTX.
2926 (ashrdi3): Likewise.
2927 (lshrdi3): Likewise.
2928 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
2929 UINTVAL.
2930 (ashrsi3): Likewise.
2931 (lshrsi3): Likewise.
2932 (rotrsi3): Likewise.
2933 (define_split above *compareqi_eq0): Likewise.
2934 (define_split above "prologue"): Likewise.
2935 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
2936 * config/arm/predicates.md (shift_operator): Likewise.
2937 (shift_nomul_operator): Likewise.
2938 (sat_shift_operator): Likewise.
2939 (thumb1_cmp_operand): Likewise.
2940 (const_neon_scalar_shift_amount_operand): Replace manual range
2941 check with IN_RANGE.
2942 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
2943 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
2944
2945 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2946
2947 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
2948 with HOST_WIDE_INT_1.
2949 (insv): Likewise.
2950 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
2951 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
2952 (arm_canonicalize_comparison): Likewise.
2953 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
2954 HOST_WIDE_INT_1.
2955 (thumb1_size_rtx_costs): Likewise.
2956 (vfp_const_double_index): Replace cast of 1 to unsigned
2957 HOST_WIDE_INT with HOST_WIDE_INT_1U.
2958 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
2959 HOST_WIDE_INT_1.
2960 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
2961 HOST_WIDE_INT with HOST_WIDE_INT_1U.
2962 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
2963 HOST_WIDE_INT with HOST_WIDE_INT_1.
2964
2965 2016-05-24 Marek Polacek <polacek@redhat.com>
2966
2967 * tree-cfg.h (should_remove_lhs_p): New predicate.
2968 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2969 * gimplify.c (gimplify_modify_expr): Likewise.
2970 * tree-cfg.c (verify_gimple_call): Likewise.
2971 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
2972 * gimple-fold.c: Include "tree-cfg.h".
2973 (gimple_fold_call): Use should_remove_lhs_p.
2974
2975 2016-05-24 Richard Biener <rguenther@suse.de>
2976
2977 PR tree-optimization/71253
2978 * cfganal.h (control_dependences): Make robust against edge
2979 and BB removal.
2980 (control_dependences::control_dependences): Remove edge_list argument.
2981 (control_dependences::get_edge): Remove.
2982 (control_dependences::get_edge_src): Add.
2983 (control_dependences::get_edge_dest): Likewise.
2984 (control_dependences::m_el): Make a vector of edge src/dest index.
2985 * cfganal.c (control_dependences::find_control_dependence): Adjust.
2986 (control_dependences::control_dependences): Likewise.
2987 (control_dependences::~control_dependence): Likewise.
2988 (control_dependences::get_edge): Remove.
2989 (control_dependences::get_edge_src): Add.
2990 (control_dependences::get_edge_dest): Likewise.
2991 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
2992 get_edge_src.
2993 (perform_tree_ssa_dce): Adjust.
2994 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
2995 get_edge_src.
2996 (pass_loop_distribution::execute): Adjust. Do loop destroying
2997 conditional on changed.
2998
2999 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3000
3001 PR target/69857
3002 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
3003 return. Reindent transformation comment and mention the ARM state
3004 behavior.
3005
3006 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3007
3008 PR middle-end/71252
3009 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
3010 after build_and_add_sum creates new use stmt.
3011
3012 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3013
3014 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
3015 load_lanes/grouped_load classification comes first. Don't check
3016 whether the vectorization factor is a multiple of the group size
3017 for load_lanes.
3018
3019 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
3020
3021 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
3022 GROUP_GAP for single-element interleaving.
3023 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
3024 variable.
3025
3026 2016-05-24 Richard Biener <rguenther@suse.de>
3027
3028 PR middle-end/70434
3029 PR c/69504
3030 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
3031 bases which are accessed with non-invariant indices.
3032 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
3033 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
3034
3035 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
3036
3037 PR middle-end/71170
3038 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
3039 (add_to_ops_vec): Add stmt_to_insert.
3040 (add_repeat_to_ops_vec): Init stmt_to_insert.
3041 (insert_stmt_before_use): New.
3042 (transform_add_to_multiply): Remove mult_stmt insertion and add it
3043 to ops vector.
3044 (get_ops): Init stmt_to_insert.
3045 (maybe_optimize_range_tests): Likewise.
3046 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
3047 (rewrite_expr_tree_parallel): Likewise.
3048 (reassociate_bb): Likewise.
3049
3050 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3051
3052 PR target/71201
3053 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
3054 ISA 3.0 xxperm fusion alternative.
3055 (altivec_vperm_v8hiv16qi): Likewise.
3056 (altivec_vperm_<mode>_uns_internal): Likewise.
3057 (vperm_v8hiv4si): Likewise.
3058 (vperm_v16qiv8hi): Likewise.
3059
3060 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3061 Kelvin Nilsen <kelvin@gcc.gnu.org>
3062
3063 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
3064 vpermr/xxpermr on ISA 3.0.
3065 (altivec_expand_vec_perm_le): Likewise.
3066 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
3067 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
3068 ISA 3.0.
3069
3070 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
3071
3072 * config/i386/i386.h (IS_STACK_MODE): Enable for
3073 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
3074 SSE_FLOAT_MODE_P macros.
3075 * config/i386/i386.c (ix86_preferred_reload_class): Use
3076 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
3077 Cleanup regclass processing for CONST_DOUBLE_P.
3078 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
3079 (ix86_rtx_costs): Remove redundant TARGET_80387 check
3080 with IS_STACK_MODE macro.
3081 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
3082 with TARGET_SSE2.
3083 (*movdf_internal): Use IS_STACK_MODE macro.
3084 (*movsf_internal): Ditto.
3085
3086 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
3087
3088 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
3089 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
3090
3091 2016-05-23 Jeff Law <law@redhat.com>
3092
3093 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
3094 extracted from ...
3095 (fsm_find_control_statement_thread_paths): Call it.
3096
3097 2016-05-23 Martin Jambor <mjambor@suse.cz>
3098
3099 PR ipa/71234
3100 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
3101 from_global_constant if t is not NULL.
3102
3103 2016-05-23 Marek Polacek <polacek@redhat.com>
3104
3105 PR c/49859
3106 * common.opt (Wswitch-unreachable): New option.
3107 * doc/invoke.texi: Document -Wswitch-unreachable.
3108 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
3109 warning.
3110
3111 2016-05-23 Bin Cheng <bin.cheng@arm.com>
3112
3113 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
3114 TMR_INDEX is non-NULL.
3115
3116 2016-05-23 Richard Biener <rguenther@suse.de>
3117
3118 PR tree-optimization/71230
3119 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
3120 (try_special_add_to_ops): ... here. Always test for single-use.
3121
3122 2016-05-23 Martin Jambor <mjambor@suse.cz>
3123
3124 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
3125 default block if a PHI node in the original one would be resized.
3126
3127 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3128
3129 PR tree-optimization/58135
3130 * tree-vect-slp.c: When group size is not multiple
3131 of vector size, allow splitting of store group at
3132 vector boundary.
3133
3134 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
3135
3136 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
3137
3138 2016-05-22 Jakub Jelinek <jakub@redhat.com>
3139
3140 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3141 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
3142 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
3143 of 64x2.
3144
3145 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
3146 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
3147 v constraint instead of x and vinserti32x4 insn.
3148
3149 * config/i386/sse.md (i128vldq): New mode iterator.
3150 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
3151 avx512dq and avx512vl alternatives.
3152
3153 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
3154 constraint, use maybe_evex prefix instead of vex.
3155 (vec_dupv4sf): Use v constraint instead of x for output
3156 operand except for noavx alternative, use Yv constraint
3157 instead of x for input. Use maybe_evex prefix instead of vex.
3158 (*vec_dupv4si): Likewise.
3159 (*vec_dupv2di): Likewise.
3160
3161 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
3162
3163 PR middle-end/40921
3164 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
3165 (linearize_expr_tree): Call try_special_add_to_ops.
3166 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
3167
3168 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3169
3170 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
3171 to computed stack_usage.
3172
3173 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3174
3175 PR target/71103
3176 * config/avr/avr.md (define_expand "mov<mode>"): If the source
3177 operand is subreg (symbol_ref) then move the symbol ref to register.
3178
3179 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
3180
3181 * tree.c (array_at_struct_end_p): Look through MEM_REF.
3182
3183 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
3184
3185 PR middle-end/71179
3186 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
3187 VECTOR type.
3188
3189 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
3190
3191 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
3192 ranges by calling get_single_symbol and tidy up. Look more closely
3193 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
3194
3195 2016-05-20 Jeff Law <law@redhat.com>
3196
3197 * bitmap.c (bitmap_find_bit): Remove useless test.
3198
3199 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
3200
3201 * function.c (thread_prologue_and_epilogue_insns): Commit the
3202 insertion of the epilogue.
3203
3204 2016-05-20 Martin Jambor <mjambor@suse.cz>
3205
3206 PR tree-optimization/70884
3207 * tree-sra.c (initialize_constant_pool_replacements): Do not check
3208 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
3209 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
3210 of constant pool data as a reason for scalarization.
3211
3212 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
3213
3214 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
3215 for naked functions.
3216 (thumb1_expand_prologue): Likewise.
3217
3218 2016-05-20 Nathan Sidwell <nathan@acm.org>
3219
3220 * config/nvptx/nptx.c (nvptx_option_override): Only set
3221 flag_toplevel_reorder, if not explicitly specified. Set
3222 flag_no_common, unless explicitly specified.
3223
3224 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3225
3226 * calls.c (can_implement_as_sibling_call_p): Mark param
3227 reg_parm_stack_space with ATTRIBUTE_UNUSED.
3228
3229 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
3230
3231 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
3232 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
3233 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
3234 constants.
3235 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
3236 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
3237 and CASE_CONST_ANY.
3238
3239 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
3240
3241 * config/nvptx/nvptx.md (sincossf3): New pattern.
3242
3243 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3244
3245 * calls.c (maybe_complain_about_tail_call): New function.
3246 (initialize_argument_information): Call
3247 maybe_complain_about_tail_call when clearing *may_tailcall.
3248 (can_implement_as_sibling_call_p): Call
3249 maybe_complain_about_tail_call when returning false.
3250 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
3251 ensure try_tail_call is set. Call maybe_complain_about_tail_call
3252 if tail-call optimization fails.
3253 * cfgexpand.c (expand_call_stmt): Initialize
3254 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
3255 * gimple-pretty-print.c (dump_gimple_call): Dump
3256 gimple_call_must_tail_p.
3257 * gimple.c (gimple_build_call_from_tree): Call
3258 gimple_call_set_must_tail with the value of
3259 CALL_EXPR_MUST_TAIL_CALL.
3260 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
3261 (gimple_call_set_must_tail): New function.
3262 (gimple_call_must_tail_p): New function.
3263 * print-tree.c (print_node): Update printing of TREE_STATIC
3264 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
3265 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
3266 trailing comment listing applicable flags.
3267 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
3268
3269 2016-05-20 David Malcolm <dmalcolm@redhat.com>
3270
3271 * calls.c (expand_call): Move "Rest of purposes for tail call
3272 optimizations to fail" to...
3273 (can_implement_as_sibling_call_p): ...this new function, and
3274 split into multiple "if" statements.
3275
3276 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3277
3278 * cfgloop.h (expected_loop_iterations_unbounded,
3279 expected_loop_iterations): Unconstify.
3280 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
3281 profile with known upper bound; return 3 when profile is absent.
3282 (expected_loop_iterations): Update.
3283
3284 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3285
3286 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
3287 and get_max_loop_iterations_int.
3288
3289 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
3290
3291 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
3292 realistic upper bounds here.
3293
3294 2016-05-20 Jakub Jelinek <jakub@redhat.com>
3295
3296 PR c++/71210
3297 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
3298 calls if the LHS is variable length or has addressable type.
3299 If targets[0]->decl is a noreturn call with void return type and
3300 zero arguments, adjust fntype and remove lhs in that case.
3301
3302 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
3303
3304 PR tree-optimization/71079
3305 PR tree-optimization/71206
3306 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
3307
3308 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3309
3310 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
3311 (get_vec_alignment_for_array_decl): Likewise.
3312 (get_vec_alignment_for_record_decl): Likewise.
3313 (increase_alignment::execute): Move code to find alignment to
3314 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
3315 (type_align_map): New hash_map.
3316
3317 2016-05-20 Richard Guenther <rguenther@suse.de>
3318
3319 PR tree-optimization/29756
3320 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
3321 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
3322 * fold-const.c (operand_equal_p): Likewise.
3323 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
3324 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
3325 * tree-inline.c (estimate_operator_cost): Likewise.
3326 * tree-pretty-print.c (dump_generic_node): Likewise.
3327 * tree-ssa-operands.c (get_expr_operands): Likewise.
3328 * cfgexpand.c (expand_debug_expr): Likewise.
3329 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3330 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
3331 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
3332 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
3333 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
3334 (execute_update_addresses_taken): Do it.
3335
3336 2016-05-20 Richard Biener <rguenther@suse.de>
3337
3338 PR tree-optimization/71185
3339 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
3340 register operations.
3341
3342 2016-05-20 Richard Biener <rguenther@suse.de>
3343
3344 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
3345 gimple_seq_add_seq_without_update.
3346 (release_bb_predicate): Assert we have no operands to free.
3347 (if_convertible_loop_p_1): Calculate post dominators later.
3348 Do not free BB predicates here.
3349 (combine_blocks): Do not recompute BB predicates.
3350 (version_loop_for_if_conversion): Save BB predicates around
3351 loop versioning.
3352
3353 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
3354
3355 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
3356 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
3357 code. Ignore sibcalls on EDGE_IGNORE edges.
3358 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
3359 on edges for sibcalls that run without prologue. The rest of the
3360 function is combined from...
3361 (fix_fake_fallthrough_edge): ... this, and ...
3362 (try_shrink_wrapping): ... a part of this. Remove the bb_with
3363 function argument, make it a local variable.
3364
3365 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
3366
3367 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
3368 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
3369 for 32-bit mode and SEH for 64-bit.
3370 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
3371 TARGET_64BIT_DEFAULT.
3372
3373 2016-05-19 Ryan Burn <contact@rnburn.com>
3374
3375 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
3376 * gengtype.c (open_base_files): Add cilk.h to ifiles.
3377
3378 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
3379
3380 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
3381 force pending loads from memory.
3382
3383 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
3384
3385 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
3386 (UNSPEC_DARN_32): New unspec constant.
3387 (UNSPEC_DARN_RAW): New unspec constant.
3388 (darn_32): New instruction.
3389 (darn_raw): New instruction.
3390 (darn): New instruction.
3391 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
3392 support and documentation for this macro.
3393 (BU_P9_MISC_1): New macro definition.
3394 (BU_P9_64BIT_MISC_0): New macro definition.
3395 (BU_P9_MISC_0): New macro definition.
3396 (darn_32): New builtin definition.
3397 (darn_raw): New builtin definition.
3398 (darn): New builtin definition.
3399 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
3400 RS6000_BUILTIN_0 directives to surround each occurrence of
3401 #include "rs6000-builtin.def".
3402 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
3403 RS6000_BTM_64BIT flags to the returned mask, depending on
3404 configuration.
3405 (def_builtin): Correct an error in the assignments made to the
3406 debugging variable attr_string.
3407 (rs6000_expand_builtin): Add support for no-operand built-in
3408 functions.
3409 (builtin_function_type): Remove fatal_error assertion that is no
3410 longer valid.
3411 (rs6000_common_init_builtins): Add support for no-operand built-in
3412 functions.
3413 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
3414 definition.
3415 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
3416 definition.
3417 (RS6000_BTM_64BIT): New macro definition.
3418 * doc/extend.texi: Document __builtin_darn (void),
3419 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
3420 functions.
3421
3422 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
3423
3424 * tree-vect-loop.c (vect_analyze_loop_2): Use also
3425 max_loop_iterations_int.
3426
3427 2016-05-19 Marek Polacek <polacek@redhat.com>
3428
3429 PR tree-optimization/71031
3430 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
3431 condition and adjust the code a bit.
3432
3433 2016-05-19 Martin Liska <mliska@suse.cz>
3434
3435 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
3436 auto_vec instead of vec.
3437
3438 2016-05-19 Martin Liska <mliska@suse.cz>
3439
3440 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
3441
3442 2016-05-19 Martin Liska <mliska@suse.cz>
3443
3444 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
3445
3446 2016-05-19 Martin Liska <mliska@suse.cz>
3447
3448 * ipa-pure-const.c (set_function_state): Remove an existing
3449 funct_state.
3450 (remove_node_data): Do not free it as it's released
3451 in set_function_state.
3452
3453 2016-05-19 Martin Liska <mliska@suse.cz>
3454
3455 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
3456 bitmap.
3457
3458 2016-05-19 Martin Liska <mliska@suse.cz>
3459
3460 * omp-simd-clone.c (simd_clone_adjust): Release vector.
3461
3462 2016-05-19 Martin Liska <mliska@suse.cz>
3463
3464 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
3465 an auto_vec instead of re-creating it.
3466
3467 2016-05-19 Martin Liska <mliska@suse.cz>
3468
3469 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
3470 auto_vec instead of vec.
3471
3472 2016-05-19 Martin Liska <mliska@suse.cz>
3473
3474 * lto-section-in.c (lto_get_section_data): Call
3475 lto_check_version with additional argument.
3476 * lto-streamer.c (lto_check_version): Add new argument.
3477 * lto-streamer.h (lto_check_version): Likewise.
3478
3479 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3480
3481 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
3482 Don't add cost of inner memory when handling sign-extended loads.
3483
3484 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
3485
3486 PR rtl-optimization/71148
3487 * cse.c (cse_main): Free dominance info.
3488 (rest_of_handle_cse): Don't free dominance info.
3489 (rest_of_handle_cse2): Likewise.
3490 (rest_of_handle_cse_after_global_opts): Likewise.
3491
3492 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3493
3494 PR target/71056
3495 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
3496 NULL_TREE early if NEON is not available. Remove now redundant check
3497 in ARM_CHECK_BUILTIN_MODE.
3498
3499 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
3500
3501 PR sanitizer/64354
3502 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
3503 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
3504 * doc/cpp.texi: Document new macros.
3505
3506 2016-05-19 Bin Cheng <bin.cheng@arm.com>
3507
3508 PR tree-optimization/69848
3509 * tree-vect-loop.c (vectorizable_reduction): Don't factor
3510 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
3511
3512 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
3513
3514 * function.c (thread_prologue_and_epilogue_insn): Move the
3515 "goto epilogue_done" one block later.
3516
3517 2016-05-19 Richard Biener <rguenther@suse.de>
3518
3519 PR tree-optimization/70729
3520 * passes.def: Move LIM pass before PRE. Remove no longer
3521 required copyprop and move first DCE out of the loop pipeline.
3522
3523 2016-05-18 David Malcolm <dmalcolm@redhat.com>
3524
3525 PR driver/69265
3526 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
3527 (OBJS-libcommon-target): ...here.
3528 * opts-common.c: Include spellcheck.h.
3529 (cmdline_handle_error): Build a vec of valid options and use it
3530 to suggest provide hints for misspelled arguments.
3531
3532 2016-05-18 Jakub Jelinek <jakub@redhat.com>
3533
3534 PR c++/71100
3535 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
3536 lhs if it has TREE_ADDRESSABLE type.
3537
3538 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
3539
3540 PR target/71145
3541 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
3542 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
3543
3544 2016-05-18 Martin Jambor <mjambor@suse.cz>
3545
3546 PR ipa/69708
3547 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
3548 input for NOP_EXPR pass-through functions.
3549 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
3550 aggregate global constant VAR_DECLs in constant jump functions.
3551
3552 2016-05-18 Martin Jambor <mjambor@suse.cz>
3553
3554 PR ipa/69708
3555 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
3556 from TREE_READONLY parameters.
3557
3558 2016-05-18 Martin Jambor <mjambor@suse.cz>
3559
3560 PR ipa/69708
3561 * cgraph.h (cgraph_indirect_call_info): New field
3562 guaranteed_unmodified.
3563 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
3564 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3565 appropriate.
3566 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
3567 pass the parameter value to ipa_find_agg_cst_for_param.
3568 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
3569 guaranteed_unmodified, store AA results there instead of bailing out
3570 if present.
3571 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
3572 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
3573 (find_constructor_constant_at_offset): New function.
3574 (ipa_find_agg_cst_from_init): Likewise.
3575 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
3576 static initializers of contants, report back through a new paameter
3577 from_global_constant if that was the case.
3578 (try_make_edge_direct_simple_call): Also pass parameter value to
3579 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
3580 appropriate.
3581 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
3582 (ipa_read_indirect_edge_info): Likewise.
3583 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
3584 (ipa_load_from_parm_agg): Likewise.
3585
3586 2016-05-18 Jiong Wang <jiong.wang@arm.com>
3587
3588 PR rtl-optimization/71150
3589 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
3590 check.
3591
3592 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3593
3594 PR target/70915
3595 * config/rs6000/constraints.md (wE constraint): New constraint
3596 for a vector constant that can be loaded with XXSPLTIB.
3597 (wM constraint): New constraint for a vector constant of a 1's.
3598 (wS constraint): New constraint for a vector constant that can be
3599 loaded with XXSPLTIB and a vector sign extend instruction.
3600 * config/rs6000/predicates.md (xxspltib_constant_split): New
3601 predicates for wE/wS constraints.
3602 (xxspltib_constant_nosplit): Likewise.
3603 (easy_vector_constant): Add support for constants that can be
3604 loaded via XXSPLTIB.
3605 (all_ones_constant): New predicate for vector constant with all
3606 1's set.
3607 (splat_input_operand): Add support for ISA 3.0 word splat operations.
3608 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
3609 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
3610 instruction and possibly with a sign extension.
3611 (output_vec_const_move): Add support for XXSPLTIB. If we are
3612 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
3613 instead of XXLXOR/XXLORC.
3614 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
3615 operations.
3616 (rs6000_legitimize_reload_address): Likewise.
3617 (rs6000_output_move_128bit): Use output_vec_const_move to emit
3618 constants.
3619 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
3620 combine VSX_M and VSX_M2 into one iterator.
3621 (VSX_M2): Likewise.
3622 (VSINT_84): New iterators for loading constants with XXSPLTIB.
3623 (VSINT_842): Likewise.
3624 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
3625 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
3626 XXSPLTIB instruction.
3627 (xxspltib_<mode>_nosplit): Likewise.
3628 (xxspltib_<mode>_split): New insn to load up constants with
3629 XXSPLTIB and a sign extend instruction.
3630 (vsx_mov<mode>): Replace single move that handled all vector types
3631 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
3632 moves (when -mvsx-timode is in effect) into the main vector
3633 moves. Eliminate separate moves for <VSr> <VSa>, where the
3634 preferred register class (<VSr>) is listed first, and the
3635 secondary register class (<VSa>) is listed second with a '?' to
3636 discourage use. Prefer loading 0/-1 in any VSX register for ISA
3637 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
3638 that if the register was involved in a slow operation, the
3639 clear/set operation does not wait for the slow operation to
3640 finish. Adjust the length attributes for 32-bit mode. Use
3641 rs6000_output_move_128bit and drop the use of the string
3642 instructions for 32-bit movti when -mvsx-timode is in effect. Use
3643 spacing so that the alternatives and attributes don't generate
3644 long lines, and put things in columns, so that it is easier to
3645 match up the operands and attributes with the insn alternatives.
3646 (vsx_mov<mode>_64bit): Likewise.
3647 (vsx_mov<mode>_32bit): Likewise.
3648 (vsx_movti_64bit): Fold movti into normal vector moves.
3649 (vsx_movti_32bit): Likewise.
3650 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
3651 splat instructions.
3652 (vsx_splat_v4si_internal): Likewise.
3653 (vsx_splat_v4sf_internal): Likewise.
3654 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
3655 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
3656 extend vector elements.
3657 (vsx_sign_extend_hi_<mode>): Likewise.
3658 (vsx_sign_extend_si_v2di): Likewise.
3659 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
3660 declaration.
3661 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
3662 constraints. Add trailing period to wL documentation.
3663
3664 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
3665
3666 PR middle-end/71020
3667 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
3668 * tree-dfa.c (replace_abnormal_ssa_names): New function.
3669 * tree-call-cdce.c: Include tree-dfa.h.
3670 (can_guard_call_p): New function, extracted from...
3671 (can_use_internal_fn): ...here.
3672 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
3673 and return void.
3674 (shrink_wrap_one_built_in_call): Likewise.
3675 (use_internal_fn): Likewise.
3676 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
3677 and return void. Call replace_abnormal_ssa_names.
3678 (pass_call_cdce::execute): Check can_guard_call_p during the
3679 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
3680 will always change something.
3681
3682 2016-05-18 Martin Jambor <mjambor@suse.cz>
3683
3684 PR ipa/70646
3685 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
3686 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
3687
3688 2016-05-18 Martin Jambor <mjambor@suse.cz>
3689
3690 PR ipa/70646
3691 * ipa-inline.h (condition): New field size.
3692 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
3693 for comaprison and store it into the new condition.
3694 (evaluate_conditions_for_known_args): Use condition size to check
3695 access sizes for all but CHANGED conditions.
3696 (unmodified_parm_1): New parameter size_p, store access size into it.
3697 (unmodified_parm): Likewise.
3698 (unmodified_parm_or_parm_agg_item): Likewise.
3699 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
3700 (set_cond_stmt_execution_predicate): Extract access sizes and store
3701 them to conditions.
3702 (set_switch_stmt_execution_predicate): Likewise.
3703 (will_be_nonconstant_expr_predicate): Likewise.
3704 (will_be_nonconstant_predicate): Likewise.
3705 (inline_read_section): Stream condition size.
3706 (inline_write_summary): Likewise.
3707
3708 2016-05-18 Richard Biener <rguenther@suse.de>
3709
3710 * tree-ssa-loop-im.c (determine_max_movement): Properly add
3711 condition cost to PHI cost instead of total_cost.
3712
3713 2016-05-18 Martin Liska <mliska@suse.cz>
3714
3715 PR fortran/70856
3716 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
3717 merged variables.
3718
3719 2016-05-18 Richard Biener <rguenther@suse.de>
3720
3721 * lto-streamer.h (LTO_major_version): Bump to 6.
3722
3723 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
3724
3725 * function.c (make_split_prologue_seq, make_prologue_seq,
3726 make_epilogue_seq): New functions, factored out from...
3727 (thread_prologue_and_epilogue_insns): Here.
3728
3729 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
3730
3731 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
3732 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
3733 of before. Add a comment.
3734
3735 2016-05-18 Bin Cheng <bin.cheng@arm.com>
3736
3737 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
3738 expression pointer, not pointer to the pointer.
3739
3740 2016-05-18 Jakub Jelinek <jakub@redhat.com>
3741
3742 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
3743 (avx2_pbroadcast<mode>): Add another alternative with v instead
3744 of x constraints in it, using <pbroadcast_evex_isa> isa.
3745 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
3746
3747 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
3748 constraint x instead of v in second alternative, add avx512bw
3749 alternative.
3750
3751 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
3752 constraint x instead of v in second alternative, add avx512bw
3753 alternative.
3754
3755 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
3756 constraint x instead of v in second alternative, add avx512bw
3757 alternative.
3758
3759 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
3760 avx512bw alternative.
3761
3762 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
3763
3764 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
3765 array to 128 chars.
3766 (define_insn "*andnottf3"): Ditto.
3767 (define_insn "*<code><mode>3"/any_logic): Ditto.
3768 (define_insn "*<code>tf3"/any_logic): Ditto.
3769 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
3770 operand to block AVX-512VL insn variant emit when it is not enabled.
3771
3772 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
3773
3774 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
3775 constraint fot SF mode.
3776
3777 2016-05-18 Petr Murzin <petr.murzin@intel.com>
3778 Kirill Yukhin <kirill.yukhin@intel.com>
3779
3780 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
3781 modifiers.
3782 (define_insn "rsqrt14<mode>"): Ditto.
3783 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3784 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3785 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
3786 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3787 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
3788 Ditto.
3789 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
3790 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
3791 * config/i386/i386.c (ix86_print_operand): Expand check for size
3792 override codes for Intel syntax.
3793
3794 2016-05-18 Richard Biener <rguenther@suse.de>
3795
3796 PR tree-optimization/71168
3797 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
3798 initialization earlier.
3799
3800 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
3801
3802 * config/aarch64/aarch64-simd.md
3803 (aarch64_reduc_plus_internal<mode>): Rename to...
3804 (reduc_plus_scal): ...This, and remove previous implementation.
3805
3806 2016-05-18 Richard Biener <rguenther@suse.de>
3807
3808 * passes.def: Put late dse and cd_dce in canonical order.
3809
3810 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
3811
3812 * ipa-inline-transform.c (preserve_function_body_p): Look for
3813 first non-thunk clone.
3814 (save_function_body): Save into first non-thunk.
3815 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
3816 up call stmt id.
3817 (lto_output_node): Inline thunks don't need body in every
3818 partition.
3819 * lto-streamer-in.c: Do not fixup thunk clones.
3820 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
3821 thunks.
3822 * tree-inline.c (copy_bb): Be prepared for target node to be new after
3823 folding suceeds.
3824
3825 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
3826
3827 PR middle-end/63586
3828 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
3829 (reassociate_bb): Call transform_add_to_multiply.
3830
3831 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
3832
3833 * config/aarch64/aarch64.c (all_extensions): Removed unused
3834 static variable.
3835
3836 2016-05-17 Nathan Sidwell <nathan@acm.org>
3837
3838 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
3839 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
3840
3841 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
3842
3843 PR tree-optimization/54579
3844 PR middle-end/55299
3845 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
3846
3847 2016-05-17 Marek Polacek <polacek@redhat.com>
3848
3849 PR ipa/71146
3850 * tree-inline.c (expand_call_inline): Call
3851 maybe_remove_unused_call_args.
3852
3853 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
3854
3855 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
3856 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
3857 * doc/md.texi (fmin@var{m}3): Likewise.
3858
3859 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
3860
3861 * match.pd (X & C): New transformation.
3862
3863 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
3864
3865 * match.pd (~X & Y): New transformation.
3866
3867 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
3868
3869 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
3870 information for new SSA_NAME.
3871 (simplify_conversion_using_ranges): Get range through get_range_info
3872 instead of get_value_range.
3873
3874 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3875
3876 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
3877 Remove inline assembly.
3878 (vmvn_s16): Likewise.
3879 (vmvn_s32): Likewise.
3880 (vmvn_u8): Likewise.
3881 (vmvn_u16): Likewise.
3882 (vmvn_u32): Likewise.
3883 (vmvnq_s8): Likewise.
3884 (vmvnq_s16): Likewise.
3885 (vmvnq_s32): Likewise.
3886 (vmvnq_u8): Likewise.
3887 (vmvnq_u16): Likewise.
3888 (vmvnq_u32): Likewise.
3889 (vmvn_p8): Likewise.
3890 (vmvnq_p16): Likewise.
3891
3892 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3893
3894 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
3895 Use builtin.
3896 (vmul_n_s16): Likewise.
3897 (vmul_n_s32): Likewise.
3898 (vmul_n_u16): Likewise.
3899 (vmul_n_u32): Likewise.
3900 (vmulq_n_f32): Likewise.
3901 (vmulq_n_f64): Likewise.
3902 (vmulq_n_s16): Likewise.
3903 (vmulq_n_s32): Likewise.
3904 (vmulq_n_u16): Likewise.
3905 (vmulq_n_u32): Likewise.
3906
3907 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3908
3909 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
3910 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
3911
3912 2016-05-17 Jiong Wang <jiong.wang@arm.com>
3913
3914 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
3915 to *aarch64_fma4_elt_from_dup<mode>.
3916 (*aarch64_fnma4_elt_to_128df): Rename to
3917 *aarch64_fnma4_elt_from_dup<mode>.
3918 * config/aarch64/arm_neon.h (vfma_n_f64): New.
3919 (vfms_n_f32): Likewise.
3920 (vfms_n_f64): Likewise.
3921 (vfmsq_n_f32): Likewise.
3922 (vfmsq_n_f64): Likewise.
3923
3924 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
3925
3926 * wide-int.h: Change fixed_wide_int_storage from class to struct.
3927
3928 2016-05-17 Richard Biener <rguenther@suse.de>
3929
3930 PR tree-optimization/71132
3931 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
3932 Only add control dependences for blocks in the loop.
3933 (build_rdg): Adjust.
3934 (generate_code_for_partition): Return whether loop should
3935 be destroyed and delay that.
3936 (distribute_loop): Likewise.
3937 (pass_loop_distribution::execute): Record loops to be destroyed
3938 and perform delayed destroying of loops.
3939
3940 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3941
3942 PR target/70809
3943 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
3944
3945 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
3946
3947 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
3948
3949 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
3950
3951 PR target/71114
3952 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
3953 insertion point for instructions generated by validize_mem.
3954
3955 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
3956
3957 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
3958 in brackets.
3959
3960 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
3961
3962 * config/aarch64/aarch64.c
3963 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
3964 rather than a macro.
3965
3966 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
3967
3968 * doc/invoke.texi (AArch64 Options): Various updates.
3969
3970 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
3971
3972 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
3973 into instrumentation thunks.
3974 * cif-code.def (CIF_CHKP): New.
3975
3976 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
3977
3978 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
3979
3980 2016-05-16 Martin Jambor <mjambor@suse.cz>
3981
3982 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
3983 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
3984
3985 2016-05-16 Marek Polacek <polacek@redhat.com>
3986
3987 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
3988 commentary.
3989
3990 2016-05-16 Martin Jambor <mjambor@suse.cz>
3991
3992 PR hsa/70857
3993 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
3994 the outlined kernel function.
3995
3996 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
3997
3998 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
3999 (ISA_HAS_DLSA): Ditto.
4000
4001 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
4002
4003 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
4004
4005 2016-05-16 Nathan Sidwell <nathan@acm.org>
4006
4007 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
4008 (nvptx_name_replacement): Restore. Add comment.
4009 (write_fn_proto, write_fn_proto_from_insn,
4010 nvptx_output_call_insn): Restore
4011 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
4012
4013 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4014
4015 * config/aarch64/aarch64.md
4016 (add<mode>3_compareC_cconly_imm): Remove use of %w.
4017 (add<mode>3_compareC_imm): Likewise.
4018 (<optab>si3_uxtw): Split into register and immediate variants.
4019 (andsi3_compare0_uxtw): Likewise.
4020 (and<mode>3_compare0): Likewise.
4021 (and<mode>3nr_compare0): Likewise.
4022 (stack_protect_test_<mode>): Don't use %x for memory operands.
4023
4024 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
4025
4026 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
4027
4028 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
4029
4030 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4031 Split integer shifts into shift_reg and bfm.
4032 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4033 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4034 (ror<mode>3_insn): Likewise.
4035 (<optab>si3_insn_uxtw): Likewise.
4036 (<optab><mode>3_insn): Change to rotate_imm.
4037 (extr<mode>5_insn_alt): Likewise.
4038 (extrsi5_insn_uxtw): Likewise.
4039 (extrsi5_insn_uxtw_alt): Likewise.
4040
4041 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4042
4043 * doc/tm.texi: Regenerate.
4044 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
4045 (TARGET_INVALID_RETURN_TYPE): Remove.
4046 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
4047 TARGET_INVALID_RETURN_TYPE.
4048 * target.def (invalid_parameter_type): Remove.
4049 (invalid_return_type): Remove.
4050
4051 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4052
4053 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
4054 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
4055 calls from thunk.
4056 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
4057 gimple body.
4058 (preserve_function_body_p): No need to preserve function body
4059 * cif-codes.def (CIF_THUNK): Remove.
4060 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
4061
4062 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4063
4064 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
4065
4066 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4067
4068 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
4069 for thunks.
4070
4071 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4072
4073 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
4074 (inline_small_functions): Do not look for function symbol when
4075 resetting caches.
4076
4077 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
4078
4079 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
4080 of inline thunks
4081
4082 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4083 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4084 Jiong Wang <jiong.wang@arm.com>
4085
4086 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
4087 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
4088 Define __ARM_FP16_ARGS when appropriate.
4089 * config/arm/arm.c (arm_invalid_parameter_type): Remove
4090 declaration.
4091 (arm_invalid_return_type): Likewise.
4092 (TARGET_INVALID_PARAMETER_TYPE): Remove.
4093 (TARGET_INVALID_RETURN_TYPE): Remove.
4094 (aapcs_vfp_sub_candidate): Allow HFmode.
4095 (aapcs_vfp_allocate): Add comment. Support HFmode.
4096 (aapcs_vfp_allocate_return_reg): Likewise.
4097 (struct aapcs_cp_arg_layout): Slightly reword comments for
4098 is_return_candidate and allocate_return_reg.
4099 (output_mov_vfp): Update assert.
4100 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
4101 condition.
4102 (arm_invalid_parameter_type): Remove.
4103 (amr_invalid_return_type): Remove.
4104 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
4105 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
4106 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
4107
4108 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
4109
4110 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4111 * config/aarch64/arch64-protos.h
4112 (aarch64_legitimize_reload_address): Remove.
4113 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
4114 Remove.
4115
4116 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
4117
4118 * configure.ac: Add ACX_NONCANONICAL_HOST.
4119 * configure: Regenerate.
4120 * Makefile.in: Set host_noncanonical.
4121
4122 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
4123
4124 PR target/71097
4125 * config/i386/i386.md (*movtf_internal): Before register allocation,
4126 do not allow FP constants for CM_MEDIUM memory model, allow only
4127 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
4128 (*movxf_internal): Ditto.
4129 (*movdf_internal): Ditto.
4130 (*movsf_internal): Ditto.
4131
4132 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
4133
4134 PR rtl-optimization/67483
4135 * combine.c (make_compound_operation): Don't call extract_left_shift
4136 with negative shift amounts.
4137
4138 2016-05-13 Jakub Jelinek <jakub@redhat.com>
4139
4140 PR bootstrap/71071
4141 * fold-const.c (fold_checksum_tree): Allow modification
4142 of TYPE_ALIAS_SET during folding.
4143
4144 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
4145 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
4146 (ix86_split_to_parts): Likewise. Fix up formatting.
4147
4148 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
4149
4150 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
4151 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
4152 printf format.
4153
4154 2016-05-13 Nathan Sidwell <nathan@acm.org>
4155
4156 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
4157 (nvptx_name_replacement): Delete.
4158 (write_fn_proto, write_fn_proto_from_insn,
4159 nvptx_output_call_insn): Remove nvptx_name_replacement call.
4160 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
4161 * langhooks.c (add_builtin_funcction_common): Call
4162 targetm.mangle_decl_assembler_name.
4163
4164 * config/nvptx/nvptx.c (write_fn_proto): Handle
4165 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
4166
4167 2016-05-13 Martin Liska <mliska@suse.cz>
4168
4169 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
4170 and PRIu64 in printf format.
4171
4172 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4173
4174 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
4175 comment.
4176
4177 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4178
4179 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4180 Change --param max-completely-peeled-times to
4181 --param max-completely-peel-times in dump file printing.
4182
4183 2016-05-13 Richard Biener <rguenther@suse.de>
4184
4185 PR tree-optimization/42587
4186 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
4187 (find_bswap_or_nop_1): Likewise.
4188 (bswap_replace): Likewise.
4189
4190 2016-05-13 Martin Liska <mliska@suse.cz>
4191
4192 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
4193 Initialize a variable with default value.
4194
4195 2016-05-13 Martin Liska <mliska@suse.cz>
4196
4197 * doc/invoke.texi: Enhance explanation of error recovery
4198 of sanitizers.
4199
4200 2016-05-13 Martin Liska <mliska@suse.cz>
4201
4202 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
4203 (struct cost_pair): Change inv_expr_id (int) to inv_expr
4204 (iv_inv_expr_ent *).
4205 (struct iv_inv_expr_ent): Comment struct fields.
4206 (sort_iv_inv_expr_ent): New function.
4207 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
4208 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
4209 a hash_map between iv_inv_expr_ent and number of usages.
4210 (niter_for_exit): Fix coding style.
4211 (tree_ssa_iv_optimize_init): Use renamed variable.
4212 (determine_base_object): Fix coding style.
4213 (alloc_iv): Likewise.
4214 (find_interesting_uses_outside): Likewise.
4215 (add_candidate_1): Likewise.
4216 (add_standard_iv_candidates): Likewise.
4217 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
4218 (prepare_decl_rtl): Fix coding style.
4219 (get_address_cost): Likewise.
4220 (get_shiftadd_cost): Likewise.
4221 (force_expr_to_var_cost): Likewise.
4222 (compare_aff_trees): Likewise.
4223 (get_expr_id): Restructure the function.
4224 (get_loop_invariant_expr_id): Renamed to
4225 get_loop_invariant_expr.
4226 (get_computation_cost_at): Replace usage of inv_expr_id with
4227 inv_expr.
4228 (get_computation_cost): Likewise.
4229 (determine_group_iv_cost_generic): Likewise.
4230 (determine_group_iv_cost_address): Likewise.
4231 (iv_period): Fix coding style.
4232 (iv_elimination_compare_lt): Likewise.
4233 (may_eliminate_iv): Likewise.
4234 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
4235 inv_expr.
4236 (determine_group_iv_costs): Dump invariant expressions.
4237 (iv_ca_recount_cost): Use the newly added hash_map.
4238 (iv_ca_set_remove_invariants): Fix coding style.
4239 (iv_ca_set_add_invariants): Fix coding style.
4240 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
4241 invariants.
4242 (iv_ca_set_cp): Likewise.
4243 (iv_ca_new): Initialize the newly added hash_map and remove
4244 initialization of fields.
4245 (iv_ca_free): Delete the hash_map.
4246 (iv_ca_dump): Dump invariant expressions.
4247 (iv_ca_extend): Fix coding style.
4248 (try_add_cand_for): Likewise.
4249 (create_new_ivs): Dump information about # of avg iterations and
4250 # of used invariant expressions.
4251 (rewrite_use_compare): Fix coding style.
4252 (free_loop_data): Set default value for max_inv_expr_id.
4253
4254 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
4255
4256 * cse.c (rest_of_handle_cse): Use cleanup_cfg
4257 returned value cse_cfg_altered computation.
4258 (rest_of_handle_cse2): Likewise.
4259 (rest_of_handle_cse_after_global_opts): Likewise.
4260
4261 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4262
4263 PR target/53440
4264 * config/arm/arm.c (arm32_output_mi_thunk): New.
4265 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
4266 to split Thumb1 vs TARGET_32BIT functionality.
4267 (arm_thumb1_mi_thunk): New.
4268
4269 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4270
4271 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
4272 to true.
4273
4274 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4275
4276 PR target/71080
4277 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
4278
4279 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
4280
4281 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
4282 (expand_builtin_trap): Emit a regular call.
4283 (set_builtin_user_assembler_name): Remove obsolete cases.
4284 * dse.c (scan_insn): Adjust.
4285 * except.c: Include calls.h.
4286 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
4287 emit a regular call to setjmp.
4288 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
4289 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
4290 (emit_block_move_via_libcall): Delete.
4291 (block_move_fn): Delete.
4292 (init_block_move_fn): Likewise.
4293 (emit_block_move_libcall_fn): Likewise.
4294 (emit_block_op_via_libcall): New function.
4295 (set_storage_via_libcall): Tidy up and use memset builtin.
4296 (block_clear_fn): Delete.
4297 (init_block_clear_fn): Likewise.
4298 (clear_storage_libcall_fn): Likewise.
4299 (expand_assignment): Call emit_block_move_via_libcall.
4300 Do not include gt-expr.h.
4301 * expr.h (emit_block_op_via_libcall): Declare.
4302 (emit_block_copy_via_libcall): New inline function.
4303 (emit_block_move_via_libcall): Likewise.
4304 (emit_block_comp_via_libcall): Likewise.
4305 (block_clear_fn): Delete.
4306 (init_block_move_fn): Likewise.
4307 (init_block_clear_fn): Likewise.
4308 (emit_block_move_via_libcall): Likewise.
4309 (set_storage_via_libcall): Add default parameter value.
4310 * libfuncs.h (enum libfunc_index): Remove obsolete values.
4311 (abort_libfunc): Delete.
4312 (memcpy_libfunc): Likewise.
4313 (memmove_libfunc): Likewise.
4314 (memcmp_libfunc): Likewise.
4315 (memset_libfunc): Likewise.
4316 (setbits_libfunc): Likewise.
4317 (setjmp_libfunc): Likewise.
4318 (longjmp_libfunc): Likewise.
4319 (profile_function_entry_libfunc): Likewise.
4320 (profile_function_exit_libfunc): Likewise.
4321 (gcov_flush_libfunc): Likewise.
4322 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
4323 and DECL_VISIBILITY on the declaration.
4324 (init_optabs): Do not initialize obsolete libfuncs.
4325 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
4326 * tree-core.h (ECF_RET1): Define.
4327 (ECF_TM_PURE): Adjust.
4328 (ECF_TM_BUILTIN): Likewise.
4329 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
4330 (build_common_builtin_nodes): Initialize abort builtin.
4331 Add ECF_RET1 on memcpy, memmove and memset builtins.
4332 Pass final flags for alloca and alloca_with_align builtins.
4333 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
4334 obsolete builtins.
4335 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
4336 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
4337 set_storage_via_libcall and call emit_block_copy_via_libcall.
4338
4339 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
4340
4341 * config/i386/i386.md (*call_got_x32): Change operand 0 to
4342 DImode before it is passed to ix86_output_call_operand.
4343 (*call_value_got_x32): Ditto for operand 1.
4344
4345 2016-05-12 Jiong Wang <jiong.wang@arm.com>
4346
4347 PR rtl-optimization/70904
4348 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
4349 reload for wide mode.
4350
4351 2016-05-12 Marek Polacek <polacek@redhat.com>
4352
4353 PR c/70756
4354 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
4355 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
4356 * langhooks.h (incomplete_type_error): Likewise.
4357 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
4358 parameter, pass it down to incomplete_type_error.
4359 * tree.h (size_in_bytes): New inline overload.
4360 (size_in_bytes_loc): Renamed from size_in_bytes.
4361
4362 2016-05-12 Richard Biener <rguenther@suse.de>
4363
4364 PR tree-optimization/71059
4365 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
4366 nary before looking up or entering the expression into the VN
4367 hashes.
4368 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
4369 Make sure to re-use NARYs without result as inserted by
4370 phi-translation.
4371
4372 2016-05-12 Richard Biener <rguenther@suse.de>
4373
4374 PR tree-optimization/71062
4375 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
4376 field.
4377 * tree-ssa-structalias.c (set_uids_in_ptset): Set
4378 vars_contains_restrict if the var is a restrict tag.
4379 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
4380 do not disambiguate pointers against it.
4381 (dump_points_to_solution): Re-structure and adjust for new
4382 vars_contains_restrict flag.
4383 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
4384
4385 2016-05-12 Martin Liska <mliska@suse.cz>
4386
4387 * doc/invoke.texi: Explain connection between
4388 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
4389
4390 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
4391
4392 PR tree-optimization/71006
4393 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4394 consider COND_EXPR as a mask producer.
4395
4396 2016-05-12 Marek Polacek <polacek@redhat.com>
4397
4398 PR driver/71063
4399 * opts.c (common_handle_option): Detect missing argument for --help^.
4400
4401 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4402
4403 PR target/70830
4404 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
4405 when popping the PC and within an interrupt handler routine.
4406 Add missing tab to output of "ldmfd".
4407 (output_return_instruction): Output LDMFD with SP update rather
4408 than POP when returning from interrupt handler.
4409
4410 2016-05-12 Jakub Jelinek <jakub@redhat.com>
4411
4412 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
4413 TARGET_64BIT && TARGET_AVX512DQ.
4414 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
4415 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
4416 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
4417 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
4418 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
4419 (*vec_extractv4si_zext): Add avx512dq alternative.
4420 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
4421 use v instead of x constraint in other alternatives where possible.
4422
4423 * config/i386/sse.md (sse2_loadld): Use v instead of x
4424 constraint in alternatives 0,1,4.
4425
4426 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
4427 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
4428 v constraints instead of x and <pinsr_evex_isa> isa attribute.
4429
4430 PR target/71019
4431 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
4432 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
4433 is not emitted unless TARGET_AVX512BW.
4434 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
4435 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
4436 for the result operand.
4437
4438 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
4439 constraint instead of x in avx alternatives. Use maybe_evex instead
4440 of vex prefix.
4441
4442 * config/i386/constraints.md (Yv): New constraint.
4443 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
4444 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
4445 * config/i386/i386.md (avx512fvecmode): New mode attr.
4446 (*pushtf): Use v constraint instead of x.
4447 (*movtf_internal): Likewise. For TARGET_AVX512VL and
4448 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
4449 (*absneg<mode>2): Use Yv constraint instead of x constraint.
4450 (*absnegtf2_sse): Likewise.
4451 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
4452 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
4453 avx512f alternatives.
4454 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
4455
4456 2016-05-12 Richard Biener <rguenther@suse.de>
4457
4458 PR tree-optimization/71060
4459 * tree-data-ref.c (initialize_data_dependence_relation): Do not
4460 require exact match of DR_BASE_OBJECT but only matching address and
4461 type.
4462
4463 2016-05-12 Richard Biener <rguenther@suse.de>
4464
4465 PR tree-optimization/70986
4466 * cfganal.c: Include cfgloop.h.
4467 (dfs_find_deadend): Prefer to take edges exiting loops.
4468
4469 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4470
4471 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
4472 compile and run time.
4473
4474 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
4475
4476 PR c/43651
4477 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
4478
4479 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
4480
4481 * config/i386/i386.c (legitimize_pic_address): Use
4482 copy_to_suggested_reg instead of gen_movsi.
4483
4484 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4485
4486 * config/rs6000/predicates.md (quad_memory_operand): Move most of
4487 the code into quad_address_p and call it to share code with
4488 vsx_quad_dform_memory_operand.
4489 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
4490 d-form support.
4491 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
4492 bit instead of being a separate word. Split -mpower9-dform into
4493 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4494 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
4495 for the register class supporting 128-bit quad word memory offsets.
4496 (mode_supports_vsx_dform_quad): Helper function to return if the
4497 register class uses quad word memory offsets.
4498 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
4499 (rs6000_debug_reg_global): Always print if we are using LRA or not.
4500 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
4501 instructions are enabled, set up the appropriate addr_masks for
4502 128-bit types.
4503 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
4504 -mpower9-dform-scalar, instead of -mpower9-dform.
4505 (rs6000_option_override_internal): Split -mpower9-dform into two
4506 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
4507 -mpower9-dform switch sets or clears both. If we are not using
4508 the LRA register allocator, do not enable -mpower9-dform-vector by
4509 default. If we are using LRA, enable -mpower9-dform-vector and
4510 -mvsx-timode if it is appropriate. Issue a warning if either
4511 -mpower9-dform-vector or -mvsx-timode are explicitly used without
4512 enabling LRA.
4513 (quad_address_offset_p): New helper function to return if the
4514 offset is legal for quad word memory instructions.
4515 (quad_address_p): New function to determin if GPR or vector
4516 register quad word memory addresses are legal.
4517 (mem_operand_gpr): Validate quad word address offsets.
4518 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
4519 d-form (register + offset) instructions.
4520 (offsettable_ok_by_alignment): Likewise.
4521 (rs6000_legitimate_offset_address_p): Likewise.
4522 (legitimate_lo_sum_address_p): Likewise.
4523 (rs6000_legitimize_address): Likewise.
4524 (rs6000_legitimize_reload_address): Add more debug statements for
4525 -mdebug=addr.
4526 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
4527 d-form instructions.
4528 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
4529 d-form instructions. Distinguish different cases in debug
4530 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
4531 d-form instructions.
4532 (rs6000_preferred_reload_class): Likewise.
4533 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
4534 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
4535 of the ISA 2.06 indexed memory instructions.
4536 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
4537 use them to save/restore the saved vector registers instead of
4538 using Altivec instructions.
4539 (rs6000_emit_epilogue): Likewise.
4540 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
4541 (rs6000_opt_masks): Split -mpower9-dform into
4542 -mpower9-dform-scalar and -mpower9-dform-vector.
4543 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
4544 was not selected.
4545 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
4546 ISA 3.0 vector indexed memory instructions, and fold the code into
4547 the normal mov<mode> patterns.
4548 (p9_vecstore_<mode>): Likewise.
4549 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
4550 instructions.
4551 (vsx_movti_64bit): Likewise.
4552 (vsx_movti_32bit): Likewise.
4553 * config/rs6000/constraints.md (wO constraint): New constraint for
4554 ISA 3.0 vector d-form support.
4555 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
4556 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
4557 include -mpower9-dform-vector until we switch over to LRA.
4558 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
4559 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
4560 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
4561 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
4562 for -mpower9-dform and -mlra.
4563 * doc/md.texi (wO constraint): Document wO constraint.
4564
4565 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
4566
4567 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
4568 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
4569 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
4570 Move handling of non-insn arguments inline into the sole user:
4571 (output_trans_func): ...here.
4572 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
4573 in emitted function prototype.
4574 (output_internal_insn_latency_func): Ditto. Simplify.
4575 (output_internal_maximal_insn_latency_func): Ditto. Delete
4576 always-unused argument.
4577 (output_insn_latency_func): Ditto.
4578 (output_maximal_insn_latency_func): Ditto.
4579
4580 2016-05-11 Richard Biener <rguenther@suse.de>
4581
4582 PR tree-optimization/71055
4583 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
4584 sth with precision not equal to access size verify we don't chop
4585 off bits.
4586
4587 2016-05-11 Richard Biener <rguenther@suse.de>
4588
4589 PR debug/71057
4590 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
4591 (dwarf2out_finish): Move retry_incomplete_types call ...
4592 (dwarf2out_early_finish): ... here.
4593
4594 2016-05-11 Richard Biener <rguenther@suse.de>
4595
4596 PR middle-end/71002
4597 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
4598 if the langhook insists on it.
4599 * fold-const.c (make_bit_field_ref): Add arg for the original
4600 reference and preserve its alias-set.
4601 (decode_field_reference): Take exp by reference and adjust it
4602 to the original memory reference.
4603 (optimize_bit_field_compare): Adjust callers.
4604 (fold_truth_andor_1): Likewise.
4605 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
4606
4607 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
4608
4609 PR middle-end/70807
4610 * cfgrtl.h (delete_insn_and_edges): Now return bool.
4611 * cfgrtl.c (delete_insn_and_edges): Likewise.
4612 * config/i386/i386.c (convert_scalars_to_vector): Remove
4613 redundant code.
4614 * cse.c (cse_insn): Compute cse_cfg_altered.
4615 (delete_trivially_dead_insns): Likewise.
4616 (cse_cc_succs): Likewise.
4617 (rest_of_handle_cse): Free dominance info if required.
4618 (rest_of_handle_cse2): Likewise.
4619 (rest_of_handle_cse_after_global_opts): Likewise.
4620
4621 2016-05-11 Alan Modra <amodra@gmail.com>
4622
4623 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
4624 abi_v4_pass_in_fpr): New functions.
4625 (rs6000_function_arg_boundary): Exclude complex IBM long double
4626 from 64-bit alignment when ABI_V4.
4627 (rs6000_function_arg, rs6000_function_arg_advance_1,
4628 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
4629
4630 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
4631
4632 PR rtl-optimization/71028
4633 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
4634 jump with just a return in the fallthrough block if the branch
4635 block contains just a return as well.
4636
4637 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
4638
4639 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
4640 * match.pd ((X & Y) ^ Y): ... this.
4641 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
4642 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
4643
4644 2016-05-10 David Malcolm <dmalcolm@redhat.com>
4645
4646 * read-md.c (require_char_ws): New function.
4647 (read_string): Simplify using require_char_ws.
4648 (handle_constants): Likewise.
4649 (handle_enum): Likewise.
4650 (handle_file): Likewise.
4651 * read-md.h (require_char_ws): New declaration.
4652 * read-rtl.c (read_conditions): Simplify using require_char_ws.
4653 (read_mapping): Likewise.
4654 (read_rtx_code): Likewise.
4655 (read_nested_rtx): Likewise.
4656
4657 2016-05-10 James Norris <jnorris@codesourcery.com>
4658
4659 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
4660 if offloading is enabled and -fopenacc or -fopenmp is specified.
4661 (CRTOFFLOADEND): Likewise.
4662 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
4663 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
4664
4665 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
4666
4667 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
4668 gotoff_operand code paths. Use copy_to_suggested_regs and
4669 expand_simple_binop where appropriate. Cleanup.
4670
4671 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
4672
4673 PR target/70799
4674 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
4675 integer constants.
4676 (dimode_scalar_chain::vector_const_cost): New.
4677 (dimode_scalar_chain::compute_convert_gain): Handle constants.
4678 (dimode_scalar_chain::convert_op): Likewise.
4679 (dimode_scalar_chain::convert_insn): Likewise.
4680
4681 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
4682
4683 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
4684 unary operation, not a binary one.
4685
4686 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
4687
4688 PR middle-end/70877
4689 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
4690 calls with type casted fndecl.
4691
4692 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
4693
4694 PR tree-optimization/70786
4695 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
4696 * calls.c (initialize_argument_information): Bind bounds
4697 with corresponding args passed by reference.
4698
4699 2016-05-10 Jakub Jelinek <jakub@redhat.com>
4700
4701 PR target/70927
4702 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
4703 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
4704 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
4705 accordingly.
4706
4707 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4708
4709 PR target/70963
4710 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
4711 code for a zero scale factor.
4712 (vsx_xvcvdpuxds_scale): Likewise.
4713
4714 2016-05-10 David Malcolm <dmalcolm@redhat.com>
4715
4716 * diagnostic-show-locus.c (layout::layout): Call show_ruler
4717 if show_ruler_p was set on the context.
4718 (layout::show_ruler): New method.
4719 * diagnostic.h (struct diagnostic_context): Add field
4720 "show_ruler_p".
4721
4722 2016-05-10 Richard Biener <rguenther@suse.de>
4723
4724 PR tree-optimization/71039
4725 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
4726 (chk_uses): New function.
4727 (propagate_with_phi): Verify we can safely replicate the lhs of an
4728 aggregate assignment on all incoming edges.
4729
4730 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
4731
4732 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
4733 Forward declare.
4734 (rx_atomic_sequence): New class.
4735 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
4736 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
4737 non-inline.
4738 (rx_atomic_sequence::rx_atomic_sequence,
4739 rx_atomic_sequence::~rx_atomic_sequence): New functions.
4740 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
4741 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
4742 CTRLREG_INTB): New constants.
4743 (FETCHOP): New code iterator.
4744 (fethcop_name, fetchop_name2): New iterator code attributes.
4745 (QIHI): New mode iterator.
4746 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
4747 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
4748 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
4749
4750 2016-05-10 Martin Liska <mliska@suse.cz>
4751
4752 * tree-inline.c (remap_dependence_clique): Do not remap
4753 debugging statements.
4754
4755 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4756
4757 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
4758 ("*fixuns_truncdfdi2_z13")
4759 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
4760 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
4761 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
4762
4763 2016-05-10 Richard Biener <rguenther@suse.de>
4764
4765 PR tree-optimization/70497
4766 PR tree-optimization/28367
4767 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
4768 split out from ...
4769 (visit_reference_op_load): ... here.
4770 (vn_reference_lookup_3): Use it to handle subreg-like accesses
4771 with simplified BIT_FIELD_REFs.
4772 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
4773 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
4774 correctly.
4775
4776 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
4777
4778 * dwarf2out.c (add_abstract_origin_attribute): Adjust
4779 documentation comment. For BLOCK nodes, add a
4780 DW_AT_abstract_origin attribute that points to the DIE generated
4781 for the origin BLOCK.
4782 (gen_lexical_block_die): Call add_abstract_origin_attribute for
4783 blocks from inlined functions.
4784
4785 2016-05-10 Alan Modra <amodra@gmail.com>
4786
4787 PR target/70947
4788 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
4789 regrename modifying insns saving lr before __morestack call.
4790 * config/rs6000/rs6000.md (split_stack_return): Similarly for
4791 insns restoring lr after __morestack call.
4792
4793 2016-05-09 Jakub Jelinek <jakub@redhat.com>
4794
4795 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
4796 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
4797 expanders.
4798 * config/i386/sse.md (vec_interleave_high<mode>,
4799 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
4800 <avx512>_vpermt2var<mode>3_maskz): Likewise.
4801
4802 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4803
4804 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
4805 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
4806 parallel reassociation for power8 and forward.
4807
4808 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
4809
4810 * config/i386/i386.md (absneg splitters with general regs): Use
4811 general_reg_operand predicate.
4812 (btsq peephole2): Use x86_64_immediate_operand to check if new
4813 value is suitable for immediate operand. Generate emitted insn
4814 using RTL expressions.
4815 (btcq peephole2): Ditto.
4816 (btrq peephole2): Ditto. Generate correct immediate operand
4817 for AND masking.
4818
4819 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
4820
4821 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
4822 bitpos.
4823
4824 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
4825
4826 * tree-affine.c (wide_int_constant_multiple_p): Add missing
4827 pointer dereference.
4828
4829 2016-05-09 Richard Biener <rguenther@suse.de>
4830
4831 PR tree-optimization/70985
4832 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
4833 op0 isn't a gimple register.
4834
4835 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
4836
4837 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
4838 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
4839 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
4840 (i6400_fpu_mult): New cpu units.
4841 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
4842 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
4843 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
4844 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
4845 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
4846 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
4847 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
4848 (i6400_msa_long_float4, i6400_msa_long_float5)
4849 (i6400_msa_long_float8, i6400_msa_fdiv_df)
4850 (i6400_msa_fdiv_sf): New reservations.
4851 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
4852 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
4853 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
4854 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
4855 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
4856 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
4857 (msa_short_cmp, msa_short_float2, msa_short_logic3)
4858 (msa_short_store4, msa_long_load, msa_short_store)
4859 (msa_long_logic, msa_long_float2, msa_long_float4)
4860 (msa_long_float5, msa_long_float8, msa_long_mult)
4861 (msa_long_fdiv, msa_long_div): New reservations.
4862
4863 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
4864 Sameera Deshpande <sameera.deshpande@imgtec.com>
4865 Matthew Fortune <matthew.fortune@imgtec.com>
4866 Graham Stott <graham.stott@imgtec.com>
4867 Chao-ying Fu <chao-ying.fu@imgtec.com>
4868
4869 * config.gcc: Add MSA header file for mips*-*-* target.
4870 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
4871 (Ubv8i, Urv8): New constraints.
4872 * config/mips/mips-ftypes.def: Add function types for MSA
4873 builtins.
4874 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
4875 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
4876 * config/mips/mips-msa.md: New file.
4877 * config/mips/mips-protos.h
4878 (mips_split_128bit_const_insns): New prototype.
4879 (mips_msa_idiv_insns): Likewise.
4880 (mips_split_128bit_move): Likewise.
4881 (mips_split_128bit_move_p): Likewise.
4882 (mips_split_msa_copy_d): Likewise.
4883 (mips_split_msa_insert_d): Likewise.
4884 (mips_split_msa_fill_d): Likewise.
4885 (mips_expand_msa_branch): Likewise.
4886 (mips_const_vector_same_val_p): Likewise.
4887 (mips_const_vector_same_bytes_p): Likewise.
4888 (mips_const_vector_same_int_p): Likewise.
4889 (mips_const_vector_shuffle_set_p): Likewise.
4890 (mips_const_vector_bitimm_set_p): Likewise.
4891 (mips_const_vector_bitimm_clr_p): Likewise.
4892 (mips_msa_vec_parallel_const_half): Likewise.
4893 (mips_msa_output_division): Likewise.
4894 (mips_ldst_scaled_shift): Likewise.
4895 (mips_expand_vec_cond_expr): Likewise.
4896 * config/mips/mips.c (enum mips_builtin_type): Add
4897 MIPS_BUILTIN_MSA_TEST_BRANCH.
4898 (mips_gen_const_int_vector_shuffle): New prototype.
4899 (mips_const_vector_bitimm_set_p): New function.
4900 (mips_const_vector_bitimm_clr_p): Likewise.
4901 (mips_const_vector_same_val_p): Likewise.
4902 (mips_const_vector_same_bytes_p): Likewise.
4903 (mips_const_vector_same_int_p): Likewise.
4904 (mips_const_vector_shuffle_set_p): Likewise.
4905 (mips_symbol_insns): Forbid loading symbols via immediate for
4906 MSA.
4907 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
4908 stores.
4909 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
4910 MSA.
4911 (mips_lx_address_p): Add support load indexed address for MSA.
4912 (mips_address_insns): Add calculation of instructions needed for
4913 stores and loads for MSA.
4914 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
4915 CONST_VECTOR for MSA and let it fall through.
4916 (mips_ldst_scaled_shift): New function.
4917 (mips_subword_at_byte): Likewise.
4918 (mips_msa_idiv_insns): Likewise.
4919 (mips_legitimize_move): Validate MSA moves.
4920 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
4921 calculation of costs for MSA division.
4922 (mips_split_move_p): Check if MSA moves need splitting.
4923 (mips_split_move): Split MSA moves if necessary.
4924 (mips_split_128bit_move_p): New function.
4925 (mips_split_128bit_move): Likewise.
4926 (mips_split_msa_copy_d): Likewise.
4927 (mips_split_msa_insert_d): Likewise.
4928 (mips_split_msa_fill_d): Likewise.
4929 (mips_output_move): Handle MSA moves.
4930 (mips_expand_msa_branch): New function.
4931 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
4932 Reinstate 'y' modifier.
4933 (mips_file_start): Add MSA .gnu_attribute.
4934 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
4935 FPRs.
4936 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
4937 (mips_class_max_nregs): Add register size for MSA supported mode.
4938 (mips_cannot_change_mode_class): Allow conversion between MSA
4939 vector modes and TImode.
4940 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
4941 instruction.
4942 (mips_secondary_reload_class): Force MSA loads/stores via memory.
4943 (mips_preferred_simd_mode): Add preffered modes for MSA.
4944 (mips_vector_mode_supported_p): Add MSA supported modes.
4945 (mips_autovectorize_vector_sizes): New function.
4946 (mips_msa_output_division): Likewise.
4947 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
4948 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
4949 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
4950 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
4951 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
4952 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
4953 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
4954 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
4955 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
4956 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
4957 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
4958 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
4959 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
4960 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
4961 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
4962 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
4963 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
4964 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
4965 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
4966 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
4967 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
4968 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
4969 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
4970 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
4971 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
4972 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
4973 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
4974 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
4975 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
4976 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
4977 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
4978 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
4979 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
4980 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
4981 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
4982 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
4983 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
4984 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
4985 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
4986 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
4987 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
4988 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
4989 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
4990 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
4991 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
4992 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
4993 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
4994 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
4995 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
4996 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
4997 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
4998 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
4999 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
5000 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
5001 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
5002 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
5003 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
5004 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
5005 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
5006 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
5007 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
5008 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
5009 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
5010 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
5011 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
5012 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
5013 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
5014 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
5015 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
5016 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
5017 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
5018 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
5019 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
5020 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
5021 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
5022 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
5023 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
5024 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
5025 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
5026 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
5027 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
5028 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
5029 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
5030 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
5031 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
5032 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
5033 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
5034 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
5035 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
5036 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
5037 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
5038 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
5039 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
5040 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
5041 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
5042 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
5043 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
5044 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
5045 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
5046 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
5047 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
5048 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
5049 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
5050 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
5051 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
5052 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
5053 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
5054 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
5055 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
5056 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
5057 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
5058 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
5059 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
5060 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
5061 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
5062 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
5063 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
5064 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
5065 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
5066 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
5067 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
5068 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
5069 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
5070 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
5071 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
5072 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
5073 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
5074 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
5075 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
5076 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
5077 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
5078 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
5079 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
5080 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
5081 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
5082 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
5083 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
5084 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
5085 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
5086 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
5087 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
5088 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
5089 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
5090 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
5091 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
5092 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
5093 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
5094 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
5095 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
5096 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
5097 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
5098 move_v builtins.
5099 (mips_get_builtin_decl_index): New array.
5100 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
5101 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
5102 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
5103 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
5104 (mips_init_builtins): Initialize mips_get_builtin_decl_index
5105 array.
5106 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
5107 hook.
5108 (mips_expand_builtin_insn): Prepare operands for
5109 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
5110 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
5111 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
5112 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
5113 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
5114 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
5115 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
5116 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
5117 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
5118 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
5119 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
5120 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
5121 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
5122 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
5123 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
5124 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
5125 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
5126 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
5127 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
5128 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
5129 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
5130 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
5131 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
5132 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
5133 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
5134 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
5135 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
5136 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
5137 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
5138 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
5139 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
5140 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
5141 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
5142 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
5143 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
5144 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
5145 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
5146 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
5147 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
5148 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
5149 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
5150 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
5151 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
5152 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
5153 These are set implicitly and an error is reported if overridden.
5154 (mips_expand_builtin_msa_test_branch): New function.
5155 (mips_expand_msa_shuffle): Likewise.
5156 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
5157 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
5158 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
5159 (mips_expand_vec_unpack): Add support for MSA.
5160 (mips_expand_vector_init): Likewise.
5161 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
5162 instead of const0_rtx.
5163 (mips_msa_vec_parallel_const_half): New function.
5164 (mips_gen_const_int_vector): Likewise.
5165 (mips_gen_const_int_vector_shuffle): Likewise.
5166 (mips_expand_msa_cmp): Likewise.
5167 (mips_expand_vec_cond_expr): Likewise.
5168 * config/mips/mips.h
5169 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
5170 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
5171 specified.
5172 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
5173 (ISA_HAS_MSA): New macro.
5174 (UNITS_PER_MSA_REG): Likewise.
5175 (BITS_PER_MSA_REG): Likewise.
5176 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
5177 (MSA_REG_FIRST): New macro.
5178 (MSA_REG_LAST): Likewise.
5179 (MSA_REG_NUM): Likewise.
5180 (MSA_REG_P): Likewise.
5181 (MSA_REG_RTX_P): Likewise.
5182 (MSA_SUPPORTED_MODE_P): Likewise.
5183 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
5184 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
5185 * config/mips/mips.md: Include mips-msa.md.
5186 (alu_type): Add simd_add.
5187 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
5188 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
5189 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
5190 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
5191 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
5192 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
5193 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
5194 simd_move, simd_load, simd_store. Choose "multi" for moves
5195 for "qword_mode".
5196 (qword_mode): New attribute.
5197 (insn_count): Add instruction count for quad moves.
5198 Increase the count for MIPS SIMD division.
5199 (UNITMODE): Add UNITMODEs for vector types.
5200 (addsub): New code iterator.
5201 * config/mips/mips.opt (mmsa): New option.
5202 * config/mips/msa.h: New file.
5203 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
5204 specified.
5205 * config/mips/mti-linux.h: Likewise.
5206 * config/mips/predicates.md
5207 (const_msa_branch_operand): New constraint.
5208 (const_uimm3_operand): Likewise.
5209 (const_uimm4_operand): Likewise.
5210 (const_uimm5_operand): Likewise.
5211 (const_uimm8_operand): Likewise.
5212 (const_imm5_operand): Likewise.
5213 (aq10b_operand): Likewise.
5214 (aq10h_operand): Likewise.
5215 (aq10w_operand): Likewise.
5216 (aq10d_operand): Likewise.
5217 (const_m1_operand): Likewise.
5218 (reg_or_m1_operand): Likewise.
5219 (const_exp_2_operand): Likewise.
5220 (const_exp_4_operand): Likewise.
5221 (const_exp_8_operand): Likewise.
5222 (const_exp_16_operand): Likewise.
5223 (const_vector_same_val_operand): Likewise.
5224 (const_vector_same_simm5_operand): Likewise.
5225 (const_vector_same_uimm5_operand): Likewise.
5226 (const_vector_same_uimm6_operand): Likewise.
5227 (const_vector_same_uimm8_operand): Likewise.
5228 (par_const_vector_shf_set_operand): Likewise.
5229 (reg_or_vector_same_val_operand): Likewise.
5230 (reg_or_vector_same_simm5_operand): Likewise.
5231 (reg_or_vector_same_uimm6_operand): Likewise.
5232 * doc/extend.texi (MIPS SIMD Architecture Functions): New
5233 section.
5234 * doc/invoke.texi (-mmsa): Document new option.
5235
5236 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5237
5238 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
5239 * configure: Regenerate.
5240 * config.in: Regenerate.
5241 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
5242 on -fvtable-verify.
5243 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
5244 (ENDFILE_VTV_SPEC): Define.
5245
5246 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
5247
5248 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
5249 registers in all interrupt handlers if necessary.
5250 (rl78_option_override): Add warning.
5251 (MUST_SAVE_MDUC_REGISTERS): New macro.
5252 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
5253 * config/rl78/rl78.c (check_mduc_usage): New function.
5254 (mduc_regs): New structure to hold MDUC register data.
5255 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
5256 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
5257 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
5258 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
5259 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
5260 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
5261
5262 2016-05-09 Bin Cheng <bin.cheng@arm.com>
5263
5264 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
5265 (tree-ssa-loop-niter.h): Ditto.
5266 (idx_within_array_bound, ref_within_array_bound): New functions.
5267 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
5268 Factor out check on writable base object to ...
5269 (base_object_writable): ... here.
5270
5271 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5272
5273 * config/arm/arm.md (probe_stack): Add modes to set source
5274 and destination.
5275
5276 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
5277
5278 * regrename.c (base_reg_class_for_rename): New static function.
5279 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
5280
5281 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
5282
5283 * cgraph.c (thunk_adjust): Export.
5284 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
5285 * cgraphunit.c (thunk_adjust): Export.
5286 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
5287 thunks.
5288 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
5289 inlinable.
5290 * tree-inline.c (expand_call_inline): Expand thunks inline.
5291
5292 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
5293
5294 PR target/70998
5295 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
5296 (*sse2_vd_cvtss2sd): Ditto.
5297 * config/i386/i386.md
5298 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
5299 Generate *sse2_vd_cvtsd2ss pattern.
5300 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
5301 Generate *sse2_vd_cvtss2sd pattern.
5302
5303 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
5304
5305 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
5306 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
5307 users.
5308
5309 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
5310
5311 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
5312 * config/sh/sh.c: Define and declare variables on first use throughout
5313 the file.
5314 (current_function_interrupt): Change to bool type.
5315 (frame_insn): Rename to emit_frame_insn and update users.
5316 (push_regs): Use bool for 'interrupt_handler' argument.
5317 (save_schedule_s): Remove.
5318 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
5319 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
5320 targetm.asm_out.unaligned_op.di.
5321 (gen_far_branch): Remove redundant forward declaration.
5322 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
5323 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
5324 (sh_set_return_address, sh_function_ok_for_sibcall,
5325 scavenge_reg): Update comments.
5326 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
5327 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
5328 (sh_attr_renesas_p): Remove unnecessary parentheses.
5329 (branch_dest): Simplify.
5330 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
5331 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
5332 (CUMULATIVE_ARGS): Change macro to typedef.
5333 (current_function_interrupt): Change to bool type.
5334 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
5335 Surround with __cplusplus ifdef.
5336 (sh_compare_op0, sh_compare_op1): Remove.
5337 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
5338
5339 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
5340
5341 * config/arm/arm.md: (arch): Add neon.
5342 (arch_enabled): Return yes for arch neon when TARGET_NEON.
5343 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
5344 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
5345 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
5346 attributes for alt renumbering. Mark alt 3 as non-predicable.
5347 (thumb2_movdf_vfp): Likewise.
5348
5349 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
5350
5351 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
5352 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
5353 (*andqi_1): Add preferred_for_speed attribute to disparage
5354 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
5355 (*<code>qi_1): Ditto.
5356 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
5357 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
5358 (*ashlqi3_1): Ditto.
5359 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
5360 Add preferred_for_size attribute to disparage alternative 0 and
5361 preferred_for_speed attribute to disparage alternative 1 for
5362 TARGET_PARTIAL_REG_STALL targets.
5363
5364 2016-05-07 Tom de Vries <tom@codesourcery.com>
5365
5366 PR tree-optimization/70956
5367 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
5368 def.
5369
5370 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
5371
5372 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
5373 * config/sh/sh.c (sh_cbranch_distance): Implement it.
5374 * config/sh/sh.md (branch_zero): Remove define_attr.
5375 (define_delay): Disable delay slot if branch distance is one insn.
5376
5377 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
5378
5379 * config/i386/i386.md (LEAMODE): New mode attribute.
5380 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
5381 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
5382 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
5383 operand 2 predicate.
5384 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
5385 (*lea<mode>_general_3): Ditto.
5386 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
5387
5388 2016-05-06 Jakub Jelinek <jakub@redhat.com>
5389
5390 * genmddump.c (main): Convert argv from char ** to const char **.
5391
5392 2016-05-06 David Malcolm <dmalcolm@redhat.com>
5393
5394 * coretypes.h (OVERRIDE): New macro.
5395 (FINAL): New macro.
5396
5397 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
5398
5399 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
5400 allow coalescing if the types are compatible.
5401
5402 2016-05-06 David Malcolm <dmalcolm@redhat.com>
5403
5404 * pass_manager.h (pass_manager::register_pass_name): New method.
5405 (pass_manager::get_pass_by_name): New method.
5406 (pass_manager::create_pass_tab): New method.
5407 (pass_manager::m_name_to_pass_map): New field.
5408 * passes.c (name_to_pass_map): Delete global in favor of field
5409 "m_name_to_pass_map" of pass_manager.
5410 (register_pass_name): Rename from a function to...
5411 (pass_manager::register_pass_name): ...this method, updating
5412 for renaming of global "name_to_pass_map" to field
5413 "m_name_to_pass_map".
5414 (create_pass_tab): Rename from a function to...
5415 (pass_manager::create_pass_tab): ...this method, updating
5416 for renaming of global "name_to_pass_map" to field.
5417 (get_pass_by_name): Rename from a function to...
5418 (pass_manager::get_pass_by_name): ...this method.
5419 (enable_disable_pass): Convert use of get_pass_by_name to
5420 a method call, locating the pass_manager singleton.
5421
5422 2016-05-06 David Malcolm <dmalcolm@redhat.com>
5423
5424 * genattr-common.c (main): Convert argv from char ** to const char **.
5425 * genattr.c (main): Likewise.
5426 * genattrtab.c (main): Likewise.
5427 * genautomata.c (initiate_automaton_gen): Likewise.
5428 (main): Likewise.
5429 * gencodes.c (main): Likewise.
5430 * genconditions.c (main): Likewise.
5431 * genconfig.c (main): Likewise.
5432 * genconstants.c (main): Likewise.
5433 * genemit.c (main): Likewise.
5434 * genenums.c (main): Likewise.
5435 * genextract.c (main): Likewise.
5436 * genflags.c (main): Likewise.
5437 * genmddeps.c (main): Likewise.
5438 * genopinit.c (main): Likewise.
5439 * genoutput.c (main): Likewise.
5440 * genpeep.c (main): Likewise.
5441 * genpreds.c (main): Likewise.
5442 * genrecog.c (main): Likewise.
5443 * gensupport.c (init_rtx_reader_args_cb): Likewise.
5444 (init_rtx_reader_args): Likewise.
5445 * gensupport.h (init_rtx_reader_args_cb): Likewise.
5446 (init_rtx_reader_args): Likewise.
5447 * gentarget-def.c (main): Likewise.
5448 * read-md.c (read_md_files): Likewise.
5449 * read-md.h (read_md_files): Likewise.
5450
5451 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
5452
5453 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
5454 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
5455 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
5456 Remove unused predicate.
5457 (register_and_not_fp_reg_operand): Ditto.
5458
5459 2016-05-06 Martin Liska <mliska@suse.cz>
5460
5461 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
5462 instead of vec as the vector is local to the function.
5463
5464 2016-05-06 Jakub Jelinek <jakub@redhat.com>
5465
5466 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
5467 avx512bw alternative.
5468
5469 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
5470 before the ashr<mode>3 pattern.
5471
5472 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
5473 v instead of x in vex or maybe_vex alternatives, use
5474 maybe_evex instead of vex in prefix.
5475
5476 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
5477 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
5478 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
5479 in vex or maybe_vex alternatives, use maybe_evex instead of vex
5480 in prefix.
5481
5482 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
5483 v instead of x in vex or maybe_vex alternatives, use
5484 maybe_evex instead of vex in prefix.
5485
5486 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
5487 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
5488 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
5489 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
5490 alternatives, use maybe_evex instead of vex in prefix.
5491
5492 * config/i386/sse.md (vec_interleave_lowv4sf,
5493 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
5494 v instead of x in vex or maybe_vex alternatives, use
5495 maybe_evex instead of vex in prefix.
5496
5497 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
5498 v instead of x in vex or maybe_vex alternatives, use
5499 maybe_evex instead of vex in prefix.
5500
5501 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
5502 v constraint instead of x.
5503
5504 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
5505
5506 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
5507 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
5508 equality first.
5509
5510 2016-05-06 Richard Biener <rguenther@suse.de>
5511
5512 PR tree-optimization/70948
5513 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5514 Properly clobber all fields of va_list for __builtin_va_start.
5515
5516 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
5517
5518 PR debug/70935
5519 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
5520 loop latch destination.
5521
5522 2016-05-06 Martin Liska <mliska@suse.cz>
5523
5524 * tree-ssa-uninit.c: Apply manual changes
5525 to the GNU coding style.
5526 (prune_uninit_phi_opnds): Rename from
5527 prune_uninit_phi_opnds_in_unrealizable_paths.
5528
5529 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5530
5531 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
5532 mspace): Remove deprecated options.
5533 * doc/invoke.texi (SH options): Remove -mspace.
5534
5535 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5536
5537 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
5538
5539 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5540
5541 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
5542 corresponding combine split pattern.
5543
5544 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5545
5546 PR target/58219
5547 * config/sh/predicates.md (long_displacement_mem_operand): New.
5548 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
5549 Add movi20, movi20s alternatives. Adjust length attribute for
5550 alternatives.
5551 (movsi_ie): Allow for any FPU. Adjust length attribute for
5552 alternatives.
5553 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
5554 attribute for alternatives.
5555 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
5556 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
5557 length attribute for alternatives.
5558
5559 2016-05-06 Richard Biener <rguenther@suse.de>
5560
5561 PR tree-optimization/70960
5562 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
5563
5564 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5565
5566 PR target/52933
5567 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
5568 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
5569
5570 2016-05-06 Marek Polacek <polacek@redhat.com>
5571
5572 PR sanitizer/70875
5573 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
5574
5575 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5576
5577 PR target/54089
5578 * config/sh/sh.md (*rotcr): Add another variant.
5579
5580 2016-05-06 Richard Biener <rguenther@suse.de>
5581
5582 PR middle-end/70931
5583 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
5584
5585 2016-05-06 Richard Biener <rguenther@suse.de>
5586
5587 PR middle-end/70941
5588 * fold-const.c (split_tree): Always convert to the original type
5589 before negating.
5590
5591 2016-05-06 Richard Biener <rguenther@suse.de>
5592
5593 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
5594 (fwprop_addr): Likewise.
5595
5596 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
5597
5598 PR target/70873
5599 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
5600 New prototype.
5601 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
5602 * config/i386/i386.md (push mem splitter): Use find_constant_src in
5603 the splitter condition.
5604 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
5605 the splitter condition.
5606 (FP float_extend load splitter): Ditto.
5607
5608 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
5609
5610 * config/i386/i386.md (peehole2 patterns): Change true_regnum
5611 to REGNO in all peephole2 patterns.
5612 (post-reload splitters): Change true_regnum to REGNO in
5613 post-reload splitters.
5614 (zero_extend splitters): Use general_reg_operand and
5615 nonimmediate_gr_operand predicates.
5616
5617 2016-05-05 Jakub Jelinek <jakub@redhat.com>
5618
5619 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
5620 v constraint instead of x.
5621
5622 2016-05-05 Alan Modra <amodra@gmail.com>
5623
5624 PR target/68662
5625 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
5626 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
5627 TARGET_NO_FP_IN_TOC for -mrelocatable.
5628 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
5629 TARGET_RELOCATABLE test.
5630 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5631 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5632 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5633 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5634 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5635 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5636 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
5637 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5638 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
5639 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5640 Likewise.
5641 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
5642 (rs6000_stack_info): Likewise.
5643 (rs6000_elf_asm_out_constructor): Likewise.
5644 (rs6000_elf_asm_out_destructor): Likewise.
5645 (rs6000_elf_declare_function_name): Likewise.
5646 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
5647 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
5648 Don't define.
5649
5650 2016-05-05 Alan Modra <amodra@gmail.com>
5651
5652 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
5653
5654 2016-05-05 Alan Modra <amodra@gmail.com>
5655
5656 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
5657 out-of-line gpr restore for one or two regs if that would add
5658 a save of lr.
5659
5660 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
5661
5662 PR target/70873
5663 * config/i386/i386.md
5664 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
5665 Change to post-epilogue_completed late splitter. Use sse_reg_operand
5666 as operand 0 predicate.
5667 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
5668 Ditto.
5669 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
5670 Ditto. Emit the pattern using RTX.
5671
5672 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
5673 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
5674 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
5675 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
5676 Ditto.
5677 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
5678 sse_reg_operand as operand 0 predicate.
5679
5680 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
5681 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
5682 instead of gen_rtx_REG.
5683 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
5684 Ditto.
5685
5686 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5687
5688 * function.c (emit_use_return_register_into_block): Delete.
5689 (gen_return_pattern): Delete.
5690 (emit_return_into_block): Delete.
5691 (active_insn_between): Delete.
5692 (convert_jumps_to_returns): Delete.
5693 (emit_return_for_exit): Delete.
5694 (thread_prologue_and_epilogue_insns): Delete all code dealing with
5695 simple_return for shrink-wrapped blocks.
5696 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
5697 end of blocks that need one.
5698 (get_unconverted_simple_return): Delete.
5699 (convert_to_simple_return): Delete.
5700 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
5701 (convert_to_simple_return): Ditto.
5702
5703 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5704
5705 * cfgcleanup.c (bb_is_just_return): New function.
5706 (try_optimize_cfg): Simplify jumps to return, branches to return,
5707 and branches around return.
5708
5709 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5710
5711 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
5712 branch to a return.
5713
5714 2016-05-04 Jakub Jelinek <jakub@redhat.com>
5715
5716 PR c++/70906
5717 PR c++/70933
5718 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
5719 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
5720 assert flags & OEP_HASH_CHECK, instead of asserting it
5721 never happens. Handle TARGET_EXPR.
5722 * fold-const.c (operand_equal_p): For hash verification,
5723 or in OEP_HASH_CHECK into flags.
5724
5725 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
5726
5727 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
5728 comment.
5729 (compute_samebase_partition_bases): Fix typo.
5730
5731 2016-05-04 Jakub Jelinek <jakub@redhat.com>
5732
5733 * config/i386/sse.md (vec_interleave_highv8sf,
5734 vec_interleave_lowv8sf, vec_interleave_highv4df,
5735 vec_interleave_lowv4df): Remove constraints from expanders.
5736
5737 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
5738
5739 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
5740
5741 * tree-inline.c (expand_call_inline): Fix path dealing with
5742 making lhs of call statement undefined.
5743
5744 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
5745
5746 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
5747 Check availability on NODE, too.
5748 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
5749 (cgraph_node::call_for_symbol_and_aliases): Likewise.
5750 (varpool_node::call_for_symbol_and_aliase): Likewise.
5751 * ipa-pure-const.c (add_new_function): Analyze all bodies.
5752 (propagate_pure_const): Propagate across interposable functions, too.
5753 (skip_function_for_local_pure_const): Do not skip interposable bodies
5754 with aliases.
5755 (pass_local_pure_const::execute): Update.
5756
5757 2016-05-04 Marek Polacek <polacek@redhat.com>
5758
5759 * doc/invoke.texi: Document -Wdangling-else.
5760
5761 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5762
5763 * config.gcc: Error out when conflicting multilib is detected. Do not
5764 loop over multilibs since no combination is legal.
5765
5766 2016-05-04 Alan Modra <amodra@gmail.com>
5767
5768 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
5769 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
5770 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
5771 Align .toc.
5772
5773 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
5774
5775 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
5776 Clean up p5600 comments.
5777
5778 2016-05-04 Richard Biener <rguenther@suse.de>
5779
5780 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
5781 constructor simplifications.
5782 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
5783
5784 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
5785
5786 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
5787 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
5788 result.set_rtx is null instead of aborting.
5789 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
5790 Always enable.
5791 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
5792 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
5793 *mov<mode>_store_postinc): New patterns.
5794
5795 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
5796
5797 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
5798 as commutative. Check both conversions are NOP.
5799 ((A & B) OP (C & B)): Remove.
5800
5801 2016-05-04 Alan Modra <amodra@gmail.com>
5802
5803 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
5804
5805 2016-05-04 Alan Modra <amodra@gmail.com>
5806
5807 PR target/70866
5808 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
5809 when cr2,3,4 are all fixed regs.
5810
5811 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
5812
5813 PR rtl-optimization/57193
5814 * opts.c (default_options_table): Revert OPT_frename_registers change.
5815 * doc/invoke.texi (-frename-registers, -O2): Likewise.
5816
5817 2016-05-03 Martin Sebor <msebor@redhat.com>
5818
5819 PR c++/66561
5820 * builtins.c (fold_builtin_FILE): New function.
5821 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
5822 (fold_builtin_0): Call them.
5823 * gimplify.c (gimplify_call_expr): Remove the handling of
5824 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
5825
5826 PR c++/66561
5827 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
5828 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
5829 constants.
5830
5831 PR c++/66639
5832 * doc/extend.texi (Function Names as Strings): Update __func__,
5833 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
5834 constants.
5835
5836 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5837 Richard Biener <rguenther@suse.de>
5838
5839 PR tree-optimization/70916
5840 * tree-if-conv.c: Include cfganal.h.
5841 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
5842 and remove_fake_exit_edges around the optimization pass.
5843
5844 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
5845
5846 * cgraph.c (symbol_table::create_edge): Set inline_failed.
5847 (cgraph_edge::make_direct): Likewise.
5848 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
5849 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
5850 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
5851 (CIF_THUNK): New code.
5852 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
5853 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
5854 (compute_inline_parameters): Set inline_failed for thunks.
5855 (inline_analyze_function): Cleanup.
5856 * ipa-inline.c (can_inline_edge_p): Do not deal with
5857 call_stmt_cannot_inline_p.
5858 (can_early_inline_edge_p): Likewise.
5859 (early_inliner): Initialize inline_failed.
5860 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
5861
5862 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
5863
5864 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
5865 from nonimm_ssenomem_operand.
5866 (nonimm_ssenomem_operand): New predicate.
5867 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
5868 as operand 0 predicate.
5869 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
5870 Disable unsupported alternatives using "enabled" attribute.
5871 Use register_ssemem_operand as operand 0 predicate.
5872 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
5873
5874 2016-05-03 Marek Polacek <polacek@redhat.com>
5875
5876 PR c/70859
5877 * input.c (expansion_point_location): New function.
5878 * input.h (expansion_point_location): Declare.
5879
5880 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
5881
5882 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
5883 occurence with frame_offset_ ones.
5884
5885 2016-05-03 Alan Modra <amodra@gmail.com>
5886
5887 PR rtl-optimization/70890
5888 * ira.c (combine_and_move_insns): When moving def_insn, remove
5889 equivs on use_insn.
5890
5891 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
5892
5893 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
5894 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
5895 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
5896 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
5897
5898 2016-05-03 Alan Modra <amodra@gmail.com>
5899
5900 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
5901 for SAVE_MULTIPLE/STORE_MULTIPLE.
5902
5903 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5904
5905 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
5906 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
5907
5908 2016-05-03 Richard Biener <rguenther@suse.de>
5909
5910 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
5911 default true.
5912 (gimplify_arg): Likewise.
5913 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
5914 re-writing the result to a decl if required.
5915 (internal_get_tmp_var): Add allow_ssa parameter
5916 and override into_ssa with it.
5917 (get_formal_tmp_var): Adjust.
5918 (get_initialized_tmp_var): Add allow_ssa parameter.
5919 (gimplify_arg): Add allow_ssa parameter and avoid generating
5920 SSA names for the result false.
5921 (gimplify_call_expr): If the call may return twice do not
5922 gimplify parameters into SSA.
5923 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
5924 (gimplify_modify_expr): Adjust assert. For noreturn calls
5925 with a SSA name LHS adjust its def.
5926 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
5927 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
5928 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
5929 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
5930 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
5931 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
5932 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
5933 (optimize_target_teams): Do not allow SSA names for clause operands.
5934 (gimplify_expr): Likewise for where we mark the result addressable.
5935 * passes.def (pass_init_datastructures): Remove.
5936 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
5937 (rewrite_stmt): Likewise.
5938 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
5939 (replace_locals_op): Replace SSA names.
5940 (copy_gimple_seq_and_replace_locals): Init src_cfun.
5941 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
5942 * cgraph.c (release_function_body): Free CFG annotations only
5943 when we have a CFG. Simplify.
5944 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
5945 force_gimple_operand instead of get_initialized_tmp_var.
5946 * tree-pass.h (make_pass_init_datastructures): Remove.
5947 * tree-ssa.c (execute_init_datastructures): Remove.
5948 (pass_data_init_datastructures): Likewise.
5949 (class pass_init_datastructures): Likewise.
5950 (make_pass_init_datastructures): Likewise.
5951 * omp-low.c (create_omp_child_function): Init SSA data structures.
5952 (grid_expand_target_grid_body): Likewise.
5953 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
5954 name before adding it to names_to_release.
5955 (remove_bb): Always release SSA defs.
5956 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
5957 before dereferencing it.
5958 * cgraphunit.c (init_lowered_empty_function): Always
5959 int SSA data structures.
5960 * tree-ssanames.c (release_defs): Remove assert that we are in
5961 SSA form.
5962 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
5963
5964 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5965 Uros Bizjak <ubizjak@gmail.com>
5966
5967 PR rtl-optimization/70467
5968 * config/i386/predicates.md (x86_64_hilo_int_operand,
5969 x86_64_hilo_general_operand): New predicates.
5970 * config/i386/constraints.md (Wd): New constraint.
5971 * config/i386/i386.md (mode attr di): Use Wd instead of e.
5972 (general_hilo_operand): New mode attr.
5973 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
5974 instead of <general_operand>.
5975 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
5976 x86_64_hilo_general_operand instead of <general_operand>.
5977
5978 2016-05-03 Jakub Jelinek <jakub@redhat.com>
5979
5980 PR tree-optimization/70916
5981 * tree-if-conv.c (constant_or_ssa_name): Removed.
5982 (fold_build_cond_expr): Use is_gimple_val instead of
5983 constant_or_ssa_name.
5984
5985 PR tree-optimization/70916
5986 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
5987 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
5988
5989 PR target/49244
5990 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
5991 (optimize_atomic_bit_test_and): New function.
5992 (pass_fold_builtins::execute): Use it.
5993 * optabs.def (atomic_bit_test_and_set_optab,
5994 atomic_bit_test_and_complement_optab,
5995 atomic_bit_test_and_reset_optab): New optabs.
5996 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
5997 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
5998 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
5999 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
6000 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
6001 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
6002 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
6003 * doc/md.texi (atomic_bit_test_and_set@var{mode},
6004 atomic_bit_test_and_complement@var{mode},
6005 atomic_bit_test_and_reset@var{mode}): Document.
6006 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
6007 atomic_bit_test_and_complement<mode>,
6008 atomic_bit_test_and_reset<mode>): New expanders.
6009 (atomic_bit_test_and_set<mode>_1,
6010 atomic_bit_test_and_complement<mode>_1,
6011 atomic_bit_test_and_reset<mode>_1): New insns.
6012
6013 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
6014
6015 PR rtl-optimization/70687
6016 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
6017 instead of unsigned HOST_WIDE_INT.
6018
6019 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
6020
6021 PR rtl-optimization/44281
6022 * hard-reg-set.h (struct target_hard_regs): New field
6023 x_fixed_nonglobal_reg_set.
6024 (fixed_nonglobal_reg_set): New macro.
6025 * reginfo.c (init_reg_sets_1): Initialize it.
6026 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
6027 of fixed_reg_set.
6028 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
6029
6030 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6031
6032 PR tree-optimization/56541
6033 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
6034 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6035 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
6036 (any_complicated_phi): new static variable.
6037 (aggressive_if_conv): delete.
6038 (if_convertible_phi_p): support phis with more than two arguments.
6039 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
6040 critical pred edges.
6041 (ifcvt_split_critical_edges): support phis with more than two
6042 arguments by checking new parameter. only split critical edges
6043 if needed.
6044 (tree_if_conversion): handle simd pragma marked loop using new
6045 local variable aggressive_if_conv. check any_complicated_phi.
6046
6047 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6048
6049 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
6050 before using it.
6051
6052 2016-05-03 Bin Cheng <bin.cheng@arm.com>
6053
6054 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
6055 cbase.
6056
6057 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6058
6059 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
6060 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
6061 define_insn_and_split.
6062 (mulsi3_i): New define_insn_and_split.
6063 (mulsi3_call): Convert to define_insn.
6064 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
6065 Remove constraints.
6066
6067 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6068
6069 * machmode.h (mode_complex): Add support to give the complex mode
6070 for a given mode.
6071 (GET_MODE_COMPLEX_MODE): Likewise.
6072 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
6073 stored by build_complex_type and gfc_build_complex_type instead of
6074 trying to figure out the appropriate mode based on the size. Raise
6075 an assertion error, if the type was not set.
6076 * genmodes.c (struct mode_data): Add field for the complex type of
6077 the given type.
6078 (blank_mode): Likewise.
6079 (make_complex_modes): Remember the complex mode created in the
6080 base type.
6081 (emit_mode_complex): Write out the mode_complex array to map a
6082 type mode to the complex version.
6083 (emit_insn_modes_c): Likewise.
6084 * tree.c (build_complex_type): Set the complex type to use before
6085 calling layout_type.
6086 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
6087 support for __float128 complex datatypes.
6088 (rs6000_hard_regno_mode_ok): Likewise.
6089 (rs6000_setup_reg_addr_masks): Likewise.
6090 (rs6000_complex_function_value): Likewise.
6091 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
6092 __float128 and __ibm128 complex.
6093 (FLOAT128_IBM_P): Likewise.
6094 (ALTIVEC_ARG_MAX_RETURN): Likewise.
6095 * doc/extend.texi (Additional Floating Types): Document that
6096 -mfloat128 must be used to enable __float128. Document complex
6097 __float128 and __ibm128 support.
6098
6099 2016-05-02 Jakub Jelinek <jakub@redhat.com>
6100
6101 PR target/49244
6102 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
6103 char/short arguments promoted to int because of promote_prototypes.
6104
6105 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
6106
6107 * config/i386/predicates.md (register_ssemem_operand): New predicate.
6108 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
6109 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
6110 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
6111 alternatives using "enabled" attribute. Use register_ssemem_operand
6112 as operand 1 predicate.
6113 (*cmpi<unord>xf_i387): Split XFmode pattern from
6114 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
6115 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
6116 *absneg<mode>2_i387. Disable unsupported alternatives using
6117 "enabled" attribute.
6118 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
6119
6120 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6121
6122 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
6123 marker.
6124 (oacc_loop_process): Check mask for loop termination.
6125
6126 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
6127
6128 * cif-code.def (CIF_THUNK): Add.
6129 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
6130 accidental change.
6131
6132 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
6133
6134 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
6135 (dump_inline_summary): Dump it.
6136 (fp_expression_p): New predicate.
6137 (estimate_function_body_sizes): Use it.
6138 (inline_merge_summary): Merge fp_expressions.
6139 (inline_read_section): Read fp_expressions.
6140 (inline_write_summary): Write fp_expressions.
6141 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
6142 codegen boundary if either caller or callee is !fp_expressions.
6143 * ipa-inline.h (inline_summary): Add fp_expressions.
6144 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
6145 to fp_expressions be sure the fp generation flags are updated.
6146
6147 2016-05-02 Jakub Jelinek <jakub@redhat.com>
6148
6149 PR rtl-optimization/70467
6150 * cse.c (cse_insn): Handle no-op MEM moves after folding.
6151
6152 PR rtl-optimization/70467
6153 * ipa-pure-const.c (check_call): Handle internal calls even in
6154 ipa mode like in local mode.
6155
6156 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6157
6158 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
6159
6160 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
6161
6162 * match.pd (X u< X, X u> X): New transformations.
6163
6164 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
6165
6166 * flag-types.h (enum warn_strict_overflow_code): Move ...
6167 * coretypes.h: ... here.
6168 * fold-const.h (fold_overflow_warning): Declare.
6169 * fold-const.c (fold_overflow_warning): Make non-static.
6170 (fold_comparison): Move the transformation of X +- C1 CMP C2
6171 into X CMP C2 -+ C1 ...
6172 * match.pd: ... here.
6173 * gimple-fold.c (fold_stmt_1): Protect with
6174 fold_defer_overflow_warnings.
6175
6176 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
6177
6178 * omp-low.c (struct oacc_loop): Add 'inner' field.
6179 (new_oacc_loop_raw): Initialize it to zero.
6180 (oacc_loop_fixed_partitions): Initialize it.
6181 (oacc_loop_auto_partitions): Partition outermost loop to outermost
6182 available partitioning.
6183
6184 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6185
6186 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
6187 register_operand.
6188 (umulsidi3): Likewise.
6189 (indirect_jump): Fix jump instruction assembly patterns.
6190
6191 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
6192
6193 PR target/70860
6194 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
6195 (nvptx_function_value): Assert non-NULL cfun.
6196
6197 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
6198
6199 PR rtl-optimization/70886
6200 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
6201
6202 * cselib.h (rtx_equal_for_cselib_1): Declare.
6203 (rtx_equal_for_cselib_p: New inline function.
6204 * cselib.c (rtx_equal_for_cselib_p): Delete.
6205 (rtx_equal_for_cselib_1): Make public.
6206
6207 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
6208
6209 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
6210 (register_mixssei387nonimm_operand): Remove predicate.
6211 * config/i386/i386.md (*fop_<mode>_comm): Merge from
6212 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
6213 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
6214 for TARGET_MIX_SSE_I387 alternatives.
6215 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
6216 Disable unsupported alternatives using "enabled" attribute. Use
6217 nonimm_ssenomem_operand as operand 1 predicate. Also check
6218 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
6219
6220 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6221
6222 * tree.c (cst_and_fits_in_hwi): Simplify.
6223
6224 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6225
6226 * tree.h (wi::to_wide): New function.
6227 * expr.c (expand_expr_real_1): Use wi::to_wide.
6228 * fold-const.c (int_const_binop_1): Likewise.
6229 (extract_muldiv_1): Likewise.
6230
6231 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6232
6233 * wide-int.h: Update offset_int and widest_int documentation.
6234 (WI_SIGNED_SHIFT_RESULT): New macro.
6235 (wi::binary_shift): Define signed_shift_result_type for
6236 shifts on offset_int- and widest_int-like types.
6237 (generic_wide_int): Support <<= and >>= if << and >> are supported.
6238 * tree.h (int_bit_position): Use shift operators instead of wi::
6239 shifts.
6240 * alias.c (adjust_offset_for_component_ref): Likewise.
6241 * expr.c (get_inner_reference): Likewise.
6242 * fold-const.c (fold_comparison): Likewise.
6243 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
6244 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
6245 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6246 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6247 (stmt_kills_ref_p): Likewise.
6248 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
6249 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
6250 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6251 (ao_ref_init_from_vn_reference): Likewise.
6252
6253 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
6254
6255 * wide-int.h: Update offset_int and widest_int documentation.
6256 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
6257 (wi::binary_traits): Allow ordered comparisons between offset_int and
6258 offset_int, between widest_int and widest_int, and between either
6259 of these types and basic C types.
6260 (operator <, <=, >, >=): Define for the same combinations.
6261 * tree.h (tree_int_cst_lt): Use comparison operators instead
6262 of wi:: comparisons.
6263 (tree_int_cst_le): Likewise.
6264 * gimple-fold.c (fold_array_ctor_reference): Likewise.
6265 (fold_nonarray_ctor_reference): Likewise.
6266 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
6267 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
6268 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
6269 * tree-sra.c (completely_scalarize): Likewise.
6270 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
6271 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
6272 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
6273 (check_for_binary_op_overflow): Likewise.
6274 (search_for_addr_array): Likewise.
6275 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
6276
6277 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6278
6279 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
6280 (arc_save_restore): Likewise.
6281 (arc_dwarf_register_span): Likewise.
6282 (arc_output_pic_addr_const): Initialize suffix variable.
6283
6284 2016-05-02 Martin Liska <mliska@suse.cz>
6285
6286 * symbol-summary.h (function_summary::function_summary):
6287 Remove checking assert for all cgraph nodes.
6288 (function_summary::get): Check summary_uid.
6289 (symtab_insertion): Check summary_uid.
6290
6291 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
6292
6293 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
6294 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
6295 bmaskn instruction.
6296 (arc_dwarf_register_span): Remove enum keyword.
6297 (compact_memory_operand_p): New function.
6298 * config/arc/arc.h (reg_class): Add code density register classes.
6299 (REG_CLASS_NAMES): Likewise.
6300 (REG_CLASS_CONTENTS): Likewise.
6301 * config/arc/arc.md (*movqi_insn): Add code density instructions.
6302 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
6303 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
6304 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
6305 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
6306 constraints.
6307 (h, Rcd, Rsd, Rzd): New register constraints.
6308 (T): Use compact_memory_operand_p function.
6309 * config/arc/predicates.md (compact_load_memory_operand): Remove.
6310
6311 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
6312
6313 * config/sh/sh.md (*negnegt, *movtt): Remove.
6314
6315 2016-05-02 Marek Polacek <polacek@redhat.com>
6316 Tom de Vries <tom@codesourcery.com>
6317
6318 PR tree-optimization/70700
6319 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
6320 bigger than FIRST_REF_NODE.
6321
6322 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
6323
6324 PR target/52898
6325 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
6326 TARGET_CMPEQDI_T.
6327 (prepare_cbranch_operands): Don't use scratch register. Assume that
6328 function is used when pseudos can be created.
6329 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
6330 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
6331 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
6332 define_expand. Allow it only when pseudos can be created.
6333 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
6334
6335 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
6336
6337 * config/i386/constraints.md (BC): Only allow -1 operands.
6338 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
6339 Add "enabled" attribute. Update XI mode attribute calculation.
6340 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
6341 (*movoi_internal_avx): Update XI mode attribute calculation.
6342 (*movti_internal): Ditto.
6343
6344 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
6345
6346 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
6347 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
6348
6349 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
6350
6351 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
6352 statement on instruction code. Remove trailing spaces.
6353 (altivec_expand_stv_builtin): Likewise.
6354
6355 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
6356
6357 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
6358 (TARGET_FPU_DOUBLE): Simplify.
6359 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
6360 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
6361 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
6362 with 'TARGET_FPU_DOUBLE'.
6363 * config/sh/sh.md: Likewise.
6364
6365 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
6366
6367 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
6368 SH_DIV_STR_FOR_SIZE): Remove.
6369 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
6370 SH_DIV_STR_FOR_SIZE): Remove.
6371
6372 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
6373
6374 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
6375 logical_reg_operand): Delete.
6376 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
6377 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
6378 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
6379 match_operand and match_test.
6380 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
6381 variables on their first use. Return bool values.
6382 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
6383 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
6384 arith_reg_operand for input operand. Remove empty constraints.
6385 (xorsi3): Delete.
6386 (*xorsi3_compact): Rename to xorsi3.
6387 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
6388 (*zero_extend<mode>si2_disp_mem): Update comment.
6389 (mov_nop): Delete.
6390
6391 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
6392
6393 * config/sh/t-sh: Remove SH5 support.
6394 * config.gcc: Likewise.
6395 * configure: Likewise.
6396
6397 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6398
6399 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
6400
6401 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
6402
6403 * config/sh/sh.c (register_sh_passes, sh_option_override,
6404 sh_print_operand, prepare_move_operands,
6405 sh_can_follow_jump): Remove TARGET_SH1 checks.
6406 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
6407 PROMOTE_MODE): Likewise.
6408 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
6409 movdi): Likewise.
6410
6411 2016-04-30 Alan Modra <amodra@gmail.com>
6412
6413 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
6414 restoring when fixed_reg_p, but allow out-of-line or stmw save.
6415 Check for user regs later to avoid unnecessary looping over regs.
6416 Merge user reg check with non-saved reg check. Don't force
6417 inline VR restore when static chain used.
6418 (rs6000_frame_related): Omit eh_frame info for user regs when
6419 saving.
6420 (fixed_regs_p): Delete.
6421
6422 2016-04-30 Alan Modra <amodra@gmail.com>
6423
6424 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
6425 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
6426 Update all uses.
6427
6428 2016-04-30 Alan Modra <amodra@gmail.com>
6429
6430 PR target/69645
6431 * config/rs6000/rs6000.c (fixed_reg_p): New function.
6432 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
6433 Update all uses.
6434
6435 2016-04-30 Alan Modra <amodra@gmail.com>
6436
6437 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
6438 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
6439 flag_pic test for Darwin.
6440
6441 2016-04-30 Alan Modra <amodra@gmail.com>
6442
6443 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
6444 throw_calls_crossed.
6445 (REG_FREQ_CALLS_CROSSED): Delete.
6446 (REG_N_THROWING_CALLS_CROSSED): Delete.
6447 * regstat.c (regstat_bb_compute_ri): Don't calculate
6448 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
6449 (dump_reg_info): Don't print call cross frequency.
6450 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
6451 and REG_N_THROWING_CALLS_CROSSED.
6452
6453 2016-04-30 Alan Modra <amodra@gmail.com>
6454
6455 * regs.h (struct reg_info_t): Delete live_length.
6456 (REG_LIVE_LENGTH): Delete macro.
6457 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
6458 local_live, local_processed and local_live_last_luid params.
6459 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
6460 Formatting fixes.
6461 (regstat_compute_ri): Adjust for above. Don't set
6462 REG_LIVE_LENGTH.
6463 (dump_reg_info): Don't print live length.
6464 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
6465 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
6466 Localize loop_depth var.
6467
6468 2016-04-30 Alan Modra <amodra@gmail.com>
6469
6470 * ira.c (enum valid_equiv): New.
6471 (validate_equiv_mem): Return enum.
6472 (update_equiv_mem): Create replacement in more cases.
6473 (add_store_equivs): Update validate_equiv_mem call.
6474
6475 2016-04-30 Alan Modra <amodra@gmail.com>
6476
6477 * ira.c (combine_and_move_insns): Rather than scanning insns,
6478 use DF infrastucture to find use and def insns.
6479
6480 2016-04-30 Alan Modra <amodra@gmail.com>
6481
6482 ira.c (combine_and_move_insns): Move invariant conditions..
6483 (ira.c): ..to here. Call combine_and_move_insns before
6484 add_store_equivs. Call grow_reg_equivs later. Allocate
6485 req_equiv later using max_reg_num() rather than global max_regno.
6486 (contains_replace_regs): Delete.
6487 (add_store_equivs): Remove contains_replace_regs test.
6488
6489 2016-04-30 Alan Modra <amodra@gmail.com>
6490
6491 * ira.c (struct equiv_mem_data): New.
6492 (equiv_mem, equiv_mem_modified): Delete static vars.
6493 (validate_equiv_mem_from_store): Use "data" param to communicate..
6494 (validate_equiv_mem): ..from here.
6495
6496 2016-04-30 Alan Modra <amodra@gmail.com>
6497
6498 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
6499 split out from..
6500 (update_reg_equivs): ..here. Move allocation and freeing of
6501 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
6502 end_alias_analysis to..
6503 (ira): ..here.
6504
6505 2016-04-30 Alan Modra <amodra@gmail.com>
6506
6507 * ira.c (pdx_subregs): Delete.
6508 (struct equivalence): Add pdx_subregs field.
6509 (set_paradoxical_subreg): Remove pdx_subregs param. Update
6510 pdx_subregs access.
6511 (update_equiv_regs): Don't create or free pdx_subregs. Update
6512 pdx_subregs access.
6513
6514 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6515
6516 * config/rs6000/altivec.h: Change definitions of vec_xl and
6517 vec_xst.
6518 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
6519 (LD_ELEMREV_V2DI): New.
6520 (LD_ELEMREV_V4SF): New.
6521 (LD_ELEMREV_V4SI): New.
6522 (LD_ELEMREV_V8HI): New.
6523 (LD_ELEMREV_V16QI): New.
6524 (ST_ELEMREV_V2DF): New.
6525 (ST_ELEMREV_V2DI): New.
6526 (ST_ELEMREV_V4SF): New.
6527 (ST_ELEMREV_V4SI): New.
6528 (ST_ELEMREV_V8HI): New.
6529 (ST_ELEMREV_V16QI): New.
6530 (XL): New.
6531 (XST): New.
6532 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6533 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
6534 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
6535 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
6536 (altivec_expand_builtin): Add handling for
6537 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
6538 (rs6000_invalid_builtin): Add error-checking for
6539 RS6000_BTM_P9_VECTOR.
6540 (altivec_init_builtins): Define builtins used to implement vec_xl
6541 and vec_xst.
6542 (rs6000_builtin_mask_names): Define power9-vector.
6543 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
6544 (RS6000_BTM_P9_VECTOR): Define.
6545 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
6546 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
6547 (vsx_ld_elemrev_v2df): Likewise.
6548 (vsx_ld_elemrev_v4sf): Likewise.
6549 (vsx_ld_elemrev_v4si): Likewise.
6550 (vsx_ld_elemrev_v8hi): Likewise.
6551 (vsx_ld_elemrev_v16qi): Likewise.
6552 (vsx_st_elemrev_v2df): Likewise.
6553 (vsx_st_elemrev_v2di): Likewise.
6554 (vsx_st_elemrev_v4sf): Likewise.
6555 (vsx_st_elemrev_v4si): Likewise.
6556 (vsx_st_elemrev_v8hi): Likewise.
6557 (vsx_st_elemrev_v16qi): Likewise.
6558 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
6559 grammar.
6560
6561 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
6562
6563 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
6564 out into ...
6565 (simplify_control_stmt_condition_1): ... here. Recurse into
6566 BIT_AND_EXPRs and BIT_IOR_EXPRs.
6567
6568 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
6569
6570 PR target/69810
6571 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
6572 (zero_extendqi<mode>2_dot): Revert earlier conversion from
6573 define_insn_and_split to define_insn.
6574 (zero_extendqi<mode>2_dot2): Same.
6575 (extendqi<mode>2_dot): Same.
6576 (extendqi<mode>2_dot2): Same.
6577
6578 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
6579
6580 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
6581 (probe_stack): New expander.
6582 (probe_stack_<mode>): New insn pattern.
6583
6584 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
6585
6586 * config/i386/i386.md
6587 (operations with memory inputs setting flags peephole2):
6588 Remove uneeded REG_P checks. Cleanup pattern generation.
6589
6590 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
6591
6592 * tree-vect-loop.c (vect_transform_loop): Fix
6593 nb_iterations_upper_bound computation for vectorized loop.
6594
6595 2016-04-29 Marek Polacek <polacek@redhat.com>
6596 Jakub Jelinek <jakub@redhat.com>
6597
6598 PR sanitizer/70342
6599 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
6600 TARGET_EXPR_SLOT as a base.
6601
6602 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
6605 with 'rCm2' constraints to limit possible immediate size.
6606 (*load_zeroextendqisi_update): Likewise.
6607 (*load_signextendqisi_update): Likewise.
6608 (*loadhi_update): Likewise.
6609 (*load_zeroextendhisi_update): Likewise.
6610 (*load_signextendhisi_update): Likewise.
6611 (*loadsi_update): Likewise.
6612 (*loadsf_update): Likewise.
6613
6614 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
6615
6616 * config/i386/predicates.md (constm1_operand): Fix comparison.
6617
6618 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
6619
6620 * testsuite/gcc.target/arc/ieee_eq.c: New test.
6621
6622 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
6623
6624 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
6625 remaining SH5 related settings.
6626 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
6627 shmedia_prepare_call_address): Delete.
6628 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
6629 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
6630 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
6631 UNSUPPORTED_SH2A): Remove m5 checks.
6632 (sh_divide_strategy_e): Remove SH5 division strategies.
6633 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
6634 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
6635
6636 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6637
6638 * config/s390/s390.c (s390_rtx_costs): Update documentation.
6639
6640 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6641
6642 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
6643 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
6644 Change lder to ldr.
6645 * config/s390/vector.md ("mov<mode>"): Likewise.
6646
6647 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
6648
6649 * config/s390/constraints.md ("U", "W"): Invoke
6650 s390_mem_constraint with "ZR" and "ZT".
6651 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
6652 addresses when using LRA. Accept also short displacements for S
6653 and T constraints. Do not check for long displacement target for
6654 S and T constraints.
6655 (s390_mem_constraint): Remove handling of U and W constraints.
6656 * config/s390/s390.md (various patterns): Remove the short
6657 displacement constraints (Q and R) if a long displacement
6658 constraint is present. Add longdisp as required CPU capability.
6659 * config/s390/vector.md: Likewise.
6660 * config/s390/vx-builtins.md: Likewise.
6661
6662 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6663
6664 PR target/60040
6665 * reload1.c (reload): Call finish_spills before
6666 restarting reload loop. Skip select_reload_regs
6667 if update_eliminables_and_spill returns true.
6668
6669 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
6670
6671 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
6672 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
6673 (umulhisi3_imm): Update predicates and constraint letters.
6674 (umulhisi3_reg): Declare instruction as commutative.
6675 * config/arc/constraints.md (J12, J16): New constraints.
6676 * config/arc/predicates.md (short_unsigned_const_operand): New
6677 predicate.
6678 (arc_short_operand): Likewise.
6679 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
6680
6681 2016-04-29 Richard Biener <rguenther@suse.de>
6682
6683 PR tree-optimization/13962
6684 PR tree-optimization/65686
6685 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
6686 * tree-ssa-alias.c (ptrs_compare_unequal): New function
6687 using PTA to compare pointers.
6688 * match.pd: Add pattern for pointer equality compare simplification
6689 using ptrs_compare_unequal.
6690
6691 2016-04-29 Richard Biener <rguenther@suse.de>
6692
6693 * stor-layout.c (layout_type): Do not build a pointer-to-element
6694 type for arrays.
6695
6696 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
6697
6698 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
6699 Use SWI mode iterator. Use general_reg_operand predicate.
6700 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
6701 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
6702 predicates.
6703
6704 2016-04-29 Jakub Jelinek <jakub@redhat.com>
6705
6706 PR middle-end/70843
6707 * fold-const.c (operand_equal_p): Don't verify hash value equality
6708 if arg0 == arg1.
6709 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
6710 and OMP_CLAUSE.
6711
6712 2016-04-28 Jakub Jelinek <jakub@redhat.com>
6713
6714 PR target/70858
6715 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
6716 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
6717 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
6718 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
6719 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
6720
6721 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6722
6723 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
6724 to info. Don't initialize separate fields to 0. Clean up
6725 formatting a bit.
6726
6727 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
6728
6729 * config/i386/i386.md (peephole2s for operations with memory inputs):
6730 Use SWI mode iterator.
6731 (peephole2s for operations with memory outputs): Ditto.
6732 Do not check for stack checking probe.
6733
6734 (probe_stack): Remove expander.
6735
6736 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6737 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
6740 operands as 32-bits.
6741
6742 2016-04-28 Jason Merrill <jason@redhat.com>
6743
6744 * gdbinit.in: Skip line-map.h.
6745
6746 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6747 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * config/arc/arc.c (arc_conditional_register_usage): Take
6750 TARGET_RRQ_CLASS into account.
6751 (arc_print_operand): Support printing 'p' and 's' operands.
6752 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
6753 as 0.
6754 (TARGET_RRQ_CLASS): Define.
6755 (IS_POWEROF2_OR_0_P): Define.
6756 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
6757 alternatives.
6758 (*tst_movb): New define_insn.
6759 (*tst): Avoid recognition if it could prevent '*tst_movb'
6760 combination; replace c/CnL with c/Chs alternative.
6761 (*tst_bitfield_tst): New define_insn.
6762 (*tst_bitfield_asr): New define_insn.
6763 (*tst_bitfield): New define_insn.
6764 (andsi3_i): Add Rrq variant.
6765 (extzv): New define_expand.
6766 (insv): New define_expand.
6767 (*insv_i): New define_insn.
6768 (*movb): New define_insn.
6769 (*movb_signed): New define_insn.
6770 (*movb_high): New define_insn.
6771 (*movb_high_signed): New define_insn.
6772 (*movb_high_signed + 1): New define_split pattern.
6773 (*mrgb): New define_insn.
6774 (*mrgb + 1): New define_peephole2 pattern.
6775 (*mrgb + 2): New define_peephole2 pattern.
6776 * config/arc/arc.opt (mbitops): New option for nps400, uses
6777 TARGET_NPS_BITOPS_DEFAULT.
6778 * config/arc/constraints.md (q): Make register class conditional.
6779 (Rrq): New register constraint.
6780 (Chs): New constraint.
6781 (Clo): New constraint.
6782 (Chi): New constraint.
6783 (Cbf): New constraint.
6784 (Cbn): New constraint.
6785 (C18): New constraint.
6786 (Cbi): New constraint.
6787
6788 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6789
6790 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
6791 dst->popcount.
6792 (bitmap_intersection_of_preds): Ditto.
6793 (bitmap_union_of_succs): Ditto.
6794 (bitmap_union_of_preds): Ditto.
6795 * sbitmap.c (do_popcount): Delete.
6796 (BITMAP_DEBUGGING): Delete.
6797 (sbitmap_verify_popcount): Delete.
6798 (sbitmap_alloc): Don't initialize the popcount field.
6799 (sbitmap_alloc_with_popcount): Delete.
6800 (sbitmap_resize): Don't resize the popcount array.
6801 (sbitmap_vector_alloc): Don't initialize the popcount field.
6802 (bitmap_copy): Don't copy the popcount array.
6803 (bitmap_clear): Don't clear the popcount array.
6804 (bitmap_clear): Delete the popcount array handling.
6805 (bitmap_ior_and_compl): Delete the popcount assert.
6806 (bitmap_not): Ditto.
6807 (bitmap_and_compl): Ditto.
6808 (bitmap_and): Delete the popcount array handling.
6809 (bitmap_xor): Ditto.
6810 (bitmap_ior): Ditto.
6811 (bitmap_or_and): Delete the popcount assert.
6812 (bitmap_and_or): Ditto.
6813 (popcount_table): Delete.
6814 (sbitmap_elt_popcount): Delete.
6815 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
6816 (bitmap_set_bit): Delete the popcount assert.
6817 (bitmap_clear_bit): Ditto.
6818 (sbitmap_free): Don't free the popcount array.
6819 (sbitmap_alloc_with_popcount): Delete declaration.
6820 (sbitmap_popcount): Ditto.
6821
6822 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6823 Andrew Burgess <andrew.burgess@embecosm.com>
6824
6825 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
6826 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
6827 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
6828 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
6829 * config/arc/arc.opt (mcmem): New option.
6830 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
6831 supply length for r/m alternative.
6832 (*extendqisi2_ac): Likewise.
6833 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
6834 r/Uex alternative.
6835 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
6836 (movhi_insn): Likewise.
6837 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
6838 (*zero_extendqihi2_i): Add r/Ucm alternative.
6839 (*zero_extendqisi2_ac): Likewise.
6840 (*zero_extendhisi2_i): Likewise.
6841 * config/arc/constraints.md (Uex): New memory constraint.
6842 (Ucm): New define_constraint.
6843 * config/arc/predicates.md (long_immediate_loadstore_operand):
6844 Return 0 for MEM with cmem_address address.
6845 (cmem_address_0): New predicates.
6846 (cmem_address_1): Likewise.
6847 (cmem_address_2): Likewise.
6848 (cmem_address): Likewise.
6849
6850 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6851
6852 * config/rs6000/rs6000.c (machine_function): Rename
6853 insn_chain_scanned_p to spe_insn_chain_scanned_p.
6854 (rs6000_stack_info): Adjust.
6855
6856 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
6857 Andrew Burgess <andrew.burgess@embecosm.com>
6858
6859 * config/arc/constraints.md (Usd): Convert to define_constraint.
6860 (Us<): Likewise.
6861 (Us>): Likewise.
6862
6863 2016-04-28 Jakub Jelinek <jakub@redhat.com>
6864
6865 PR target/70821
6866 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
6867 Add new peephole2 where the first insn is *mov<mode>_or instead of
6868 *mov<mode>_internal.
6869
6870 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
6871
6872 * tracer.c (bb_seen): Make static.
6873
6874 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
6875
6876 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
6877 support, setup defaults.
6878 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
6879 * config/arc/arc.c (arc_init): Add NPS400 support.
6880 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
6881 (TARGET_ARC700): NPS400 is also an ARC700.
6882 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
6883
6884 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
6885
6886 PR target/70668
6887 * config/nds32/nds32.md (casesi): Don't access the operands array
6888 out of bounds.
6889
6890 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
6891
6892 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
6893 (or $-1,reg peephole2): Ditto.
6894 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
6895
6896 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
6897
6898 * doc/extend.texi (Common Function Attributes) [optimize]:
6899 Discourage use of the optimize attribute.
6900
6901 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
6902
6903 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
6904 special case builtin.
6905 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
6906 ALTIVEC_BUILTIN_VEC_ADDE.
6907 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
6908 support for ALTIVEC_BUILTIN_VEC_ADDE.
6909 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
6910 for __builtin_vec_adde.
6911
6912 2016-04-28 Jakub Jelinek <jakub@redhat.com>
6913
6914 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
6915 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
6916
6917 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6918
6919 PR testsuite/70595
6920 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6921 attributes): Document cilkplus_runtime.
6922
6923 2016-04-28 Martin Jambor <mjambor@suse.cz>
6924
6925 * tree-cfg.c (verify_expr): Verify that local declarations belong to
6926 this function. Call verify_expr on MEM_REFs and bases of other
6927 handled_components.
6928
6929 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6930
6931 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
6932 for WORD_REGISTER_OPERATIONS to runtime check.
6933
6934 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6935
6936 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
6937
6938 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6939
6940 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
6941 big-endian compilation.
6942 * config/arc/arc.md (addf3): Likewise.
6943 (subdf3): Likewise.
6944 (muldf3): Likewise.
6945
6946 2016-04-28 Richard Biener <rguenther@suse.de>
6947
6948 PR tree-optimization/70840
6949 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
6950 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
6951 Mark x * pow(x,c) -> pow(x,c+1) commutative.
6952 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
6953
6954 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6955
6956 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
6957 and explain why in a comment.
6958
6959 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6960
6961 * config/arc/arc.md (cpu_facility): Add fpx variant.
6962 (subdf3): Prohibit use reverse sub when assist operations option
6963 is enabled.
6964 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
6965 instructions only when FPX is enabled.
6966 * testsuite/gcc.target/arc/trsub.c: New test.
6967
6968 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
6969
6970 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
6971 mult_operator when calculating "type" attribute.
6972 (*fop_<mode>_1_i387): Ditto.
6973 (*fop_xf_1_i387): Ditto.
6974 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
6975 Use std::swap to swap operands. Use RTL expressions to generate
6976 converted pattern.
6977
6978 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
6979 Joern Rennecke <joern.rennecke@embecosm.com>
6980
6981 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
6982 declaration.
6983 (emit_pic_move): Remove.
6984 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
6985 * config/arc/arc.c (emit_pic_move): Removed.
6986 (TARGET_HAVE_TLS): Define.
6987 (arc_conditional_register_usage): Test for arc_tp_regno.
6988 (arc_print_operand, arc_print_operand_address): Handle TLS
6989 unspecs.
6990 (arc_needs_pcl_p): New function.
6991 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
6992 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
6993 (arc_raw_symbolic_reference_mentioned_p): Likewise.
6994 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
6995 (arc_legitimize_tls_address): Likewise.
6996 (DTPOFF_ZERO_SYM): Define.
6997 (arc_legitimize_pic_address): Make it static, handle TLS cases.
6998 (arc_output_pic_addr_const): Print TLS unspecs.
6999 (prepare_pic_move): New function, replaces emit_pic_move.
7000 (arc_legitimate_constant_p): Handle TLS unspecs.
7001 (arc_legitimate_address_p): Likewise.
7002 (arc_rewrite_small_data_p): Use assert for TLS constants.
7003 (prepare_move_operands): Use prepare_pic_move.
7004 (arc_legitimize_address): Legitimize tls addresses.
7005 (arc_epilogue_uses): Check for arc_tp_regno.
7006 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
7007 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
7008 Define.
7009 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
7010 Likewise.
7011 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
7012 %(arc_tls_extra_start_spec).
7013 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
7014 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
7015 (EH_USES): Define.
7016 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
7017 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
7018 (UNSPEC_TLS_OFF): Add.
7019 (R10_REG): Define.
7020 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
7021 (get_thread_pointersi): New patterns.
7022 * config/arc/arc.opt (mtp-regno): New option.
7023 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
7024 (move_dest_operand): Likewise.
7025 * configure: Regenerate.
7026 * configure.ac: Add arc*-*-* case to test for tls.
7027 * doc/invoke.texi (ARC options): Document mtp-regno.
7028
7029 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
7030
7031 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
7032 the new ARC HS SIMD instructions.
7033 (arc_preferred_simd_mode): New function.
7034 (arc_autovectorize_vector_sizes): Likewise.
7035 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
7036 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7037 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
7038 (arc_init_builtins): Add new SIMD builtin types.
7039 (arc_split_move): Handle 64 bit vector moves.
7040 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
7041 (TARGET_PLUS_QMACW): Define.
7042 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
7043 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
7044 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
7045 (VSUBADD4H): New builtins.
7046 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
7047 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
7048
7049 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
7050 Matthias Klose <doko@debian.org>
7051
7052 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
7053
7054 2016-04-28 Richard Biener <rguenther@suse.de>
7055
7056 PR middle-end/70777
7057 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
7058 canonicalization.
7059
7060 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
7061
7062 * common/config/sh/sh-common.c: Remove SH5 support.
7063 * config/sh/constraints.md: Likewise.
7064 * config/sh/config/sh/elf.h: Likewise.
7065 * config/sh/linux.h: Likewise.
7066 * config/sh/netbsd-elf.h: Likewise.
7067 * config/sh/predicates.md: Likewise.
7068 * config/sh/sh-c.c: Likewise.
7069 * config/sh/sh-protos.h: Likewise.
7070 * config/sh/sh.c: Likewise.
7071 * config/sh/sh.h: Likewise.
7072 * config/sh/sh.md: Likewise.
7073 * config/sh/sh.opt: Likewise.
7074 * config/sh/sync.md: Likewise.
7075 * config/sh/sh64.h: Delete.
7076 * config/sh/shmedia.h: Likewise.
7077 * config/sh/shmedia.md: Likewise.
7078 * config/sh/sshmedia.h: Likewise.
7079 * config/sh/t-netbsd-sh5-64: Likewise.
7080 * config/sh/t-sh64: Likewise.
7081 * config/sh/ushmedia.h: Likewise.
7082
7083 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
7084
7085 * config/i386/i386.md (sign_extend to memory peephole2s): Use
7086 general_reg_operand instead of register_operand predicate.
7087
7088 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7089
7090 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
7091
7092 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
7093
7094 * match.pd (A - B > A, A + B < A): New transformations.
7095
7096 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
7097
7098 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
7099 which defaults to true. Emit an outer pair of parentheses only if
7100 EMIT_PARENS. When continuing a chain of && or || (or & or |),
7101 don't emit parentheses for the right-hand operand.
7102
7103 2016-04-27 Jeff Law <law@redhat.com>
7104
7105 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
7106
7107 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7108
7109 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
7110 (altivec_lvx_<mode>_internal): Document.
7111 (altivec_lvx_<mode>_2op): New define_insn.
7112 (altivec_lvx_<mode>_1op): Likewise.
7113 (altivec_lvx_<mode>_2op_si): Likewise.
7114 (altivec_lvx_<mode>_1op_si): Likewise.
7115 (altivec_stvx_<mode>): Remove.
7116 (altivec_stvx_<mode>_internal): Document.
7117 (altivec_stvx_<mode>_2op): New define_insn.
7118 (altivec_stvx_<mode>_1op): Likewise.
7119 (altivec_stvx_<mode>_2op_si): Likewise.
7120 (altivec_stvx_<mode>_1op_si): Likewise.
7121 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7122 Expand vec_ld and vec_st during parsing.
7123 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
7124 changes.
7125 (altivec_expand_stvx_be): Likewise.
7126 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
7127 address-masking behavior in RTL.
7128 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
7129 address-masking behavior in RTL.
7130 (altivec_expand_builtin): Change builtin code arguments for calls
7131 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
7132 (insn_is_swappable_p): Avoid incorrect swap optimization in the
7133 presence of lvx/stvx patterns.
7134 (alignment_with_canonical_addr): New function.
7135 (alignment_mask): Likewise.
7136 (find_alignment_op): Likewise.
7137 (recombine_lvx_pattern): Likewise.
7138 (recombine_stvx_pattern): Likewise.
7139 (recombine_lvx_stvx_patterns): Likewise.
7140 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
7141 stvx patterns from expand.
7142 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
7143 expansions.
7144 (vector_altivec_store_<mode>): Likewise.
7145
7146 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
7147
7148 * config/aarch64/aarch64.md
7149 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
7150 remove the "fp" attributes.
7151 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
7152 add the "simd" attributes.
7153 (*movdf_aarch64): Likewise.
7154 (*movtf_aarch64): Remove the "fp" attributes.
7155 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
7156 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
7157
7158 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7159
7160 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
7161 rtx to rtx_code_label *.
7162 * rtl.h (maybe_set_first_label_num): Likewise.
7163
7164 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7165
7166 * df-core.c (df_add_problem): Make the problem param be const.
7167 (df_remove_problem): Make local "problem" be const.
7168 * df-problems.c (problem_RD): Make const.
7169 (problem_LR): Likewise.
7170 (problem_LIVE): Likewise.
7171 (problem_MIR): Likewise.
7172 (problem_CHAIN): Likewise.
7173 (problem_WORD_LR): Likewise.
7174 (problem_NOTE): Likewise.
7175 (problem_MD): Likewise.
7176 * df-scan.c (problem_SCAN): Likewise.
7177 * df.h (struct df_problem): Make field "dependent_problem" be
7178 const.
7179 (struct dataflow): Likewise for field "problem".
7180 (df_add_problem): Make param const.
7181
7182 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
7183
7184 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
7185 inter-unit moves to/from vector registers are enabled. Do not disable
7186 for TARGET_MMX.
7187
7188 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7189
7190 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
7191 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
7192 #define to...
7193 (enum df_problem_id): ...this new enum.
7194 (struct df_problem): Convert field "id" from "int" to
7195 enum df_problem_id.
7196
7197 2016-04-27 David Malcolm <dmalcolm@redhat.com>
7198
7199 * rtl.def: Update comment for "things in the instruction chain" to
7200 reflect the removal of the leading "i" field for INSN_UID in
7201 r210360. Fix bogus apostrophe.
7202
7203 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
7204
7205 * config/i386/i386.md
7206 (lea arith with mem operand + setcc peephole2): Set operator mode.
7207
7208 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
7209
7210 PR target/70155
7211 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
7212 (dimode_scalar_to_vector_candidate_p): This.
7213 (timode_scalar_to_vector_candidate_p): New function.
7214 (scalar_to_vector_candidate_p): Likewise.
7215 (timode_check_non_convertible_regs): Likewise.
7216 (timode_remove_non_convertible_regs): Likewise.
7217 (remove_non_convertible_regs): Likewise.
7218 (remove_non_convertible_regs): Renamed to ...
7219 (dimode_remove_non_convertible_regs): This.
7220 (scalar_chain::~scalar_chain): Make it virtual.
7221 (scalar_chain::compute_convert_gain): Make it pure virtual.
7222 (scalar_chain::mark_dual_mode_def): Likewise.
7223 (scalar_chain::convert_insn): Likewise.
7224 (scalar_chain::convert_registers): Likewise.
7225 (scalar_chain::add_to_queue): Make it protected.
7226 (scalar_chain::emit_conversion_insns): Likewise.
7227 (scalar_chain::replace_with_subreg): Likewise.
7228 (scalar_chain::replace_with_subreg_in_insn): Likewise.
7229 (scalar_chain::convert_op): Likewise.
7230 (scalar_chain::convert_reg): Likewise.
7231 (scalar_chain::make_vector_copies): Likewise.
7232 (scalar_chain::convert_registers): New pure virtual function.
7233 (class dimode_scalar_chain): New class.
7234 (class timode_scalar_chain): Likewise.
7235 (scalar_chain::mark_dual_mode_def): Renamed to ...
7236 (dimode_scalar_chain::mark_dual_mode_def): This.
7237 (timode_scalar_chain::mark_dual_mode_def): New function.
7238 (timode_scalar_chain::convert_insn): Likewise.
7239 (dimode_scalar_chain::convert_registers): Likewise.
7240 (scalar_chain::compute_convert_gain): Renamed to ...
7241 (dimode_scalar_chain::compute_convert_gain): This.
7242 (scalar_chain::replace_with_subreg): Renamed to ...
7243 (dimode_scalar_chain::replace_with_subreg): This.
7244 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
7245 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
7246 (scalar_chain::make_vector_copies): Renamed to ...
7247 (dimode_scalar_chain::make_vector_copies): This.
7248 (scalar_chain::convert_reg): Renamed to ...
7249 (dimode_scalar_chain::convert_reg ): This.
7250 (scalar_chain::convert_op): Renamed to ...
7251 (dimode_scalar_chain::convert_op): This.
7252 (scalar_chain::convert_insn): Renamed to ...
7253 (dimode_scalar_chain::convert_insn): This.
7254 (scalar_chain::convert): Call convert_registers.
7255 (convert_scalars_to_vector): Change to scalar_chain pointer to
7256 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
7257 in 32-bit mode. Delete scalar_chain pointer. Call
7258 free_dominance_info in 64-bit mode.
7259 (pass_stv::gate): Remove TARGET_64BIT check.
7260 (ix86_option_override): Put the 64-bit STV pass before the CSE
7261 pass.
7262
7263 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
7264
7265 * dwarf2out.h (struct dw_loc_descr_node): Remove the
7266 dw_loc_frame_offset field.
7267 * dwarf2out.c (new_loc_descr): Likewise.
7268 (resolve_args_picking_1): Turn the VISITED hash set into a
7269 FRAME_OFFSET hash map. Use it to associate a frame offset to
7270 visited nodes. Remove uses of the CHECKING_P macro.
7271 (resolve_args_picking): Update call to resolve_args_picking_1.
7272
7273 2016-04-27 Martin Liska <mliska@suse.cz>
7274
7275 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
7276 (free_loop_data): Release vuses of groups.
7277
7278 2016-04-27 Bin Cheng <bin.cheng@arm.com>
7279
7280 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
7281 instead of redundant use_id and boolean have_use_for.
7282 (struct iv_use): Change sub_id into group_id. Remove field next.
7283 Move fields: related_cands, n_map_members, cost_map and selected
7284 to ...
7285 (struct iv_group): ... here. New structure.
7286 (struct iv_common_cand): Use structure declaration directly.
7287 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
7288 (MAX_CONSIDERED_USES): Rename macro to ...
7289 (MAX_CONSIDERED_GROUPS): ... here.
7290 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
7291 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
7292 (dump_uses): Rename to ...
7293 (dump_groups): ... here. Update all uses.
7294 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
7295 (find_induction_variables): Refactor format of dump information.
7296 (record_sub_use): Delete.
7297 (record_use): Update all uses.
7298 (record_group): New function.
7299 (record_group_use, find_interesting_uses_op): Call above functions.
7300 Update all uses.
7301 (find_interesting_uses_cond): Ditto.
7302 (group_compare_offset): New function.
7303 (split_all_small_groups): Rename to ...
7304 (split_small_address_groups_p): ... here. Update all uses.
7305 (split_address_groups): Update all uses.
7306 (find_interesting_uses): Refactor format of dump information.
7307 (add_candidate_1): Update all uses. Remove redundant check on iv,
7308 base and step.
7309 (add_candidate, record_common_cand): Remove redundant assert.
7310 (add_iv_candidate_for_biv): Update use.
7311 (add_iv_candidate_derived_from_uses): Update all uses.
7312 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
7313 (alloc_use_cost_map): Ditto.
7314 (set_use_iv_cost, get_use_iv_cost): Rename to ...
7315 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
7316 (determine_use_iv_cost_generic): Ditto.
7317 (determine_group_iv_cost_generic): Ditto.
7318 (determine_use_iv_cost_address): Ditto.
7319 (determine_group_iv_cost_address): Ditto.
7320 (determine_use_iv_cost_condition): Ditto.
7321 (determine_group_iv_cost_cond): Ditto.
7322 (determine_use_iv_cost): Ditto.
7323 (determine_group_iv_cost): Ditto.
7324 (set_autoinc_for_original_candidates): Update all uses.
7325 (find_iv_candidates): Update all uses. Refactor dump information.
7326 (determine_use_iv_costs): Ditto.
7327 (determine_iv_costs): Ditto.
7328 (iv_ca_cand_for_use): Rename to ...
7329 (iv_ca_cand_for_group): ... here. Update all uses.
7330 (iv_ca_add_use, iv_ca_add_group): Ditto.
7331 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
7332 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
7333 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
7334 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
7335 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
7336 (create_new_iv, adjust_iv_update_pos): Ditto.
7337 (rewrite_use_address): Delete.
7338 (rewrite_use_address_1): Rename to ...
7339 (rewrite_use_address): ... here.
7340 (rewrite_use_compare): Update all uses.
7341 (rewrite_use): Delete.
7342 (rewrite_uses): Rename to ...
7343 (rewrite_groups): ... here. Update all uses.
7344 (remove_unused_ivs, free_loop_data): Update all uses.
7345 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
7346
7347 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7348
7349 * rtlanal.c (nonzero_bits1): Convert preprocessor check
7350 for WORD_REGISTER_OPERATIONS to runtime check.
7351
7352 2016-04-27 Richard Biener <rguenther@suse.de>
7353
7354 PR ipa/70760
7355 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
7356 aggregate_value_p to determine if a function result is
7357 returned by reference.
7358 (ipa_pta_execute): Functions having their address taken are
7359 not automatically nonlocal.
7360
7361 2016-04-27 Jakub Jelinek <jakub@redhat.com>
7362
7363 PR sanitizer/70683
7364 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
7365 * fold-const.c (operand_equal_p): If flag_checking and
7366 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
7367 and if it returns non-zero, assert iterative_hash_expr on both
7368 args is the same.
7369
7370 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
7371
7372 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
7373
7374 2016-04-27 Nick Clifton <nickc@redhat.com>
7375
7376 PR middle-end/49889
7377 * varasm.c (merge_weak): Generate an error if an attempt is made
7378 to convert a non-weak static function into a weak, public function.
7379
7380 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7381
7382 * params.def (MAX_PARTITION_SIZE): New param.
7383 * doc/invoke.texi: Document lto-max-partition.
7384
7385 2016-04-27 Richard Biener <rguenther@suse.de>
7386
7387 PR ipa/70785
7388 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
7389 function cummulating used_from_other_partition, externally_visible
7390 and force_output from aliases.
7391 (refered_from_nonlocal_var): Likewise.
7392 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
7393 node flags properly.
7394
7395 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
7396
7397 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
7398 (-Wmemset-elt-size): New item.
7399
7400 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
7401
7402 PR ada/70759
7403 * stor-layout.h (internal_reference_types): Delete.
7404 * stor-layout.c (reference_types_internal): Likewise.
7405 (internal_reference_types): Likewise.
7406 (layout_type) <REFERENCE_TYPE>: Adjust.
7407
7408 2016-04-27 Jakub Jelinek <jakub@redhat.com>
7409
7410 PR sanitizer/70683
7411 * tree.h (inchash::add_expr): Add FLAGS argument.
7412 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
7413 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
7414 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
7415 Formatting fix. Adjust recursive calls. For tcc_comparison,
7416 if swap_tree_comparison (code) is smaller than code, hash that
7417 and arguments in the other order. Hash CONVERT_EXPR the same
7418 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
7419 of ADDR_EXPR of decl as the decl itself. Add or remove
7420 OEP_ADDRESS_OF from recursive flags as needed. For
7421 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
7422 operands commutatively and only the third one normally.
7423 For internal CALL_EXPR hash in CALL_EXPR_IFN.
7424
7425 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
7426
7427 * config/rtems.h (LIB_SPEC): Add -latomic.
7428
7429 2016-04-27 Joel Sherrill <joel@rtems.org>
7430
7431 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
7432 xilink.ld and flags not relevant to RTEMS.
7433
7434 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7435
7436 * toplev.c (backend_init_target): Avoid calling init_reload when using
7437 LRA.
7438
7439 2016-04-26 Jakub Jelinek <jakub@redhat.com>
7440
7441 * reorg.c (try_merge_delay_insns): Declare i and j inside the
7442 for loops rather than one for the whole function.
7443
7444 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
7445
7446 * match.pd (X + CST CMP X): New transformation.
7447
7448 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
7449
7450 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
7451 * fold-const.c (fold_binary_loc): Remove 2 transformations
7452 superseded by match.pd.
7453 * match.pd (x+x -> x*2): Generalize to integers.
7454
7455 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
7456
7457 * config/i386/i386.md (operation on memory peephole): Duplicate an
7458 existing peephole and adapt it to match lea rather than an operation
7459 that clobbers CC.
7460
7461 PR rtl-optimization/57193
7462 * opts.c (default_options_table): Add OPT_frename_registers at -O2
7463 and above.
7464 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
7465
7466 2016-04-26 Bin Cheng <bin.cheng@arm.com>
7467
7468 * tree-if-conv.c (any_pred_load_store): New static variable.
7469 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
7470 any_pred_load_store instead of and_mask_load_store.
7471 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
7472 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
7473 (combine_blocks, tree_if_conversion): Ditto.
7474
7475 2016-04-26 Bin Cheng <bin.cheng@arm.com>
7476
7477 PR tree-optimization/70771
7478 PR tree-optimization/70775
7479 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
7480 virtual PHI nodes. Delete parameter.
7481 (if_convertible_loop_p_1): Delete argument to above function.
7482 (predicate_all_scalar_phis): Delete code handling single-argument
7483 PHIs.
7484 (tree_if_conversion): Mark and update virtual SSA.
7485
7486 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7487
7488 PR target/61821
7489 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
7490 (x86_elf_aligned_common): Rename to ...
7491 (x86_elf_aligned_decl_common): ... this.
7492 Add decl arg. Switch to .lbss for largecomm object. Use
7493 LARGECOMM_SECTION_ASM_OP.
7494 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
7495 renaming.
7496 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
7497 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
7498 Pass new decl arg.
7499 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7500 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
7501
7502 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7503
7504 PR target/59407
7505 * config/i386/i386.c (SECTION_LARGE): Define.
7506 (x86_64_elf_select_section): Set it for large data/bss sections.
7507 Only clear SECTION_WRITE for .lrodata.
7508 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
7509 data/bss sections.
7510 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
7511 * varasm.c (default_elf_asm_named_section): Grow flagchars.
7512 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
7513 SECTION_MACH_DEP.
7514 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
7515 * doc/tm.texi: Regenerate.
7516
7517 2016-04-26 Jakub Jelinek <jakub@redhat.com>
7518
7519 PR bootstrap/70704
7520 * configure.ac (--enable-checking): Document extra flag, for
7521 non-release builds default to --enable-checking=yes,extra.
7522 If misc checking and extra checking, define CHECKING_P to 2 instead
7523 of 1.
7524 * common.opt (fchecking=): Add.
7525 * doc/invoke.texi (-fchecking=): Document.
7526 * doc/install.texi: Document --enable-checking changes.
7527 * configure: Regenerated.
7528 * config.in: Regenerated.
7529
7530 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
7531
7532 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
7533 attribute instead of which_alternative.
7534 * config/i386/sse.md (*mov<mode>_internal): Ditto.
7535 Use EXT_REX_SSE_REG_P where appropriate.
7536
7537 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
7538
7539 * config/i386/predicates.md (const0_operand): Do not match
7540 const_wide_int code.
7541 (const1_operand): Ditto.
7542
7543 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
7544
7545 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
7546 for SSE constm1 operands and TARGET_AVX512VL.
7547 (*movti_internal): Ditto.
7548 (*mov<mode>_or): Use constm1_operand predicate.
7549 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
7550 for SSE vector_all_ones operands and TARGET_AVX512VL.
7551 * config/i386/predicates.md (constm1_operand): New predicate.
7552 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
7553 emission of constant -1 load.
7554
7555 2016-04-25 Jason Merrill <jason@redhat.com>
7556
7557 * gdbinit.in: Skip is-a.h.
7558
7559 * attribs.c (register_scoped_attributes): Fix logic.
7560 * attribs.h: Declare register_scoped_attributes.
7561
7562 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7563
7564 * config/rs6000/rs6000-builtin.def: Correct pasto error for
7565 stxvd2x and stxvw4x built-in functions.
7566
7567 2016-04-25 DJ Delorie <dj@redhat.com>
7568
7569 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
7570 (ashrhi3): Likewise.
7571 (lshrhi3): Likewise.
7572
7573 2016-04-25 Richard Biener <rguenther@suse.de>
7574
7575 PR tree-optimization/70780
7576 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
7577 wasn't visited yet.
7578 (compute_antic): Mark blocks with abnormal preds as visited as
7579 they have a final empty antic-in solution already.
7580
7581 2016-04-25 Michael Collison <michael.collison@linaro.org>
7582
7583 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
7584
7585 2016-04-25 Michael Collison <michael.collison@linaro.org>
7586
7587 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
7588 mode is VQI to improve mixed mode vectorization.
7589 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
7590 define_insn to match low half of signed vaddw.
7591 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
7592 define_insn to match high half of signed vaddw.
7593 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
7594 define_insn to match low half of unsigned vaddw.
7595 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
7596 define_insn to match high half of unsigned vaddw.
7597 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
7598 (arm_simd_check_vect_par_cnst_half_p): Likewise.
7599 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
7600 for new function.
7601 (arm_simd_check_vect_par_cnst_half_p): Likewise.
7602 * config/arm/predicates.md (vect_par_constant_high): Support
7603 big endian and simplify by calling
7604 arm_simd_check_vect_par_cnst_half
7605 (vect_par_constant_low): Likewise.
7606
7607 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
7608
7609 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
7610 predicate for operand 2.
7611
7612 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
7613 H.J. Lu <hongjiu.lu@intel.com>
7614
7615 * config/i386/i386-protos.h (standard_sse_constant_p): Add
7616 machine_mode argument.
7617 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
7618 constm1_rtx operands. For VOIDmode constants, get mode from
7619 pred_mode. Check mode size if the mode is supported by ABI.
7620 (standard_sse_constant_opcode): Do not use standard_constant_p.
7621 Strictly check ABI support for all-ones operands.
7622 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
7623 immediates. Update calls to standard_sse_constant_p.
7624 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
7625 (ix86_rtx_costs): Ditto.
7626 * config/i386/i386.md (*movxi_internal_avx512f): Use
7627 nonimmediate_or_sse_const_operand instead of vector_move_operand.
7628 Use (v,BC) alternative instead of (v,C). Use register_operand
7629 checks instead of MEM_P.
7630 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
7631 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
7632 isa attribute. Use register_operand checks instead of MEM_P.
7633 (*movti_internal): Use nonimmediate_or_sse_const_operand for
7634 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
7635 alternative and corresponding sse2 isa attribute.
7636 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
7637 to standard_sse_constant_p.
7638 (FP constant splitters): Ditto.
7639 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
7640 (C): Ditto.
7641 * config/i386/predicates.md (constm1_operand): Remove.
7642 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
7643 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
7644 vector_all_ones_operand instead of constm1_operand.
7645
7646 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7647
7648 * print-rtl.c (print_rtx_insn_vec): New function.
7649 * print-rtl.h: New prototype.
7650 * store-motion.c (struct st_expr): Make avail_stores a vector.
7651 (st_expr_entry): Adjust.
7652 (free_st_expr_entry): Likewise.
7653 (print_store_motion_mems): Likewise.
7654 (find_moveable_store): Likewise.
7655 (compute_store_table): Likewise.
7656 (delete_store): Likewise.
7657 (build_store_vectors): Likewise.
7658
7659 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7660
7661 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
7662
7663 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7664
7665 * vec.h (vec_safe_contains): New function.
7666 (vec::contains): Likewise.
7667 (vec::begin): Likewise.
7668 (vec::end): Likewise.
7669
7670 2016-04-23 Jakub Jelinek <jakub@redhat.com>
7671
7672 PR sanitizer/70712
7673 * cfgexpand.c (expand_stack_vars): Fix typo.
7674
7675 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
7676
7677 * system.h (list, map, set, vector): Include conditionally.
7678 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
7679 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
7680 * ipa-icf.c (INCLUDE_LIST): Define.
7681 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
7682 * config/sh/sh.c (INCLUDE_VECTOR): Define.
7683 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
7684 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
7685 * cp/logic.cc (INCLUDE_LIST): Define.
7686 * fortran/trans-common.c (INCLUDE_MAP): Define.
7687
7688 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
7689
7690 * auto-profile.c: Remove <string.h> include.
7691 * ipa-icf-gimple.c: Remove <list> include.
7692 * diagnostic.c: Remove <new> include.
7693 * genmatch.c: Likewise.
7694 * pretty-print.c: Likewise.
7695 * toplev.c: Likewise
7696 * c/c-objc-common.c: Likewise.
7697 * cp/error.c: Likewise.
7698 * fortran/error.c: Likewise.
7699
7700 2016-04-22 Richard Biener <rguenther@suse.de>
7701
7702 * lto-streamer-in.c (input_ssa_names): Do not allocate
7703 GIMPLE_NOP for all SSA names.
7704 * lto-streamer-out.c (output_ssa_names): Do not output
7705 SSA names that should have been released.
7706
7707 2016-04-22 Richard Biener <rguenther@suse.de>
7708
7709 PR tree-optimization/70740
7710 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
7711 VDEF.
7712
7713 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
7714
7715 PR target/70750
7716 * config/i386/predicates.md (call_insn_operand): Replace
7717 sibcall_memory_operand with memory_operand.
7718
7719 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
7720
7721 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
7722 has_single_use() tests.
7723 (register_edge_assert_for_1): Likewise.
7724 (find_assert_locations_1): Check the liveness bitmap instead of
7725 checking has_single_use().
7726
7727 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
7728
7729 PR target/70728
7730 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
7731 Extract AVX-512BW constraint from AVX.
7732
7733 2016-04-21 Richard Biener <rguenther@suse.de>
7734
7735 PR tree-optimization/70725
7736 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
7737 for phi_convertible_by_degenerating_args.
7738 (predicate_all_scalar_phis): Handle single-argument PHIs.
7739
7740 2016-04-21 Richard Biener <rguenther@suse.de>
7741
7742 PR middle-end/70747
7743 * fold-const.c (fold_comparison): Return properly typed
7744 constant boolean.
7745
7746 2016-04-21 Bin Cheng <bin.cheng@arm.com>
7747
7748 PR tree-optimization/70715
7749 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7750 after expanding BASE using expand_simple_operations.
7751
7752 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
7753
7754 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
7755 New transformations.
7756
7757 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
7758
7759 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
7760
7761 2016-04-20 Jan Hubicka <jh@suse.cz>
7762
7763 * ipa-inline.c (can_inline_edge_p): Pass caller info to
7764 ultiimate_alias_target.
7765 (update_callee_keys): Likewise.
7766 (lookup_recursive_calls): Likewise.
7767 (speculation_useful_p): Likewise.
7768
7769 2016-04-20 Jan Hubicka <jh@suse.cz>
7770
7771 PR ipa/70018
7772 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
7773 (set_nothrow_flag_1): ... this; handle interposition correctly;
7774 recurse on aliases and thunks.
7775 (cgraph_node::set_nothrow_flag): New.
7776 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
7777 functions compiled with non-call exceptions that binds to current
7778 def.
7779 (propagate_nothrow): Be safe WRT interposition.
7780 * cgraph.h (set_nothrow_flag): Update prototype.
7781
7782 2016-04-18 Jan Hubicka <jh@suse.cz>
7783
7784 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
7785 max_loop_iterations_int.
7786 (tree_unswitch_outer_loop): Likewise.
7787
7788 2016-04-20 Bin Cheng <bin.cheng@arm.com>
7789
7790 PR tree-optimization/69489
7791 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
7792 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
7793 Revise dump message.
7794 (if_convertible_bb_p): Remove check on edge count of basic block's
7795 predecessors.
7796
7797 2016-04-20 Bin Cheng <bin.cheng@arm.com>
7798
7799 PR tree-optimization/56625
7800 PR tree-optimization/69489
7801 * tree-data-ref.h (DR_INNERMOST): New macro.
7802 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
7803 hashing struct innermost_loop_behavior.
7804 (ref_DR_map): Remove.
7805 (innermost_DR_map): New map.
7806 (baseref_DR_map): Revise comment.
7807 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
7808 to innermost_DR_map accroding to its innermost loop behavior.
7809 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
7810 to its innermost loop behavior.
7811 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
7812 Add initialization for innermost_DR_map. Record memory reference
7813 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
7814 have innermost loop behavior.
7815 (if_convertible_loop_p): Remove release for ref_DR_map. Release
7816 innermost_DR_map.
7817
7818 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
7819
7820 * config/i386/i386.md (*lea<mode>_general_1): Rename from
7821 *lea_general_1. Use explicit SWI12 mode interator.
7822 (*lea<mode>_general_2): Rename from *lea_general_2.
7823 Use explicit SWI12 mode interator.
7824 (*lea<mode>_general_3): Rename from *lea_general_3.
7825 Use explicit SWI12 mode interator.
7826 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
7827 Use explicit SWI12 mode interator.
7828 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
7829 Use explicit SWI48 mode interator.
7830
7831 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
7832
7833 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
7834 Short-cut unaligned load and store cases. Handle all integer
7835 vector modes.
7836 (ix86_expand_vector_move_misalign): Short-cut unaligned load
7837 and store cases. Call ix86_avx256_split_vector_move_misalign
7838 directly without checking mode class.
7839
7840 2016-04-20 Andrew Pinski <apinski@cavium.com>
7841 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7842
7843 PR target/64971
7844 * config/aarch64/aarch64.md (sibcall): Force call
7845 address to be DImode for ILP32.
7846 (sibcall_value): Likewise.
7847
7848 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
7849
7850 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
7851
7852 2016-04-20 Richard Biener <rguenther@suse.de>
7853
7854 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
7855 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
7856 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
7857 (maybe_push_res_to_seq): Adjust.
7858 * gimple-fold.c (maybe_build_generic_op): Likewise.
7859
7860 2016-04-20 Marek Polacek <polacek@redhat.com>
7861
7862 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
7863 rather than true.
7864
7865 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
7866
7867 * config/i386/sse.md (vec_unpacks_lo_hi): Always
7868 use kmovw to support AVX512F target.
7869
7870 2016-04-20 Bin Cheng <bin.cheng@arm.com>
7871
7872 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
7873
7874 2016-04-20 Marek Polacek <polacek@redhat.com>
7875
7876 PR tree-optimization/70725
7877 * tree-if-conv.c (is_false_predicate): New function.
7878 (predicate_mem_writes): Use it.
7879
7880 2016-04-20 Richard Biener <rguenther@suse.de>
7881
7882 PR tree-optimization/70726
7883 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
7884 shift amounts from a pattern stmt operand.
7885
7886 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7887
7888 PR target/70674
7889 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
7890 stack_restore_from_fpr pattern when restoring r15.
7891 (s390_optimize_prologue): Strip away the memory barrier in the
7892 parallel when trying to get rid of restore insns.
7893 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
7894 definition for loading the stack pointer from an FPR. Compared to
7895 the normal move insn this pattern includes a full memory barrier.
7896
7897 2016-04-19 Jakub Jelinek <jakub@redhat.com>
7898
7899 PR middle-end/70680
7900 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
7901 implicitly linear or lastprivate iterator on the outer context.
7902
7903 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
7904
7905 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
7906 alignment check.
7907 * config/i386/i386.md (ssememalign): Removed.
7908 * config/i386/sse.md: Remove ssememalign attribute from patterns.
7909
7910 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
7911
7912 PR target/69201
7913 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
7914 const short * to __builtin_ia32_loaddquhi512_mask.
7915 (_mm512_maskz_loadu_epi16): Likewise.
7916 (_mm512_mask_storeu_epi16): Pass short * to
7917 __builtin_ia32_storedquhi512_mask.
7918 (_mm512_mask_loadu_epi8): Pass const char * to
7919 __builtin_ia32_loaddquqi512_mask.
7920 (_mm512_maskz_loadu_epi8): Likewise.
7921 (_mm512_mask_storeu_epi8): Pass char * to
7922 __builtin_ia32_storedquqi512_mask.
7923 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
7924 const double * to __builtin_ia32_loadupd512_mask.
7925 (_mm512_mask_loadu_pd): Likewise.
7926 (_mm512_maskz_loadu_pd): Likewise.
7927 (_mm512_storeu_pd): Pass double * to
7928 __builtin_ia32_storeupd512_mask.
7929 (_mm512_mask_storeu_pd): Likewise.
7930 (_mm512_loadu_ps): Pass const float * to
7931 __builtin_ia32_loadups512_mask.
7932 (_mm512_mask_loadu_ps): Likewise.
7933 (_mm512_maskz_loadu_ps): Likewise.
7934 (_mm512_storeu_ps): Pass float * to
7935 __builtin_ia32_storeups512_mask.
7936 (_mm512_mask_storeu_ps): Likewise.
7937 (_mm512_mask_loadu_epi64): Pass const long long * to
7938 __builtin_ia32_loaddqudi512_mask.
7939 (_mm512_maskz_loadu_epi64): Likewise.
7940 (_mm512_mask_storeu_epi64): Pass long long *
7941 to __builtin_ia32_storedqudi512_mask.
7942 (_mm512_loadu_si512): Pass const int * to
7943 __builtin_ia32_loaddqusi512_mask.
7944 (_mm512_mask_loadu_epi32): Likewise.
7945 (_mm512_maskz_loadu_epi32): Likewise.
7946 (_mm512_storeu_si512): Pass int * to
7947 __builtin_ia32_storedqusi512_mask.
7948 (_mm512_mask_storeu_epi32): Likewise.
7949 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
7950 char * to __builtin_ia32_storedquqi256_mask.
7951 (_mm_mask_storeu_epi8): Likewise.
7952 (_mm256_mask_loadu_epi16): Pass const short * to
7953 __builtin_ia32_loaddquhi256_mask.
7954 (_mm256_maskz_loadu_epi16): Likewise.
7955 (_mm_mask_loadu_epi16): Pass const short * to
7956 __builtin_ia32_loaddquhi128_mask.
7957 (_mm_maskz_loadu_epi16): Likewise.
7958 (_mm256_mask_loadu_epi8): Pass const char * to
7959 __builtin_ia32_loaddquqi256_mask.
7960 (_mm256_maskz_loadu_epi8): Likewise.
7961 (_mm_mask_loadu_epi8): Pass const char * to
7962 __builtin_ia32_loaddquqi128_mask.
7963 (_mm_maskz_loadu_epi8): Likewise.
7964 (_mm256_mask_storeu_epi16): Pass short * to.
7965 __builtin_ia32_storedquhi256_mask.
7966 (_mm_mask_storeu_epi16): Pass short * to.
7967 __builtin_ia32_storedquhi128_mask.
7968 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
7969 const double * to __builtin_ia32_loadupd256_mask.
7970 (_mm256_maskz_loadu_pd): Likewise.
7971 (_mm_mask_loadu_pd): Pass onst double * to
7972 __builtin_ia32_loadupd128_mask.
7973 (_mm_maskz_loadu_pd): Likewise.
7974 (_mm256_mask_storeu_pd): Pass double * to
7975 __builtin_ia32_storeupd256_mask.
7976 (_mm_mask_storeu_pd): Pass double * to
7977 __builtin_ia32_storeupd128_mask.
7978 (_mm256_mask_loadu_ps): Pass const float * to
7979 __builtin_ia32_loadups256_mask.
7980 (_mm256_maskz_loadu_ps): Likewise.
7981 (_mm_mask_loadu_ps): Pass const float * to
7982 __builtin_ia32_loadups128_mask.
7983 (_mm_maskz_loadu_ps): Likewise.
7984 (_mm256_mask_storeu_ps): Pass float * to
7985 __builtin_ia32_storeups256_mask.
7986 (_mm_mask_storeu_ps): ass float * to
7987 __builtin_ia32_storeups128_mask.
7988 (_mm256_mask_loadu_epi64): Pass const long long * to
7989 __builtin_ia32_loaddqudi256_mask.
7990 (_mm256_maskz_loadu_epi64): Likewise.
7991 (_mm_mask_loadu_epi64): Pass const long long * to
7992 __builtin_ia32_loaddqudi128_mask.
7993 (_mm_maskz_loadu_epi64): Likewise.
7994 (_mm256_mask_storeu_epi64): Pass long long * to
7995 __builtin_ia32_storedqudi256_mask.
7996 (_mm_mask_storeu_epi64): Pass long long * to
7997 __builtin_ia32_storedqudi128_mask.
7998 (_mm256_mask_loadu_epi32): Pass const int * to
7999 __builtin_ia32_loaddqusi256_mask.
8000 (_mm256_maskz_loadu_epi32): Likewise.
8001 (_mm_mask_loadu_epi32): Pass const int * to
8002 __builtin_ia32_loaddqusi128_mask.
8003 (_mm_maskz_loadu_epi32): Likewise.
8004 (_mm256_mask_storeu_epi32): Pass int * to
8005 __builtin_ia32_storedqusi256_mask.
8006 (_mm_mask_storeu_epi32): Pass int * to
8007 __builtin_ia32_storedqusi128_mask.
8008 * config/i386/i386-builtin-types.def (PCSHORT): New.
8009 (PINT64): Likewise.
8010 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
8011 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
8012 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
8013 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
8014 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
8015 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
8016 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
8017 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
8018 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
8019 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
8020 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
8021 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
8022 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
8023 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
8024 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
8025 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
8026 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
8027 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
8028 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
8029 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
8030 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
8031 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
8032 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
8033 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
8034 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
8035 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
8036 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
8037 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
8038 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
8039 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
8040 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
8041 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
8042 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
8043 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
8044 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
8045 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
8046 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
8047 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
8048 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
8049 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
8050 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
8051 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
8052 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
8053 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
8054 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
8055 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
8056 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
8057 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
8058 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
8059 use UNSPEC_STOREU.
8060 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
8061 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
8062 load nor store.
8063 (ix86_expand_vector_move_misalign): Likewise.
8064 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
8065 to scalar function prototype for unaligned load/store builtins.
8066 (ix86_expand_special_args_builtin): Updated.
8067 * config/i386/sse.md (UNSPEC_LOADU): Removed.
8068 (UNSPEC_STOREU): Likewise.
8069 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
8070 (VI_ULOADSTORE_F_AVX512VL): Likewise.
8071 (ssescalarsize): Handle V4TI, V2TI and V1TI.
8072 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8073 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
8074 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
8075 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
8076 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
8077 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
8078 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
8079 (<avx512>_storedqu<mode>_mask): Likewise.
8080 (*sse4_2_pcmpestr_unaligned): Likewise.
8081 (*sse4_2_pcmpistr_unaligned): Likewise.
8082 (*mov<mode>_internal): Renamed to ...
8083 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
8084 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
8085 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
8086 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
8087
8088 2016-04-19 Richard Biener <rguenther@suse.de>
8089
8090 PR tree-optimization/70171
8091 * tree-ssa-phiprop.c: Include stor-layout.h.
8092 (phiprop_insert_phi): Handle the aggregate copy case.
8093 (propagate_with_phi): Likewise.
8094
8095 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
8096
8097 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
8098 instead of simplify_gen_subreg (... , 0).
8099 (ix86_delegitimize_address): Ditto.
8100 (ix86_split_divmod): Ditto.
8101 (ix86_split_copysign_const): Ditto.
8102 (ix86_split_copysign_var): Ditto.
8103 (ix86_expand_args_builtin): Ditto.
8104 (ix86_expand_round_builtin): Ditto.
8105 (ix86_expand_special_args_builtin): Ditto.
8106 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
8107 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
8108 (udivmodqi4): Ditto.
8109 (absneg splitters): Ditto.
8110 (*jcc_bt<mode>_1): Ditto.
8111
8112 2016-04-19 Richard Biener <rguenther@suse.de>
8113
8114 PR tree-optimization/70724
8115 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
8116 restoring out from ...
8117 (free_scc_vn): ... here.
8118 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
8119 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
8120 tail merging.
8121 (pass_fre::execute): Restore SSA info.
8122
8123 2016-04-19 Richard Biener <rguenther@suse.de>
8124
8125 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
8126 * gimple-walk.c (walk_gimple_op): Initialize it.
8127 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
8128 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
8129 remapping SSA names of defs.
8130 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
8131 adjustment.
8132
8133 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
8134
8135 PR middle-end/70689
8136 * lra-constraints.c (equiv_substition_p): New.
8137 (process_alt_operands): Use it.
8138 (swap_operands): Swap it.
8139 (curr_insn_transform): Update it.
8140
8141 2016-04-18 Michael Matz <matz@suse.de>
8142
8143 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
8144 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
8145 * tree-core.h (tree_type_common.align): Use bit-field.
8146 (tree_type_common.spare): New.
8147 (tree_decl_common.off_align): Make smaller.
8148 (tree_decl_common.align): Use bit-field.
8149
8150 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
8151 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
8152 (scan_sharing_clauses): Ditto.
8153 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8154 (omp_finish_file): Ditto.
8155 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
8156 (layout_decl): Ditto.
8157 (relayout_decl): Ditto.
8158 (finalize_record_size): Use SET_TYPE_ALIGN.
8159 (finalize_type_size): Ditto.
8160 (finish_builtin_struct): Ditto.
8161 (layout_type): Ditto.
8162 (initialize_sizetypes): Ditto.
8163 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
8164 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
8165 (lookup_field_for_decl): Use SET_DECL_ALIGN.
8166 (get_chain_field): Ditto.
8167 (get_trampoline_type): Ditto.
8168 (get_nl_goto_field): Ditto.
8169 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8170 SET_DECL_ALIGN.
8171 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
8172 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
8173 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
8174 (build_qualified_type): Use SET_TYPE_ALIGN.
8175 (build_aligned_type, build_range_type_1): Ditto.
8176 (build_atomic_base): Ditto.
8177 (build_common_tree_nodes): Ditto.
8178 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
8179 (expand_one_stack_var_at): Ditto.
8180 * coverage.c (build_var): Use SET_DECL_ALIGN.
8181 * except.c (init_eh): Ditto.
8182 * function.c (assign_parm_setup_block): Ditto.
8183 * symtab.c (increase_alignment_1): Ditto.
8184 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
8185 * tree-vect-stmts.c (ensure_base_align): Ditto.
8186 * varasm.c (align_variable): Ditto.
8187 (assemble_variable): Ditto.
8188 (build_constant_desc): Ditto.
8189 (output_constant_def_contents): Ditto.
8190
8191 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
8192 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
8193 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
8194 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
8195 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
8196
8197 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
8198
8199 PR target/70708
8200 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
8201 replace %vmovsd with "%vmovq".
8202 (vec_concatv2df): Likewise.
8203
8204 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
8205
8206 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
8207 (*vec_extractv2si_0): Ditto.
8208 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
8209 (zero_extended_scalar_load_operand splitters): Ditto.
8210 (vec_extract splitters): Ditto.
8211 (*vec_extractv4si_0_zext): Ditto.
8212 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
8213 and lowpart_subreg.
8214 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
8215 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
8216 (*sse4_1_extractps): Use lowpart_subreg.
8217 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
8218
8219 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8220
8221 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
8222 gld requirements.
8223 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
8224 Mention Solaris 11 packaging changes.
8225 Update gas and gld requirements.
8226 Remove reference to pre-Solaris 10 bug.
8227 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
8228 systems and bugs.
8229 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
8230 with cc.
8231
8232 2016-04-17 Jan Hubicka <jh@suse.cz>
8233
8234 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
8235 max_loop_iterations_int.
8236
8237 2016-04-18 Richard Biener <rguenther@suse.de>
8238
8239 PR tree-optimization/43434
8240 * tree-ssa-structalias.c (struct vls_data): New.
8241 (visit_loadstore): Handle all pointer-based accesses.
8242 (compute_dependence_clique): Compute a bitmap of restrict tags
8243 assigned bases and pass it to visit_loadstore.
8244
8245 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
8246
8247 PR target/70711
8248 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
8249 armv8.1-a and armv8.1-a+crc.
8250
8251 2016-04-18 Richard Biener <rguenther@suse.de>
8252
8253 PR tree-optimization/70701
8254 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
8255 references after translating through a memcpy.
8256
8257 2016-04-18 Richard Biener <rguenther@suse.de>
8258
8259 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
8260 (compute_antic): ... here. For partial antic use regular
8261 postorder and scrap iteration.
8262 (compute_partial_antic_aux): Remove unused return value.
8263 (init_pre): Do not allocate postorder.
8264 (fini_pre): Do not free postorder.
8265
8266 2016-04-18 Richard Biener <rguenther@suse.de>
8267
8268 PR middle-end/37870
8269 * expmed.c (extract_bit_field_1): Remove broken case
8270 using a wider MODE_INT mode.
8271
8272 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
8273
8274 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
8275 unless compiling with at least GCC-4.8.
8276
8277 2016-04-17 Jan Hubicka <jh@suse.cz>
8278
8279 PR bootstrap/70706
8280 * graphite.c (graphite_finalize): Update call to
8281 tree_estimate_probability.
8282 * predict.h (tree_estimate_probability): Update prototype.
8283
8284 2016-04-17 Jan Hubicka <jh@suse.cz>
8285
8286 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
8287 (tree_estimate_probability): Likewise.
8288 (pass_profile::execute): Update.
8289 (report_predictor_hitrates): New function.
8290 * profile.c (compute_branch_probabilities): Use it.
8291 * predict.h (report_predictor_hitrates): Declare.
8292
8293 2016-04-17 Jan Hubicka <jh@suse.cz>
8294
8295 PR ipa/70018
8296 * cgraph.h (cgraph_node::set_const_flag,
8297 cgraph_node::set_pure_flag): Update prototype to return bool;
8298 update comment.
8299 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
8300 of interposable symbol are interposable, too.
8301 (cgraph_set_const_flag_1): Rename to ...
8302 (set_const_flag_1): ... this one; change to self recursive function
8303 instead of call_for_symbol_thunks_and_aliases. Handle correctly
8304 clearnig the flag in all variants and also virtual thunks of const
8305 functions are pure; track if any change was done.
8306 (cgraph_node::set_const_flag): Update.
8307 (struct set_pure_flag_info): New struct.
8308 (cgraph_set_pure_flag_1): Rename to ...
8309 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
8310 rather than pointer encoded flags; track if any changes was done;
8311 handle correctly clearning flag and setting flag of aliases already
8312 declared const.
8313 (cgraph_node::set_pure_flag): Update.
8314 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
8315
8316 2016-04-17 Tom de Vries <tom@codesourcery.com>
8317
8318 PR other/70433
8319 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
8320 backslash in label.
8321
8322 2016-04-17 Tom de Vries <tom@codesourcery.com>
8323
8324 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
8325 '{}<> ' as escape-for-record.
8326
8327 2016-04-17 Tom de Vries <tom@codesourcery.com>
8328
8329 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
8330 structure.
8331
8332 2016-04-17 Tom de Vries <tom@codesourcery.com>
8333
8334 PR other/70185
8335 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
8336 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
8337 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
8338 * passes.c (finish_optimization_passes): Only call
8339 finish_graph_dump_file if dfi->graph_dump_initialized.
8340 (execute_function_dump, pass_init_dump_file): Use
8341 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
8342
8343 2016-04-17 Tom de Vries <tom@codesourcery.com>
8344
8345 PR tree-optimization/70256
8346 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
8347 (debug_varmap): New function.
8348
8349 2016-04-17 Tom de Vries <tom@codesourcery.com>
8350
8351 PR other/70183
8352 * passes.c (pass_manager::register_pass): Propagate pflags.
8353
8354 2016-04-17 Tom de Vries <tom@codesourcery.com>
8355
8356 PR other/68875
8357 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
8358 * passes.c (pass_manager::pass_manager): Declare and init p_start in
8359 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
8360 check if it's equal to p_start.
8361 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
8362
8363 2016-04-15 Jan Hubicka <jh@suse.cz>
8364
8365 PR ipa/70018
8366 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
8367 function does not bind to current def.
8368 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
8369 handle conservatively calls to functions that does not need to bind
8370 to current def.
8371 (check_call): Update call of worse_state.
8372 (ignore_edge_for_nothrow): Update.
8373 (ignore_edge_for_pure_const): Likewise.
8374 (propagate_pure_const): Update calls to worse_state.
8375 (skip_function_for_local_pure_const): Reformat comments.
8376
8377 2016-04-15 Jan Hubicka <jh@suse.cz>
8378
8379 PR ipa/70018
8380 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
8381 (cgraph_node::function_symbol): Likewise.
8382 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8383 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
8384 (symtab_node::ultimate_alias_target): Add REF parameter.
8385 (symtab_node::binds_to_current_def_p): Declare.
8386 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
8387 (cgraph_node::function_symbol): Likewise.
8388 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
8389 (cgraph_node::get_availability): Likewise.
8390 (cgraph_edge::binds_to_current_def_p): New inline function.
8391 (varpool_node::get_availability): Add REF parameter.
8392 (varpool_node::ultimate_alias_target): Likewise.
8393 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
8394 (symtab_node::binds_to_current_def_p): Likewise.
8395 * varpool.c (varpool_node::get_availability): Likewise.
8396
8397 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
8398
8399 PR target/70662
8400 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
8401 Fix mode size check.
8402
8403 2016-04-15 Jakub Jelinek <jakub@redhat.com>
8404
8405 * BASE-VER: Set to 7.0.0.
8406
8407 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
8408
8409 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
8410
8411 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8412
8413 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
8414 architecture revisions.
8415
8416 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
8417
8418 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
8419 * config/i386/i386.c (ix86_using_red_zone): No longer static.
8420 * config/i386/i386.md (stack decrement to push peepholes): Guard
8421 with !x86_using_red_zone ().
8422
8423 2016-04-15 Jakub Jelinek <jakub@redhat.com>
8424
8425 PR c++/70675
8426 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
8427 to dump_generic_node.
8428 (NIY): Pass also flags to do_niy.
8429
8430 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
8431
8432 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
8433 (simd_clone_vector_of_formal_parm_types)
8434 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
8435 (simd_clone_mangle, simd_clone_create)
8436 (simd_clone_adjust_return_type, create_tmp_simd_array)
8437 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
8438 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
8439 (ipa_simd_modify_function_body, simd_clone_linear_addend)
8440 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
8441 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
8442 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
8443 * omp-simd-clone.c: ... this new file.
8444 (simd_clone_vector_of_formal_parm_types): Make it static.
8445 * Makefile.in (OBJS): Add omp-simd-clone.o.
8446
8447 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
8448
8449 PR target/70662
8450 * config/i386/sse.md: Use proper memory operand modifiers.
8451
8452
8453 2016-04-15 Richard Biener <rguenther@suse.de>
8454 Alan Modra <amodra@gmail.com>
8455
8456 PR tree-optimization/70130
8457 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
8458 when alignment stays not the same and no not use the realign
8459 scheme then.
8460
8461 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8462
8463 PR target/70669
8464 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8465 direct move handlers for KFmode. Change TFmode handlers test from
8466 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
8467
8468 2016-04-14 Jakub Jelinek <jakub@redhat.com>
8469
8470 PR c++/70594
8471 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
8472 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
8473 (inlined_polymorphic_ctor_dtor_block_p): Use it.
8474 * tree-ssa-live.c (remove_unused_scope_block_p): When
8475 in_ctor_dtor_block, avoid discarding not just BLOCKs with
8476 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
8477 block_ultimate_origin is FUNCTION_DECL.
8478 (remove_unused_locals): If current_function_decl is
8479 polymorphic_ctor_dtor_p, pass initial true to
8480 remove_unused_scope_block_p' is_ctor_dtor_block.
8481
8482 2016-04-14 Martin Sebor <msebor@redhat.com>
8483
8484 PR c++/69517
8485 PR c++/70019
8486 PR c++/70588
8487 * doc/extend.texi (Variable Length): Revert.
8488
8489 2016-04-14 Marek Polacek <polacek@redhat.com>
8490 Jan Hubicka <hubicka@ucw.cz>
8491
8492 PR c++/70029
8493 * tree.c (verify_type): Disable the canonical type of main variant
8494 check.
8495
8496 2016-04-14 Jason Merrill <jason@redhat.com>
8497
8498 * cfgexpand.c, expr.c: Revert previous change.
8499
8500 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
8501
8502 PR middle-end/70643
8503 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
8504 when building a mem ref for the incoming reduction variable.
8505
8506 2016-04-14 Richard Biener <rguenther@suse.de>
8507
8508 PR tree-optimization/70614
8509 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
8510 loop if the evolution dropped to chrec_dont_know.
8511 (interpret_condition_phi): Likewise.
8512
8513 2016-04-14 Richard Biener <rguenther@suse.de>
8514
8515 PR tree-optimization/70623
8516 * tree-ssa-pre.c (changed_blocks): Make global ...
8517 (compute_antic): ... local here. Move and fix worklist
8518 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
8519 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
8520 worklist handling, dump when ANTIC_IN changed.
8521 (compute_partial_antic_aux): Remove worklist handling.
8522 (init_pre): Do not compute post dominators. Add a comment about
8523 the CFG order chosen.
8524 (fini_pre): Do not free post dominators.
8525
8526 2016-04-13 Martin Sebor <msebor@redhat.com>
8527
8528 PR c++/69517
8529 PR c++/70019
8530 PR c++/70588
8531 * doc/extend.texi (Variable Length): Document C++ specifics.
8532
8533 2016-04-13 Jakub Jelinek <jakub@redhat.com>
8534
8535 PR c++/70641
8536 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
8537 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
8538 eh edges have been purged.
8539
8540 PR c++/70594
8541 * tree-sra.c (create_access_replacement,
8542 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
8543 gets fancy name.
8544 * tree-pretty-print.c (dump_fancy_name): New function.
8545 (dump_decl_name, dump_generic_node): Use it.
8546
8547 2016-04-13 Jason Merrill <jason@redhat.com>
8548
8549 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
8550 * expr.c (expand_expr_real_1): Likewise.
8551
8552 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
8553
8554 * config/i386/i386.md (kunpckhi): Swap operands.
8555 (kunpcksi): Likewise.
8556 (kunpckdi): Likewise.
8557 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
8558 (vec_pack_trunc_<mode>): Likewise.
8559
8560 2016-04-13 Jakub Jelinek <jakub@redhat.com>
8561
8562 PR debug/70628
8563 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
8564
8565 PR middle-end/70633
8566 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
8567 gimplification turns some element into non-constant.
8568
8569 PR debug/70628
8570 * rtl.h (convert_memory_address_addr_space_1): New prototype.
8571 * explow.c (convert_memory_address_addr_space_1): No longer static,
8572 add NO_EMIT argument and don't call convert_modes if true, pass
8573 it down recursively, remove break after return.
8574 (convert_memory_address_addr_space): Adjust caller.
8575 * simplify-rtx.c (simplify_unary_operation_1): Call
8576 convert_memory_address_addr_space_1 instead of convert_memory_address,
8577 if it returns NULL, don't simplify.
8578
8579 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
8580
8581 PR target/70630
8582 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
8583
8584 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8585
8586 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8587 Bump the upper SIMDLEN limits, so that if the return type or
8588 characteristic type if the return type is void can be passed in
8589 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
8590 allowed.
8591
8592 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8593
8594 PR target/70640
8595 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
8596 Do not use "=" constraint on an input constraint.
8597 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
8598 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
8599 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
8600 generates (neg (abs ...)) instead of (abs ...).
8601
8602 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8603
8604 PR rtl-optimization/70596
8605 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
8606 just invalidate LRA data and reset them. Adjust dump wording.
8607
8608 2016-04-12 Martin Liska <mliska@suse.cz>
8609
8610 Revert
8611 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
8612
8613 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
8614 estimates here.
8615 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
8616 max_loop_iterations_int.
8617 (tree_unswitch_outer_loop): Likewise.
8618 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
8619 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8620
8621 2016-04-12 Tom de Vries <tom@codesourcery.com>
8622
8623 PR tree-optimization/68756
8624 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
8625 instead of new_name.
8626
8627 2016-04-12 Jakub Jelinek <jakub@redhat.com>
8628
8629 PR tree-optimization/70602
8630 * tree-sra.c (generate_subtree_copies): Don't write anything into
8631 constant pool decls.
8632
8633 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
8634 regardless whether there are depend clauses or not.
8635
8636 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8637
8638 PR target/70381
8639 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
8640 target attribute and pragma from changing the -mfloat128
8641 and -mfloat128-hardware options.
8642
8643 * doc/extend.texi (Additional Floating Types): Document PowerPC
8644 __float128 restrictions.
8645
8646 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8647
8648 PR target/70133
8649 * config/aarch64/driver-aarch64.c
8650 (aarch64_get_extension_string_for_isa_flags): New.
8651 (arch_extension): Rename to...
8652 (aarch64_arch_extension): ...This.
8653 (ext_to_feat_string): Rename to...
8654 (aarch64_extensions): ...This.
8655 (aarch64_core_data): Keep track of architecture extension flags.
8656 (cpu_data): Rename to...
8657 (aarch64_cpu_data): ...This.
8658 (aarch64_arch_driver_info): Keep track of architecture extension
8659 flags.
8660 (get_arch_name_from_id): Rename to...
8661 (get_arch_from_id): ...This, change return type.
8662 (host_detect_local_cpu): Update and reformat for renames, handle
8663 extensions through common infrastructure.
8664
8665 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8666
8667 PR target/70133
8668 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
8669 track of a canonical flag name.
8670 (all_extensions): Likewise.
8671 (arch_to_arch_name): Also track extension flags enabled by the arch.
8672 (all_architectures): Likewise.
8673 (aarch64_parse_extension): Move to here.
8674 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
8675 rework.
8676 (aarch64_rewrite_selected_cpu): Update for above change.
8677 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
8678 are handled, such that the single explicit value enabled by an
8679 extension is kept seperate from the implicit values it also enables.
8680 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
8681 to here.
8682 (aarch64_parse_extension): New.
8683 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
8684 here to config/aarch64/aarch64-protos.h.
8685 (aarch64_parse_extension): Move from here to
8686 common/config/aarch64/aarch64-common.c.
8687 (aarch64_option_print): Update.
8688 (aarch64_declare_function_name): Likewise.
8689 (aarch64_start_file): Likewise.
8690 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
8691 the canonical flag for extensions.
8692 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
8693 flags.
8694
8695 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8696
8697 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
8698 AARCH64_FL_CRC.
8699
8700 2016-04-09 Tom de Vries <tom@codesourcery.com>
8701
8702 PR tree-optimization/68953
8703 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
8704 first to last subscript.
8705
8706 2016-04-09 Jakub Jelinek <jakub@redhat.com>
8707
8708 PR tree-optimization/70586
8709 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
8710 for any calls.
8711
8712 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
8713
8714 PR lto/70289
8715 PR ipa/70348
8716 PR tree-optimization/70373
8717 PR middle-end/70533
8718 PR middle-end/70534
8719 PR middle-end/70535
8720 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
8721 clauses for acc parallel reductions as necessary. Error on those
8722 that are private.
8723 * omp-low.c (scan_sharing_clauses): Don't install variables which
8724 are used in acc parallel reductions.
8725 (lower_rec_input_clauses): Remove dead code.
8726 (lower_oacc_reductions): Add support for reference reductions.
8727 (lower_reduction_clauses): Remove dead code.
8728 (lower_omp_target): Don't remap variables appearing in acc parallel
8729 reductions.
8730 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
8731
8732 2016-04-08 Jakub Jelinek <jakub@redhat.com>
8733
8734 PR middle-end/70593
8735 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
8736 with multiple SSA_NAME defs, force the outputs other than first
8737 to be live before calling live_track_process_def on each output.
8738
8739 PR rtl-optimization/70574
8740 * fwprop.c (forward_propagate_and_simplify): Don't add
8741 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
8742 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
8743 paradoxical subregs within *loc.
8744
8745 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
8746
8747 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
8748 -ftree-parallelize-loops={0,1}.
8749 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
8750 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
8751 * config/ia64/hpux.h (LIB_SPEC): Likewise.
8752 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8753 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
8754
8755 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
8756
8757 PR sanitizer/70541
8758 * asan.c (instrument_derefs): If we get unknown location, extract it
8759 with EXPR_LOCATION.
8760 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
8761
8762 2016-04-08 Tom de Vries <tom@codesourcery.com>
8763
8764 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
8765 implicit firstprivate clause.
8766
8767 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8768
8769 PR target/70566
8770 * config/arm/thumb2.md (tst + branch-> lsls + branch
8771 peephole below *orsi_not_shiftsi_si): Require that condition
8772 register is dead after the peephole.
8773 (second peephole after the above): Likewise.
8774
8775 2016-04-08 Alan Modra <amodra@gmail.com>
8776
8777 PR target/70117
8778 * builtins.c (fold_builtin_classify): For IBM extended precision,
8779 look at just the high-order double to test for NaN.
8780 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
8781 test just the high double for Inf but both doubles for subnormal
8782 limit.
8783
8784 2016-04-07 Jakub Jelinek <jakub@redhat.com>
8785
8786 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
8787 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
8788 node->simdclone->mask_mode != VOIDmode masks.
8789 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
8790 earlier, use it instead of node->simdclone.
8791 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8792 Set clonei->mask_mode.
8793
8794 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
8795
8796 PR c/70436
8797 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
8798 Pass it through to cp_parser_already_scoped_statement.
8799 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
8800 it through to cp_parser_statement.
8801 (cp_parser_statement): Pass IF_P through to
8802 cp_parser_iteration_statement.
8803 (cp_parser_pragma): Adjust call to
8804 cp_parser_iteration_statement.
8805
8806 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
8807
8808 PR c/70436
8809 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
8810 resolve a future -Wparentheses warning.
8811 * omp-low.c (scan_sharing_clauses): Likewise.
8812 * tree-parloops.c (eliminate_local_variables): Likewise.
8813
8814 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
8815
8816 PR rtl-optimization/70398
8817 * lra-constraints.c (process_address_1): Check zero scale and code
8818 for reloading with zero scale.
8819
8820 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
8821
8822 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
8823 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
8824
8825 2016-04-06 Jakub Jelinek <jakub@redhat.com>
8826
8827 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8828 Add support for AVX512F clones, include them by default for
8829 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
8830 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
8831 up to 128.
8832
8833 PR middle-end/70550
8834 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
8835 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
8836 firstprivate clauses.
8837 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
8838 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
8839 (lower_omp_target): Set TREE_NO_WARNING for
8840 non-addressable possibly uninitialized vars which are copied into
8841 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
8842
8843 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
8844
8845 * config/pa/predicates.md (integer_store_memory_operand): Accept
8846 REG+D operands with a large offset when reload_in_progress is true.
8847 (floating_point_store_memory_operand): Likewise.
8848
8849 2016-04-05 Jakub Jelinek <jakub@redhat.com>
8850
8851 PR c++/70336
8852 * match.pd (nested int casts): Limit to GIMPLE.
8853
8854 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
8855
8856 PR ipa/66223
8857 * ipa-devirt.c (maybe_record_node): Fix comment; use
8858 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
8859
8860 2016-04-05 Jakub Jelinek <jakub@redhat.com>
8861
8862 PR rtl-optimization/70542
8863 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
8864 if there are any uses other than insn or debug insns.
8865
8866 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
8867 Jakub Jelinek <jakub@redhat.com>
8868
8869 PR tree-optimization/70509
8870 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
8871 Shift HOST_WIDE_INT_1U instead of 1.
8872
8873 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
8874
8875 PR tree-optimization/70509
8876 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
8877 of the vector base type for index.
8878
8879 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
8880
8881 PR target/70510
8882 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
8883
8884 2016-04-05 Richard Biener <rguenther@suse.de>
8885
8886 PR tree-optimization/70526
8887 * tree-sra.c (build_ref_for_offset): Use prev_base to
8888 extract the alias pointer type.
8889
8890 2016-04-05 Richard Biener <rguenther@suse.de>
8891
8892 * dse.c (struct store_info): Remove alias_set member.
8893 (struct read_info_type): Likewise.
8894 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
8895 spill_deleted, clear_alias_set_lookup): Remove.
8896 (get_group_info): Remove dead base == NULL_RTX case.
8897 (dse_step0): Remove initialization of removed variables.
8898 (delete_dead_store_insn): Reomve alias set dumping.
8899 (free_read_records): Remove alias_set handling.
8900 (canon_address): Remove alias_set_out parameter.
8901 (record_store): Remove spill_alias_set, it's always zero.
8902 (check_mem_read_rtx): Likewise.
8903 (dse_step2): Rename from ...
8904 (dse_step2_nospill): ... this. Adjust.
8905 (scan_stores): Rename from ...
8906 (scan_stores_nospill): ... this.
8907 (scan_reads): Rename from ...
8908 (scan_reads_nospill): ... this.
8909 (scan_stores_spill, scan_reads_spill): Remove.
8910 (dse_step3_scan): Remove for_spills argument which is always false.
8911 (dse_step3): Likewise.
8912 (dse_step5): Rename from ...
8913 (dse_step5_nospill): ... this. Remove alias_set handling.
8914 (rest_of_handle_dse): Adjust.
8915
8916 2016-04-05 Jakub Jelinek <jakub@redhat.com>
8917
8918 PR target/70525
8919 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
8920 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
8921 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
8922 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
8923
8924 2016-04-05 Richard Biener <rguenther@suse.de>
8925
8926 PR middle-end/70499
8927 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
8928 non-register type temporaries into SSA.
8929
8930 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
8931
8932 PR ipa/66223
8933 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
8934 calls when sanitizing.
8935 (possible_polymorphic_call_target_p): Fix formatting.
8936
8937 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8938 Jakub Jelinek <jakub@redhat.com>
8939
8940 PR middle-end/70457
8941 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
8942 to ensure a call statement is compatible with a built-in's
8943 prototype.
8944 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
8945 Likewise.
8946
8947 2016-04-04 Richard Biener <rguenther@suse.de>
8948
8949 PR rtl-optimization/70484
8950 * rtl.h (canon_output_dependence): Declare.
8951 * alias.c (canon_output_dependence): New function.
8952 * dse.c (record_store): Use canon_output_dependence rather
8953 than canon_true_dependence.
8954
8955 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
8956
8957 PR ipa/68881
8958 * cgraph.h (symtab_node::copy_visibility_from): New function.
8959 * symtab.c (symtab_node::copy_visibility_from): New function.
8960 * ipa-visibility.c (optimize_weakref): New function.
8961 (function_and_variable_visibility): Use it.
8962
8963 2016-04-04 Martin Liska <mliska@suse.cz>
8964
8965 PR hsa/70402
8966 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
8967 value that is really in range handled by SBR instruction.
8968 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
8969 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
8970 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
8971
8972 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
8973
8974 PR target/70416
8975 PR target/67391
8976 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
8977 set, but not for SP_REG operands.
8978
8979 2016-04-02 Martin Sebor <msebor@redhat.com>
8980
8981 PR c++/67376
8982 * fold-const.c (maybe_nonzero_address): New function.
8983 (fold_comparison): Call it. Fold equality and relational
8984 expressions involving null pointers.
8985 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
8986
8987 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
8988
8989 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
8990 the "Y" constraint (scalar FP 0.0 immediate).
8991
8992 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
8993 Add the "const_double" to the list of operand constraints.
8994
8995 2016-04-01 Jakub Jelinek <jakub@redhat.com>
8996
8997 PR rtl-optimization/70467
8998 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
8999 If low word of the last operand is 0, just emit addition/subtraction
9000 for the high word.
9001
9002 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9003
9004 PR target/70404
9005 * config/s390/s390.c (s390_expand_insv): Check for everything
9006 constant instead of just VOIDmode stuff.
9007
9008 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9009
9010 PR target/70496
9011 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
9012
9013 2016-04-01 Nathan Sidwell <nathan@acm.org>
9014
9015 * tree.def (TRY_CATCH_EXPR): Correct documentation.
9016
9017 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
9018
9019 PR rtl-optimization/70461
9020 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
9021 is necessary.
9022
9023 2016-03-31 Martin Liska <mliska@suse.cz>
9024
9025 PR hsa/70399
9026 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
9027 a tree value or an immediate integer value to a buffer
9028 that is eventually copied to a BRIG section.
9029 (emit_immediate_operand): Call the function here.
9030 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
9031 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
9032 of class' fields that are removed.
9033 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
9034 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
9035 m_brig_repr_size fields.
9036
9037 2016-03-31 Martin Liska <mliska@suse.cz>
9038
9039 PR hsa/70391
9040 * hsa-gen.c (hsa_function_representation::update_dominance): New
9041 function.
9042 (convert_addr_to_flat_segment): Likewise.
9043 (gen_hsa_memory_set): New alignment argument.
9044 (gen_hsa_ctor_assignment): Likewise.
9045 (gen_hsa_insns_for_single_assignment): Provide alignment
9046 to gen_hsa_ctor_assignment.
9047 (gen_hsa_insns_for_direct_call): Add new argument.
9048 (expand_lhs_of_string_op): New function.
9049 (expand_string_operation_builtin): Likewise.
9050 (expand_memory_copy): New function.
9051 (expand_memory_set): New function.
9052 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
9053 (convert_switch_statements): Change signature.
9054 (generate_hsa): Use a return value of the function.
9055 (pass_gen_hsail::execute): Do not call
9056 convert_switch_statements here.
9057 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
9058 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
9059 (hsa_function_representation::update_dominance): New function.
9060
9061 2016-03-31 Martin Liska <mliska@suse.cz>
9062
9063 PR hsa/70391
9064 * hsa-brig.c (emit_directive_variable): Emit alignment
9065 according to hsa_symbol::m_align.
9066 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
9067 (dump_hsa_symbol): Dump alignment of HSA symbols.
9068 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
9069 (gen_hsa_addr_with_align): New function.
9070 (hsa_bitmemref_alignment): Use newly added function.
9071 (gen_hsa_insns_for_load): Likewise.
9072 (gen_hsa_insns_for_store): Likewise.
9073 (gen_hsa_memory_copy): New argument added.
9074 (gen_hsa_insns_for_single_assignment): Respect
9075 alignment for assignments processed via gen_hsa_memory_copy.
9076 (gen_hsa_insns_for_direct_call): Likewise.
9077 (gen_hsa_insns_for_return): Likewise.
9078 (gen_function_def_parameters): Set default alignment.
9079 * hsa.c (hsa_object_alignment): New function.
9080 (hsa_byte_alignment): Pasted function.
9081 * hsa.h (hsa_symbol::m_align): New field.
9082
9083 2016-03-31 Bin Cheng <bin.cheng@arm.com>
9084
9085 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
9086 scratch field for goto case.
9087
9088 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
9089
9090 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
9091
9092 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
9093
9094 PR target/70442
9095 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
9096 (scalar_chain::convert_insn): Call convert_op for reg
9097 moves to handle undefined registers.
9098
9099 2016-03-31 Nathan Sidwell <nathan@acm.org>
9100
9101 PR c++/70393
9102 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
9103 Assert we don't want to move backwards.
9104
9105 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
9106
9107 PR target/70453
9108 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
9109
9110 2016-03-31 Jakub Jelinek <jakub@redhat.com>
9111
9112 PR rtl-optimization/70460
9113 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
9114 with operand from REG_LABEL_OPERAND, instead substitute
9115 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
9116 Don't do anything for REG_NON_LOCAL_GOTO jumps.
9117
9118 2016-03-31 Martin Liska <mliska@suse.cz>
9119
9120 * passes.c (execute_one_pass): Do not call
9121 todo_after for a discarded function.
9122
9123 2016-03-31 Bin Cheng <bin.cheng@arm.com>
9124
9125 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
9126 (no_cost, infinite_cost): Initialize the new field.
9127 (get_computation_cost_at): Record setup cost.
9128 (determine_use_iv_cost_address): Skip cost computation for sub
9129 uses if we can estimate it without losing accuracy.
9130
9131 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
9132
9133 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
9134 estimates here.
9135 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
9136 max_loop_iterations_int.
9137 (tree_unswitch_outer_loop): Likewise.
9138 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
9139 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9140
9141 2016-03-30 Richard Biener <rguenther@suse.de>
9142
9143 PR middle-end/70450
9144 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
9145
9146 2016-03-30 Jakub Jelinek <jakub@redhat.com>
9147
9148 PR target/70421
9149 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
9150 in gen_blendm expander.
9151
9152 2016-03-30 Nick Clifton <nickc@redhat.com>
9153
9154 PR target/62254
9155 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
9156 case where we are already provided with an SImode SUBREG.
9157
9158 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
9159
9160 PR target/70439
9161 * config/i386/i386.c (ix86_expand_epilogue): Properly check
9162 conflict between DRAP register and __builtin_eh_return.
9163
9164 2016-03-30 Michael Matz <matz@suse.de>
9165 Richard Biener <rguenther@suse.de>
9166
9167 PR ipa/12392
9168 * ipa-polymorphic-call.c (struct type_change_info): Change
9169 speculative to an unsigned allowing to limit the work we do.
9170 (csftc_abort_walking_p): New inline function..
9171 (check_stmt_for_type_change): Limit the number of may-defs
9172 skipped for speculative devirtualization to
9173 max-speculative-devirt-maydefs.
9174 * params.def (max-speculative-devirt-maydefs): New param.
9175 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
9176
9177 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
9178
9179 PR target/63890
9180 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
9181 and TARGET_MACHO.
9182
9183 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
9184
9185 PR tree-optimization/59124
9186 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
9187 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
9188
9189 2016-03-29 Jeff Law <law@redhat.com>
9190
9191 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
9192
9193 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9194
9195 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
9196 to HOST_WIDE_INT.
9197
9198 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
9199
9200 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
9201 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
9202 gcrt0.o if linking dynamically.
9203
9204 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
9205
9206 PR ipa/70283
9207 * ipa-devirt.c (methods_equal_p): New function.
9208 (compare_virtual_tables): Use it.
9209 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
9210 * cgraphclones.c (clone_function_name_1): Use
9211 symbol_table::symbol_suffix_separator.
9212 * coverage.c (build_var): Likewise.
9213 * symtab.c (symbol_table::symbol_suffix_separator): New.
9214
9215 2016-03-29 Jakub Jelinek <jakub@redhat.com>
9216
9217 PR rtl-optimization/70429
9218 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
9219 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
9220 mode != result_mode.
9221
9222 PR c++/70353
9223 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
9224
9225 PR tree-optimization/70405
9226 * ssa-iterators.h (num_imm_uses): Add missing braces.
9227
9228 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
9229
9230 PR rtl-optimization/68695
9231 * ira-color.c (allocno_copy_cost_saving): New.
9232 (improve_allocation): Use it.
9233
9234 2016-03-29 Richard Henderson <rth@redhat.com>
9235
9236 PR middle-end/70355
9237 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
9238
9239 2016-03-29 Richard Biener <rguenther@suse.de>
9240
9241 PR middle-end/70424
9242 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
9243 use alignment returned by get_pointer_alignment_1 if it is
9244 bigger than BITS_PER_UNIT.
9245 * builtins.c (get_pointer_alignment_1): Do not return true
9246 for alignment extracted from SSA info.
9247
9248 2016-03-28 James Bowman <james.bowman@ftdichip.com>
9249
9250 * config/ft32/ft32.opt (mnodiv): New.
9251 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
9252 * doc/invoke.texi (FT32 Options -mnodiv): New.
9253
9254 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
9255
9256 PR target/70406
9257 * config/i386/i386.md (define_split, andn): Fix modes.
9258
9259 2016-03-26 Richard Biener <rguenther@suse.de>
9260 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9261
9262 PR ipa/70366
9263 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
9264 instead of
9265 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
9266 as 2nd argument to cl_optimization_restore().
9267
9268 2016-03-25 Richard Henderson <rth@redhat.com>
9269
9270 PR target/70120
9271 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
9272 * config/aarch64/aarch64-protos.h: Declare it.
9273 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
9274
9275 2016-03-25 Alan Modra <amodra@gmail.com>
9276
9277 PR target/70052
9278 * config/rs6000/constraints.md (j): Simplify.
9279 * config/rs6000/predicates.md (easy_fp_constant): Exclude
9280 decimal float 0.D.
9281 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
9282 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
9283 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
9284 in all constraint alternatives.
9285 (movtd_64bit_nodm): Delete "j" constraint alternative.
9286
9287 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
9288
9289 * tree-ssa-propagate.c: Enhance docs for
9290 SSA_PROP_NOT_INTERESTING.
9291
9292 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
9293
9294 * doc/extend.texi: Fix typo in documentation to pure attribute.
9295
9296 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
9297
9298 PR target/70319
9299 * config/pa/pa.md (bswapdi2): Use a scratch register.
9300
9301 2016-03-24 Richard Henderson <rth@redhat.com>
9302
9303 PR middle-end/69845
9304 * fold-const.c (extract_muldiv_1): Correct test for multiplication
9305 overflow.
9306
9307 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
9308
9309 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
9310 using ix86_expand_binary_operator instead of gen_andsi3.
9311
9312 2016-03-24 Richard Biener <rguenther@suse.de>
9313
9314 PR tree-optimization/70396
9315 * tree-vect-stmts.c (vectorizable_comparison): Use
9316 get_vectype_for_scalar_type.
9317
9318 2016-03-24 Richard Biener <rguenther@suse.de>
9319
9320 PR middle-end/70370
9321 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
9322 with register bases.
9323
9324 2016-03-24 Richard Biener <rguenther@suse.de>
9325
9326 PR tree-optimization/70372
9327 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
9328 build_all_ones_cst to also handle vector types correctly.
9329
9330 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9331
9332 PR target/70381
9333 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
9334 -mfloat128 here.
9335
9336 2016-03-23 Marek Polacek <polacek@redhat.com>
9337
9338 PR c++/69884
9339 * doc/invoke.texi: Document -Wignored-attributes.
9340
9341 2016-03-23 Bin Cheng <bin.cheng@arm.com>
9342
9343 PR tree-optimization/69042
9344 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
9345 parameter from 30 to 40.
9346
9347 2016-03-23 Bin Cheng <bin.cheng@arm.com>
9348
9349 PR tree-optimization/69042
9350 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
9351 for use with constant offset stripped in base.
9352
9353 2016-03-23 Richard Biener <rguenther@suse.de>
9354
9355 PR middle-end/70251
9356 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
9357 mode compatibility check.
9358 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9359
9360 2016-03-23 Jeff Law <law@redhat.com>
9361
9362 PR tree-optimization/64058
9363 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
9364 CONFLICT_COUNT.
9365 (struct ssa_conflicts): Move up earlier in the file.
9366 (conflicts_, var_map_): New static variables.
9367 (initialize_conflict_count): New function to initialize the
9368 CONFLICT_COUNT field for each conflict pair.
9369 (compare_pairs): Lazily initialize the conflict count and use it
9370 as the first tie-breaker.
9371 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
9372 and wipe conflicts_ and map_ around the call to qsort. Remove
9373 special case for 2 coalesce pairs.
9374 * bitmap.c (bitmap_count_unique_bits): New function.
9375 (bitmap_count_bits_in_word): New function, extracted from
9376 bitmap_count_bits.
9377 (bitmap_count_bits): Use bitmap_count_bits_in_word.
9378 * bitmap.h (bitmap_count_unique_bits): Declare it.
9379
9380 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9381
9382 PR target/69917
9383 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
9384 transparent alias chain for decl assembler name.
9385 * config/sol2.c (solaris_assemble_visibility): Likewise.
9386
9387 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9388
9389 * config/arm/arm1020e.md (1020call_op): Reduce reservation
9390 duration.
9391 (v10_fdivs): Likewise.
9392 (v10_fdivd): Likewise.
9393
9394 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9395
9396 PR driver/70132
9397 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
9398 to not call fclose twice on file.
9399
9400 2016-03-23 Jakub Jelinek <jakub@redhat.com>
9401
9402 PR tree-optimization/70354
9403 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
9404 oprnd0 is wider than oprnd1 and there is a cast from the wider
9405 type to oprnd1, mask it with the mask of the narrower type.
9406
9407 PR target/70321
9408 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
9409 Optimize TARGET_STV splitters, if high or low word of last argument
9410 is 0 or -1.
9411
9412 2016-03-22 Jeff Law <law@redhat.com>
9413
9414 PR target/70232
9415 tree-ssa-threadbackward.c
9416 (fsm_find_control_statement_thread_paths): Correctly distinguish
9417 between old style jump threads vs FSM jump threads.
9418
9419 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
9420
9421 PR target/70302
9422 * config/i386/i386.c (scalar_chain::convert_op): Support
9423 uninitialized register usage case.
9424
9425 2016-03-22 Richard Biener <rguenther@suse.de>
9426
9427 PR middle-end/70251
9428 * genmatch.c (gen_transform): Adjust last parameter to a three-state
9429 int...
9430 (capture::gen_transform): ... to change behavior when substituting
9431 a condition into cond or not-cond expr context.
9432 (dt_simplify::gen_1): Adjust.
9433 * gimple-match-head.c: Include gimplify.h for unshare_expr.
9434 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
9435 last change and instead change to
9436 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
9437 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9438
9439 2016-03-22 Anthony Green <green@moxielogic.com>
9440
9441 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
9442 issue for moxiebox targets.
9443 (CC1PLUS_SPEC): Ditto.
9444
9445 2016-03-22 Richard Biener <rguenther@suse.de>
9446
9447 PR middle-end/70333
9448 * fold-const.c (extract_muldiv_1): Properly perform multiplication
9449 in the wide type.
9450
9451 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
9452
9453 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
9454
9455 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
9456
9457 PR target/70325
9458 * config/i386/i386.c (def_builtin): Handle
9459 OPTION_MASK_ISA_AVX512VL to be and-ed with other
9460 bits.
9461 (const struct builtin_description bdesc_special_args[]):
9462 Remove duplicate ISA bits.
9463
9464 2016-03-22 Jakub Jelinek <jakub@redhat.com>
9465
9466 PR target/70329
9467 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
9468 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
9469 in a way that works also for AVX512BW.
9470
9471 PR target/70300
9472 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
9473 instead of source if operands[1] is xmm16 and above and
9474 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
9475 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
9476
9477 PR c++/70295
9478 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
9479 on assign if (*from_p) is a comparison, set it to
9480 TREE_NO_WARNING (*from_p).
9481
9482 2016-03-21 Jakub Jelinek <jakub@redhat.com>
9483
9484 PR middle-end/70326
9485 * lra.c (restore_scratches): Ignore deleted insns.
9486
9487 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
9488 Jakub Jelinek <jakub@redhat.com>
9489
9490 PR tree-optimization/70317
9491 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
9492 to HONOR_NANS.
9493
9494 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
9495
9496 PR target/70327
9497 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
9498 of ix86_expand_move.
9499 (movoi): Ditto.
9500 (movti): Use general_operand for operand 1 predicate.
9501
9502 2016-03-21 Martin Liska <mliska@suse.cz>
9503
9504 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
9505 insns.
9506 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
9507
9508 2016-03-21 Martin Liska <mliska@suse.cz>
9509
9510 PR ipa/70306
9511 * ipa-icf.c (sem_function::parse): Skip static
9512 constructors and destructors.
9513
9514 2016-03-21 Jakub Jelinek <jakub@redhat.com>
9515
9516 PR target/70296
9517 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
9518 function-like macro, peek following token(s) if it is followed
9519 by CPP_OPEN_PAREN token with optional padding in between, and
9520 if not, don't treat it like a macro.
9521
9522 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
9523 Alexander Monakov <amonakov@ispras.ru>
9524
9525 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
9526 for the stabs debug format.
9527
9528 2016-03-21 Richard Biener <rguenther@suse.de>
9529
9530 PR tree-optimization/70310
9531 * tree-vect-generic.c (expand_vector_condition): Fold the built
9532 condition.
9533
9534 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
9535
9536 PR target/70293
9537 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
9538 Block third alternative for AVX-512VL target,
9539
9540 2016-03-21 Martin Liska <mliska@suse.cz>
9541
9542 PR hsa/70234
9543 * hsa-brig.c (emit_function_directives): Mark unemitted
9544 global variables for emission.
9545 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
9546 (get_symbol_for_decl): Likewise.
9547 * hsa.h (struct hsa_symbol): New flag.
9548
9549 2016-03-21 Richard Biener <rguenther@suse.de>
9550
9551 PR tree-optimization/70288
9552 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
9553 we do not estimate unsimplified all-constant conditionals or
9554 switches as optimized away.
9555
9556 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
9557
9558 PR rtl-optimization/69102
9559 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
9560 when we have a readonly dependency context.
9561
9562 2016-03-18 Jeff Law <law@redhat.com>
9563
9564 PR rtl-optimization/70263
9565 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
9566 (update_equiv_regs): When trying to move a store to after the insn
9567 that sets the source of the store, make sure the store occurs after
9568 the insn that sets the source of the store. When successful note
9569 the REG_EQUIV note created in the dump file.
9570
9571 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
9572 Bernd Schmidt <bschmidt@redhat.com>
9573
9574 * doc/extend.texi: Document more potential problems with basic asms.
9575
9576 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
9577
9578 PR rtl-optimization/70278
9579 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
9580 VOIDmode.
9581
9582 2016-03-18 Jason Merrill <jason@redhat.com>
9583
9584 * calls.c (load_register_parameters): Fix zero size sibcall logic.
9585
9586 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
9587
9588 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
9589 values to 128b regs.
9590
9591 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
9592
9593 PR tree-optimization/70252
9594 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
9595 boolean vector has a proper number of elements.
9596 (supportable_narrowing_operation): Likewise.
9597
9598 2016-03-18 Tom de Vries <tom@codesourcery.com>
9599
9600 PR ipa/70269
9601 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
9602
9603 2016-03-18 Jakub Jelinek <jakub@redhat.com>
9604
9605 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
9606 instead of replace_rtx for DEBUG_INSNs.
9607
9608 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9609
9610 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
9611 load type reservations.
9612
9613 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
9614
9615 PR target/70188
9616 * config/pa/constraints.md: Revert 2015-02-13 change. Use
9617 define_constraint for "Q" and "T" constraints.
9618
9619 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
9620
9621 Tweak the pipeline model for Exynos M1
9622
9623 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
9624 model.
9625
9626 2016-03-17 David Malcolm <dmalcolm@redhat.com>
9627
9628 PR c/70264
9629 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
9630 where one or both locations aren't within a line_map.
9631
9632 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
9633
9634 PR driver/70192
9635 * opts.c (finish_options): Don't set flag_pie to the default if
9636 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
9637 if it is -1.
9638
9639 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
9640
9641 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
9642 true as ALL_REGS argument to replace_rtx.
9643
9644 2016-03-17 Richard Biener <rguenther@suse.de>
9645
9646 PR debug/70271
9647 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
9648 last.
9649
9650 2016-03-17 Jakub Jelinek <jakub@redhat.com>
9651
9652 PR target/70245
9653 * rtl.h (replace_rtx): Add ALL_REGS argument.
9654 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
9655 equality and assert mode is the same, instead of just rtx pointer
9656 equality.
9657 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
9658 true as ALL_REGS argument to replace_rtx.
9659
9660 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
9661
9662 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
9663 for boolean vector with vector mode only.
9664 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
9665
9666 2016-03-17 Nick Clifton <nickc@redhat.com>
9667
9668 PR target/70162
9669 * config/rx/rx.c (rx_print_integer): Print negative constants in
9670 decimal.
9671
9672 2016-03-17 Jakub Jelinek <jakub@redhat.com>
9673
9674 PR target/70261
9675 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
9676
9677 2016-03-16 Richard Henderson <rth@redhat.com>
9678 Richard Biener <rguenth@suse.de>
9679
9680 PR middle-end/70240
9681 PR middle-end/68215
9682 PR tree-opt/68714
9683 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
9684 first operand as is_gimple_condexpr.
9685
9686 PR middle-end/70240
9687 PR middle-end/68215
9688 Revert r231575
9689 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
9690 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
9691 Do not gimplify the result.
9692 (do_unop): Adjust call to tree_vec_extract.
9693 (do_binop): Likewise.
9694 (do_compare): Likewise.
9695 (do_plus_minus): Likewise.
9696 (do_negate): Likewise.
9697 (expand_vector_condition): Likewise.
9698 (do_cond): Likewise.
9699
9700 2016-03-16 Richard Henderson <rth@redhat.com>
9701
9702 PR target/70048
9703 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
9704 (aarch64_classify_address): Use it.
9705 (aarch64_legitimize_address): Force all subexpressions of PLUS
9706 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
9707
9708 2016-03-16 Jakub Jelinek <jakub@redhat.com>
9709 Richard Biener <rguenth@suse.de>
9710
9711 PR target/70245
9712 * rtlanal.c (replace_rtx): For REG, if from is a REG,
9713 return to even if only REGNO is equal, and assert
9714 mode is the same.
9715
9716 2016-03-11 Jeff Law <law@redhat.com>
9717
9718 PR rtl-optimization/70224
9719 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
9720
9721 2016-03-16 Richard Henderson <rth@redhat.com>
9722
9723 PR middle-end/70199
9724 * function.h (struct function): Add has_forced_label_in_static.
9725 * gimplify.c (force_labels_r): Set it.
9726 * lto-streamer-in.c (input_struct_function_base): Read it.
9727 * lto-streamer-out.c (output_struct_function_base): Write it.
9728 * tree-inline.c (has_label_address_in_static_1): Remove.
9729 (copy_forbidden): Remove fndecl parameter; test
9730 has_forced_label_in_static.
9731 (inline_forbidden_p): Update call to copy_forbidden.
9732 (tree_versionable_function_p): Likewise.
9733 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
9734 (chkp_versioning): Likewise.
9735 * tree-inline.h (copy_forbidden): Update decl.
9736
9737 2016-03-16 Marek Polacek <polacek@redhat.com>
9738
9739 PR c/70093
9740 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
9741 function being thunked if the result type doesn't have fixed size.
9742 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
9743 doesn't have fixed size.
9744
9745 2016-03-16 Bin Cheng <bin.cheng@arm.com>
9746
9747 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
9748 reporting malformed loop nest.
9749
9750 2016-03-16 Tom de Vries <tom@codesourcery.com>
9751
9752 PR lto/70187
9753 * ipa-devirt.c (possible_polymorphic_call_targets): Move
9754 nodes.length () == 1 test to before first nodes[0] access.
9755
9756 2016-03-16 Tom de Vries <tom@codesourcery.com>
9757
9758 PR tree-optimization/68715
9759 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
9760 single_pred_p test.
9761
9762 2016-03-16 Tom de Vries <tom@codesourcery.com>
9763
9764 PR tree-optimization/68809
9765 * graphite-scop-detection.c (same_close_phi_node): Test if result types
9766 are the same.
9767
9768 2016-03-16 Carlos O'Donell <carlos@redhat.com>
9769 Sandra Loosemore <sandra@codesourcery.com>
9770
9771 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
9772 on leaf attribute. Mention ELF interposition problems.
9773
9774 2016-03-16 Alan Modra <amodra@gmail.com>
9775
9776 PR rtl-optimization/69195
9777 PR rtl-optimization/47992
9778 * ira.c (indirect_jump_optimize): Ignore artificial defs.
9779 Add comments.
9780
9781 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
9782
9783 PR bootstrap/69513
9784 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
9785
9786 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9787
9788 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
9789
9790 2016-03-15 Jakub Jelinek <jakub@redhat.com>
9791
9792 PR rtl-optimization/70222
9793 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
9794 optimization if mode is different from result_mode, queue up masking
9795 of the result in outer_op. Formatting fix.
9796
9797 PR middle-end/70239
9798 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
9799 of safe_grow.
9800
9801 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9802
9803 PR rtl-optimization/69032
9804 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
9805 looping backwards over basic block insns.
9806
9807 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9808
9809 PR target/66660
9810 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
9811 to non-speculative when propagating trap bits.
9812
9813 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9814
9815 PR rtl-optimization/63384
9816 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
9817 DEBUG_INSN_P insns.
9818
9819 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
9820
9821 PR target/64411
9822 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
9823 factored out from ...
9824 (sched_analyze_insn): ... here.
9825 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
9826 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
9827 get_implicit_reg_pending_clobbers in it.
9828 (setup_id_reg_sets): Use setup_id_implicit_regs.
9829 (deps_init_id): Ditto.
9830
9831 2016-03-15 Tom de Vries <tom@codesourcery.com>
9832
9833 PR ipa/70161
9834 * cgraph.c (cgraph_node::get_body): Save, reset and restore
9835 dump_file_name.
9836 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
9837 execute_function_dump.
9838 (execute_one_pass): Don't dump function if it will be dumped after ipa
9839 transform.
9840
9841 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
9842
9843 * genrecog.c (match_pattern_2): If pred is NULL don't call
9844 safe_predicate_mode on it.
9845
9846 2016-03-14 Jakub Jelinek <jakub@redhat.com>
9847
9848 PR middle-end/70219
9849 * lra-constraints.c (delete_move_and_clobber): Change assertion
9850 to also allow dregno == 0.
9851
9852 2016-03-14 Richard Henderson <rth@redhat.com>
9853
9854 PR tree-opt/68714
9855 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
9856 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
9857 (reassociate_bb): Use optimize_vec_cond_expr; avoid
9858 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
9859 on vectors.
9860
9861 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
9862
9863 PR target/70083
9864 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
9865 regs.
9866 (lra_create_live_ranges_1): initialize hard register biggest_mode to
9867 VOIDmode.
9868 * lra-constraints.c (split_reg): For hard regs, try to find the
9869 biggest single-register mode used in the function.
9870
9871 2016-03-14 Richard Biener <rguenther@suse.de>
9872
9873 PR tree-optimization/56365
9874 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
9875 constants to compare against.
9876
9877 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
9878
9879 PR target/70098
9880 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9881 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
9882 (define_split for the GPR case): Use int_reg_operand instead of
9883 gpc_reg_operand for the output.
9884
9885 2016-03-14 Tom de Vries <tom@codesourcery.com>
9886
9887 PR tree-optimization/70045
9888 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
9889 create_empty_if_region_on_edge argument.
9890
9891 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
9892
9893 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
9894 (STACK_CHECK_PROTECT): Likewise.
9895 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9896 (STACK_CHECK_PROTECT): Likewise.
9897 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
9898 (STACK_CHECK_PROTECT): Likewise.
9899 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
9900 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9901 (STACK_CHECK_PROTECT): Likewise.
9902
9903 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
9904
9905 PR rtl-optimization/69307
9906 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
9907 registers in modes that span more than one register.
9908
9909 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
9910
9911 PR target/69614
9912 * lra-constraints.c (delete_move_and_clobber): New.
9913 (remove_inheritance_pseudos): Use it.
9914
9915 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
9916
9917 PR ada/70017
9918 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
9919 the libcall is LCT_THROW.
9920 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
9921 for the checking routine.
9922
9923 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9924
9925 PR target/70131
9926 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
9927 optimization if we have direct move.
9928 (roundu32<mode>2_fprs): Likewise.
9929
9930 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
9931
9932 PR target/70123
9933 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
9934 be rematerialized.
9935 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
9936 Arguments swapped. All callers changed. Take reg_renumber into
9937 account, and Calculate and compare register ranges for hard regs.
9938
9939 2016-03-11 Jeff Law <law@redhat.com>
9940
9941 PR tree-optimization/70190
9942 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9943 Handle cases where we can not extract the taken edge, even though we
9944 found a constant value.
9945
9946 PR tree-optimization/64058
9947 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
9948 (num_coalesce_pairs): Move up earlier in file.
9949 (find_coalesce_pair): Initialize the INDEX field for each pair
9950 discovered.
9951 (compare_pairs): No longer sort on the elements in each pair.
9952 Instead break ties with the index of the coalesce pair.
9953
9954 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9955
9956 PR target/70002
9957 * config/aarch64/aarch64-protos.h
9958 (aarch64_save_restore_target_globals): New prototype.
9959 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
9960 Call the above when popping pragma.
9961 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
9962 New function.
9963 (aarch64_set_current_function): Rewrite using the above.
9964
9965 2016-03-11 Jakub Jelinek <jakub@redhat.com>
9966
9967 PR tree-optimization/70177
9968 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
9969 (extract_ops_from_tree): ... this. In the 2 argument
9970 overload remove _1 suffix.
9971 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
9972 (extract_ops_from_tree): ... this.
9973 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
9974 Adjust callers.
9975 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
9976 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
9977 extract_ops_from_tree instead of 2 operand one.
9978
9979 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
9980
9981 PR tree-optimization/70013
9982 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
9983 for constant-pool entries.
9984
9985 2016-03-11 Jakub Jelinek <jakub@redhat.com>
9986
9987 PR rtl-optimization/70174
9988 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
9989 followed by gen_lowpart on force_reg instead of just gen_lowpart.
9990
9991 PR tree-optimization/70169
9992 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
9993 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
9994 for unknown codes.
9995
9996 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9997 Jakub Jelinek <jakub@redhat.com>
9998
9999 PR target/70160
10000 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
10001 of uninitialized values.
10002
10003 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10004
10005 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
10006 define_expand.
10007 ("*trunctddd2"): New pattern definition.
10008 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
10009 TD->DD truncation.
10010
10011 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10012
10013 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
10014 definitions for BFP and DFP rounding modes.
10015 ("fixuns_truncdddi2", "fixuns_trunctddi2")
10016 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
10017 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
10018 ("fix_trunctf<mode>2"): Use the new constants instead of magic
10019 numbers.
10020
10021 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10022
10023 * config/s390/constraints.md: Adjust comment.
10024 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
10025 s390_decompose_addrstyle_without_index.
10026 * config/s390/predicates.md (shift_count_or_setmem_operand):
10027 Rename to setmem_operand.
10028 * config/s390/s390-protos.h
10029 (s390_decompose_shift_count): Rename to
10030 s390_decompose_addrstyle_without_index.
10031 * config/s390/s390.c (s390_decompose_shift_count)
10032 (s390_mem_constraint, print_shift_count_operand)
10033 (print_operand_address, print_operand): Rename
10034 s390_decompose_shift_count to
10035 s390_decompose_addrstyle_without_index and rename
10036 print_shift_count_operand to print_addrstyle_operand troughout the
10037 file.
10038 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
10039 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
10040 Rename shift_count_or_setmem_operand to setmem_operand.
10041 * config/s390/vx-builtins.md ("vec_insert<mode>")
10042 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
10043 nonmemory_operand.
10044
10045 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10046
10047 PR target/70168
10048 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
10049 Handle overlapping retval and newval.
10050
10051 2016-03-10 Nick Clifton <nickc@redhat.com>
10052
10053 PR target/7044
10054 * config/aarch64/aarch64.c
10055 (aarch64_override_options_after_change_1): When forcing
10056 flag_omit_frame_pointer to be true, use a special value that can
10057 be detected if this function is called again, thus preventing
10058 flag_omit_leaf_frame_pointer from being forced to be false.
10059
10060 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10061
10062 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10063 Set x_flag_omit_leaf_frame_pointer when handling
10064 -momit-leaf-frame-pointer.
10065
10066 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10067
10068 PR lto/69589
10069 * cgraph.c (cgraph_node::dump): Dump split_part and
10070 indirect_call_target.
10071 * cgraph.h (cgraph_node): Add indirect_call_target flag.
10072 * ipa.c (has_addr_references_p): Cleanup.
10073 (is_indirect_call_target_p): New.
10074 (walk_polymorphic_call_targets): Do not mark virtuals that may be
10075 called indirectly as local.
10076 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
10077
10078 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10079
10080 PR ipa/69630
10081 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
10082 on cxa_pure_virtual.
10083
10084 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10085
10086 PR lto/69589
10087 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
10088
10089 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
10090
10091 PR lto/69589
10092 * tree.c (need_assembler_name_p): Only record main variant type names.
10093
10094 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
10095
10096 PR target/70113.
10097 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
10098 Always define to 0 or 1.
10099 (TARGET_FIX_ERR_A53_843419): New macro.
10100 * config/aarch64/aarch64-elf-raw.h
10101 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
10102 * config/aarch64/aarch64-linux.h: Likewise.
10103 * config/aarch64/aarch64.c
10104 (aarch64_override_options_after_change_1): Do not default
10105 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
10106 843419 is on.
10107 (aarch64_attributes): Handle fix-cortex-a53-843419.
10108 (aarch64_can_inline_p): Likewise.
10109 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
10110
10111 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
10112 Jakub Jelinek <jakub@redhat.com>
10113
10114 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
10115 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
10116 DECL_COMMONS if flag_unconstrained_commons is set.
10117 * tree-dfa.c (get_ref_base_and_extent): Likewise.
10118 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
10119 (funconstrained-commons): Document.
10120
10121 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
10122
10123 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
10124 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
10125
10126 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
10127
10128 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
10129 has a proper number of elements.
10130
10131 2016-03-10 Alan Modra <amodra@gmail.com>
10132
10133 PR rtl-optimization/69195
10134 PR rtl-optimization/47992
10135 * ira.c (recorded_label_ref): Delete.
10136 (update_equiv_regs): Return void.
10137 (indirect_jump_optimize): New function.
10138 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
10139 before regstat_compute_ri. Don't rebuild_jump_labels here.
10140 Delete update_regstat.
10141
10142 2016-03-10 Richard Biener <rguenther@suse.de>
10143
10144 PR tree-optimization/70128
10145 * tree-ssa-structalias.c (set_uids_in_ptset): Set
10146 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
10147
10148 2016-03-09 Jakub Jelinek <jakub@redhat.com>
10149
10150 PR tree-optimization/70152
10151 * tree-sra.c (replace_removed_params_ssa_names): Copy over
10152 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
10153
10154 PR target/70086
10155 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
10156 instead of gen_sse2_loadlpd.
10157 * config/i386/sse.md (*vec_concatv2df): Rename to...
10158 (vec_concatv2df): ... this.
10159
10160 PR tree-optimization/70127
10161 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
10162
10163 2016-03-09 David Malcolm <dmalcolm@redhat.com>
10164
10165 PR c/68473
10166 PR c++/70105
10167 * diagnostic-show-locus.c (compatible_locations_p): New function.
10168 (layout::layout): Sanitize ranges using compatible_locations_p.
10169
10170 2016-03-09 David Malcolm <dmalcolm@redhat.com>
10171
10172 PR c/68473
10173 PR c++/70105
10174 * diagnostic-show-locus.c (layout_range::layout_range): Replace
10175 location_range param with three const expanded_locations * and a
10176 bool.
10177 (layout::layout): Replace call to
10178 rich_location::lazily_expand_location with get_expanded_location.
10179 Extract the range and perform location expansion here, passing
10180 the results to the layout_range ctor.
10181 * diagnostic.c (source_range::debug): Delete.
10182 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
10183 of rich_location::get_expanded_location.
10184 * gcc-rich-location.c (get_range_for_expr): Delete.
10185 (gcc_rich_location::add_expr): Reimplement to avoid the
10186 rich_location::add_range overload that took a location_range,
10187 passing a location_t instead.
10188
10189 2016-03-09 Richard Biener <rguenther@suse.de>
10190 Jakub Jelinek <jakub@redhat.com>
10191
10192 PR tree-optimization/70138
10193 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
10194 Also skip vect_double_reduction_def.
10195
10196 2016-03-09 Jakub Jelinek <jakub@redhat.com>
10197
10198 PR target/70049
10199 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
10200 if the operand is "m".
10201
10202 2016-03-09 Nathan Sidwell <nathan@acm.org>
10203
10204 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
10205
10206 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10207
10208 * config/i386/i386.c (processor_target_table): Fix cost table
10209 intialization order for znver1.
10210
10211 2016-03-08 Jakub Jelinek <jakub@redhat.com>
10212
10213 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
10214 - becuase -> because.
10215 * ipa-reference.c (ignore_module_statics): Likewise.
10216 * cgraph.c (cgraph_node::get_body): Likewise.
10217 * ipa-inline.c (early_inliner): Likewise.
10218 * ipa-devirt.c (types_same_for_odr): Likewise.
10219 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
10220 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
10221
10222 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10223
10224 * tree-ssa-math-opts.c: Fix typo in comment.
10225
10226 2016-03-08 Jakub Jelinek <jakub@redhat.com>
10227
10228 PR target/70110
10229 * config/i386/i386.c (scalar_chain::make_vector_copies,
10230 scalar_chain::convert_reg): Call end_sequence in between
10231 get_insns and emit_conversion_insns rather than after both
10232 calls.
10233
10234 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
10235
10236 PR target/70064
10237 * config/i386/i386.h (machine_function): Add
10238 pc_thunk_call_expanded flag.
10239 (ix86_pc_thunk_call_expanded): New define.
10240 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
10241 (*set_got): Rename insn pattern from set_got.
10242 (*set_got_labelled): Rename inst pattern from set_got_labelled.
10243 * config/i386/i386.c (ix86_compute_frame_layout): Use
10244 ix86_pc_thunk_call_expanded to prevent red-zone.
10245
10246 2016-03-07 Martin Jambor <mjambor@suse.cz>
10247
10248 * hsa.h (hsa_get_ctor_statements): Declare.
10249 (hsa_get_dtor_statements): Likewise.
10250 (hsa_get_kernel_dispatch_type): Likewise.
10251 * hsa.c (hsa_get_ctor_statements): New function.
10252 (hsa_get_dtor_statements): Likewise.
10253 (hsa_get_kernel_dispatch_type): Likewise.
10254 * hsa-brig.c (hsa_cdtor_statements): Removed.
10255 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
10256 hsa_get_dtor_statements.
10257 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
10258 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
10259
10260 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
10261
10262 * config/arm/arm-cores.def (cortex-r8): New.
10263 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
10264 * config/arm/arm-tune.md: Likewise.
10265 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
10266
10267 2016-03-07 Martin Sebor <msebor@redhat.com>
10268
10269 PR rtl-optimization/19705
10270 * doc/invoke.texi (Options That Control Optimization): Clarify
10271 -fno-branch-count-reg.
10272
10273 2016-02-26 Richard Biener <rguenther@suse.de>
10274 Jeff Law <law@redhat.com>
10275
10276 PR tree-optimization/69740
10277 * cfghooks.c (remove_edge): Request loop fixups if we delete
10278 an edge that might turn an irreducible loop into a natural
10279 loop.
10280 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
10281 Move after definition of loops_state_clear.
10282
10283 2016-03-07 Bin Cheng <bin.cheng@arm.com>
10284
10285 PR rtl-optimization/69052
10286 * rtlanal.c (commutative_operand_precedence): Set higher precedence
10287 to CONST_WIDE_INT.
10288
10289 2016-03-07 Tom de Vries <tom@codesourcery.com>
10290
10291 PR tree-optimization/70116
10292 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
10293 is_tm_ending stmts and ubsan/asan internal functions.
10294 (find_duplicate): Use it. Don't test is_tm_ending here.
10295
10296 2016-03-07 Richard Biener <rguenther@suse.de>
10297
10298 PR tree-optimization/70115
10299 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
10300 (propagate_constants_for_unrolling): Use replace_uses_by.
10301
10302 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
10303
10304 PR middle-end/69916
10305 * omp-low.c (struct oacc_loop): Add ifns.
10306 (new_oacc_loop_raw): Initialize it.
10307 (finish_oacc_loop): Clear mask & flags if no ifns.
10308 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
10309 (oacc_loop_xform_loop): Add ifns arg & adjust.
10310 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
10311
10312 2016-03-07 Richard Henderson <rth@redhat.com>
10313
10314 PR rtl-opt/70061
10315 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
10316 (insert_value_copy_on_edge): Likewise.
10317
10318 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10319
10320 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
10321
10322 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10323
10324 PR target/62281
10325 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
10326
10327 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10328
10329 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
10330
10331 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
10332
10333 Fix sseimul type attribute.
10334 * config/i386/znver1.md
10335 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
10336 znver1_sseimul_avx256_load) : Fix the type attribute.
10337 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
10338 pipe usage and latency.
10339
10340 2016-03-05 Jakub Jelinek <jakub@redhat.com>
10341
10342 PR c++/70084
10343 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
10344 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
10345 to the right type.
10346
10347 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
10348
10349 PR c/69973
10350 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
10351
10352 PR rtl-optimization/69941
10353 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
10354 the reg share its mode.
10355
10356 2016-03-04 Jeff Law <law@redhat.com>
10357
10358 PR tree-optimization/69196
10359 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10360 If the both SSA_NAMEs are anonymous, then consider them unassociated
10361 and include the PHI in the statement count.
10362
10363 2016-03-05 Tom de Vries <tom@codesourcery.com>
10364
10365 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
10366 construct in oacc routine. Check for oacc region in oacc routine.
10367
10368 2016-03-04 Jakub Jelinek <jakub@redhat.com>
10369
10370 PR target/70062
10371 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
10372 2016-02-22 changes, instead don't recurse if RECUR is already true.
10373 Don't change *dynamic_check if RECUR. Adjust recursive caller
10374 to pass true to the new argument.
10375 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
10376
10377 PR target/70059
10378 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
10379 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
10380 fixes.
10381 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
10382
10383 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
10384
10385 PR rtl-optimization/57676
10386 * lra-assigns.c (lra_assign): Guard test for maximum iterations
10387 with flag_checking.
10388
10389 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
10390
10391 * tree-vect-patterns.c (search_type_for_mask): Handle
10392 comparison of booleans.
10393
10394 2016-03-04 Jakub Jelinek <jakub@redhat.com>
10395
10396 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
10397 Fix @xref usage.
10398
10399 PR debug/69947
10400 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
10401 all other ops that have dw_val_class_die_ref operands,
10402 and DW_OP_GNU_entry_value.
10403
10404 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10405
10406 PR rtl-optimization/69904
10407 * config/arm/arm.c (arm_cannot_copy_insn_p):
10408 Return true for load-exclusive instructions.
10409
10410 2016-03-03 Jakub Jelinek <jakub@redhat.com>
10411
10412 PR target/70021
10413 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
10414 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
10415 the pattern no matter if it is used just by non-pattern, pattern
10416 or mix thereof.
10417 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
10418 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
10419 oprnd1 def_stmt is in pattern, don't look through it.
10420
10421 2016-03-03 Marek Polacek <polacek@redhat.com>
10422
10423 PR middle-end/70050
10424 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
10425
10426 2016-03-03 Martin Liska <mliska@suse.cz>
10427
10428 PR tree-optimization/70043
10429 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
10430 previous statement if we see a debug statement.
10431
10432 2016-03-03 Richard Biener <rguenther@suse.de>
10433
10434 PR tree-optimization/55936
10435 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
10436 parameter and guard unsafe equivalence use.
10437 (vrp_evaluate_conditional_warnv_with_ops): Always use
10438 safe equivalences but not via the quadratic compare_names
10439 helper.
10440
10441 2016-03-03 Michael Collison <michael.collison@linaro.org>
10442
10443 PR target/70014
10444 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
10445 for operand 1 to s_register_operand. Change predicate for operand
10446 2 to arm_not_immediate_operand.
10447
10448 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
10449
10450 * doc/tm.texi: Regenerated.
10451
10452 2016-03-02 Richard Henderson <rth@redhat.com>
10453
10454 PR rtl-opt/67145
10455 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
10456 simplification when all args are positive non-fixed registers.
10457
10458 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10459
10460 * target.def (lra_p): Specify that new ports should use LRA.
10461
10462 2016-03-02 Jakub Jelinek <jakub@redhat.com>
10463
10464 PR libgomp/69555
10465 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
10466 gimplify_type_sizes the type they refer to.
10467 (omp_notice_variable): Handle reference vars to VLAs.
10468 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
10469 reference to VLA decls in the second pass instead of first pass.
10470
10471 2016-03-02 Tom de Vries <tom@codesourcery.com>
10472
10473 PR tree-optimization/68659
10474 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
10475 new_expr == NULL_TREE.
10476 (get_new_name): Handle ADDR_EXPR.
10477
10478 2016-03-02 Bin Cheng <bin.cheng@arm.com>
10479
10480 PR rtl-optimization/69052
10481 * loop-invariant.c (canonicalize_address): New function.
10482 (inv_can_prop_to_addr_use): Check validity of address expression
10483 which is canonicalized by above function.
10484
10485 2016-03-02 Alan Modra <amodra@gmail.com>
10486
10487 PR ipa/69990
10488 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
10489 larger alignment.
10490
10491 2016-03-02 Jakub Jelinek <jakub@redhat.com>
10492
10493 PR target/70028
10494 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
10495 (*movhi_internal): Put mask moves from and to memory separately
10496 from moves from/to GPRs.
10497
10498 2016-03-02 Richard Biener <rguenther@suse.de>
10499
10500 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
10501 GENERIC expressions in GIMPLE.
10502
10503 2016-03-02 Richard Biener <rguenther@suse.de>
10504
10505 * config/i386/i386.c (type_natural_mode): Fix typo.
10506
10507 2016-03-02 Nick Clifton <nickc@redhat.com>
10508
10509 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
10510
10511 2016-03-02 Richard Biener <rguenther@suse.de>
10512 Uros Bizjak <ubizjak@gmail.com>
10513
10514 PR target/67278
10515 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
10516
10517 2016-03-02 Richard Biener <rguenther@suse.de>
10518
10519 PR middle-end/67278
10520 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
10521
10522 2016-03-02 Marek Polacek <polacek@redhat.com>
10523
10524 PR c/67854
10525 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
10526 "is promoted to" warning.
10527
10528 2016-03-01 DJ Delorie <dj@redhat.com>
10529
10530 * config.gcc: Deprecate mep-*.
10531
10532 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
10533
10534 PR middle-end/70025
10535 * lra-constraints.c (regno_val_use_in): New.
10536 (match_reload): Use it instead of regno_use_in.
10537
10538 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
10539
10540 PR rtl-optimization/70007
10541 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
10542 references present in REG_EQUAL notes attached to non-SET patterns.
10543
10544 2016-03-01 Jeff Law <law@redhat.com>
10545
10546 PR tree-optimization/69196
10547 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10548 Appropriately clamp the number of statements to copy when the
10549 thread path does not traverse a loop backedge.
10550
10551 PR tree-optimization/69196
10552 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10553 Do count some PHIs in the thread path against the insn count. Decrease
10554 final statement count by one as the control statement in the last
10555 block will get removed. Remove special cased code for handling PHIs
10556 in the last block.
10557
10558 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
10559
10560 PR target/70027
10561 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
10562 asm dialect alternatives to explicit GOTPCREL calls.
10563
10564 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
10565
10566 PR ada/70017
10567 * ira.c (do_reload): Issue warning for generic stack checking here...
10568 * reload1.c (reload): ...instead of here and streamline it.
10569
10570 2016-03-01 Nick Clifton <nickc@redhat.com>
10571
10572 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
10573
10574 2016-03-01 Richard Biener <rguenther@suse.de>
10575
10576 PR tree-optimization/69983
10577 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
10578 types and fall back to operand_equal_p.
10579
10580 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10581
10582 Revert
10583 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10584
10585 * config/s390/constraints.md ("jm8"): New constraint.
10586 * config/s390/predicates.md ("const_int_8bitset_operand"): New
10587 predicate.
10588 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
10589 into ...
10590 ("*setmem_long<setmem_and>"): New pattern.
10591 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
10592 into ...
10593 ("*setmem_long_31z<setmem_and>"): New pattern.
10594 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
10595 New substitution rules with the required attributes.
10596
10597
10598 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10599
10600 Revert
10601 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10602
10603 * gensupport.c (process_substs_on_one_elem): Split loop to
10604 complete mark_operands_used_in_match_dup on all expressions in the
10605 vector first.
10606 (adjust_operands_numbers): Inline into process_substs_on_one_elem
10607 and remove function.
10608
10609 2016-03-01 Richard Biener <rguenther@suse.de>
10610
10611 PR middle-end/70022
10612 * fold-const.c (fold_indirect_ref_1): Fix range checking for
10613 vector BIT_FIELD_REF extract.
10614
10615 2016-03-01 Richard Biener <rguenther@suse.de>
10616
10617 PR tree-optimization/69994
10618 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
10619
10620 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
10621
10622 PR tree-optimization/69956
10623 * tree-vect-stmts.c (supportable_widening_operation): Support
10624 multi-step conversion of boolean vectors.
10625 (supportable_narrowing_operation): Likewise.
10626
10627 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10628
10629 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
10630 anymore.
10631
10632 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10633
10634 * config/s390/subst.md (DSI_VI): New mode iterator.
10635 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
10636 * config/s390/vector.md ("vec_set<mode>"): Move expander before
10637 the insn definition.
10638 ("*vec_set<mode>"): Change predicate and add alternative to
10639 support only either register or const_int operands as element
10640 selector.
10641 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
10642 operands.
10643 ("vec_extract<mode>"): New expander.
10644 ("*vec_extract<mode>"): New insn definition supporting reg and
10645 const_int element selectors.
10646 ("*vec_extract<mode>_plus"): New insn definition supporting
10647 reg+const_int element selectors.
10648 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
10649 following expander+insn definition.
10650 ("<vec_shifts_name><mode>3"): New expander.
10651 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
10652
10653 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10654
10655 * config/s390/s390.md ("*tabort_1"): Change predicate to
10656 nonmemory_operand. Add a second alternative to cover
10657 register as well as const int operands.
10658 ("*tabort_1_plus"): New pattern definition.
10659
10660 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10661
10662 * config/s390/s390.md ("*ashrdi3_cc_31")
10663 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
10664 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
10665 Merge insn definitions into ...
10666 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10667 New pattern definition.
10668 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
10669 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
10670 ("*ashr<mode>3_and"): Merge insn definitions into ...
10671 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
10672 New pattern definition.
10673 * config/s390/subst.md ("addr_style_op_cc_subst")
10674 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
10675 substitutions patterns plus attributes.
10676 Add ashiftrt to SUBST iterator.
10677
10678 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10679
10680 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
10681 op2 to nonmemory_operand.
10682 ("*<shift>di3_31", "*<shift>di3_31_and"):
10683 Merge into single pattern definition ...
10684 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
10685 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
10686 pattern definition ...
10687 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
10688 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
10689 iterator.
10690
10691 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10692
10693 * config/s390/predicates.md (const_int_6bitset_operand): New
10694 predicate.
10695 * config/s390/s390.md: Include subst.md.
10696 ("rotl<mode>3"): New expander.
10697 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
10698 ...
10699 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
10700 * config/s390/subst.md: New file.
10701
10702 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10703
10704 * config/s390/s390.md ("op_type", "atype", "length" attributes):
10705 Remove RRR type. It doesn't really exist.
10706 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
10707 attributes.
10708 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
10709 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
10710 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
10711 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
10712 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
10713 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
10714 `enabled' attribute.
10715
10716 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10717
10718 * gensupport.c (process_substs_on_one_elem): Split loop to
10719 complete mark_operands_used_in_match_dup on all expressions in the
10720 vector first.
10721 (adjust_operands_numbers): Inline into process_substs_on_one_elem
10722 and remove function.
10723
10724 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
10725
10726 PR target/69706
10727 * config/sparc/sparc.c (NWORDS_UP): Rename to...
10728 (CEIL_NWORDS): ...this. Use CEIL macro.
10729 (compute_fp_layout): Adjust to above renaming.
10730 (function_arg_union_value): Likewise.
10731 (sparc_arg_partial_bytes): Likewise.
10732 (sparc_function_arg_advance): Likewise.
10733
10734 2016-02-29 Jeff Law <law@redhat.com>
10735
10736 PR tree-optimization/70005
10737 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
10738 where an object with a boolean range is compared against a value
10739 outside [0..1].
10740
10741 PR tree-optimization/69999
10742 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
10743 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
10744 loop cleanups.
10745
10746 2016-02-29 Richard Biener <rguenther@suse.de>
10747
10748 PR tree-optimization/69994
10749 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
10750 (get_unary_op): Look through nop conversions.
10751 (ops_equal_values_p): New function, look for equality diregarding
10752 nop conversions.
10753 (eliminate_plus_minus_pair): Use ops_equal_values_p
10754 (repropagate_negates): Do not use get_unary_op here.
10755
10756 2016-02-29 Martin Liska <mliska@suse.cz>
10757
10758 * system.h: Poison ENABLE_CHECKING macro.
10759
10760 2016-02-29 Martin Liska <mliska@suse.cz>
10761
10762 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
10763 is presented in dump flags.
10764 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10765 (hsa_regalloc): Likewise.
10766
10767 2016-02-19 Richard Biener <rguenther@suse.de>
10768
10769 PR tree-optimization/69980
10770 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
10771 permutation of those we need to keep.
10772
10773 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
10774
10775 PR target/69706
10776 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
10777 (NWORDS_UP): ...this
10778 (init_cumulative_args): Minor tweaks.
10779 (sparc_promote_function_mode): Likewise.
10780 (scan_record_type): Delete.
10781 (traverse_record_type): New function template.
10782 (classify_data_t): New structure type.
10783 (classify_registers): New inline function.
10784 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
10785 exhausted. Instantiate traverse_record_type on classify_registers and
10786 deal with the case of a structure passed in slot #15 with no FP field
10787 in the first word.
10788 (assign_data_t): New structure type.
10789 (compute_int_layout): New static function.
10790 (compute_fp_layout): Likewise.
10791 (count_registers): New inline function.
10792 (assign_int_registers): New static function.
10793 (assign_fp_registers): Likewise.
10794 (assign_registers): New inline function.
10795 (function_arg_record_value_1): Delete.
10796 (function_arg_record_value_2): Likewise.
10797 (function_arg_record_value_3): Likewise.
10798 (function_arg_record_value): Adjust to above changes. Instantiate
10799 traverse_record_type on count_registers to first count the number of
10800 registers to be used and then on assign_registers to assign them.
10801 (function_arg_union_value): Adjust to above renaming.
10802 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
10803 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
10804 case of a structure passed in slot #15
10805 (sparc_function_arg_advance): Likewise.
10806 (function_arg_padding): Minor tweak.
10807
10808 2016-02-29 Richard Biener <rguenther@suse.de>
10809
10810 PR tree-optimization/69720
10811 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
10812 the adjustment_def path for possibly vectorized defs.
10813 (vect_create_epilog_for_reduction): Handle vectorized initial
10814 defs properly.
10815
10816 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
10817
10818 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
10819
10820 2016-02-27 Jeff Law <law@redhat.com>
10821
10822 Revert
10823 2016-02-26 Richard Biener <rguenther@suse.de>
10824 Jeff Law <law@redhat.com>
10825
10826 PR tree-optimization/69740
10827 * cfghooks.c (remove_edge): Request loop fixups if we delete
10828 an edge that might turn an irreducible loop into a natural
10829 loop.
10830
10831 2016-02-27 Jakub Jelinek <jakub@redhat.com>
10832
10833 PR rtl-optimization/69896
10834 * tree-vect-generic.c (get_compute_type): Avoid single element
10835 vector types.
10836
10837 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
10838
10839 Rename the AArch64 tuning option and related functions to enable the
10840 Newton series for the reciprocal square root to reflect its
10841 approximative characteristic.
10842
10843 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
10844 function to "aarch64_emit_approx_rsqrt".
10845 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
10846 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
10847 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
10848 (xgene1_tunings): Likewise.
10849 (use_rsqrt_p): Likewise.
10850 (aarch64_emit_swrsqrt): Use new function name.
10851 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
10852 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
10853 text explaining this option.
10854 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
10855
10856 2016-02-26 Jakub Jelinek <jakub@redhat.com>
10857
10858 PR target/69969
10859 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
10860 complain about -mallow-movmisalign without -mvsx if
10861 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
10862
10863 2016-02-26 Joel Sherrill <joel@rtems.org>
10864
10865 * config.gcc: Add x86_64-*-rtems*.
10866 * config/i386/rtems-64.h: New file.
10867
10868 2016-02-26 Joel Sherrill <joel@rtems.org>
10869
10870 * config.gcc: Add aarch64-*-rtems*.
10871 * config/aarch64/rtems.h: New file.
10872
10873 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
10874
10875 PR target/69946
10876 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
10877 shift amount using %h. Add comment.
10878
10879 2016-02-26 Richard Biener <rguenther@suse.de>
10880 Jeff Law <law@redhat.com>
10881
10882 PR tree-optimization/69740
10883 * cfghooks.c (remove_edge): Request loop fixups if we delete
10884 an edge that might turn an irreducible loop into a natural
10885 loop.
10886
10887 2016-02-26 Martin Jambor <mjambor@suse.cz>
10888
10889 PR middle-end/69920
10890 * tree-sra.c (sra_modify_assign): Do not remove loads of
10891 uninitialized aggregates to SSA_NAMEs.
10892
10893 2016-02-26 Richard Henderson <rth@redhat.com>
10894
10895 PR target/69709
10896 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
10897 pseudo in case the target rtx matches the source of the left
10898 shift.
10899
10900 2016-02-26 Martin Jambor <mjambor@suse.cz>
10901
10902 PR hsa/69568
10903 * hsa.h (hsa_type_packed_p): Declare.
10904 * hsa.c (hsa_type_packed_p): New function.
10905 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
10906 loads.
10907 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
10908 * hsa-brig.c (emit_basic_insn): Likewise.
10909
10910 2016-02-26 Martin Jambor <mjambor@suse.cz>
10911
10912 pr hsa/69674
10913 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
10914 pointers.
10915 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
10916
10917 2016-02-26 Martin Jambor <mjambor@suse.cz>
10918
10919 * hsa.h (is_a_helper): New overload for hsa_op_immed for
10920 hsa_op_with_type operands.
10921 (hsa_unsigned_type_for_type): Declare.
10922 * hsa.c (hsa_unsigned_type_for_type): New function.
10923 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
10924 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
10925 the finalizer. Do not emit extra move.
10926
10927 2016-02-26 Martin Jambor <mjambor@suse.cz>
10928
10929 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
10930 atomic operations in private segment.
10931
10932 2016-02-26 Martin Jambor <mjambor@suse.cz>
10933
10934 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
10935 statements to wi->info. Also disallow omp simd constructs.
10936 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
10937 for not gridifying. Dump special string for omp_for.
10938
10939 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10940
10941 PR target/69245
10942 * config/aarch64/aarch64.c (aarch64_set_current_function):
10943 Save/restore target globals when switching to
10944 target_option_default_node.
10945
10946 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10947
10948 PR target/69613
10949 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
10950 Return 0 if !SHIFT_COUNT_TRUNCATED.
10951
10952 2016-02-26 Jakub Jelinek <jakub@redhat.com>
10953 Eric Botcazou <ebotcazou@adacore.com>
10954
10955 PR rtl-optimization/69891
10956 * dse.c (scan_insn): If we can't figure out memset arguments
10957 or they are non-constant, call clear_rhs_from_active_local_stores.
10958
10959 2016-02-26 Martin Liska <mliska@suse.cz>
10960
10961 * doc/extend.texi: Mention clog10, clog10f an clog10l
10962 in Builtins section.
10963
10964 2016-02-26 Martin Liska <mliska@suse.cz>
10965
10966 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
10967 CHECKING_P.
10968 (resolve_args_picking_1): Likewise.
10969 * dwarf2out.h (struct GTY): Likewise.
10970
10971 2016-02-26 Martin Liska <mliska@suse.cz>
10972
10973 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
10974 with flag_checking.
10975 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
10976
10977 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
10978 Martin Liska <mliska@suse.cz>
10979
10980 * doc/install.texi: Mention --enable-valgrind-annotations.
10981
10982 2016-02-26 Richard Biener <rguenther@suse.de>
10983
10984 PR tree-optimization/69551
10985 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
10986 looking through aliases adjust DECL_PT_UID to refer to the
10987 ultimate alias target.
10988
10989 2016-02-25 Martin Liska <mliska@suse.cz>
10990
10991 PR middle-end/69919
10992 * alloc-pool.c (after_memory_report): New variable.
10993 * alloc-pool.h (base_pool_allocator ::release): Do not use
10994 the infrastructure if after_memory_report.
10995 * toplev.c (toplev::main): Mark after memory report.
10996
10997 2016-02-25 Richard Biener <rguenther@suse.de>
10998
10999 PR tree-optimization/48795
11000 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
11001
11002 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
11003
11004 PR driver/68463
11005 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
11006 offloading is enabled and -fopenacc or -fopenmp is specified.
11007 (CRTOFFLOADEND): Likewise.
11008 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
11009 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
11010 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
11011 (offload_objects_file_name): New static var.
11012 (tool_cleanup): Remove offload_objects_file_name file.
11013 (find_offloadbeginend): Replace with ...
11014 (find_crtoffloadtable): ... this.
11015 (run_gcc): Remove offload_argc and offload_argv.
11016 Get offload_objects_file_name from -foffload-objects=... option.
11017 Read names of object files with offload from this file, pass them to
11018 compile_images_for_offload_targets. Don't call find_offloadbeginend and
11019 don't pass offloadbegin and offloadend to the linker. Don't pass
11020 offload non-LTO files to the linker, because now they're not claimed.
11021
11022 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
11023
11024 PR ipa/69630
11025 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
11026 on builtin_unreachable.
11027
11028 2016-02-25 Jakub Jelinek <jakub@redhat.com>
11029
11030 PR rtl-optimization/69896
11031 * regcprop.c: Include cfgrtl.h.
11032 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
11033 than remembered mode, either delete it (if noop_move_p), or
11034 treat like copy_p but not noop_p instruction.
11035
11036 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11037
11038 PR debug/69705
11039 * dwarf2out.c (gen_variable_die): Work around buggy LTO
11040 - allow NULL decl for Fortran DW_TAG_common_block variables.
11041
11042 2016-02-24 Jason Merrill <jason@redhat.com>
11043
11044 * common.opt (flifetime-dse): Add -flifetime-dse=1.
11045
11046 2016-02-24 Richard Biener <rguenther@suse.de>
11047 Jakub Jelinek <jakub@redhat.com>
11048
11049 PR middle-end/69760
11050 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
11051 conditionally executed ops to well-defined overflow behavior.
11052
11053 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11054
11055 PR middle-end/69915
11056 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
11057 elements.
11058
11059 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11060
11061 PR rtl-optimization/69886
11062 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
11063 argument. Use it when checking validity of set instructions.
11064 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
11065 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
11066 callsite.
11067 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
11068 * store-motion.c (find_moveable_store): Update
11069 can_assign_to_reg_without_clobbers_p callsite.
11070
11071 2016-02-24 Richard Biener <rguenther@suse.de>
11072
11073 PR middle-end/68963
11074 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
11075 bogus check.
11076 (record_nonwrapping_iv): Do not fall back to the low/high bound
11077 for non-constant IV bases if the stmt is not always executed.
11078
11079 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11080
11081 * config/arm/arm-cores.def (cortex-a32): New entry.
11082 * config/arm/arm-tables.opt: Regenerate.
11083 * config/arm/arm-tune.md: Regenerate.
11084 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
11085 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
11086 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
11087 for -mcpu and -mtune.
11088
11089 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11090
11091 PR target/69875
11092 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
11093 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
11094 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
11095 (atomic_loaddi_1): Delete.
11096 (atomic_loaddi): Rewrite expander using the above changes.
11097
11098 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11099
11100 PR c/69918
11101 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
11102 2 to 3.
11103
11104 2016-02-24 Jakub Jelinek <jakub@redhat.com>
11105 Richard Biener <rguenth@suse.de>
11106
11107 PR middle-end/69909
11108 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
11109 set_mem_attributes if tem is SSA_NAME which got expanded
11110 as a MEM.
11111
11112 2016-02-24 Richard Biener <rguenther@suse.de>
11113
11114 PR tree-optimization/69907
11115 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
11116 end of permutations for BB vectorization.
11117
11118 2016-02-24 Christian Bruel <christian.bruel@st.com>
11119
11120 * config/arm/arm-c.c (arm_option_override): Initialize
11121 target_option_current_node.
11122 * config/arm/arm.c (arm_pragma_target_parse): Replace
11123 build_target_option_node call by target_option_current_node.
11124 Set target_option_current_node.
11125 Fix comments.
11126
11127 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
11128
11129 PR target/69810
11130 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
11131 define_insn_and_split to define_insn.
11132 (zero_extendqi<mode>2_dot2): Same.
11133 (extendqi<mode>2_dot): Same.
11134 (extendqi<mode>2_dot2): Same.
11135
11136 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
11137
11138 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
11139 and add bypass for AES{D,E} and AESMC pairs.
11140 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
11141 and AESMC pairs.
11142
11143 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
11144
11145 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
11146 series for reciprocal square root in Exynos M1.
11147
11148 2016-02-23 Martin Sebor <msebor@redhat.com>
11149
11150 PR c/69759
11151 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
11152 __builtin_alloca_with_align.
11153
11154 2016-02-23 Richard Henderson <rth@redhat.com>
11155
11156 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
11157 (ix86_register_pragmas): Remove __seg_tls.
11158 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
11159 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
11160 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
11161 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
11162 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
11163 * doc/extend.texi (__seg_tls): Remove item.
11164
11165 2016-02-23 Richard Biener <rguenther@suse.de>
11166
11167 * alloc-pool.h (struct allocation_object): Make id member
11168 conditional on CHECKING_P again.
11169 (get_instance): Adjust.
11170 (base_pool_allocator): Likewise.
11171
11172 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
11173
11174 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
11175 (parallelize_loops): In OpenACC kernels mode, set n_threads to
11176 zero.
11177 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
11178 flag_openacc.
11179 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
11180
11181 2016-02-23 Richard Biener <rguenther@suse.de>
11182
11183 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
11184 * bitmap.h (struct bitmap_usage): Likewise.
11185 (bitmap_move): Declare.
11186 * bitmap.c (register_overhead): Take size_t argument.
11187 (bitmap_move): New function.
11188 * df-problems.c (df_rd_transfer_function): Use bitmap_move
11189 to properly account overhead.
11190 * tree.c (free_node): Use tree_size.
11191
11192 2016-02-23 Jakub Jelinek <jakub@redhat.com>
11193
11194 PR c++/69902
11195 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
11196 when inverting comparison.
11197
11198 PR c/69900
11199 * common.opt (Wunreachable-code): Add Warning flag.
11200
11201 2016-02-23 Mark Wielaard <mjw@redhat.com>
11202 Jakub Jelinek <jakub@redhat.com>
11203
11204 PR c/69911
11205 * cgraphunit.c (check_global_declaration): Check main_input_filename
11206 and DECL_SOURCE_FILE are not NULL.
11207
11208 2016-02-23 Martin Jambor <mjambor@suse.cz>
11209
11210 PR tree-optimization/69666
11211 * tree-sra.c (sra_modify_assign): Do not attempt to create
11212 default_def replacements for unscalarizable regions.
11213
11214 2016-02-20 Mark Wielaard <mjw@redhat.com>
11215
11216 PR c/28901
11217 * cgraphunit.c (check_global_declaration): Check level of
11218 warn_unused_const_variable and main_input_filename.
11219 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
11220 (-Wunused-variable): For C implies -Wunused-const-variable=1.
11221 (-Wunused-const-variable): Explain levels 1 and 2.
11222
11223 2016-02-22 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR target/69888
11226 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
11227 identical arguments. Formatting and spelling fixes.
11228
11229 PR target/69885
11230 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
11231 be specified.
11232
11233 PR target/69894
11234 PR target/69895
11235 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
11236 and m68k-devices.def.
11237 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
11238 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
11239
11240 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
11241
11242 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
11243 and HImode registers.
11244
11245 2016-02-22 Richard Biener <rguenther@suse.de>
11246
11247 PR tree-optimization/69882
11248 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
11249 preserve permutations present because of gaps.
11250 (vect_supported_load_permutation_p): Always continue checking
11251 permutations after vect_attempt_slp_rearrange_stmts.
11252
11253 2016-02-22 Bin Cheng <bin.cheng@arm.com>
11254
11255 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
11256 min_profitable_estimate, rather than min_profitable_iters.
11257
11258 2016-02-22 Jakub Jelinek <jakub@redhat.com>
11259
11260 PR target/69885
11261 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
11262 SImode for last match_operand.
11263
11264 2016-02-22 Martin Liska <mliska@suse.cz>
11265
11266 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
11267 return bitsize - 1 as the return value.
11268
11269 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
11270
11271 PR target/69806
11272 PR target/54089
11273 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
11274 Handle negative shift counts.
11275 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
11276 force_reg on the shift constant.
11277 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
11278 (lshrsi3_d): Handle negative shift counts.
11279
11280 2016-02-22 Richard Biener <rguenther@suse.de>
11281 Tom de Vries <tom@codesourcery.com>
11282
11283 * graph.c: Include dumpfile.h.
11284 (print_graph_cfg): Split into three overloads.
11285 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
11286
11287 2016-02-22 Tom de Vries <tom@codesourcery.com>
11288
11289 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
11290 dump-fn.
11291
11292 2016-02-22 Richard Biener <rguenther@suse.de>
11293
11294 PR ipa/37448
11295 * ipa-inline-transform.c (inline_call): When not updating
11296 overall summaries adjust self size by the growth estimate.
11297 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
11298 hash-set, do not update overall summaries here. Renamed from ...
11299 (inline_to_all_callers): ... this which is now wrapping the
11300 above and performing delayed overall summary update.
11301 (early_inline_small_functions): Delay updating of the overall
11302 summary.
11303
11304 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11305
11306 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
11307 variable.
11308
11309 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11310
11311 PR driver/69805
11312 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
11313 :%* in %:gt() argument.
11314 (greater_than_spec_func): Adjust for expecting only numbers,
11315 if there are more than two numbers, compare the last two.
11316
11317 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
11318
11319 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
11320 -Wnarrowing with -std.
11321
11322 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11323
11324 PR c++/69851
11325 * expr.c (store_field): Don't use bit-field path if exp is
11326 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
11327 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
11328 and the assignment can be performed by bitwise copy. Formatting
11329 fix.
11330
11331 PR middle-end/69838
11332 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
11333 call copy_reg_eh_region_note_forward on before and/or after sequences
11334 and remove note from insn if it no longer can throw.
11335
11336 PR target/69820
11337 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
11338 if TARGET_AVX512BW.
11339
11340 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11341
11342 * config/s390/vector.md: Add missing commutative operand markers
11343 to the patterns which qualify for one.
11344 * config/s390/vx-builtins.md: Likewise.
11345
11346 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11347
11348 * config/s390/vector.md (VI, VI_QHS): Add single element vector
11349 types to mode iterators.
11350 (vec_double): ... and mode attribute.
11351 * config/s390/vx-builtins.md (non_vec_int): Likewise.
11352
11353 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11354
11355 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
11356 Change the predicate of op2 from nonimmediate to general and let
11357 reload fix it if necessary.
11358
11359 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11360
11361 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
11362
11363 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11364
11365 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
11366 mode.
11367
11368 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11369
11370 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
11371 * config/s390/s390.c (s390_expand_vec_movstr): New function.
11372 * config/s390/s390.md ("movstr<P:mode>"): Call
11373 s390_expand_vec_movstr.
11374
11375 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11376
11377 * config/s390/s390.md: Add missing output modifier for operand 1
11378 to print it as address properly.
11379
11380 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11381
11382 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
11383 * config/s390/2964.md: New file.
11384 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
11385 of insn grouping attributes depending on the CPU level.
11386 (s390_get_unit_mask): New function.
11387 (s390_sched_score): Remove the OOO from the scheduling macros.
11388 Add loop to calculate a score for the instruction mix.
11389 (s390_sched_reorder): Likewise plus improve debug output.
11390 (s390_sched_variable_issue): Rename macros as above. Calculate
11391 the unit distances after actually scheduling an insn. Improve
11392 debug output.
11393 (s390_sched_init): Clear last_scheduled_unit_distance array.
11394 * config/s390/s390.md: Include 2964.md.
11395
11396 2016-02-18 Jakub Jelinek <jakub@redhat.com>
11397
11398 PR target/69671
11399 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
11400 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
11401 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
11402 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
11403 *avx512f_<code>v8div16qi2_mask_1): New insns.
11404
11405 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11406
11407 PR target/68404
11408 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
11409 2016-02-09 change.
11410
11411 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
11412 earlyclobber from target. Use wF constraint for fused memory
11413 address.
11414 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
11415
11416 2016-02-18 Jakub Jelinek <jakub@redhat.com>
11417 Martin Liska <mliska@suse.cz>
11418
11419 PR sanitizer/69863
11420 * cfgexpand.c (asan_sanitize_stack_p): New function.
11421 (partition_stack_vars): Use the function.
11422 (expand_stack_vars): Likewise.
11423 (defer_stack_allocation): Likewise.
11424 (expand_used_vars): Likewise.
11425
11426 2016-02-18 Richard Biener <rguenther@suse.de>
11427
11428 PR middle-end/69553
11429 * fold-const.c (operand_equal_p): Properly compare offsets for
11430 IMAGPART_EXPR and ARRAY_REF.
11431
11432 2016-02-18 Nick Clifton <nickc@redhat.com>
11433
11434 PR target/62254
11435 PR target/69610
11436 * config/arm/arm.c (arm_option_override_internal): Disable
11437 interworking if the target does not support thumb instructions.
11438 (arm_reload_in_hi): Handle the case where a register to register
11439 move needs reloading because there is no simple pattern to handle
11440 it.
11441 (arm_reload_out_hi): Likewise.
11442
11443 2016-02-18 Richard Biener <rguenther@suse.de>
11444
11445 PR middle-end/69854
11446 * match.pd: Don't use fold_binary or fold_unary for folding
11447 constants.
11448
11449 2016-02-17 Jakub Jelinek <jakub@redhat.com>
11450
11451 PR c++/69850
11452 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
11453 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
11454 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
11455 warn on gimple_no_warning_p statements.
11456
11457 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
11458
11459 * doc/extend.texi (C++ Attributes): Correct description of
11460 warn_unused type attribute.
11461
11462 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11463
11464 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
11465 correct instruction.
11466
11467 2016-02-17 Richard Biener <rguenther@suse.de>
11468
11469 PR rtl-optimization/69609
11470 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
11471 (find_traces_1_round): When ending a trace update cached priority
11472 of successors.
11473 (bb_to_key): Use cached priority when available.
11474 (copy_bb): Initialize cached priority.
11475 (reorder_basic_blocks_software_trace_cache): Likewise.
11476
11477 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11478
11479 PR target/69161
11480 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
11481 New predicate.
11482 (aarch64_comparison_operator): Break overly long line into two.
11483 (aarch64_comparison_operation): Likewise.
11484 * config/aarch64/aarch64.md (cstorecc4): Use
11485 aarch64_comparison_operator_mode instead of
11486 aarch64_comparison_operator.
11487 (cstore<mode>4): Likewise.
11488 (aarch64_cstore<mode>): Likewise.
11489 (*cstoresi_insn_uxtw): Likewise.
11490 (cstore<mode>_neg): Likewise.
11491 (*cstoresi_neg_uxtw): Likewise.
11492
11493 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11494
11495 PR target/69161
11496 * config/arm/predicates.md (arm_comparison_operator_mode):
11497 New predicate.
11498 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
11499 instead of arm_comparison_operator.
11500 (*mov_negscc): Likewise.
11501 (*mov_notscc): Likewise.
11502 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
11503 (*thumb2_mov_negscc): Likewise.
11504 (*thumb2_mov_negscc_strict_it): Likewise.
11505 (*thumb2_mov_notscc): Likewise.
11506 (*thumb2_mov_notscc_strict_it): Likewise.
11507
11508 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
11509
11510 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
11511 Add missing return.
11512
11513 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
11514
11515 * config/visium/visium.c (machine_libfunc_index): New enum.
11516 (machine_libfuncs): New structure.
11517 (visium_libfuncs): New static variable.
11518 (TARGET_INIT_LIBFUNCS): Define to...
11519 (visium_init_libfuncs): ...this. New function.
11520 (expand_block_move_4): Use the appropriate libfunc.
11521 (expand_block_move_2): Likewise.
11522 (expand_block_move_1): Likewise.
11523 (expand_block_set_4): Likewise.
11524 (expand_block_set_2): Likewise.
11525 (expand_block_set_1): Likewise.
11526 (visium_trampoline_init): Likewise.
11527
11528 2016-02-17 Nick Clifton <nickc@redhat.com>
11529
11530 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
11531 TI's devices.csv file as of March 2016.
11532
11533 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
11534
11535 PR Target/48344
11536 * opts-global.c (handle_common_deferred_options): Introduce and
11537 initialize two global variables to remember command-line options
11538 specifying a stack-limiting register.
11539 * opts.h: Add extern declarations of the two new global variables.
11540 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
11541 variable based on the values of the two new global variables.
11542
11543 2016-02-16 Jakub Jelinek <jakub@redhat.com>
11544
11545 PR c/69835
11546 * common.opt (Wnonnull-compare): New warning.
11547 * doc/invoke.texi (-Wnonnull): Remove text about comparison
11548 of arguments against NULL.
11549 (-Wnonnull-compare): Document.
11550 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
11551 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
11552 * passes.def (pass_warn_nonnull_compare): Add.
11553 * gimple-ssa-nonnull-compare.c: New file.
11554
11555 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
11556
11557 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
11558 AARCH64_EXTRA_TUNE_RECIP_SQRT.
11559
11560 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
11561
11562 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
11563 reciprocal sqrt for -mlow-precision-recip-sqrt.
11564
11565 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
11566 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11567
11568 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
11569 always use lane loads to construct non-constant vectors.
11570
11571 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
11572
11573 * config/aarch64/aarch64.md
11574 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
11575 constraints for operand 3.
11576 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
11577
11578 2016-02-16 Jakub Jelinek <jakub@redhat.com>
11579 Richard Biener <rguenther@suse.de>
11580
11581 PR tree-optimization/69820
11582 * tree-vect-patterns.c (type_conversion_p): Return false if
11583 *orig_type is unsigned single precision or boolean.
11584 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
11585 Formatting fix.
11586
11587 2016-02-16 Jakub Jelinek <jakub@redhat.com>
11588
11589 PR rtl-optimization/69764
11590 PR rtl-optimization/69771
11591 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
11592 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
11593
11594 2016-02-16 Richard Biener <rguenther@suse.de>
11595
11596 PR tree-optimization/69776
11597 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
11598 sets from caller.
11599 (indirect_refs_may_alias_p): Likewise.
11600 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
11601 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
11602 according to tbaa_p.
11603 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
11604 (optimize_stmt): For redundant store discovery do not allow tbaa.
11605
11606 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
11607
11608 PR tree-optimization/69714
11609 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
11610 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
11611
11612 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
11613
11614 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
11615 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
11616 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
11617 * config/arc/arc.c (arc_init): Check FPU options.
11618 (get_arc_condition_code): Handle new CC_FPU* modes.
11619 (arc_select_cc_mode): Likewise.
11620 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
11621 register pair only. Allow access for ARCv2 accumulator.
11622 (gen_compare_reg): Whenever we have FPU support use FPU compare
11623 instructions.
11624 (arc_reorg): Don't generate brcc insns when FPU compare
11625 instructions are involved.
11626 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
11627 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
11628 floating point emulation.
11629 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
11630 (REVERSE_CONDITION): Add new CC_FPU* modes.
11631 (TARGET_FP_SP_BASE): Define.
11632 (TARGET_FP_DP_BASE): Likewise.
11633 (TARGET_FP_SP_FUSED): Likewise.
11634 (TARGET_FP_DP_FUSED): Likewise.
11635 (TARGET_FP_SP_CONV): Likewise.
11636 (TARGET_FP_DP_CONV): Likewise.
11637 (TARGET_FP_SP_SQRT): Likewise.
11638 (TARGET_FP_DP_SQRT): Likewise.
11639 (TARGET_FP_DP_AX): Likewise.
11640 * config/arc/arc.md (ARCV2_ACC): New constant.
11641 (type): New fpu type attribute.
11642 (SDF): Conditional iterator.
11643 (cstore<mode>, cbranch<mode>): Change expand condition.
11644 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
11645 handles FPU/FPX cases as well.
11646 * config/arc/arc.opt (mfpu): New option.
11647 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
11648 Renamed.
11649 (adddf3, muldf3, subdf3): Removed.
11650 * config/arc/predicates.md (proper_comparison_operator): Recognize
11651 CC_FPU* modes.
11652 * config/arc/fpu.md: New file.
11653 * doc/invoke.texi (ARC Options): Document mfpu option.
11654
11655 2016-02-16 Richard Biener <rguenther@suse.de>
11656
11657 PR rtl-optimization/69291
11658 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
11659 noce_operand_ok check.
11660
11661 2016-02-16 Tom de Vries <tom@codesourcery.com>
11662
11663 PR lto/67709
11664 * omp-low.c (simd_clone_create): Remove call to
11665 symtab->call_cgraph_insertion_hooks.
11666
11667 2016-02-16 Jakub Jelinek <jakub@redhat.com>
11668
11669 PR tree-optimization/69802
11670 * tree-ssa-reassoc.c (update_range_test): If op is
11671 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
11672 op == 1 test of precision 1 integral op, otherwise handle
11673 that case as op itself. Fix up formatting.
11674 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
11675 up formatting.
11676
11677 2016-02-16 Richard Biener <rguenther@suse.de>
11678
11679 PR tree-optimization/69586
11680 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
11681 types for conversion sources.
11682
11683 2016-02-16 Richard Biener <rguenther@suse.de>
11684
11685 PR middle-end/69801
11686 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
11687 mask OEP_ADDRESS_OF.
11688
11689 2016-02-16 Alan Modra <amodra@gmail.com>
11690
11691 PR target/68973
11692 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
11693 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
11694 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
11695 (p8_mtvsrwz): New.
11696 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
11697 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
11698 (p8_fmrgow_<mode>): Likewise.
11699 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
11700 changes.
11701 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
11702 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
11703 to use movdi_internal64. Remove op0_di.
11704 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
11705
11706 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
11707
11708 Add support for the FCCMP insn types
11709
11710 * config/aarch64/aarch64.md (fccmp): Change insn type.
11711 (fccmpe): Likewise.
11712 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
11713 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
11714 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
11715 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
11716 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
11717 * config/arm/types.md (fccmps): Add new insn type.
11718 (fccmpd): Likewise.
11719
11720 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
11721
11722 * alias.c (get_alias_set): Fix a typo in comment.
11723
11724 2016-02-15 Richard Biener <rguenther@suse.de>
11725
11726 PR tree-optimization/69595
11727 * match.pd: Complete range test simplification to true.
11728
11729 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
11730
11731 PR rtl-optimization/69648
11732 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
11733 pic_offset_table_rtx.
11734
11735 PR rtl-optimization/69752
11736 * ira.c (update_equiv_regs): When looking for more than a single SET,
11737 also take other side effects into account.
11738
11739 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
11740
11741 * config/s390/s390.c (s390_function_profiler): Add a new sequence
11742 for z900+ CPUs in 31-bit mode.
11743
11744 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
11745
11746 * common/config/s390/s390-common.c (s390_supports_split_stack):
11747 New function.
11748 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
11749 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
11750 * config/s390/s390.c (struct machine_function): New field
11751 split_stack_varargs_pointer.
11752 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
11753 in s390_emit_prologue.
11754 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
11755 vararg pointer.
11756 (morestack_ref): New global.
11757 (SPLIT_STACK_AVAILABLE): New macro.
11758 (s390_expand_split_stack_prologue): New function.
11759 (s390_live_on_entry): New function.
11760 (s390_va_start): Use split-stack vararg pointer if appropriate.
11761 (s390_asm_file_end): Emit the split-stack note sections.
11762 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
11763 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
11764 (UNSPECV_SPLIT_STACK_CALL): New unspec.
11765 (UNSPECV_SPLIT_STACK_DATA): New unspec.
11766 (split_stack_prologue): New expand.
11767 (split_stack_space_check): New expand.
11768 (split_stack_data): New insn.
11769 (split_stack_call): New expand.
11770 (split_stack_call_*): New insn.
11771 (split_stack_cond_call): New expand.
11772 (split_stack_cond_call_*): New insn.
11773
11774 2016-02-15 Richard Biener <rguenther@suse.de>
11775
11776 PR tree-optimization/69783
11777 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
11778 Add trivially correct cases.
11779
11780 2016-02-15 Tom de Vries <tom@codesourcery.com>
11781
11782 PR lto/69655
11783 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
11784 do_force_output.
11785 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
11786
11787 2016-02-15 Richard Biener <rguenther@suse.de>
11788
11789 PR tree-optimization/69776
11790 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11791 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
11792 indicate whether we can use TBAA to disambiguate against stores.
11793 Use alias-set zero if not.
11794 (visit_reference_op_store): Do not use TBAA when looking up
11795 redundant stores.
11796 * tree-ssa-pre.c (compute_avail): Use TBAA here.
11797 (eliminate_dom_walker::before_dom_children): But not when looking
11798 up redundant stores.
11799
11800 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
11801
11802 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
11803
11804 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11805
11806 * config/i386/znver1.md
11807 (znver1_pop, znver1_pop_mem,
11808 znver1_load_imov_double_store,
11809 znver1_load_imov_direct_store,
11810 znver1_load_imov_direct_load,
11811 znver1_load_imov_double_load): Add new.
11812 (znver1_insn, znver1_insn_load): Add icmov type.
11813 (znver1_sseavx_fma,
11814 znver1_sseavx_fma_load,
11815 znver1_avx256_fma,
11816 znver1_avx256_fma_load): Fix pipe usage.
11817
11818 2016-02-14 Alan Modra <amodra@gmail.com>
11819
11820 PR target/68973
11821 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
11822 with an invalid hard reg, reload just the reg not the entire
11823 pre/post-inc/dec address expression.
11824
11825 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
11826
11827 PR target/67260
11828 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
11829 fixed R1_REG scratch reg.
11830 (sibcall_value_pcrel_fdpic): Likewise.
11831
11832 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
11833
11834 PR target/67636
11835 PR target/64345
11836 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
11837
11838 2016-02-12 Walter Lee <walt@tilera.com>
11839
11840 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
11841 * config/tilegx/t-tilegx: Likewise.
11842
11843 2016-02-12 David Malcolm <dmalcolm@redhat.com>
11844
11845 PR other/69554
11846 * diagnostic-show-locus.c (struct line_span): New struct.
11847 (layout::get_first_line): Delete.
11848 (layout::get_last_line): Delete.
11849 (layout::get_num_line_spans): New member function.
11850 (layout::get_line_span): Likewise.
11851 (layout::print_heading_for_line_span_index_p): Likewise.
11852 (layout::get_expanded_location): Likewise.
11853 (layout::calculate_line_spans): Likewise.
11854 (layout::m_first_line): Delete.
11855 (layout::m_last_line): Delete.
11856 (layout::m_line_spans): New field.
11857 (layout::layout): Update comment. Replace m_first_line and
11858 m_last_line with m_line_spans, replacing their initialization
11859 with a call to calculate_line_spans.
11860 (diagnostic_show_locus): When printing source lines and
11861 annotations, rather than looping over a single span
11862 of lines, instead loop over each line_span within
11863 the layout, with an inner loop over the lines within them.
11864 Call the context's start_span callback when changing line spans.
11865 * diagnostic.c (diagnostic_initialize): Initialize start_span.
11866 (diagnostic_build_prefix): Break out the building of the location
11867 part of the string into...
11868 (diagnostic_get_location_text): ...this new function, rewriting
11869 it from nested ternary expressions to a sequence of "if"
11870 statements.
11871 (default_diagnostic_start_span_fn): New function.
11872 * diagnostic.h (diagnostic_start_span_fn): New typedef.
11873 (diagnostic_context::start_span): New field.
11874 (default_diagnostic_start_span_fn): New prototype.
11875
11876 2016-02-12 David Malcolm <dmalcolm@redhat.com>
11877
11878 PR driver/69779
11879 * gcc.c (driver::finalize): Fix cleanup of "specs".
11880
11881 2016-02-12 David Malcolm <dmalcolm@redhat.com>
11882
11883 PR driver/69265
11884 PR driver/69453
11885 * gcc.c (driver::driver): Initialize m_option_suggestions.
11886 (driver::~driver): Clean up m_option_suggestions.
11887 (suggest_option): Convert to...
11888 (driver::suggest_option): ...this, and split out into
11889 driver::build_option_suggestions and find_closest_string.
11890 (driver::build_option_suggestions): New function, from
11891 first half of suggest_option. Special-case
11892 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
11893 the sanitizer_opts array. For options of enum types, add the
11894 various enum values to the candidate strings.
11895 (driver::handle_unrecognized_options): Remove "const".
11896 * gcc.h (driver::handle_unrecognized_options): Likewise.
11897 (driver::build_option_suggestions): New decl.
11898 (driver::suggest_option): New decl.
11899 (driver::m_option_suggestions): New field.
11900 * opts-common.c (add_misspelling_candidates): New function.
11901 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
11902 and make non-static.
11903 * opts.h (sanitizer_opts): New array decl.
11904 (add_misspelling_candidates): New function decl.
11905 * spellcheck.c (find_closest_string): New function.
11906 * spellcheck.h (find_closest_string): New function decl.
11907
11908 2016-02-12 Jakub Jelinek <jakub@redhat.com>
11909
11910 PR rtl-optimization/69764
11911 PR rtl-optimization/69771
11912 * optabs.c (expand_binop_directly): For shift_optab_p, force
11913 convert_modes with VOIDmode if xop1 has VOIDmode.
11914
11915 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
11916
11917 PR target/69729
11918 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
11919 to correctly determine instrumentation thunks.
11920
11921 2016-02-12 Jakub Jelinek <jakub@redhat.com>
11922
11923 PR ipa/69241
11924 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
11925 type by reference, force lhs on the call.
11926
11927 PR ipa/68672
11928 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
11929 Compute retval and retbnd early in all cases if split_part_return_p
11930 and return_bb is not EXIT. Remove all clobber stmts and reset
11931 all debug stmts that refer to SSA_NAMEs defined in split part,
11932 except if it is retval, in that case replace the old retval with the
11933 lhs of the call to the split part.
11934
11935 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11936
11937 revert:
11938 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11939
11940 PR middle-end/66726
11941 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11942 whose result is used in PHI.
11943 (maybe_optimize_range_tests): Likewise.
11944 (final_range_test_p): Likweise.
11945
11946 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
11947
11948 PR middle-end/66726
11949 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
11950 whose result is used in PHI.
11951 (maybe_optimize_range_tests): Likewise.
11952 (final_range_test_p): Likweise.
11953
11954 2016-02-12 Jakub Jelinek <jakub@redhat.com>
11955
11956 * cgraph.c: Spelling fixes - behaviour -> behavior and
11957 neighbour -> neighbor.
11958 * target.def: Likewise.
11959 * sel-sched.c: Likewise.
11960 * config/mips/mips.c: Likewise.
11961 * config/arc/arc.md: Likewise.
11962 * config/arm/cortex-a57.md: Likewise.
11963 * config/arm/arm.c: Likewise.
11964 * config/arm/neon.md: Likewise.
11965 * config/arm/arm-c.c: Likewise.
11966 * config/vms/vms-c.c: Likewise.
11967 * config/s390/s390.c: Likewise.
11968 * config/i386/znver1.md: Likewise.
11969 * config/i386/i386.c: Likewise.
11970 * config/ia64/hpux-unix2003.h: Likewise.
11971 * config/msp430/msp430.md: Likewise.
11972 * config/rx/rx.c: Likewise.
11973 * config/rx/rx.md: Likewise.
11974 * config/aarch64/aarch64-simd.md: Likewise.
11975 * config/aarch64/aarch64.c: Likewise.
11976 * config/nvptx/nvptx.c: Likewise.
11977 * config/bfin/bfin.c: Likewise.
11978 * config/cris/cris.opt: Likewise.
11979 * config/rs6000/rs6000.c: Likewise.
11980 * target.h: Likewise.
11981 * spellcheck.c: Likewise.
11982 * ira-build.c: Likewise.
11983 * tree-inline.c: Likewise.
11984 * builtins.c: Likewise.
11985 * lra-constraints.c: Likewise.
11986 * explow.c: Likewise.
11987 * hwint.h: Likewise.
11988 * targhooks.c: Likewise.
11989 * tree-vect-data-refs.c: Likewise.
11990 * expr.c: Likewise.
11991 * doc/tm.texi: Likewise.
11992 * doc/extend.texi: Likewise.
11993 * doc/install.texi: Likewise.
11994 * doc/md.texi: Likewise.
11995 * tree-ssa-tail-merge.c: Likewise.
11996 * sched-int.h: Likewise.
11997 * match.pd: Likewise.
11998 * sched-ebb.c: Likewise.
11999 * target.def (omit_struct_return_reg): Likewise.
12000 * gimple-ssa-isolate-paths.c: Likewise.
12001 (find_implicit_erroneous_behaviour): Renamed to...
12002 (find_implicit_erroneous_behavior): ... this.
12003 (find_explicit_erroneous_behaviour): Renamed to...
12004 (find_explicit_erroneous_behavior): ... this.
12005 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
12006
12007 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
12008
12009 PR rtl-optimization/64682
12010 PR rtl-optimization/69567
12011 PR rtl-optimization/69737
12012 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
12013 in I2 as well, just lose it.
12014
12015 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12016
12017 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
12018 New variable.
12019 (aarch64_last_printed_tune_string): Likewise.
12020 (aarch64_declare_function_name): Only output .arch assembler
12021 directive if it will be different from the previously output
12022 directive. Same for .tune comment but only if -dA is set.
12023 (aarch64_start_file): New function.
12024 (TARGET_ASM_FILE_START): Define.
12025
12026 2016-02-11 David Malcolm <dmalcolm@redhat.com>
12027
12028 PR plugins/69758
12029 * Makefile.in (PLUGIN_HEADERS): Add params.list.
12030
12031 2016-02-11 Jakub Jelinek <jakub@redhat.com>
12032
12033 PR target/65313
12034 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
12035 -Wmaybe-uninitialized warning.
12036
12037 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
12038
12039 PR target/69713
12040 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
12041
12042 2016-02-11 Richard Biener <rguenther@suse.de>
12043
12044 PR rtl-optimization/69291
12045 * ifcvt.c (noce_try_store_flag_constants): Do not allow
12046 subexpressions affected by changing the result.
12047
12048 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
12049
12050 PR target/69148
12051 * lra-constraints.c (curr_insn_transform): Find in/out operands
12052 for secondary memory moves. Update dups.
12053
12054 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
12055
12056 PR tree-optimization/69652
12057 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
12058 to nested loop, did source re-formatting, skip debug statements,
12059 add check on statement with volatile operand, remove dead scalar
12060 statements.
12061
12062 2016-02-10 Jakub Jelinek <jakub@redhat.com>
12063 Patrick Palka <ppalka@gcc.gnu.org>
12064
12065 PR ipa/69241
12066 PR c++/69649
12067 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
12068 calls if the return type is TREE_ADDRESSABLE.
12069 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
12070 * ipa-split.c (split_function): Fix doubled "we" in comment.
12071 Use void return type for the split part even if
12072 !split_point->split_part_set_retval.
12073
12074 2016-02-10 Bin Cheng <bin.cheng@arm.com>
12075
12076 PR tree-optimization/68021
12077 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
12078 when computing the value of biv cand by itself.
12079
12080 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12081
12082 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
12083 (cortexa57_tunings): Likewise.
12084 (cortexa72_tunings): Likewise.
12085 (arch_macro_fusion_pair_p): Add support for AES fusion.
12086 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
12087 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
12088 Allow virtual registers before reload so early scheduling works.
12089 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
12090 correct latency and pipeline.
12091 (cortex_a57_crypto_complex): Likewise.
12092 (cortex_a57_crypto_xor): Likewise.
12093 (define_bypass): Add AES bypass.
12094
12095 2016-02-10 Richard Biener <rguenther@suse.de>
12096
12097 PR tree-optimization/69726
12098 * passes.def: Add DCE pass before late uninit.
12099 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
12100 really fixup if-conversions job.
12101
12102 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12103
12104 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
12105 (arm_cortex_a57_tune): Likewise.
12106 (aarch_macro_fusion_pair_p): Add support for AES fusion.
12107 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
12108
12109 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
12110
12111 * timevar.def (TV_PHASE_DBGINFO): Delete.
12112 (TV_PHASE_CHECK_DBGINFO): Likewise.
12113 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
12114
12115 2016-02-10 Richard Biener <rguenther@suse.de>
12116
12117 PR tree-optimization/69719
12118 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12119 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
12120
12121 2016-02-09 Andrew Pinski <apinski@cavium.com>
12122
12123 PR tree-opt/69282
12124 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
12125 get_vcond_mask_icode returns false.
12126
12127 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
12128
12129 PR target/68404
12130 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
12131 an ADDIS that adds a pointer to a large constant that sets the
12132 upper16 bits with a load operation.
12133
12134 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
12135
12136 PR target/68532
12137 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
12138 order.
12139 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
12140 endian.
12141 (vzipq_s16): Likewise.
12142 (vzipq_s32): Likewise.
12143 (vzipq_f32): Likewise.
12144 (vzipq_u8): Likewise.
12145 (vzipq_u16): Likewise.
12146 (vzipq_u32): Likewise.
12147 (vzipq_p8): Likewise.
12148 (vzipq_p16): Likewise.
12149
12150 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
12151
12152 PR target/68532
12153 * config/arm/arm.c (neon_endian_lane_map): New function.
12154 (neon_vector_pair_endian_lane_map): New function.
12155 (arm_evpc_neon_vuzp): Allow for big endian lane order.
12156 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
12157 endian.
12158 (vuzpq_s16): Likewise.
12159 (vuzpq_s32): Likewise.
12160 (vuzpq_f32): Likewise.
12161 (vuzpq_u8): Likewise.
12162 (vuzpq_u16): Likewise.
12163 (vuzpq_u32): Likewise.
12164 (vuzpq_p8): Likewise.
12165 (vuzpq_p16): Likewise.
12166
12167 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
12168
12169 PR target/69634
12170 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
12171 debug insns.
12172
12173 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
12174
12175 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
12176 truncate const_int operand 1 to QImode.
12177
12178 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
12179
12180 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
12181 corresponding to an abnormal edge.
12182
12183 2016-02-09 Tom de Vries <tom@codesourcery.com>
12184
12185 PR tree-optimization/69599
12186 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
12187 function.
12188 (find_func_aliases_for_builtin_call, find_func_clobbers)
12189 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
12190 partition.
12191
12192 2016-02-09 Richard Biener <rguenther@suse.de>
12193
12194 PR tree-optimization/69715
12195 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
12196 LHS on calls as non-rewritable.
12197
12198 2016-02-09 Tom de Vries <tom@codesourcery.com>
12199
12200 PR lto/69707
12201 * lto-wrapper.c (append_diag_options): New function.
12202 (compile_offload_image): Call append_diag_options.
12203
12204 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
12205
12206 PR other/69722
12207 * doc/extend.texi (Flag Output Operands): Correct sectioning.
12208 Minor copy-edit to fix verb tenses.
12209
12210 2016-02-08 Jakub Jelinek <jakub@redhat.com>
12211
12212 PR tree-optimization/69209
12213 * ipa-split.c (split_function): If split part is not
12214 returning retval, retval has gimple type but is not
12215 gimple value, force it into a SSA_NAME first.
12216
12217 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
12218
12219 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
12220 outdated section.
12221
12222 2016-02-08 Jason Merrill <jason@redhat.com>
12223
12224 PR c++/69631
12225 * convert.c (convert_to_integer_1): Check dofold on truncation
12226 distribution.
12227 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
12228 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
12229 Rename from *_nofold.
12230 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
12231 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
12232
12233 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
12234
12235 PR target/60410
12236 * tree.c (build_common_tree_nodes): Remove short_double argument.
12237 All callers changed.
12238 * tree.h (build_common_tree_nodes): Adjust declaration.
12239 * doc/invoke.texi (-fshort-double): Remove documentation.
12240 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
12241 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
12242 * lto-wrapper.c (merge_and_complain, append_compiler_options)
12243 (append_linker_options): Don't handle OPT_fshort_double.
12244
12245 PR rtl-optimization/68730
12246 * lra-remat.c (insn_to_cand_activation): New static variable.
12247 (lra_remat): Allocate and free it.
12248 (create_cand): New arg activation. Initialize a field in
12249 insn_to_cand_activation if it is nonnull.
12250 (create_cands): Pass the activation insn to create_cand when making
12251 a candidate involving an output reload. Reorganize code a little.
12252 (do_remat): Keep track of active status of candidates in a separate
12253 bitmap.
12254
12255 2016-02-08 Richard Biener <rguenther@suse.de>
12256
12257 PR tree-optimization/69719
12258 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12259 Properly use absolute of the difference of the two offsets to
12260 compare or adjust the segment length.
12261
12262 2016-02-08 Richard Biener <rguenther@suse.de>
12263 Jeff Law <law@redhat.com>
12264
12265 PR target/68273
12266 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
12267 types for anonymous SSA names.
12268
12269 2016-02-08 Richard Biener <rguenther@suse.de>
12270
12271 PR rtl-optimization/69274
12272 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
12273
12274 2016-02-08 Jeff Law <law@redhat.com>
12275
12276 PR tree-optimization/65917
12277 * tree-ssa-dom.c (record_temporary_equivalences): Record both
12278 equivalences from if (x == y) style conditionals.
12279 (loop_depth_of_name): Remove.
12280 (record_equality): Remove loop depth check.
12281 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
12282 (const_and_copies::record_const_or_copy_raw): New member function.
12283 * tree-ssa-scopedtables.c
12284 (const_and_copies::record_const_or_copy_raw): New, factored out of
12285 (const_and_copies::record_const_or_copy): Call new member function.
12286
12287 2016-02-05 Jeff Law <law@redhat.com>
12288
12289 PR tree-optimization/68541
12290 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
12291 (count_stmts_in_block): New function.
12292 (poor_ifcvt_candidate_code): Likewise.
12293 (is_feasible_trace): Add some heuristics to determine when path
12294 splitting is profitable.
12295 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
12296 is a diamond with a single exit.
12297
12298 2016-02-05 Martin Sebor <msebor@redhat.com>
12299
12300 PR c++/69662
12301 * doc/invoke.texi: Update -Wplacement-new to take an optional
12302 argument.
12303
12304 2016-02-06 Richard Henderson <rth@redhat.com>
12305
12306 PR c/69643
12307 * tree.c (tree_nop_conversion_p): Do not strip casts into or
12308 out of non-standard address spaces.
12309
12310 2016-02-05 Jakub Jelinek <jakub@redhat.com>
12311
12312 PR rtl-optimization/69691
12313 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
12314
12315 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
12316
12317 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
12318 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
12319 (*ieee128_mfvsrd_64bit): Likewise.
12320 (*ieee128_mfvsrd_32bit): Likewise.
12321
12322 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
12323
12324 PR target/69369
12325 Revert r232560:
12326 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
12327
12328 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
12329 instrumented_version.
12330
12331 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
12332
12333 * doc/invoke.texi (Optimize Options): In table of --param options
12334 rename second occurrence of tracer-min-branch-ratio to
12335 tracer-min-branch-probability, rename
12336 tracer-min-branch-ratio-feedback to
12337 tracer-min-branch-probability-feedback and clarify description,
12338 rename sched-spec-state-edge-prob-cutoff to
12339 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
12340 to selsched-insns-to-rename, rename lto-minpartition to
12341 lto-min-partition, delete reorder-blocks-duplicate and
12342 reorder-blocks-duplicate-feedback.
12343
12344 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12345
12346 * config/s390/s390.c (s390_register_info_set_ranges): Remove
12347 superfluous loops.
12348
12349 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
12350
12351 * doc/extend.texi: S/390: Correct some typos.
12352
12353 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12354
12355 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
12356
12357 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12358
12359 PR target/69625
12360 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
12361 (s390_register_info_gprtofpr): Use new macros above.
12362 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
12363 its name.
12364 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
12365 its name. Adjust restore and save gpr ranges.
12366 (s390_register_info_set_ranges): New function.
12367 (s390_register_info): Use new macros above. Call
12368 s390_register_info_set_ranges.
12369 (s390_optimize_register_info): Likewise.
12370 (s390_hard_regno_rename_ok): Use new macros.
12371 (s390_hard_regno_scratch_ok): Likewise.
12372 (s390_emit_epilogue): Likewise.
12373 (s390_can_use_return_insn): Likewise.
12374 (s390_optimize_prologue): Likewise.
12375 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
12376
12377 2016-02-05 Jakub Jelinek <jakub@redhat.com>
12378
12379 PR bootstrap/69677
12380 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
12381 alignment fixes.
12382 (ix86_option_override_internal): Disable TARGET_STV even for
12383 -m{incoming,preferred}-stack-boundary=3.
12384
12385 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12386
12387 * config.gcc: Mark deprecated rtems targets as obsolete.
12388
12389 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
12390
12391 PR rtl-optimization/64682
12392 PR rtl-optimization/69567
12393 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
12394 before I2 only if the register is both used and set in I2.
12395
12396 2016-02-04 DJ Delorie <dj@redhat.com>
12397
12398 * config/msp430/msp430.c (msp430_start_function): Add function type.
12399
12400 2016-02-04 Jakub Jelinek <jakub@redhat.com>
12401
12402 PR fortran/69368
12403 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
12404
12405 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
12406
12407 PR rtl-optimization/69577
12408 Revert:
12409 2015-10-29 Richard Henderson <rth@redhat.com>
12410
12411 PR target/68124
12412 PR rtl-opt/67609
12413 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
12414 sse check to the exact conditions of PR 67609.
12415
12416 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
12417
12418 PR target/69667
12419 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
12420 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
12421 not allowed into the traditional Altivec registers.
12422 (movtd_64bit_nodm): Likewise.
12423 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12424
12425 2016-02-04 David Malcolm <dmalcolm@redhat.com>
12426
12427 * config/aarch64/cortex-a57-fma-steering.c
12428 (aarch64_register_fma_steering): Remove "static" from arguments
12429 to register_pass.
12430
12431 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
12432
12433 PR target/69619
12434 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
12435 twice when complex.
12436
12437 2016-02-04 Mike Frysinger <vapier@gentoo.org>
12438
12439 * doc/invoke.texi: Delete -mno-fma4.
12440
12441 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
12442
12443 PR rtl-optimization/69577
12444 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
12445 (find_subregs_of_mode): Update accordingly. Iterate over partial
12446 definitions.
12447
12448 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
12449
12450 * config/arm/arm-protos.h (neon_reinterpret): Remove.
12451 * config/arm/arm.c (neon_reinterpret): Remove.
12452 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
12453 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
12454 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
12455 vreinterpretti): Remove.
12456 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
12457 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
12458 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
12459 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
12460 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
12461 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
12462 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
12463 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
12464 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
12465 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
12466 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
12467 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
12468 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
12469 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
12470 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
12471 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
12472 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
12473 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
12474 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
12475 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
12476 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
12477 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
12478 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
12479 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
12480 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
12481 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
12482 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
12483 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
12484 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
12485 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
12486 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
12487 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
12488 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
12489 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
12490 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
12491 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
12492 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
12493 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
12494 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
12495 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
12496 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
12497 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
12498 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
12499 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
12500 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
12501 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
12502 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
12503 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
12504 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
12505 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
12506 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
12507 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
12508 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
12509 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
12510 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
12511 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
12512 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
12513 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
12514 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
12515 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
12516 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
12517 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
12518 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
12519 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
12520 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
12521 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
12522 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
12523 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
12524 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
12525 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
12526 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
12527 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
12528 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
12529 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
12530 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
12531 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
12532 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
12533 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
12534 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
12535 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
12536 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
12537 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
12538 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
12539 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
12540 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
12541 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
12542 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
12543 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
12544 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
12545 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
12546 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
12547 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
12548 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
12549 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
12550 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
12551 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
12552 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
12553 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
12554 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
12555 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
12556 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
12557 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
12558 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
12559
12560 2016-02-04 Martin Liska <mliska@suse.cz>
12561
12562 PR sanitizer/69276
12563 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
12564 that are gimple_store_p.
12565 (maybe_instrument_call): Likewise.
12566
12567 2016-02-04 Bin Cheng <bin.cheng@arm.com>
12568
12569 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
12570 register scaling out of memory reference and comment why.
12571
12572 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12573
12574 PR target/65932
12575 PR target/67714
12576 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
12577 folding the source of a SET.
12578
12579 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12580
12581 PR target/65932
12582 PR target/67714
12583 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
12584 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
12585
12586 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
12587
12588 PR target/65932
12589 PR target/67714
12590 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
12591 HImode.
12592
12593 2016-02-04 Christian Bruel <christian.bruel@st.com>
12594
12595 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
12596 * config/arm/arm.c (arm_set_current_function): Likewise.
12597
12598 2016-02-04 Jakub Jelinek <jakub@redhat.com>
12599 Ilya Enkovich <enkovich.gnu@gmail.com>
12600 H.J. Lu <hongjiu.lu@intel.com>
12601
12602 PR target/69454
12603 * config/i386/i386.c (convert_scalars_to_vector): Remove
12604 stack alignment fixes.
12605 (ix86_option_override_internal): Disable TARGET_STV if stack
12606 might not be aligned enough.
12607 (ix86_minimum_alignment): Assert that TARGET_STV is false.
12608
12609 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
12610
12611 * config/i386/x86-tune.def: Disable default prefetching
12612 for -march=znver1.
12613
12614 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
12615 Vladimir Makarov <vmakarov@redhat.com>
12616
12617 PR target/69461
12618 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
12619 in validating fused toc addresses.
12620
12621 2016-02-03 Jakub Jelinek <jakub@redhat.com>
12622
12623 PR c/69627
12624 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
12625 range->m_caret fields if range->m_show_caret_p is false.
12626
12627 PR target/69644
12628 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
12629 Force oldval into register if it does not satisfy reg_or_short_operand
12630 predicate. Fix up formatting.
12631
12632 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
12633 Alexandre Oliva <aoliva@redhat.com>
12634
12635 PR target/69461
12636 * lra-constraints.c (simplify_operand_subreg): Check additionally
12637 address validity after potential reloading.
12638 (process_address_1): Check insns validity. In case of failure do
12639 nothing.
12640
12641 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
12642
12643 PR target/69118
12644 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
12645 Fix target.
12646
12647 2016-02-02 Jakub Jelinek <jakub@redhat.com>
12648
12649 * wide-int.cc (canonize_uhwi): New function.
12650 (wi::divmod_internal): Use it.
12651
12652 2016-02-02 James Norris <jnorris@codesourcery.com
12653
12654 * gimplify.c (omp_notice_variable): Add usage check.
12655
12656 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
12657
12658 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
12659 like LE, GE, LT, GT when emitting relational operator.
12660
12661 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
12662
12663 * ira-costs.c (find_costs_and_classes): Add extra argument.
12664 * target.def (ira_change_pseudo_allocno_class): Add parameter.
12665 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
12666 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
12667 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
12668 Add best_class parameter, and return it if not ALL_REGS.
12669 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
12670 Add parameter.
12671 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
12672 Update target hook.
12673
12674 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
12675
12676 * config/aarch64/aarch64.c
12677 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
12678 (aarch64_ira_change_pseudo_allocno_class): New function.
12679
12680 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
12681
12682 PR target/67032
12683 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
12684
12685 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12686
12687 * config/avr/avr.c (avr_option_override): Set
12688 PARAM_ALLOW_STORE_DATA_RACES to 1.
12689
12690 2016-02-02 Richard Biener <rguenther@suse.de>
12691
12692 PR tree-optimization/69595
12693 * match.pd: Add range test simplifications to true/false.
12694
12695 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
12696
12697 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
12698 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
12699 instead.
12700
12701 2016-02-02 Richard Biener <rguenther@suse.de>
12702
12703 PR tree-optimization/69606
12704 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
12705 info on the result before moving a stmt.
12706
12707 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
12708
12709 PR middle-end/68542
12710 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
12711 branch with vector comparison.
12712 * config/i386/sse.md (VI48_AVX): New mode iterator.
12713 (define_expand "cbranch<mode>4): Add support for conditional branch
12714 with vector comparison.
12715 * tree-vect-loop.c (optimize_mask_stores): New function.
12716 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
12717 has_mask_store field of vect_info.
12718 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
12719 vectorized loops having masked stores after vec_info destroy.
12720 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
12721 correspondent macros.
12722 (optimize_mask_stores): Add prototype.
12723
12724 2016-02-02 Alan Modra <amodra@gmail.com>
12725
12726 PR target/69548
12727 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
12728 allow subregs.
12729
12730 2016-02-02 Alan Modra <amodra@gmail.com>
12731
12732 PR target/68662
12733 * config/rs6000/rs6000.c (need_toc_init): New var, set it
12734 whenever toc_label_name used.
12735 (rs6000_file_start): Don't set up toc section here,
12736 (rs6000_output_function_epilogue): do so here instead,
12737 (rs6000_xcoff_file_start): and here.
12738 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
12739 (load_toc_aix_di): Likewise.
12740
12741 2016-02-01 Jakub Jelinek <jakub@redhat.com>
12742
12743 PR rtl-optimization/69592
12744 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
12745 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
12746 (num_sign_bit_copies_binary_arith_p): New inline function.
12747 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
12748
12749 2016-02-01 Jeff Law <law@redhat.com>
12750
12751 PR tree-optimization/69580
12752 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
12753 * tree-ssa-threadbackward.c
12754 (fsm_find_control_statement_thread_paths): Do not try to walk
12755 through large PHI nodes.
12756
12757 2016-02-01 Jakub Jelinek <jakub@redhat.com>
12758
12759 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
12760 when count is incremented above limit, don't analyze further
12761 insns afterwards.
12762
12763 * omp-low.c (oacc_parse_default_dims): Avoid
12764 -Wsign-compare warning, make sure value fits into int
12765 rather than just unsigned int.
12766
12767 2016-02-01 Bin Cheng <bin.cheng@arm.com>
12768
12769 PR tree-optimization/67921
12770 * fold-const.c (split_tree): New parameters. Convert pointer
12771 type variable part to proper type before negating.
12772 (fold_binary_loc): Pass new arguments to split_tree.
12773
12774 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
12775
12776 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
12777 (nvptx_goacc_validate_dims): Extend to handle global defaults.
12778 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
12779 * doc/tm.texti: Rebuilt.
12780 * doc/invoke.texi (fopenacc-dim): Document.
12781 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
12782 (append_compiler_options): Likewise.
12783 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
12784 (oacc_parse_default_dims): New.
12785 (oacc_validate_dims): Add USED arg. Select non-unity default when
12786 possible.
12787 (oacc_loop_fixed_partitions): Return mask of used partitions.
12788 (oacc_loop_auto_partitions): Emit dump info.
12789 (oacc_loop_partition): Return mask of used partitions.
12790 (execute_oacc_device_lower): Parse default dimension arg. Adjust
12791 loop partitioning and validation calls.
12792
12793 2016-02-01 Richard Biener <rguenther@suse.de>
12794
12795 PR middle-end/69556
12796 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
12797
12798 2016-02-01 Richard Biener <rguenther@suse.de>
12799
12800 PR tree-optimization/69574
12801 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
12802 of asserting return chrec_dont_know.
12803
12804 2016-02-01 Martin Liska <mliska@suse.cz>
12805
12806 * mem-stats-traits.h: Add copyright header.
12807 * mem-stats.h: Likewise.
12808
12809 2016-02-01 Richard Biener <rguenther@suse.de>
12810
12811 PR tree-optimization/69579
12812 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
12813 Do not propagate through abnormal PHI results.
12814
12815 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
12816
12817 * postreload.c (reload_cse_simplify): Remove dead code.
12818
12819 2016-02-01 Jakub Jelinek <jakub@redhat.com>
12820
12821 PR rtl-optimization/69570
12822 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
12823 if there is more than one set, not if there is a single set.
12824
12825 2016-02-01 Richard Henderson <rth@redhat.com>
12826
12827 PR rtl-opt/69535
12828 * combine.c (make_compound_operation): When looking through a
12829 subreg, make sure to re-extend to the width of the outer mode.
12830
12831 2016-01-30 Jakub Jelinek <jakub@redhat.com>
12832
12833 PR tree-optimization/69546
12834 * wide-int.cc (wi::divmod_internal): For unsigned division
12835 where both operands fit into uhwi, if o1 is 1 and o0 has
12836 msb set, if divident_prec is larger than bits per hwi,
12837 clear another quotient word and return 2 instead of 1.
12838 Similarly for remainder with msb in HWI set, if dividend_prec
12839 is larger than bits per hwi.
12840
12841 2016-01-29 Martin Jambor <mjambor@suse.cz>
12842
12843 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
12844 Use short lowercase names.
12845 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
12846 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
12847 acq_rel one. Protect warning agains segfaults if
12848 get_memory_order_name returns NULL.
12849 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
12850 with release semantics. Do not warn if get_memory_order already did.
12851 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
12852 semantics. Fix check for relaxed or acquire semantics. Do not warn
12853 if get_memory_order already did.
12854
12855 2016-01-29 Sebastian Pop <s.pop@samsung.com>
12856
12857 * doc/install.texi: Document that isl-0.16 is supported.
12858
12859 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
12860
12861 PR target/69299
12862 * config/i386/constraints.md (Bm): Describe as special memory
12863 constraint.
12864 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
12865 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12866 * genpreds.c (struct constraint_data): Add is_special_memory.
12867 (have_special_memory_constraints, special_memory_start): New
12868 static vars.
12869 (special_memory_end): Ditto.
12870 (add_constraint): Add new arg is_special_memory. Add code to
12871 process its true value. Update have_special_memory_constraints.
12872 (process_define_constraint): Pass the new arg.
12873 (process_define_register_constraint): Ditto.
12874 (choose_enum_order): Process special memory.
12875 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
12876 function insn_extra_special_memory_constraint.
12877 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12878 * gensupport.c (process_rtx): Process
12879 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
12880 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
12881 * ira-lives.c (single_reg_class): Use
12882 insn_extra_special_memory_constraint.
12883 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
12884 * lra-constraints.c (process_alt_operands): Ditto.
12885 (curr_insn_transform): Use insn_extra_special_memory_constraint.
12886 * recog.c (asm_operand_ok, preprocess_constraints): Process
12887 CT_SPECIAL_MEMORY.
12888 * reload.c (find_reloads): Ditto.
12889 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
12890 * stmt.c (parse_input_constraint): Use
12891 insn_extra_special_memory_constraint.
12892
12893 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
12894
12895 PR target/69530
12896 * lra-splill.c (lra_final_code_change): Revert r229087 by
12897 removing all sub-registers.
12898
12899 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
12900
12901 PR target/65604
12902 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
12903
12904 2016-01-29 Jakub Jelinek <jakub@redhat.com>
12905
12906 PR target/69551
12907 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
12908 SSE1, copy target into the temporary reg first before recursing
12909 on it.
12910
12911 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
12912
12913 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
12914 with vm.
12915
12916 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
12917
12918 * ginclude/stdarg.h: Test __cplusplus instead of
12919 __GXX_EXPERIMENTAL_CXX0X__.
12920
12921 2016-01-29 Richard Biener <rguenther@suse.de>
12922
12923 PR tree-optimization/69547
12924 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
12925 Do not mark clobbers necessary.
12926 (mark_all_reaching_defs_necessary_1): Likewise.
12927
12928 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
12929
12930 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
12931 declaration name with %qs and print it in both error messages.
12932 Also fix indentation.
12933
12934 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
12935
12936 PR other/69006
12937 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
12938 trailing blank line from error message.
12939
12940 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
12941
12942 PR c++/69462
12943 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
12944 for C++-11.
12945
12946 2016-01-29 Richard Biener <rguenther@suse.de>
12947
12948 PR middle-end/69537
12949 * match.pd: Allow all integral types when simplifying a
12950 widening or sign-changing conversion.
12951
12952 2016-01-28 Sebastian Pop <s.pop@samsung.com>
12953
12954 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
12955 back to setting codegen_error to fail codegen.
12956
12957 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
12958
12959 PR target/69459
12960 * config/i386/constraints.md (C): Only accept constant zero operand.
12961 (BC): New constraint.
12962 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
12963 instead of C constraint.
12964 * doc/md.texi (Machine Constraints): Update description
12965 of C constraint.
12966
12967 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
12968
12969 PR target/68400
12970 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
12971
12972 2016-01-28 Jakub Jelinek <jakub@redhat.com>
12973
12974 PR middle-end/69542
12975 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
12976 non-debug insns.
12977
12978 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
12979
12980 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
12981 branches if using guessed profile.
12982
12983 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
12984
12985 * graphite-optimize-isl.c (optimize_isl): Fix dump.
12986
12987 2016-01-28 Richard Henderson <rth@redhat.com>
12988
12989 PR target/69305
12990 * config/aarch64/aarch64-modes.def (CC_Cmode): New
12991 * config/aarch64/aarch64-protos.h: Update.
12992 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
12993 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
12994 (aarch64_get_condition_code_1): Handle CC_Cmode.
12995 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
12996 (*add<mode>3_compareC_cconly_imm): New.
12997 (*add<mode>3_compareC_cconly): New.
12998 (*add<mode>3_compareC_imm): New.
12999 (add<mode>3_compareC): New.
13000 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
13001 to be first. Use aarch64_carry_operation.
13002 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
13003 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
13004 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
13005 (subti3): Use subdi3_compare1.
13006 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
13007 (sub<mode>3_compare1): New.
13008 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
13009 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
13010 (*subsi3_carryin_uxtw): Likewise.
13011 (*ngc<mode>, *ngcsi_uxtw): Likewise.
13012 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
13013 * config/aarch64/iterators.md (DWI): New.
13014 * config/aarch64/predicates.md (aarch64_carry_operation): New.
13015 (aarch64_borrow_operation): New.
13016
13017 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
13018
13019 * graphite-optimize-isl.c (optimize_isl): Print a different debug
13020 message when isl does not return a valid schedule.
13021
13022 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13023
13024 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13025 Remove comments from class declarations: they are already in the code
13026 close by the defs.
13027
13028 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13029
13030 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
13031 codegen_error_p.
13032 (ternary_op_to_tree): Same.
13033 (unary_op_to_tree): Same.
13034 (nary_op_to_tree): Same.
13035 (gcc_expression_from_isl_expr_op): Same.
13036 (gcc_expression_from_isl_expression): Same.
13037 (graphite_create_new_loop): Same.
13038 (graphite_create_new_loop_guard): Same.
13039 (build_iv_mapping): Same.
13040 (graphite_create_new_guard): Same.
13041 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
13042 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
13043
13044 2016-01-28 Sebastian Pop <s.pop@samsung.com>
13045
13046 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
13047 instead of setting codegen_error to fail codegen.
13048
13049 2016-01-28 Jason Merrill <jason@redhat.com>
13050
13051 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
13052
13053 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13054
13055 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
13056 Remove CONST_INT_P check in CCMP cost calculation.
13057
13058 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13059
13060 * config/aarch64/aarch64.c (generic_vector_cost):
13061 Set vec_permute_cost.
13062 (cortexa57_vector_cost): Likewise.
13063 (exynosm1_vector_cost): Likewise.
13064 (xgene1_vector_cost): Likewise.
13065 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
13066 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
13067 Add vec_permute_cost entry.
13068
13069 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
13070
13071 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
13072 immediate as %1.
13073 (add<mode>3_compare0): Likewise.
13074 (addsi3_compare0_uxtw): Likewise.
13075 (add<mode>3nr_compare0): Likewise.
13076 (compare_neg<mode>): Likewise.
13077 (<optab><mode>3): Likewise.
13078
13079 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
13080
13081 * tree-vect-stmts.c (vectorizable_comparison): Add
13082 NULL check for vectype.
13083
13084 2016-01-28 Richard Biener <rguenther@suse.de>
13085
13086 PR tree-optimization/69466
13087 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13088 Account for PHIs we couldn't duplicate.
13089
13090 2016-01-28 Martin Liska <mliska@suse.cz>
13091
13092 PR pch/68758
13093 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
13094 instead of ENABLE_VALGRIND_CHECKING.
13095
13096 2016-01-27 Richard Henderson <rth@redhat.com>
13097
13098 PR rtl-opt/69447
13099 * lra-remat.c (subreg_regs): New.
13100 (dump_candidates_and_remat_bb_data): Dump it.
13101 (operand_to_remat): Reject if operand in subreg_regs.
13102 (set_bb_regs): Collect subreg_regs.
13103 (lra_remat): Init and free subreg_regs. Compute
13104 calculate_local_reg_remat_bb_data before create_cands.
13105
13106 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
13107
13108 PR target/68986
13109 * config/i386/i386.c (ix86_update_stack_boundary): Don't
13110 change stack_alignment_needed for __tls_get_addr call.
13111
13112 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
13113
13114 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
13115
13116 2016-01-27 Jeff Law <law@redhat.com>
13117
13118 PR tree-optimization/68398
13119 PR tree-optimization/69196
13120 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
13121 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
13122 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13123 Only count PHIs in the last block in the path. The others will
13124 const/copy propagate away. Add heuristic to allow more irreducible
13125 subloops to be created when it is likely profitable to do so.
13126
13127 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
13128 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
13129 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
13130
13131 2016-01-27 Jakub Jelinek <jakub@redhat.com>
13132
13133 PR lto/69254
13134 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
13135 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
13136 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
13137 * tree-streamer-in.c: Include asan.h.
13138 (streamer_get_builtin_tree): For builtins in sanitizer
13139 range call initialize_sanitizer_builtins and retry.
13140
13141 2016-01-27 Ian Lance Taylor <iant@google.com>
13142
13143 * common.opt (fkeep-gc-roots-live): New undocumented option.
13144 * tree-ssa-loop-ivopts.c (add_candidate_1): If
13145 -fkeep-gc-roots-live, skip pointers.
13146 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
13147 NULL.
13148
13149 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
13150
13151 PR target/69512
13152 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
13153 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
13154
13155 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
13156
13157 PR target/68380
13158 * configure.ac: NetBSD provides SSP in its C library.
13159 * configure: Updated.
13160
13161 2016-01-27 Richard Biener <rguenther@suse.de>
13162
13163 PR tree-optimization/69166
13164 * tree-vect-loop.c (vect_is_simple_reduction): Always check
13165 reduction code for commutativity / associativity.
13166
13167 2016-01-27 Martin Jambor <mjambor@suse.cz>
13168
13169 PR tree-optimization/69355
13170 * tree-sra.c (analyze_access_subtree): Correct hole detection when
13171 total_scalarization fails.
13172
13173 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
13174
13175 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
13176 power9.
13177
13178 2016-01-27 Christian Bruel <christian.bruel@st.com>
13179
13180 PR target/69245
13181 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
13182 Move arm_reset_previous_fndecl and set_target_option_current_node in
13183 the conditional part. Call save_restore_target_globals.
13184 * config/arm/arm.c (arm_set_current_function):
13185 Refactor to better support #pragma target and attribute mix.
13186 Call save_restore_target_globals.
13187 * config/arm/arm-protos.h (save_restore_target_globals): New function.
13188
13189 2016-01-27 Martin Liska <mliska@suse.cz>
13190
13191 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
13192 reference for an HSA kernel and its host function.
13193
13194 2016-01-27 Jakub Jelinek <jakub@redhat.com>
13195
13196 PR tree-optimization/69399
13197 * wide-int.h (wi::lrshift): For larger precisions, only
13198 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
13199
13200 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
13201
13202 * config/arc/predicates.md (proper_comparison_operator): Reject
13203 constant-constant comparison.
13204
13205 2016-01-26 Tom de Vries <tom@codesourcery.com>
13206
13207 PR tree-optimization/69110
13208 * tree-data-ref.c (initialize_data_dependence_relation): Handle
13209 DR_NUM_DIMENSIONS == 0.
13210
13211 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
13212 Sebastian Pop <s.pop@samsung.com>
13213
13214 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
13215 isl_ast_op_cond and isl_ast_op_select.
13216 (gcc_expression_from_isl_expr_op): Same.
13217
13218 2016-01-26 Jason Merrill <jason@redhat.com>
13219
13220 PR c++/68782
13221 * tree.c (recompute_constructor_flags): Split out from
13222 build_constructor.
13223 (verify_constructor_flags): New.
13224 * tree.h: Declare them.
13225
13226 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
13227
13228 PR rtl-optimization/69217
13229 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
13230 are no TYPE_FIELDS set for the record type.
13231
13232 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13233
13234 PR target/68662
13235 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
13236 toc_label_name unconditionally.
13237 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
13238 SYMBOL_REF string. Use toc_label_name instead of constructing
13239 LCTOC1.
13240 (rs6000_elf_declare_function_name): Use toc_label_name instead of
13241 constructing LCTOC1.
13242
13243 2016-01-26 Martin Sebor <msebor@redhat.com>
13244
13245 PR other/69477
13246 * doc/extend.texi (Common Type Attributes): Move text that talks about
13247 attribute packed from attribute aligned to the section discussing
13248 the former attribute for clarity.
13249
13250 2016-01-26 Richard Henderson <rth@redhat.com>
13251
13252 PR middle-end/60908
13253 * trans-mem.c (tm_region_init): Mark entry block as visited.
13254
13255 2016-01-26 David Malcolm <dmalcolm@redhat.com>
13256
13257 PR other/69006
13258 * diagnostic-show-locus.c (layout::print_source_line): Replace
13259 call to pp_newline with call to layout::print_newline.
13260 (layout::print_annotation_line): Likewise.
13261 (layout::move_to_column): Likewise.
13262 (layout::print_any_fixits): After printing any fixits, print a
13263 trailing newline, if necessary.
13264 (layout::print_newline): New method, resetting any colorization
13265 before a newline.
13266 (diagnostic_show_locus): Move the pp_newline to before the
13267 early bailout. Remove dummy block enclosing the layout instance.
13268 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
13269 of pp_newline_and_flush with pp_flush.
13270 (diagnostic_append_note): Delete use of pp_newline.
13271 (diagnostic_append_note_at_rich_loc): Delete.
13272 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
13273 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
13274 when newline characters are added to the buffer.
13275
13276 2016-01-26 Michael Matz <matz@suse.de>
13277
13278 * configure.ac (ac_cv_std_swap_in_utility): New test.
13279 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
13280 * configure: Regenerate.
13281 * config.in: Regenerate.
13282
13283 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
13284
13285 * config/arc/arc.md (cstoresi4): Force operand into register.
13286 (arcset<code>): Fix predicate.
13287 (arcsetltu): Likewise.
13288 (arcsetgeu): Likewise.
13289 (arcsethi): Likewise.
13290 (arcsetls): Likewise.
13291
13292 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13293
13294 PR tree-optimization/69483
13295 * gimple-fold.c (canonicalize_constructor_val): Return NULL
13296 if base has error_mark_node type.
13297
13298 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
13299
13300 PR target/68620
13301 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
13302 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
13303 New helper macros.
13304 (vget_lane_f16): Handle big-endian.
13305 (vgetq_lane_f16): Likewise.
13306 (vset_lane_f16): Likewise.
13307 (vsetq_lane_f16): Likewise.
13308 * config/arm/iterators.md (VQXMOV): Add V8HF.
13309 (VDQ): Add V4HF and V8HF.
13310 (V_reg): Handle V4HF and V8HF.
13311 (Is_float_mode): Likewise.
13312 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
13313 neon_vdup_nv8hf): New patterns.
13314 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
13315 Use VD_LANE iterator.
13316 (neon_vld1_dup<mode>): Use VQ2 iterator.
13317
13318 2016-01-26 Nathan Sidwell <nathan@acm.org>
13319
13320 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
13321 (set_oacc_fn_attrib): Add IS_KERNEL arg.
13322 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
13323 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
13324 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
13325 (oacc_validate_dims): Add LEVEL arg, don't return level.
13326 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
13327 oacc_validate_dims.
13328 (execute_oacc_device_lower): Adjust, add more dump output.
13329 * tree-ssa-loop.c (gate_oacc_kernels): Use
13330 oacc_fn_attrib_kernels_p.
13331 * tree-parloops.c (create_parallel_loop): Adjust
13332 set_oacc_fn_attrib call.
13333
13334 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13335
13336 PR lto/69254
13337 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
13338 (append_compiler_options): Handle -fcilkplus.
13339 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
13340
13341 2016-01-26 Nick Clifton <nickc@redhat.com>
13342
13343 PR target/66655
13344 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
13345 been marked as DECL_ONE_ONLY but we do not the means to make it
13346 so, then do not allow it to bind locally.
13347
13348 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13349
13350 PR lto/69254
13351 * opts.h (parse_sanitizer_options): New prototype.
13352 * opts.c (sanitizer_opts): New array.
13353 (parse_sanitizer_options): New function.
13354 (common_handle_option): Use parse_sanitizer_options.
13355
13356 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
13357
13358 PR target/68986
13359 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
13360 alignment adjustment to ...
13361 (ix86_update_stack_boundary): Here. Don't over-align stack for
13362 __tls_get_addr.
13363 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
13364 if __tls_get_addr is called.
13365
13366 2016-01-26 Christian Bruel <christian.bruel@st.com>
13367
13368 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
13369
13370 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
13371
13372 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
13373
13374 2016-01-26 Richard Biener <rguenther@suse.de>
13375
13376 PR middle-end/69467
13377 * match.pd: Guard X * CST CMP 0 pattern with single_use.
13378
13379 2016-01-26 Richard Biener <rguenther@suse.de>
13380
13381 PR tree-optimization/69452
13382 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
13383 (move_computations_dom_walker::before_dom_children): Rename
13384 to ...
13385 (move_computations_worker): This.
13386 (move_computations): Perform an RPO rather than a DOM walk.
13387
13388 2016-01-26 Jakub Jelinek <jakub@redhat.com>
13389
13390 PR target/69442
13391 * combine.c (combine_instructions): For REG_EQUAL note with
13392 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
13393 to the underlying register.
13394 * doc/rtl.texi (REG_EQUAL): Document the behavior of
13395 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
13396
13397 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
13398
13399 PR target/67896
13400 * config/aarch64/aarch64-builtins.c
13401 (aarch64_init_simd_builtin_types): Do not set structural
13402 equality to __Poly{8,16,64,128}_t types.
13403
13404 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
13405
13406 PR tree-optimization/69400
13407 * wide-int.cc (wi_pack): Take the precision as argument and
13408 perform canonicalization here rather than in the callers.
13409 Use the main loop to handle all full-width HWIs. Add a
13410 zero HWI if in_len isn't a full result.
13411 (wi::divmod_internal): Update accordingly.
13412 (wi::mul_internal): Likewise. Simplify.
13413
13414 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
13415 Sebastian Pop <s.pop@samsung.com>
13416
13417 * graphite-poly.c (apply_poly_transforms): Simplify.
13418 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
13419 (print_isl_map): Same.
13420 (print_isl_union_map): Same.
13421 (print_isl_schedule): New.
13422 (debug_isl_schedule): New.
13423 * graphite-dependences.c (scop_get_reads): Do not call
13424 isl_union_map_add_map that is undocumented isl functionality.
13425 (scop_get_must_writes): Same.
13426 (scop_get_may_writes): Same.
13427 (scop_get_original_schedule): Remove.
13428 (scop_get_dependences): Do not call isl_union_map_compute_flow that
13429 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
13430 (compute_deps): Remove.
13431 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
13432 (debug_schedule_ast): New.
13433 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
13434 set_separate_option.
13435 (graphite_regenerate_ast_isl): Add dump.
13436 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
13437 from scop->transformed_schedule.
13438 (graphite_regenerate_ast_isl): Add more dump.
13439 * graphite-optimize-isl.c (optimize_isl): Set
13440 scop->transformed_schedule. Check whether schedules are equal.
13441 (apply_poly_transforms): Move here.
13442 * graphite-poly.c (apply_poly_transforms): ... from here.
13443 (free_poly_bb): Static.
13444 (free_scop): Static.
13445 (pbb_number_of_iterations_at_time): Remove.
13446 (print_isl_ast): New.
13447 (debug_isl_ast): New.
13448 (debug_scop_pbb): New.
13449 * graphite-scop-detection.c (print_edge): Move.
13450 (print_sese): Move.
13451 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
13452 (build_scop_scattering): Remove.
13453 (create_pw_aff_from_tree): Assert instead of bailing out.
13454 (add_condition_to_pbb): Remove unused code, do not fail.
13455 (add_conditions_to_domain): Same.
13456 (add_conditions_to_constraints): Remove.
13457 (build_scop_context): New.
13458 (add_iter_domain_dimension): New.
13459 (build_iteration_domains): Initialize pbb->iterators.
13460 Call add_conditions_to_domain.
13461 (nested_in): New.
13462 (loop_at): New.
13463 (index_outermost_in_loop): New.
13464 (index_pbb_in_loop): New.
13465 (outermost_pbb_in): New.
13466 (add_in_sequence): New.
13467 (add_outer_projection): New.
13468 (outer_projection_mupa): New.
13469 (add_loop_schedule): New.
13470 (build_schedule_pbb): New.
13471 (build_schedule_loop): New.
13472 (embed_in_surrounding_loops): New.
13473 (build_schedule_loop_nest): New.
13474 (build_original_schedule): New.
13475 (build_poly_scop): Call build_original_schedule.
13476 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
13477 (free_poly_dr): Remove.
13478 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
13479 (free_poly_bb): Remove.
13480 (debug_loop_vec): Remove.
13481 (print_isl_ast): Declare.
13482 (debug_isl_ast): Declare.
13483 (scop_do_interchange): Remove.
13484 (scop_do_strip_mine): Remove.
13485 (scop_do_block): Remove.
13486 (flatten_all_loops): Remove.
13487 (optimize_isl): Remove.
13488 (pbb_number_of_iterations_at_time): Remove.
13489 (debug_scop_pbb): Declare.
13490 (print_schedule_ast): Declare.
13491 (debug_schedule_ast): Declare.
13492 (struct scop): Remove schedule. Add original_schedule,
13493 transformed_schedule.
13494 (free_gimple_poly_bb): Remove.
13495 (print_generated_program): Remove.
13496 (debug_generated_program): Remove.
13497 (unify_scattering_dimensions): Remove.
13498 * sese.c (print_edge): ... here.
13499 (print_sese): ... here.
13500 (debug_edge): ... here.
13501 (debug_sese): ... here.
13502 * sese.h (print_edge): Declare.
13503 (print_sese): Declare.
13504 (dump_edge): Declare.
13505 (dump_sese): Declare.
13506
13507 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
13508 Sebastian Pop <s.pop@samsung.com>
13509
13510 * Makefile.in: Set ISLVER in site.exp.
13511
13512 2016-01-25 Jakub Jelinek <jakub@redhat.com>
13513
13514 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
13515 DECL_VALUE_EXPR of new_var even for the non-array case. Look
13516 through DECL_VALUE_EXPR for expansion.
13517
13518 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13519
13520 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
13521 the frame info after reload completed.
13522
13523 2016-01-25 Jeff Law <law@redhat.com>
13524
13525 PR tree-optimization/69196
13526 PR tree-optimization/68398
13527 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
13528 tree-ssa-threadupdate.c.
13529 (determine_bb_domination_status): Prototype
13530 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
13531 (determine_bb_domination_status): No longer static.
13532 (valid_jump_thread_path): Remove code to detect characteristics
13533 of the jump thread path not associated with correctness.
13534 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
13535 Correct test for thread path length. Count PHIs for real operands as
13536 statements that need to be copied. Do not count ASSERT_EXPRs.
13537 Look at all the blocks in the thread path. Compute and selectively
13538 filter thread paths based on threading through the latch, threading
13539 a multiway branch or crossing a multiway branch.
13540
13541 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13542
13543 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
13544 decl with __attribute__ ((unused)) annotation.
13545
13546 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
13547
13548 PR target/69421
13549 * tree-vect-stmts.c (vectorizable_condition): Check vectype
13550 of operands is compatible with a statement vectype.
13551
13552 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
13553
13554 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
13555 improve wording for mixed storage order support.
13556
13557 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
13558
13559 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
13560 (vcvt_u64_f64): Likewise.
13561 (vcvta_s64_f64): Likewise.
13562 (vcvta_u64_f64): Likewise.
13563 (vcvtm_s64_f64): Likewise.
13564 (vcvtm_u64_f64): Likewise.
13565 (vcvtn_s64_f64): Likewise.
13566 (vcvtn_u64_f64): Likewise.
13567 (vcvtp_s64_f64): Likewise.
13568 (vcvtp_u64_f64): Likewise.
13569
13570 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
13571
13572 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
13573 (arc_init): Check validity mll64 option.
13574 (arc_save_restore): Use double load/store instruction.
13575 (arc_expand_movmem): Likewise.
13576 (arc_split_move): Don't split if we have double load/store
13577 instructions. Returns a boolean.
13578 (arc_process_double_reg_moves): Change function to return boolean
13579 instead of a sequence of instructions.
13580 (arc_dwarf_register_span): New function.
13581 * config/arc/arc-protos.h (arc_split_move): Change prototype.
13582 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
13583 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
13584 (*movdf_insn): Likewise.
13585 * config/arc/arc.opt (mll64): New option.
13586 * config/arc/predicates.md (even_register_operand): New predicate.
13587 * doc/invoke.texi (ARC Options): Add mll64 documentation.
13588
13589 2016-01-25 Richard Biener <rguenther@suse.de>
13590
13591 PR lto/69393
13592 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
13593 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
13594 DECL_NAMELESS.
13595 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
13596
13597 2016-01-25 Richard Biener <rguenther@suse.de>
13598
13599 PR tree-optimization/69376
13600 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
13601 flag.
13602 (VN_INFO_ANTI_RANGE_P): New inline.
13603 (VN_INFO_RANGE_TYPE): Likewise.
13604 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
13605 SSA_NAME_ANTI_RANGE_P.
13606 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
13607 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13608 Properly query VN_INFO_RANGE_TYPE.
13609
13610 2016-01-25 Nick Clifton <nickc@redhat.com>
13611
13612 PR target/66655
13613 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
13614
13615 2016-01-23 Tom de Vries <tom@codesourcery.com>
13616
13617 PR tree-optimization/69426
13618 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
13619 removed clobber.
13620
13621 2016-01-23 Jakub Jelinek <jakub@redhat.com>
13622
13623 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
13624 "the the" with "the" in the comments.
13625 * ipa-devirt.c (build_type_inheritance_graph,
13626 update_type_inheritance_graph): Likewise.
13627 * tree.c (build_function_type_list_1): Likewise.
13628 * cfgloopmanip.c (scale_loop_profile): Likewise.
13629 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
13630 * gimple-ssa-split-paths.c
13631 (find_block_to_duplicate_for_splitting_paths): Likewise.
13632 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
13633 * expr.c (convert_move): Likewise.
13634 * var-tracking.c (vt_stack_adjustments): Likewise.
13635 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
13636 * tree-vrp.c (test_for_singularity): Likewise.
13637
13638 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
13639 directly instead of building a temporary tree.
13640
13641 PR bootstrap/69434
13642 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
13643 remove <algorithm> include.
13644
13645 2016-01-22 Jakub Jelinek <jakub@redhat.com>
13646
13647 PR target/69432
13648 * config/i386/i386.c: Include dojump.h.
13649 (expand_small_movmem_or_setmem,
13650 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
13651 fixes.
13652 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
13653 if dynamic_check != -1.
13654
13655 2016-01-21 Jeff Law <law@redhat.com>
13656
13657 PR middle-end/69347
13658 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
13659 record_temporary_equivalences. Rewritten to avoid unnecessary calls
13660 into dominated_by_p.
13661 (cprop_into_successor_phis): Avoid unnecessary tests.
13662
13663 2016-01-22 Richard Henderson <rth@redhat.com>
13664
13665 PR target/69416
13666 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
13667 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
13668
13669 2016-01-22 Michael Matz <matz@suse.de>
13670
13671 * system.h (string, algorithm): Include only conditionally.
13672 (new): Include always under C++.
13673 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
13674 * final.c (toplevel): Ditto.
13675 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
13676 * genconditions.c (write_header): Make gencondmd.c define
13677 INCLUDE_STRING.
13678 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
13679
13680 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
13681 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
13682
13683 2016-01-22 Christian Bruel <christian.bruel@st.com>
13684
13685 PR target/68674
13686 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
13687
13688 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13689
13690 PR target/69403
13691 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
13692 define_insn_and_split. Ensure operands[1] and operands[0] do not
13693 get assigned the same register.
13694
13695 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
13696
13697 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
13698
13699 2016-01-22 Christian Bruel <christian.bruel@st.com>
13700
13701 * config/arm/arm-c.c (arm_pragma_target_parse):
13702 Remove warn_builtin_macro_redefined overwrite.
13703
13704 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
13705
13706 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
13707 flag_non_call_exceptions compatibility.
13708
13709 2016-01-22 Jakub Jelinek <jakub@redhat.com>
13710
13711 PR debug/66668
13712 * dwarf2out.c (add_child_die_after): New function.
13713 (dwarf_qual_info_t): New type.
13714 (dwarf_qual_info): New variable.
13715 (qualified_die_p): New function.
13716 (modified_type_die): For -fdebug-types-section, ensure
13717 canonical order of qualifiers. Put qualified DIEs adjacent
13718 to the corresponding non-qualified type DIE and search there
13719 for existing qualified DIEs.
13720
13721 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
13722
13723 * doc/extend.texi (scalar_storage_order type attribute): Document
13724 restriction on type punning and aliasing, and remove future tense.
13725
13726 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
13727
13728 PR target/69252
13729 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
13730 first stage.
13731
13732 2016-01-21 Jeff Law <law@redhat.com>
13733
13734 PR middle-end/69347
13735 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
13736 useless call to record_temporary_equivalences.
13737 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
13738 allocate 10 slots in the bb_path vector and let it grow as needed.
13739 (fsm_find_control_statement_thread_paths): Similarly for the next_path
13740 vector.
13741
13742 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
13743
13744 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
13745 Detangle.
13746 * configure: Regenerate.
13747
13748 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
13749
13750 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
13751 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
13752
13753 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
13754
13755 PR middle-end/66178
13756 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
13757 drop EXPAND_INITIALIZER.
13758 * rtl.h (contains_symbolic_reference_p): Declare.
13759 * rtlanal.c (contains_symbolic_reference_p): New function.
13760 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
13761 a subtraction into a NOT if symbolic constants are involved.
13762
13763 2016-01-21 Anton Blanchard <anton@samba.org>
13764 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13765
13766 PR target/63354
13767 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
13768 #define.
13769 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
13770 function.
13771
13772 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
13773
13774 * config/microblaze/microblaze.c
13775 (get_branch_target): New.
13776 (insert_wic_for_ilb_runout): New.
13777 (insert_wic): New.
13778 (microblaze_machine_dependent_reorg): New.
13779 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
13780 * config/microblaze/microblaze.md
13781 (UNSPEC_IPREFETCH): Define.
13782 (iprefetch): New pattern
13783 * config/microblaze/microblaze.opt
13784 (mxl-prefetch): New flag.
13785
13786 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
13787
13788 * config/microblaze/microblaze.h
13789 (FIXED_REGISTERS): Update in macro.
13790 (CALL_USED_REGISTERS): Update in macro.
13791
13792 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
13793
13794 PR rtl-optimization/68920
13795 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
13796 moves.
13797
13798 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
13799
13800 PR rtl-optimization/68990
13801 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
13802 pseudo instead of inheritance ones.
13803
13804 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
13805 Nick Clifton <nickc@redhat.com>
13806
13807 PR target/69129
13808 PR target/69012
13809 * config/mips/mips.c (mips_compute_frame_info): Initialise
13810 args_size and hard_frame_pointer_offset fields of the frame
13811 structure before calling mips_global_pointer.
13812
13813 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
13814
13815 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
13816 label reference.
13817 * configure: Regenerate.
13818
13819 2016-01-21 Richard Biener <rguenther@suse.de>
13820
13821 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
13822
13823 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
13824
13825 * config/s390/s390.c (s390_asm_declare_function_size): Add code
13826 to actually emit the .size directive.
13827
13828 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
13829 Jakub Jelinek <jakub@redhat.com>
13830
13831 PR target/69187
13832 PR target/65624
13833 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
13834 args array size by one to avoid buffer overflow.
13835
13836 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
13837
13838 * config/s390/s390.md (pool_section_start): Use switch_to_section
13839 to select proper read-only data section instead of hardcoding
13840 .rodata.
13841 (pool_section_end): Use switch_to_section to match the above.
13842
13843 2016-01-21 Richard Biener <rguenther@suse.de>
13844
13845 PR tree-optimization/69378
13846 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
13847 (set_ssa_val_to): Use it for dominance checks taking into
13848 account not executable edges.
13849
13850 2016-01-21 Jakub Jelinek <jakub@redhat.com>
13851
13852 PR c++/69355
13853 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
13854 for bitsize instead of GET_MODE_PRECISION (mode).
13855
13856 2016-01-20 Martin Sebor <msebor@redhat.com>
13857
13858 PR c/52291
13859 * extend.texi (__sync Builtins): Clarify the semantics of
13860 __sync_fetch_and_OP built-ins on pointers.
13861 (__atomic Builtins): Same.
13862
13863 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13864 Sebastian Pop <s.pop@samsung.com>
13865
13866 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
13867 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
13868 (is_valid_rename): Same.
13869 (translate_isl_ast_to_gimple::get_rename): Same.
13870 (translate_isl_ast_to_gimple::rename_all_uses): Same.
13871 (translate_isl_ast_to_gimple::rename_uses): Same.
13872 (get_new_name): Check for close_phi nodes.
13873 (copy_loop_phi_args): Use phi_node_kind.
13874 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
13875 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
13876
13877 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13878 Sebastian Pop <s.pop@samsung.com>
13879
13880 Revert commit r229783.
13881 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
13882 Remove use of parameter_rename_map.
13883 (copy_def): Remove.
13884 (copy_internal_parameters): Remove.
13885 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
13886 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
13887 (free_sese_info): Do not free parameter_rename_map.
13888 (set_rename): Do not use parameter_rename_map.
13889 (rename_uses): Update call to set_rename.
13890 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
13891 * sese.h (parameter_rename_map_t): Remove.
13892 (struct sese_info_t): Remove field parameter_rename_map.
13893
13894 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13895 Sebastian Pop <s.pop@samsung.com>
13896
13897 * graphite-isl-ast-to-gimple.c: Fix comment.
13898 * graphite-scop-detection.c (defined_in_loop_p): New.
13899 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
13900 names defined in loop.
13901
13902 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13903 Sebastian Pop <s.pop@samsung.com>
13904
13905 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
13906 Discard unstructured if-then-else regions.
13907
13908 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13909 Sebastian Pop <s.pop@samsung.com>
13910
13911 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
13912 (cleanup_loop_iter_dom): Remove.
13913 (build_loop_iteration_domains): Remove.
13914 (build_scop_context): Remove.
13915 (build_scop_iteration_domain): Remove.
13916 (add_loop_constraints): New.
13917 (build_iteration_domains): New.
13918 (build_poly_scop): Call build_iteration_domains.
13919
13920 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13921 Sebastian Pop <s.pop@samsung.com>
13922
13923 * graphite-scop-detection.c
13924 (scop_detection::harmful_loop_in_region): Free dom and loops.
13925 (scop_detection::loop_body_is_valid_scop): Free bbs.
13926
13927 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13928 Sebastian Pop <s.pop@samsung.com>
13929
13930 * graphite-scop-detection.c (record_loop_in_sese): New.
13931 (gather_bbs::before_dom_children): Call record_loop_in_sese.
13932 (build_scops): Remove call to build_sese_loop_nests.
13933 * sese.c (sese_record_loop): Remove.
13934 (build_sese_loop_nests): Remove.
13935 (new_sese_info): Remove region->loops.
13936 (free_sese_info): Same.
13937 * sese.h (sese_contains_loop): Same.
13938 (build_sese_loop_nests): Remove.
13939 (sese_contains_loop): Remove.
13940
13941 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13942 Sebastian Pop <s.pop@samsung.com>
13943
13944 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
13945 loop_is_valid_in_scop.
13946 (scop_detection::harmful_stmt_in_region): Renamed
13947 harmful_loop_in_region.
13948 Call loop_is_valid_in_scop.
13949
13950 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13951 Sebastian Pop <s.pop@samsung.com>
13952
13953 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
13954 isl_ast_node_mark.
13955
13956 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13957 Sebastian Pop <s.pop@samsung.com>
13958
13959 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
13960 * graphite.h (struct poly_bb): Remove field is_reduction.
13961 (PBB_IS_REDUCTION): Remove.
13962
13963 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
13964 Sebastian Pop <s.pop@samsung.com>
13965
13966 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
13967 (add_pdr_constraints): Same.
13968 (scop_get_reads): Same.
13969 (scop_get_must_writes): Same.
13970 (scop_get_may_writes): Same.
13971 (scop_get_original_schedule): Same.
13972 (extend_schedule): Same.
13973 (apply_schedule_on_deps): Same.
13974 (carries_deps): Same.
13975 (compute_deps): Same.
13976 (scop_get_dependences): Same.
13977 * graphite-isl-ast-to-gimple.c
13978 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
13979 * graphite-optimize-isl.c (get_schedule_for_band): Same.
13980 (get_schedule_for_band_list): Same.
13981 (get_schedule_map): Same.
13982 (apply_schedule_map_to_scop): Same.
13983 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
13984 (build_loop_iteration_domains): Same.
13985 (add_condition_to_pbb): Same.
13986 (add_param_constraints): Same.
13987 (pdr_add_memory_accesses): Same.
13988 (pdr_add_data_dimensions): Same.
13989
13990 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
13991
13992 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
13993 requirements.
13994
13995 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
13996
13997 * common.opt (feliminate-dwarf2-dups): Replace references to
13998 "DWARF 2" with just "DWARF".
13999 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
14000 * doc/extend.texi: Likewise.
14001 * doc/cpp.texi: Likewise.
14002 * doc/invoke.texi: Likewise.
14003 (Option Summary): Add -gdwarf to list of Debugging Options.
14004 (Debugging Options): Document -gdwarf.
14005 * doc/contrib.texi: Spell "DWARF" like that.
14006
14007 2016-01-21 Jakub Jelinek <jakub@redhat.com>
14008
14009 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
14010 warning. Fix up formatting.
14011
14012 PR middle-end/67653
14013 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
14014 attempt to mark memory input operand addressable and
14015 call prepare_gimple_addressable in that case. Don't adjust
14016 input_location for diagnostics, use error_at instead.
14017
14018 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
14019
14020 * config/rs6000/ppc-auxv.h: New file.
14021 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
14022 (cpu_is): Likewise.
14023 (cpu_supports): Likewise.
14024 * config/rs6000/rs6000.c: include "ppc-auxv.h".
14025 (cpu_is_info): New variable.
14026 (cpu_supports_info): Likewise.
14027 (tcb_verification_symbol): Likewise.
14028 (cpu_builtin_p): Likewise.
14029 (cpu_expand_builtin): New function.
14030 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
14031 (rs6000_init_builtins): Likewise.
14032 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
14033 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
14034 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
14035 * configure: Regenerate.
14036 * config.in: Likewise.
14037 * doc/extend.texi (PowerPC Built-in Functions): Document
14038 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
14039
14040 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
14041
14042 PR target/68609
14043 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
14044 domain check.
14045 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
14046 for V4SFmode.
14047
14048 2016-01-20 Richard Henderson <rth@redhat.com>
14049
14050 PR bootstrap/69343
14051 PR bootstrap/69339
14052 PR tree-opt/68964
14053 Revert:
14054 * tree.c (tm_define_builtin): New.
14055 (find_tm_vector_type): New.
14056 (build_tm_vector_builtins): New.
14057 (build_common_builtin_nodes): Call it.
14058
14059 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
14060
14061 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
14062 (arm_fp_ok): Likewise.
14063 (arm_fp): Likewise.
14064 (arm_crypto): Likewise.
14065
14066 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
14067 Richard Biener <rguenther@suse.de>
14068
14069 PR tree-optimization/69328
14070 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
14071 vectors have same number of elements.
14072 (vectorizable_condition): Fix masked version recognition.
14073
14074 2016-01-20 Richard Biener <rguenther@suse.de>
14075
14076 PR tree-optimization/69345
14077 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
14078 (VN_INFO_PTR_INFO): Likewise.
14079 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
14080 info when it is equal between non-dominating SSA names.
14081 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
14082 Make sure to look at original SSA infos.
14083
14084 2016-01-20 Jeff Law <law@redhat.com>
14085
14086 PR target/25114
14087 * config/m68k/predicates.md (pow2_m1_operand): New predicate
14088 extracted from ...
14089 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
14090 (pc_or_label_operand): New predicate.
14091 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
14092 tests for small integers that are 2^n - 1.
14093
14094 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
14095
14096 * doc/invoke.texi (Options Summary): Add '.' after @xref.
14097
14098 2016-01-19 Jeff Law <law@redhat.com>
14099
14100 PR middle-end/69347
14101 * tree-ssa-threadbackwards.c
14102 (fsm_find_control_statement_thread_paths): Do not try to lookup
14103 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
14104
14105 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
14106
14107 * doc/lto.texi: Remove text that says only Gold has linker plugin
14108 support.
14109
14110 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
14111
14112 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
14113 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
14114 the DIE accordingly.
14115 (modified_type_die): Add REVERSE parameter and pass it recursively,
14116 as well as to base_type_die. Adjust presence check accordingly.
14117 (base_type_for_mode): Adjust call to modified_type_die.
14118 (add_type_attribute): Add REVERSE parameter and pass it to
14119 modified_type_die.
14120 (generic_parameter_die): Adjust call to add_type_attribute.
14121 (add_scalar_info): Likewise.
14122 (add_subscript_info): Likewise.
14123 (gen_array_type_die): Likewise.
14124 (gen_descr_array_type_die): Likewise.
14125 (gen_entry_point_die): Likewise.
14126 (gen_enumeration_type_die): Likewise.
14127 (gen_formal_parameter_die): Likewise.
14128 (gen_subprogram_die): Likewise.
14129 (gen_variable_die ): Likewise.
14130 (gen_const_die): Likewise.
14131 (gen_field_die): Likewise.
14132 (gen_pointer_type_die): Likewise.
14133 (gen_reference_type_die): Likewise.
14134 (gen_ptr_to_mbr_type_die): Likewise.
14135 (gen_inheritance_die): Likewise.
14136 (gen_subroutine_type_die): Likewise.
14137 (gen_typedef_die): Likewise.
14138 (force_type_die): Adjust call to modified_type_die.
14139
14140 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
14141
14142 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
14143 flow throughout the file. Fix broken link to Objective-C 2.0
14144 documentation.
14145 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
14146 errors.
14147
14148 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14149
14150 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
14151
14152 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14153
14154 PR ipa/66223
14155 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
14156 (maybe_record_node): Record cxa_pure_virtual as the only possible
14157 target if there are not ohter candidates.
14158 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
14159
14160 2016-01-19 Richard Biener <rguenther@suse.de>
14161
14162 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
14163 (get_memory_order): Likewise.
14164
14165 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
14166
14167 * tree-vect-stmts.c (vectorizable_store): Check
14168 rhs vectype.
14169
14170 2016-01-19 David Malcolm <dmalcolm@redhat.com>
14171
14172 PR jit/68446
14173 * gcc.c (driver::decode_argv): Add call to
14174 init_opts_obstack before init_options_struct.
14175 * opts.c (init_opts_obstack): Remove idempotency.
14176 (init_options_struct): Replace call to init_opts_obstack
14177 with a gcc_assert to verify that it has already been called.
14178 * toplev.c (toplev::main): Add call to init_opts_obstack before
14179 calls to init_options_struct.
14180 (toplev::finalize): Move cleanup of opts_obstack next to
14181 cleanup of save_decoded_options, clearing the latter, and
14182 save_decoded_options_count.
14183
14184 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14185
14186 PR target/69135
14187 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
14188 attribute to unconditional. Remove %? from output template.
14189
14190 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14191 Jiong Wang <jiong.wang@arm.com>
14192
14193 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
14194 generated from different expand order.
14195
14196 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14197
14198 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
14199 Add support for CCMP costing.
14200
14201 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14202
14203 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
14204 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
14205 (fccmpe<mode>): Likewise.
14206 (fcmp): Rename to fcmp and globalize pattern.
14207 (fcmpe): Likewise.
14208 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
14209 (aarch64_gen_ccmp_next): Add FP support.
14210
14211 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
14212
14213 * target.def (gen_ccmp_first): Update documentation.
14214 (gen_ccmp_next): Likewise.
14215 * doc/tm.texi (gen_ccmp_first): Update documentation.
14216 (gen_ccmp_next): Likewise.
14217 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
14218 expand_ccmp_expr_1. Improve comments.
14219 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
14220 (ccmp_ior<mode>): Remove pattern.
14221 (cmp<mode>): Remove expand.
14222 (cmp): Globalize pattern.
14223 (cstorecc4): Use cc_register.
14224 (mov<mode>cc): Remove ccmp_cc_register check.
14225 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
14226 Simplify after removal of CC_DNE/* modes.
14227 (aarch64_ccmp_mode_to_code): Remove.
14228 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
14229 In 'k' case use integer as condition.
14230 (aarch64_nzcv_codes): Remove inverted cases.
14231 (aarch64_code_to_ccmode): Remove.
14232 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
14233 comparison with CC register to be used in folowing CCMP/branch/CSEL.
14234 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
14235 pattern. Return the comparison with CC register. Invert conditions
14236 when bitcode is OR.
14237 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
14238 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
14239
14240 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14241
14242 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
14243 instrumented_version.
14244
14245 2016-01-19 Richard Biener <rguenther@suse.de>
14246
14247 PR tree-optimization/69336
14248 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
14249 handled components with get_ref_base_and_extent.
14250 (equal_mem_array_ref_p): Adjust.
14251
14252 2016-01-19 Jakub Jelinek <jakub@redhat.com>
14253
14254 PR debug/65779
14255 * shrink-wrap.c: Include valtrack.h.
14256 (move_insn_for_shrink_wrap): Add DEBUG argument. If
14257 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
14258 in between insn and where it will be moved to. Call
14259 dead_debug_insert_temp.
14260 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
14261 first and dead_debug_local_finish at the end.
14262 For uses and defs bitmap, handle all regs in between REGNO and
14263 END_REGNO, not just the first one.
14264
14265 2016-01-19 Richard Biener <rguenther@suse.de>
14266
14267 PR tree-optimization/69352
14268 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
14269 (equal_mem_array_ref_p): Constrain size and max size properly.
14270 Compare the reverse flag.
14271
14272 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
14273
14274 * ira.c (ira): Update regstat data if we deleted insns.
14275
14276 2016-01-19 Jakub Jelinek <jakub@redhat.com>
14277
14278 PR rtl-optimization/68955
14279 PR rtl-optimization/64557
14280 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
14281 here. Fix up formatting.
14282 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
14283
14284 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14285
14286 PR lto/69133
14287 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
14288 assume that the node has body.
14289 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
14290 check.
14291
14292 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14293
14294 * lto-streamer-out.c (lto_output): Do not stream instrumentation
14295 thunks.
14296
14297 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
14298
14299 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
14300 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
14301
14302 2016-01-19 Martin Jambor <mjambor@suse.cz>
14303 Martin Liska <mliska@suse.cz>
14304 Michael Matz <matz@suse.de>
14305
14306 * Makefile.in (OBJS): Add new source files.
14307 (GTFILES): Add hsa.c.
14308 * common.opt (disable_hsa): New variable.
14309 (-Whsa): New warning.
14310 * config.in (ENABLE_HSA): New.
14311 * configure.ac: Treat hsa differently from other accelerators.
14312 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
14313 $enable_offloading.
14314 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
14315 * doc/install.texi (Configuration): Document --with-hsa-runtime,
14316 --with-hsa-runtime-include, --with-hsa-runtime-lib and
14317 --with-hsa-kmt-lib.
14318 * doc/invoke.texi (-Whsa): Document.
14319 (hsa-gen-debug-stores): Likewise.
14320 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
14321 to invoke offload compiler for hsa acclerator.
14322 * opts.c (common_handle_option): Determine whether HSA offloading
14323 should be performed.
14324 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
14325 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
14326 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
14327 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
14328 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
14329 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
14330 GF_OMP_FOR_KIND_GRID_LOOP.
14331 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
14332 (pp_gimple_stmt_1): Likewise.
14333 * gimple-walk.c (walk_gimple_stmt): Likewise.
14334 * gimple.c (gimple_build_omp_grid_body): New function.
14335 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
14336 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
14337 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
14338 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
14339 GF_OMP_TEAMS_GRID_PHONY.
14340 (gimple_statement_omp_single_layout): Updated comments.
14341 (gimple_build_omp_grid_body): New function.
14342 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
14343 (gimple_omp_for_grid_phony): New function.
14344 (gimple_omp_for_set_grid_phony): Likewise.
14345 (gimple_omp_parallel_grid_phony): Likewise.
14346 (gimple_omp_parallel_set_grid_phony): Likewise.
14347 (gimple_omp_teams_grid_phony): Likewise.
14348 (gimple_omp_teams_set_grid_phony): Likewise.
14349 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
14350 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
14351 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
14352 (BUILT_IN_GOMP_TARGET): Updated type.
14353 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
14354 (adjust_for_condition): New function.
14355 (get_omp_for_step_from_incr): Likewise.
14356 (extract_omp_for_data): Moved parts to adjust_for_condition and
14357 get_omp_for_step_from_incr.
14358 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
14359 (fixup_child_record_type): Bail out if receiver_decl is NULL.
14360 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
14361 (scan_omp_parallel): Do not create child functions for phony
14362 constructs.
14363 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
14364 (scan_omp_1_op): Checking assert we are not remapping to
14365 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
14366 (parallel_needs_hsa_kernel_p): New function.
14367 (expand_parallel_call): Register apprpriate parallel child
14368 functions as HSA kernels.
14369 (grid_launch_attributes_trees): New type.
14370 (grid_attr_trees): New variable.
14371 (grid_create_kernel_launch_attr_types): New function.
14372 (grid_insert_store_range_dim): Likewise.
14373 (grid_get_kernel_launch_attributes): Likewise.
14374 (get_target_argument_identifier_1): Likewise.
14375 (get_target_argument_identifier): Likewise.
14376 (get_target_argument_value): Likewise.
14377 (push_target_argument_according_to_value): Likewise.
14378 (get_target_arguments): Likewise.
14379 (expand_omp_target): Call get_target_arguments instead of looking
14380 up for teams and thread limit.
14381 (grid_expand_omp_for_loop): New function.
14382 (grid_arg_decl_map): New type.
14383 (grid_remap_kernel_arg_accesses): New function.
14384 (grid_expand_target_kernel_body): New function.
14385 (expand_omp): Call it.
14386 (lower_omp_for): Do not emit phony constructs.
14387 (lower_omp_taskreg): Do not emit phony constructs but create for them
14388 a temporary variable receiver_decl.
14389 (lower_omp_taskreg): Do not emit phony constructs.
14390 (lower_omp_teams): Likewise.
14391 (lower_omp_grid_body): New function.
14392 (lower_omp_1): Call it.
14393 (grid_reg_assignment_to_local_var_p): New function.
14394 (grid_seq_only_contains_local_assignments): Likewise.
14395 (grid_find_single_omp_among_assignments_1): Likewise.
14396 (grid_find_single_omp_among_assignments): Likewise.
14397 (grid_find_ungridifiable_statement): Likewise.
14398 (grid_target_follows_gridifiable_pattern): Likewise.
14399 (grid_remap_prebody_decls): Likewise.
14400 (grid_copy_leading_local_assignments): Likewise.
14401 (grid_process_kernel_body_copy): Likewise.
14402 (grid_attempt_target_gridification): Likewise.
14403 (grid_gridify_all_targets_stmt): Likewise.
14404 (grid_gridify_all_targets): Likewise.
14405 (execute_lower_omp): Call grid_gridify_all_targets.
14406 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
14407 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
14408 (tree_omp_clause): Added union field dimension.
14409 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
14410 * tree.c (omp_clause_num_ops): Added number of arguments of
14411 OMP_CLAUSE__GRIDDIM_.
14412 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
14413 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
14414 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
14415 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
14416 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
14417 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
14418 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
14419 * tree-pass.h (make_pass_gen_hsail): Declare.
14420 (make_pass_ipa_hsa): Likewise.
14421 * ipa-hsa.c: New file.
14422 * lto-section-in.c (lto_section_name): Add hsa section name.
14423 * lto-streamer.h (lto_section_type): Add hsa section.
14424 * timevar.def (TV_IPA_HSA): New.
14425 * hsa-brig-format.h: New file.
14426 * hsa-brig.c: New file.
14427 * hsa-dump.c: Likewise.
14428 * hsa-gen.c: Likewise.
14429 * hsa.c: Likewise.
14430 * hsa.h: Likewise.
14431 * toplev.c (compile_file): Call hsa_output_brig.
14432 * hsa-regalloc.c: New file.
14433
14434 2016-01-18 Jeff Law <law@redhat.com>
14435
14436 PR tree-optimization/69320
14437 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
14438 ranged object, do nothing if the RHS constant is not [0..1].
14439 (optimize_stmt): Comparing a boolean ranged object against a
14440 constant outside [0..1] results in a compile-time constant.
14441
14442 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
14443 test.
14444
14445 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
14446
14447 * doc/invoke.texi (Invoking GCC): Add new section to menu.
14448 (Option Summary): Update to reflect new section and moved options.
14449 (C++ Dialect Options): Move -fstats to new section.
14450 (Debugging Options): Move all dump, statistics, and other GCC
14451 developer options to new section. Rewrite section introduction
14452 and re-order remaining options to put the more basic ones first.
14453 (Optimization Options): Move -fira-verbose and -flto-report* to
14454 new section.
14455 (Developer Options): New section incorporating moved options.
14456 * doc/cppopts.texi (-dM): Update cross-reference.
14457
14458 2016-01-18 Richard Henderson <rth@redhat.com>
14459
14460 PR target/69176
14461 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
14462 operands to pseudo only if CSE is expected. Split long immediate
14463 operands only after reload, and for the stack pointer.
14464 (*add<GPI>3_pluslong): Remove.
14465 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
14466 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
14467 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
14468 (*add<GPI>3 peepholes): New.
14469 (*add<GPI>3 splitters): New.
14470 * config/aarch64/constraints.md (Upl): New.
14471 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
14472
14473 2016-01-18 Richard Biener <rguenther@suse.de>
14474
14475 PR tree-optimization/69297
14476 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
14477 stmt at most once.
14478 (vect_bb_vectorization_profitable_p): Clear visited flag again.
14479
14480 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
14481
14482 PR middle-end/68542
14483 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
14484 of mixind vector and scalar types.
14485 (fold_relational_const): Add handling of vector
14486 comparison with boolean result.
14487 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
14488 comparison of vector operands with boolean result for EQ/NE only.
14489 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
14490 (verify_gimple_cond): Likewise.
14491 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
14492 valid type of VAL.
14493
14494 2016-01-18 Joseph Myers <joseph@codesourcery.com>
14495
14496 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
14497 !TARGET_OCTEON.
14498
14499 2016-01-18 Richard Biener <rguenther@suse.de>
14500
14501 PR middle-end/69308
14502 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
14503
14504 2016-01-18 Tom de Vries <tom@codesourcery.com>
14505
14506 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
14507
14508 2016-01-18 Tom de Vries <tom@codesourcery.com>
14509
14510 * omp-low.c (set_oacc_fn_attrib): Make extern.
14511 * omp-low.h (set_oacc_fn_attrib): Declare.
14512 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
14513 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
14514 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
14515 Add and handle function parameter oacc_kernels_p.
14516 (find_reduc_addr, get_omp_data_i_param): New function.
14517 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
14518 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
14519 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
14520 Calculate dominance info. Skip loops that are not in a kernels region
14521 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
14522 (pass_parallelize_loops::execute): Call parallelize_loops with
14523 oacc_kernels_p argument.
14524 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
14525 New member function.
14526 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
14527 * passes.def: Add argument to pass_parallelize_loops instantation.
14528
14529 2016-01-18 Tom de Vries <tom@codesourcery.com>
14530
14531 * tree-parloops.c (pass_parallelize_loops::execute): Allow
14532 pass_parallelize_loops to be run outside the loop pipeline.
14533
14534 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
14535
14536 * tree-scalar-evolution.c (follow_copies_to_constant): New.
14537 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
14538
14539 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
14540
14541 PR target/63679
14542 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
14543 using get_ref_base_and_extent.
14544 (equal_mem_array_ref_p): New.
14545 (hashable_expr_equal_p): Add call to previous.
14546
14547 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
14548
14549 PR target/63679
14550 * tree-sra.c (disqualified_constants, constant_decl_p): New.
14551 (sra_initialize): Allocate disqualified_constants.
14552 (sra_deinitialize): Free disqualified_constants.
14553 (disqualify_candidate): Update disqualified_constants when appropriate.
14554 (create_access): Scan for constant-pool entries as we go along.
14555 (scalarizable_type_p): Add check against type_contains_placeholder_p.
14556 (maybe_add_sra_candidate): Allow constant-pool entries.
14557 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
14558 (initialize_constant_pool_replacements): New.
14559 (sra_modify_assign): Avoid mangling assignments created by previous,
14560 and don't generate writes into constant pool.
14561 (sra_modify_function_body): Call initialize_constant_pool_replacements.
14562
14563 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
14564
14565 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
14566 andnot instruction.
14567 (scalar_chain::convert_op): Likewise.
14568 * config/i386/i386.md (*andndi3_doubleword): New.
14569
14570 2016-01-18 Richard Biener <rguenther@suse.de>
14571
14572 PR tree-optimization/69170
14573 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
14574 building a vector from scalar results of a pattern stmt.
14575
14576 2016-01-18 Jakub Jelinek <jakub@redhat.com>
14577
14578 * haifa-sched.c (autopref_multipass_init): Work around
14579 -Wmaybe-uninitialized warning.
14580
14581 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
14582
14583 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
14584 against the constant 0.
14585
14586 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14587
14588 PR tree-optimization/68799
14589 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
14590 look up phi candidates in the statement-candidate map.
14591 (phi_add_costs): Likewise.
14592 (record_phi_increments): Likewise.
14593 (phi_incr_cost): Likewise.
14594 (ncd_with_phi): Likewise.
14595 (all_phi_incrs_profitable): Likewise.
14596
14597 2016-01-17 Jakub Jelinek <jakub@redhat.com>
14598
14599 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
14600 -Wmaybe-uninitialized warning.
14601
14602 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
14603
14604 * doc/invoke.texi (Invoking GCC): Add new section to menu.
14605 (Option Summary): Update to reflect new section and moved options.
14606 (C++ Dialect Options): Move -fvtable-verify and related options.
14607 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
14608 and profiling-related options.
14609 (Optimization Options): Move profile generation options and
14610 -fstack-protector and related options.
14611 (Instrumentation Options): New section incorporating moved options.
14612 (Code Generation Options): Move -finstrument-functions and
14613 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
14614
14615 2016-01-16 Tom de Vries <tom@codesourcery.com>
14616
14617 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
14618
14619 2016-01-16 Tom de Vries <tom@codesourcery.com>
14620
14621 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
14622
14623 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
14624
14625 * hash-table.h (hash_table::empty): Turn into an inline wrapper
14626 that checks whether the table is already empty. Rename the
14627 original implementation to...
14628 (hash_table::empty_slot): ...this new private function.
14629
14630 2016-01-15 David Malcolm <dmalcolm@redhat.com>
14631
14632 PR diagnostic/68899
14633 * diagnostic-show-locus.c (layout::print_source_line): Move x
14634 offset of line until after call to
14635 get_line_width_without_trailing_whitespace.
14636
14637 2016-01-15 Jeff Law <law@redhat.com>
14638
14639 PR tree-optimization/69270
14640 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
14641 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
14642 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
14643 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
14644 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
14645 ssa_name_has_boolean_range and constant_boolean_node.
14646
14647 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
14648
14649 PR rtl-optimization/69030
14650 * lra-spills.c (remove_pseudos): Check nrefs and make the function
14651 returning bool.
14652 (spill_pseudos): Delete debug insn for dead pseudo.
14653 (lra_spill): Initiate spill_hard_reg and slots memory separately.
14654
14655 2016-01-15 Jiong Wang <jiong.wang@arm.com>
14656
14657 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
14658 New.
14659 (TYPES_UNOPUS): Likewise.
14660 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
14661 builtin type, from UNOP to UNOPUS.
14662 (lbtruncuv4sf): Likewise.
14663 (lbtruncuv2df): Likewise.
14664 (lrounduv2sf): Likewise.
14665 (lrounduv4sf): Likewise.
14666 (lrounduv2df): Likewise.
14667 (lroundusf): Likewise.
14668 (lroundusf): Likewise.
14669 (lceiluv2sf): Likewise.
14670 (lceiluv4sf): Likewise.
14671 (lceiluv2df): Likewise.
14672 (lceilusf): Likewise.
14673 (lceiludf): Likewise.
14674 (lflooruv2sf): Likewise.
14675 (lflooruv4sf): Likewise.
14676 (lflooruv2df): Likewise.
14677 (lfloorusf): Likewise.
14678 (lfloorudf): Likewise.
14679 (lfrintnuv2sf): Likewise.
14680 (lfrintnuv4sf): Likewise.
14681 (lfrintnuv2df): Likewise.
14682 (lfrintnusf): Likewise.
14683 (lfrintnudf): Likewise.
14684 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
14685 conversion.
14686 (vcvtq_u32_f32): Likewise.
14687 (vcvtq_u64_f64): Likewise.
14688 (vcvta_u32_f32): Likewise.
14689 (vcvtaq_u32_f32): Likewise.
14690 (vcvtaq_u64_f64): Likewise.
14691 (vcvtm_u32_f32): Likewise.
14692 (vcvtmq_u32_f32): Likewise.
14693 (vcvtmq_u64_f64): Likewise.
14694 (vcvtn_u32_f32): Likwise.
14695 (vcvtnq_u32_f32): Likewise.
14696 (vcvtnq_u64_f64): Likewise.
14697 (vcvtp_u32_f32): Likewise.
14698 (vcvtpq_u32_f32): Likewise.
14699 (vcvtpq_u64_f64): Likewise.
14700 (vcvtmd_u64_f64): Likewise.
14701 (vcvtms_u32_f32): Likewise.
14702 (vcvtad_u64_f64): Likewise.
14703 (vcvtas_u32_f32): Likewise.
14704 (vcvtnd_u64_f64): Likewise.
14705 (vcvtns_u32_f32): Likewise.
14706 (vcvtpd_u64_f64): Likewise.
14707 (vcvtps_u32_f32): Likewise.
14708
14709 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14710
14711 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
14712 CSEL of zero_extended registers.
14713
14714 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14715
14716 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14717 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
14718
14719 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14720
14721 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
14722 false when argument string is not found in the attributes table
14723 at all.
14724
14725 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
14726
14727 PR target/68609
14728 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
14729 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
14730 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
14731 precision estimate.
14732
14733 2016-01-15 Richard Biener <rguenther@suse.de>
14734
14735 PR tree-optimization/66856
14736 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
14737 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
14738 (vect_create_new_slp_node): Increment stmt reference count.
14739 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
14740 an SLP tree before swapping operands.
14741 (vect_build_slp_tree): Likewise.
14742 (destroy_bb_vec_info): Free stmt info after SLP instances.
14743 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
14744 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
14745 (STMT_VINFO_NUM_SLP_USES): New macro.
14746
14747 2016-01-15 Richard Biener <rguenther@suse.de>
14748
14749 PR debug/69137
14750 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
14751 (add_linkage_name): ... here.
14752 (gen_typedef_die): Use add_linkage_name_raw instead of
14753 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
14754 if necessary.
14755
14756 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
14757
14758 * gimplify.c (oacc_default_clause): Decode reference and pointer
14759 types for both kernels and parallel regions.
14760
14761 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
14762
14763 PR middle-end/69246
14764 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
14765
14766 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
14767
14768 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
14769 (convert_scalars_to_vector): Likewise.
14770
14771 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
14772
14773 * doc/extend.texi (Type Traits): Fix grammar.
14774
14775 2016-01-15 Martin Jambor <mjambor@suse.cz>
14776
14777 * tree-inline.c (remap_decl): Use existing dclarations if
14778 remapping a type and prevent_decl_creation_for_types.
14779 (replace_locals_stmt): Do an initial remapping of non-VLA typed
14780 decls first. Do real remapping with
14781 prevent_decl_creation_for_types set.
14782 * tree-inline.h (copy_body_data): New field
14783 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
14784 padding.
14785
14786 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
14787
14788 * config/s390/s390.opt (mmvcle): More verbose help text.
14789
14790 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
14791
14792 * config/s390/s390.opt: Add period to -mzvector option text.
14793
14794 2016-01-15 Richard Biener <rguenther@suse.de>
14795
14796 PR tree-optimization/68961
14797 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
14798 of invariants in stores again.
14799
14800 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14801
14802 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
14803
14804 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
14805
14806 * config/i386/i386.c (ix86_expand_branch): Don't split
14807 DI mode xor instruction to SI mode.
14808
14809 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
14810
14811 PR ipa/68148
14812 * ipa-icf.c (sem_function::merge): Virtual functions may become
14813 reachable even if they address is not taken and there are no
14814 idrect calls.
14815
14816 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
14817
14818 * lto-streamer-out.c (subtract_estimated_size): New function.
14819 (get_symbol_initial_value): Use it.
14820
14821 2016-01-15 Christian Bruel <christian.bruel@st.com>
14822
14823 PR target/65837
14824 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
14825 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
14826 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
14827 use add_builtin_function_ext_scope instead of add_builtin_function.
14828 (neon_set_p, neon_crypto_set_p): Remove.
14829 (arm_init_builtins): Always call arm_init_neon_builtins and
14830 arm_init_crypto_builtins.
14831 (arm_expand_builtin): Check that builtins are allowed for the arch.
14832 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
14833 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
14834 arm_init_neon_builtins call.
14835
14836 2016-01-15 Richard Biener <rguenther@suse.de>
14837
14838 PR tree-optimization/69117
14839 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
14840 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
14841 of the leader conservatively.
14842 (free_scc_vn): Restore original SSA name infos.
14843
14844 2016-01-14 Jeff Law <law@redhat.com>
14845
14846 PR tree-optimization/69270
14847 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
14848 single bit of precision, verify it's also unsigned.
14849 (record_edge_info): Use constant_boolean_node rather than fold_convert
14850 to convert boolean_true/boolean_false to the right type.
14851
14852 2016-01-14 Richard Henderson <rth@redhat.com>
14853
14854 PR rtl-opt/69014
14855 * loop-doloop.c (record_reg_sets): New.
14856 (doloop_optimize): Reject the transform if the sequence
14857 clobbers registers live at the end of the loop block.
14858 (doloop_optimize_loops): Enable df_live if needed.
14859
14860 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14861
14862 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
14863 * config/rs6000/rs6000.c: Likewise.
14864 * config/rs6000/rs6000.h: Likewise.
14865 * config/rs6000/rs6000.md: Likewise.
14866 * doc/extend.texi: Likewsie.
14867
14868 2016-01-14 Jeff Law <law@redhat.com>
14869
14870 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
14871 typo.
14872
14873 2016-01-14 Richard Henderson <rth@redhat.com>
14874
14875 PR c/69272
14876 PR tree-opt/68964
14877 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
14878 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
14879 instead of builtin_decl_declared_p to test for declaration.
14880
14881 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
14882
14883 * doc/loop.texi (Loop Analysis and Representation): Document
14884 loop_depth function.
14885
14886 2016-01-14 Tom de Vries <tom@codesourcery.com>
14887
14888 PR tree-optimization/68773
14889 * omp-low.c (expand_omp_target): Don't set force_output.
14890 * varpool.c (varpool_node::get_create): Same.
14891 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
14892 offload_funcs with force_output.
14893
14894 2016-01-14 Jakub Jelinek <jakub@redhat.com>
14895
14896 PR debug/69244
14897 * lra-eliminations.c (move_plus_up): Don't change anything if either
14898 the outer or inner subreg mode is not MODE_INT.
14899 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
14900 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
14901
14902 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
14903
14904 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
14905 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
14906 reduc_uplus_@var{m}): Remove.
14907 * expr.c (expand_expr_real_2): Remove expansion path for
14908 reduc_[us](min|max|plus) optabs.
14909 * optabs-tree.c (scalar_reduc_to_vector): Remove.
14910 * optabs-tree.h (scalar_reduc_to_vector): Remove.
14911 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
14912 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
14913 * tree-vect-loop.c (vectorizable_reduction): Remove test for
14914 reduc_[us](min|max|plus) optabs.
14915
14916 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
14917
14918 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
14919 (reduc_plus_scal_v2sf): New.
14920 (reduc_smax_v2sf): Rename to...
14921 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
14922 (reduc_smin_v2sf): Rename to...
14923 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
14924
14925 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
14926
14927 * alias.c (compare_base_symbol_refs): New function.
14928 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
14929 it.
14930
14931 2016-01-14 Jakub Jelinek <jakub@redhat.com>
14932
14933 PR middle-end/68146
14934 PR tree-optimization/69155
14935 * tree-complex.c: Include cfganal.h.
14936 (phis_to_revisit): New variable.
14937 (extract_component): Add phiarg_p argument. Assert that returned
14938 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
14939 (update_phi_components): Partly rewrite to use loop over real/imag
14940 components instead of code duplication. If extract_component returns
14941 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
14942 create_tmp_reg into the PHI node instead, and mention the phi triplet
14943 in phis_to_revisit.
14944 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
14945 in phis_to_revisit at the end.
14946
14947 2016-01-14 Richard Biener <rguenther@suse.de>
14948
14949 PR tree-optimization/68060
14950 * tree-vect-loop.c (vect_is_simple_reduction): Check the
14951 outer loop reduction is only used in the inner loop before
14952 detecting a double reduction.
14953
14954 2016-01-14 Jakub Jelinek <jakub@redhat.com>
14955
14956 PR target/68269
14957 * combine.c (expand_field_assignment): Punt if compute_mode is
14958 unsupported scalar mode.
14959
14960 2016-01-14 Richard Biener <rguenther@suse.de>
14961
14962 PR tree-optimization/66856
14963 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
14964 SLP node only if it built successfully.
14965 (vect_analyze_slp_instance): Adjust.
14966
14967 2016-01-14 Jeff Law <law@redhat.com>
14968
14969 PR tree-optimization/69270
14970 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
14971 (record_edge_info): Use it. Convert boolean_{true,false}_node
14972 to the type of op0.
14973
14974 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
14975
14976 PR ipa/66487
14977 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
14978 use block_ultimate_origin
14979 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
14980
14981 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
14982
14983 * doc/invoke.texi (Submodel Options): Rename section to
14984 "Machine-Dependent Options" to better reflect its content.
14985 Rewrite introductory text to remove archaic CPU names.
14986 Update references.
14987
14988 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
14989
14990 * doc/invoke.texi (Code Gen Options): Move section up in file,
14991 before target-specific options. Update menu and option summary
14992 to reflect the new section ordering.
14993
14994 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
14995
14996 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
14997 (C++ Dialect Options): Add cross-reference to -std option.
14998 * doc/standards.texi (C++ Language): Document C++14 support.
14999
15000 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15001
15002 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
15003 for pack/unpack functions for __ibm128.
15004 (PACK_IF): Likewise.
15005 (UNPACK_IF): Likewise.
15006
15007 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
15008 support for __ibm128 pack/unpack functions.
15009 (rs6000_invalid_builtin): Likewise.
15010 (rs6000_init_builtins): Likewise.
15011 (rs6000_opt_masks): Likewise.
15012
15013 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
15014 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
15015 functions
15016 (RS6000_BTM_COMMON): Likewise.
15017
15018 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
15019 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
15020 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
15021 128-bit floating point. Add support for the double values to be
15022 in Altivec registers for TF/IF packing and unpacking, but restrict
15023 TD packing sub-fields to be FPR registers. Don't allow overlapped
15024 register support for packing. Allow pack inputs to be memory
15025 locations. Don't build generator functions for unpack<mode>_dm
15026 and unpack<mode>_nodm.
15027 (unpack<mode>_dm): Likewise.
15028 (unpack<mode>_nodm): Likewise.
15029 (pack<mode>): Likewise.
15030
15031 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
15032 built-in functions to pack/unpack explicit __ibm128 values.
15033 (__builtin_unpack_ibm128): Likewise.
15034
15035 * doc/extend.texi (PowerPC Built-in Functions): Document
15036 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
15037
15038 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
15039
15040 PR c/66208
15041 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
15042 Add new arg loc and pass it down as context.
15043 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
15044 to the location to use for the warning.
15045 (check_function_arguments): New arg loc. All callers changed. Pass
15046 it to check_function_nonnull.
15047 * c-common.h (check_function_arguments): Adjust declaration.
15048
15049 2016-01-13 Jakub Jelinek <jakub@redhat.com>
15050
15051 PR tree-optimization/69156
15052 * gimple.c (validate_type): Removed.
15053 (gimple_builtin_call_types_compatible_p): Use
15054 useless_type_conversion_p instead of validate_type.
15055 * value-prof.c (gimple_stringop_fixed_value): Fold
15056 icall_size to correct type.
15057
15058 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
15059
15060 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
15061 effects.
15062
15063 2016-01-13 Richard Henderson <rth@redhat.com>
15064
15065 PR tree-opt/68964
15066 * target.def (builtin_tm_load, builtin_tm_store): Remove.
15067 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
15068 (ix86_builtin_tm_store): Remove.
15069 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15070 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15071 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
15072 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
15073 * doc/tm.texi: Rebuild.
15074
15075 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
15076 (BUILT_IN_TM_MEMCPY_RTWN): New.
15077 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
15078 fallback from vector to integer helpers.
15079 (build_tm_load): Handle vector types directly, instead of
15080 via target hook.
15081 (build_tm_store): Likewise.
15082 (expand_assign_tm): Prepare for register types not handled by
15083 the above. Copy them to memory and use memcpy.
15084 * tree.c (tm_define_builtin): New.
15085 (find_tm_vector_type): New.
15086 (build_tm_vector_builtins): New.
15087 (build_common_builtin_nodes): Call it.
15088
15089 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
15090
15091 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
15092 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
15093
15094 2016-01-13 Tom de Vries <tom@codesourcery.com>
15095
15096 PR tree-optimization/69169
15097 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
15098 handled_struct_type param.
15099 (create_variable_info_for, intra_create_variable_infos): Call
15100 create_variable_info_for_1 with extra arg.
15101
15102 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
15103
15104 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
15105 and "armv8.1-a+crc" entries.
15106
15107 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
15108
15109 PR target/69228
15110 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
15111 Change first operand predicate from register_or_constm1_operand
15112 to register_operand.
15113 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
15114 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
15115 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
15116 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
15117 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
15118 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
15119 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
15120 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
15121 comparison with constm1_rtx from vec_prefetch_gen part.
15122
15123 2016-01-13 Richard Biener <rguenther@suse.de>
15124
15125 PR tree-optimization/69013
15126 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
15127 Exchange assert for a test.
15128
15129 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15130
15131 PR target/69247
15132 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
15133
15134 2016-01-13 Richard Biener <rguenther@suse.de>
15135
15136 PR tree-optimization/69242
15137 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
15138 assert with a check.
15139
15140 2016-01-13 Richard Biener <rguenther@suse.de>
15141
15142 PR tree-optimization/69186
15143 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
15144 Properly guard vect_update_misalignment_for_peel call.
15145
15146 2016-01-12 Jeff Law <law@redhat.com>
15147
15148 PR tree-optimization/pr67755
15149 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
15150 "need_profile_correction".
15151 (thread_block_1): Initialize new field to false by default. If we
15152 have multiple thread paths through a common joiner to different
15153 final targets, then set new field to true.
15154 (compute_path_counts): Only do count adjustment when it's really
15155 needed.
15156
15157 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15158
15159 * doc/invoke.texi (Spec Files): Move section down in file, past
15160 all command-line option descriptions.
15161
15162 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15163
15164 PR middle-end/54809
15165 * doc/gty.texi: Remove documentation of mark_hook.
15166 * gengtype.c (struct write_types_data): Remove code to support
15167 mark_hook attribute.
15168 (walk_type): Likewise.
15169 (write_func_for_structure): Likewise.
15170
15171 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15172
15173 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
15174 Directory Options, and -specs= to Overall Options.
15175 (Overall Options): Adjust similarly. Reorder to group related
15176 options together. Make -specs= cross-reference the spec file details.
15177 (Directory Options): Adjust similarly.
15178
15179 2016-01-12 Jeff Law <law@redhat.com>
15180
15181 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
15182
15183 2016-01-12 Olivier Hainque <hainque@adacore.com>
15184
15185 * gcc.c (spec_undefvar_allowed): New global.
15186 (process_command): Set to true when running for --version or --help,
15187 alone or together.
15188 (getenv_spec_function): When the variable is not defined, use the
15189 variable name as the variable value if we're allowed not to issue
15190 a fatal error.
15191
15192 2016-01-12 Bin Cheng <bin.cheng@arm.com>
15193
15194 PR tree-optimization/68911
15195 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
15196 information computed for expression "init + nit * step".
15197
15198 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
15199
15200 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
15201 about name of GCC executable. Remove deleted node from menu.
15202 (Directory Options) <-B>: Remove cross-reference to deleted node.
15203 (Target Options): Delete section.
15204
15205 2016-01-12 Christian Bruel <christian.bruel@st.com>
15206
15207 PR target/69180
15208 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
15209 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
15210
15211 2016-01-12 Jakub Jelinek <jakub@redhat.com>
15212
15213 PR target/69198
15214 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
15215 aligned_mem is properly set for AVX512-VL floating point masked
15216 stores.
15217
15218 PR target/69175
15219 * ifcvt.c (cond_exec_process_if_block): When removing the last
15220 insn from then_bb, remove also any possible barriers that follow it.
15221
15222 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
15223
15224 PR target/68456
15225 PR target/69226
15226 * config/i386/iamcu.h (SIZE_TYPE): New macro.
15227 (PTRDIFF_TYPE): Likewise.
15228 (WCHAR_TYPE): Likewise.
15229 (WCHAR_TYPE_SIZE): Likewise.
15230 (STDINT_LONG32): Likewise.
15231
15232 2016-01-12 Richard Biener <rguenther@suse.de>
15233
15234 PR tree-optimization/69053
15235 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
15236 convert initial value for cond reductions.
15237
15238 2016-01-12 Richard Biener <rguenther@suse.de>
15239
15240 PR tree-optimization/69007
15241 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
15242 widen_sum after dot_prod and sad.
15243
15244 2016-01-12 Richard Biener <rguenther@suse.de>
15245
15246 PR tree-optimization/69168
15247 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
15248 pattern stmt SLP type.
15249 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
15250 end up unused so cope with that case.
15251
15252 2016-01-12 Richard Biener <rguenther@suse.de>
15253
15254 PR tree-optimization/69157
15255 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
15256 stmts def type only during analyze phase.
15257 (vectorizable_call): Likewise.
15258 (vectorizable_simd_clone_call): Likewise.
15259 (vectorizable_conversion): Likewise.
15260 (vectorizable_assignment): Likewise.
15261 (vectorizable_shift): Likewise.
15262 (vectorizable_operation): Likewise.
15263 (vectorizable_store): Likewise.
15264 (vectorizable_load): Likewise.
15265
15266 2016-01-12 Richard Biener <rguenther@suse.de>
15267
15268 PR tree-optimization/69174
15269 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
15270 space.
15271 (vectorizable_load): Properly compute the number of loads needed
15272 for permuted strided SLP loads and do not spuriously assign
15273 to SLP_TREE_VEC_STMTS.
15274
15275 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
15276
15277 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
15278 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
15279 (MD_EXEC_PREFIX): Remove.
15280 (MD_STARTFILE_PREFIX) Removee.
15281 (FILE_NAME_ABSOLUTE_P): Remove.
15282 (CPP_SPEC): Do not read macros from sys/version.h.
15283 (LINK_COMMAND_SPEC): Remove.
15284 (LOCAL_INCLUDE_DIR): Remove.
15285 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
15286 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
15287 (POST_LINK_SPEC): Define to invoke stubify after linker
15288 (LIBSTDCXX): Remove define
15289 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
15290 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
15291 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
15292 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
15293 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
15294 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
15295 (i386_djgpp_asm_named_section): Add propotype of new procedure
15296
15297 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
15298 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
15299 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
15300 in config/i386/djgpp.h).
15301 (STANDARD_STARTFILE_PREFIX_2): Define identical to
15302 STANDARD_STARTFILE_PREFIX_1.
15303 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
15304 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
15305 installation errors.
15306 (MAX_OFILE_ALIGNMENT): Define to 128.
15307 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
15308
15309 * config/i386/djgpp.c: New file. Add implementation of
15310 i386_djgpp_asm_named_section.
15311
15312 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
15313
15314 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
15315 Add rule for building djgpp.o.
15316
15317 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15318
15319 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
15320 (rtx_is_swappable_p): Reductions are swappable.
15321 (insn_is_swappable_p): V2DF reductions are swappable.
15322
15323 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
15324
15325 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
15326 reloads for other unsupported memory operands.
15327
15328 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15329 Jim Wilson <jim.wilson@linaro.org>
15330
15331 PR target/69194
15332 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
15333 copy_to_mode_reg instead of force_reg.
15334
15335 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
15336
15337 PR target/69225
15338 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
15339 TARGET_80387 is true.
15340
15341 2016-01-11 Jakub Jelinek <jakub@redhat.com>
15342
15343 PR target/69071
15344 * lra-eliminations.c (move_plus_up): Only move plus up
15345 if subreg of the constant can be simplified into constant
15346 and use the simplified subreg of the constant instead of
15347 the original constant.
15348
15349 * fold-const.c (fold_convertible_p): Don't return true
15350 for conversion of VECTOR_TYPE to same sized integral type.
15351 (fold_convert_loc): Fix up formatting. Fold conversion of
15352 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
15353 instead of NOP_EXPR.
15354
15355 PR tree-optimization/69214
15356 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
15357 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15358 Formatting fix.
15359
15360 PR tree-optimization/69207
15361 * tree-vect-slp.c (vect_get_constant_vectors): For
15362 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
15363 fold_convertible_p to vector_type's element type, and always
15364 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
15365
15366 2016-01-11 Richard Biener <rguenther@suse.de>
15367
15368 PR tree-optimization/69173
15369 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
15370 fixup the cycle if all stmts are in a pattern.
15371
15372 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
15373
15374 PR middle-end/68999
15375 * alias.c (base_alias_check): Move check for addresses with
15376 alignment ANDs before the call for compare_base_decls.
15377 (memrefs_conflict_p): Return -1 for different decls
15378 that went through alignment adjustments.
15379
15380 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15381
15382 PR rtl-optimization/68796
15383 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
15384 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
15385 and QImode comparisons against zero with CC_NZmode.
15386 * config/aarch64/iterators.md (short_mask): New mode_attr.
15387
15388 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
15389
15390 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
15391 (<avx512>_store<mode>_mask): Likewise.
15392
15393 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
15394 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15395
15396 PR rtl-optimization/68841
15397 * ifcvt.c (struct noce_if_info): Add orig_x field.
15398 (bbs_ok_for_cmove_arith): Add to_rename parameter.
15399 Don't record conflicts on to_rename if it's present.
15400 Allow memory destinations in sets.
15401 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
15402 blocks, passing orig_x to the checks.
15403 (noce_process_if_block): Set if_info->orig_x appropriately.
15404
15405 2016-01-11 Tom de Vries <tom@codesourcery.com>
15406
15407 PR tree-optimization/69069
15408 * tree-parloops.c (create_parallel_loop): Add missing phi args.
15409
15410 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
15411
15412 PR rtl-optimization/68920
15413 * config/i386/i386.c (ix86_option_override_internal): Restrict number
15414 of conditional moves for RTL if-conversion to 1 for
15415 TARGET_ONE_IF_CONV_INSN.
15416 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
15417 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
15418 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
15419 parameter to restirct number of conditional moves for
15420 RTL if-conversion.
15421 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
15422 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
15423 conditionl moves.
15424
15425 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
15426
15427 PR bootstrap/69123
15428 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
15429 onepart vars. Fix typo in comment. Fix reversed condition in
15430 unshare test.
15431 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
15432
15433 PR bootstrap/69123
15434 * var-tracking.c (dump_onepart_variable_differences): New.
15435 (dataflow_set_different): If a detailed dump is requested,
15436 delay early returns and dump differences between onepart
15437 variables present before and after, and added variables.
15438
15439 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
15440
15441 PR target/69010
15442 * expr.c (expand_expr_real_1): For boolean vector constants
15443 with a scalar mode use const_scalar_mask_from_tree.
15444 (const_scalar_mask_from_tree): New.
15445 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
15446 assigned to a mask type to handle constants.
15447
15448 2016-01-11 Martin Jambor <mjambor@suse.cz>
15449
15450 PR ipa/69044
15451 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
15452 useless parameters if we cannot change function signature.
15453
15454 2016-01-11 Martin Jambor <mjambor@suse.cz>
15455
15456 PR ipa/66616
15457 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
15458 flag.
15459
15460 2016-01-11 Tom de Vries <tom@codesourcery.com>
15461
15462 PR tree-optimization/69109
15463 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
15464 latch with phi.
15465
15466 2016-01-11 Tom de Vries <tom@codesourcery.com>
15467
15468 PR tree-optimization/69108
15469 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
15470 res is not used in a phi.
15471
15472 2016-01-11 Yury Gribov <y.gribov@samsung.com>
15473
15474 PR 67425
15475 * common.opt (frandom-seed): Fix parameter name.
15476 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
15477
15478 2016-01-11 Tom de Vries <tom@codesourcery.com>
15479
15480 PR tree-optimization/69058
15481 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
15482 not supported.
15483
15484 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
15485
15486 * config/arc/arc.opt (mdiv-rem): Add period to the end.
15487 (mcode-density): Likewise.
15488
15489 2016-01-10 Tom de Vries <tom@codesourcery.com>
15490
15491 PR tree-optimization/69062
15492 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
15493 (parallelize_loops): Don't paralelize loop that has phi with address
15494 arg.
15495
15496 2016-01-10 Tom de Vries <tom@codesourcery.com>
15497
15498 PR tree-optimization/69039
15499 * tree-parloops.c (try_create_reduction_list): Only allow single exit
15500 phi for reduction.
15501
15502 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
15503
15504 PR middle-end/68743
15505 * match.pd: Require target has function_c99_misc before doing
15506 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
15507
15508 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
15509
15510 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
15511 use GMPINC.
15512 * configure: Regenerate.
15513
15514 2016-01-09 Jakub Jelinek <jakub@redhat.com>
15515
15516 PR middle-end/50865
15517 PR tree-optimization/69097
15518 * fold-const.h (expr_not_equal_to): New prototype.
15519 * fold-const.c: Include stringpool.h and tree-ssanames.h.
15520 (expr_not_equal_to): New function.
15521 * match.pd (X % -Y is the same as X % Y): Don't optimize
15522 unless X is known not to be equal to minimum or Y is known
15523 not to be equal to -1.
15524 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
15525 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
15526 (simplify_stmt_using_ranges): Adjust caller.
15527 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
15528 substitute_and_fold.
15529
15530 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
15531
15532 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
15533 w/o DECL_NAME.
15534
15535 2016-01-08 Jakub Jelinek <jakub@redhat.com>
15536
15537 PR tree-optimization/69167
15538 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
15539 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
15540 ops[0] comparison.
15541 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
15542
15543 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
15544 Richard Biener <rguenther@suse.de>
15545
15546 PR tree-optimization/68707
15547 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
15548 instances that can be handled via vect_load_lanes.
15549
15550 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
15551
15552 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
15553 if we can't determine address equivalence.
15554 * alias.c (compare_base_decl): Update for changed return value of
15555 symtab_node::equal_address_to.
15556
15557 2016-01-08 Jason Merrill <jason@redhat.com>
15558
15559 PR c++/68983
15560 PR c++/67557
15561 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
15562 * expr.c (store_field): Not here.
15563 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
15564 call with TREE_ADDRESSABLE type.
15565 * tree-cfg.c (verify_gimple_call): Adjust.
15566
15567 2016-01-08 Olivier Hainque <hainque@adacore.com>
15568
15569 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
15570 libc_internal.
15571
15572 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
15573
15574 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
15575 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
15576 (reduc_smin_v2sf): Rename to...
15577 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
15578 (reduc_splus_v2sf): Rename to...
15579 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
15580
15581 2016-01-08 Jakub Jelinek <jakub@redhat.com>
15582
15583 PR tree-optimization/69162
15584 * gimplify.c (gimplify_va_arg_expr): Encode original type of
15585 valist argument in another argument.
15586 (gimplify_modify_expr): Adjust for the above change. Cleanup.
15587 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
15588 to determine the va_list type, build a MEM_REF instead of
15589 build_fold_indirect_ref.
15590
15591 PR tree-optimization/69172
15592 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
15593 gimple_build.
15594
15595 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
15596
15597 PR tree-optimization/67781
15598 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
15599 and cmpnop in two steps: first the ones not accessed in original
15600 gimple expression in a endian independent way and then the ones not
15601 accessed in the final result in an endian-specific way.
15602
15603 2016-01-08 Jakub Jelinek <jakub@redhat.com>
15604
15605 PR tree-optimization/69083
15606 * tree-vect-slp.c (vect_get_constant_vectors): For
15607 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
15608 element type. If op is fold_convertible_p to vector_type's element
15609 type, use NOP_EXPR instead of VCE.
15610
15611 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
15612
15613 PR rtl-optimization/67778
15614 PR rtl-optimization/68634
15615 PR rtl-optimization/68909
15616 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
15617 block from the stack until done with it. Remove a superfluous
15618 bitmap set. Remove a superfluous bitmap test.
15619
15620 2016-01-07 Martin Sebor <msebor@redhat.com>
15621
15622 PR c/68966
15623 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
15624 constraint on the type of arguments.
15625
15626 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
15627
15628 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
15629 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
15630 unaligned_access on the gcc_options set.
15631 * config/arm/arm.c (arm_option_override_internal): Use
15632 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
15633
15634 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
15635
15636 PR target/69140
15637 * config/i386/i386.c (ix86_frame_pointer_required): Enable
15638 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
15639
15640 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
15641
15642 Revert
15643 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
15644
15645 PR target/69140
15646 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15647 depending on frame_pointer_needed before remaining integer and SSE
15648 registers are saved.
15649
15650 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
15651
15652 PR 1078
15653 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
15654
15655 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
15656
15657 PR target/69171
15658 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
15659 Use the "xBm" constraint.
15660 (float<sseintvecmodelower><mode>2<mask_name><round_name):
15661 Likewise.
15662 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
15663 (sse_cvtsi2ssq<round_name>): Likewise.
15664 (sse_cvtss2si<round_name>): Likewise.
15665 (sse_cvtss2siq<round_name>): Likewise.
15666 (sse2_cvtsi2sdq<round_name>): Likewise.
15667 (sse2_cvtsd2si<round_name>): Likewise.
15668 (sse2_cvtsd2siq<round_name>): Likewise.
15669 * config/i386/subst.md (round_nimm_scalar_predicate): New
15670 predicate.
15671
15672 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
15673
15674 PR middle-end/67639
15675 * varasm.c (make_decl_rtl): Mark invalid register vars as
15676 DECL_EXTERNAL.
15677
15678 PR rtl-optimization/66206
15679 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
15680 All callers changed.
15681
15682 2016-01-07 Jakub Jelinek <jakub@redhat.com>
15683
15684 PR tree-optimization/69141
15685 * tree-ssa-pre.c: Include langhooks.h.
15686 (eliminate_dom_walker::before_dom_children): Use
15687 lang_hooks.decl_printable_name instead of
15688 cgraph_node::get ()->name ().
15689
15690 PR middle-end/68960
15691 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
15692 it and DECL_ALIGN too.
15693
15694 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
15695
15696 * config/mips/mips-ftypes.def: Sort to lexicographical order.
15697
15698 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
15699
15700 PR target/69140
15701 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
15702 depending on frame_pointer_needed before remaining integer and SSE
15703 registers are saved.
15704
15705 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15706
15707 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
15708 mode iterator with VSX_M2.
15709 (*p9_vecstore_<mode>): Likewise.
15710 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
15711 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
15712 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
15713 (define_split for VSX_LE128 stores): Likewise.
15714 (define_peephole2 for TImode LE swaps): Likewise.
15715 (define_split for VSX_LE128 post-reload stores): Likewise.
15716
15717 2016-01-06 Marek Polacek <polacek@redhat.com>
15718
15719 PR sanitizer/69099
15720 * convert.c (convert_to_integer_1): Adjust call to
15721 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
15722 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
15723 EXPR instead of ARG.
15724 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
15725
15726 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
15727
15728 PR 1078
15729 * doc/extend.texi (RL78 Variable Attributes): New section.
15730
15731 2016-01-05 Marek Polacek <polacek@redhat.com>
15732
15733 PR c/69104
15734 * builtins.c (get_memmodel): Use expansion point location rather than
15735 the input location. Call warning_at rather than warning.
15736 (expand_builtin_atomic_compare_exchange): Likewise.
15737 (expand_builtin_atomic_load): Likewise.
15738 (expand_builtin_atomic_store): Likewise.
15739 (expand_builtin_atomic_clear): Likewise.
15740
15741 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
15742
15743 PR target/68991
15744 * config/i386/i386.c (ix86_expand_vector_logical_operator):
15745 Replace nonimmediate_operand with vector_operand.
15746 * config/i386/predicates.md (vector_operand): New predicate.
15747 (general_vector_operand): Replace nonimmediate_operand with
15748 vector_operand.
15749 * config/i386/sse.md: Replace nonimmediate_operand with
15750 vector_operand and m constraint with Bm constraint on SSE
15751 patterns with 16-byte memory operand.
15752 * config/i386/subst.md (round_nimm_predicate): Replace
15753 nonimmediate_operand with vector_operand.
15754 (round_saeonly_nimm_predicate): Likewise.
15755 (round_saeonly_nimm_scalar_predicate): New.
15756
15757 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
15758
15759 PR target/68991
15760 * config/i386/constraints.md (Bm): New constraint.
15761 * config/i386/predicates.md (vector_memory_operand): New
15762 predicate.
15763 * config/i386/sse.md: Replace xm with xBm in plusminus and
15764 any_logic patterns.
15765
15766 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
15767
15768 PR 1078
15769 * doc/extend.texi (V850 Function Attributes): New section.
15770 (V850 Variable Attributes): New section.
15771
15772 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
15773
15774 PR 1078
15775 * doc/extend.texi (MicroBlaze Function Attributes): Document
15776 interrupt_handler and fast_interrupt attributes.
15777
15778 2016-01-05 Sergei Trofimovich <siarheit@google.com>
15779
15780 PR other/60465
15781 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
15782 for local symbolic operands.
15783 * config/ia64/predicates.md (local_symbolic_operand64): New
15784 predicate.
15785
15786 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15787
15788 PR rtl-optimization/68651
15789 * combine.c (combine_simplify_rtx): Canonicalize x + x into
15790 x << 1.
15791
15792 2016-01-05 Nathan Sidwell <nathan@acm.org>
15793
15794 * alias.c (compare_base_decls): Use symtab_node::get.
15795
15796 2016-01-05 Nick Clifton <nickc@redhat.com>
15797
15798 PR target/68770
15799 * ira-costs.c (copy_cost): Initialise the t_icode field of the
15800 secondary_reload_info structure.
15801
15802 PR target/66655
15803 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
15804 decls if weak support is available.
15805
15806 2016-01-04 Martin Sebor <msebor@redhat.com>
15807
15808 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
15809
15810 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
15811
15812 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
15813 OPTION_MASK_P9_DFORM.
15814
15815 * config/rs6000/constraints.md (wo constraint): New constraint for
15816 ISA 3.0 (power9).
15817
15818 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
15819 for wo constraint.
15820 (rs6000_init_hard_regno_mode_ok): Likewise.
15821
15822 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
15823 wo constraint.
15824
15825 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
15826 expanders not to have constraints. Add support for ISA 3.0 xxperm
15827 instruction. Add support for fusing xxlor with xxperm.
15828 (altivec_vperm_<mode>_internal): Likewise.
15829 (altivec_vperm_v8hiv16qi): Likewise.
15830 (altivec_vperm_<mode>v16q): Likewise.
15831 (altivec_vperm_<mode>_uns): Likewise.
15832 (vperm_v8hiv4si): Likewise.
15833 (vperm_v16qiv8hi): Likewise.
15834
15835 * doc/md.texi (RS/6000 constraints): Document wo constraint.
15836
15837 2016-01-04 Jakub Jelinek <jakub@redhat.com>
15838
15839 Update copyright years.
15840
15841 * gcc.c (process_command): Update copyright notice dates.
15842 * gcov-dump.c (print_version): Ditto.
15843 * gcov.c (print_version): Ditto.
15844 * gcov-tool.c (print_version): Ditto.
15845 * gengtype.c (create_file): Ditto.
15846 * doc/cpp.texi: Bump @copying's copyright year.
15847 * doc/cppinternals.texi: Ditto.
15848 * doc/gcc.texi: Ditto.
15849 * doc/gccint.texi: Ditto.
15850 * doc/gcov.texi: Ditto.
15851 * doc/install.texi: Ditto.
15852 * doc/invoke.texi: Ditto.
15853
15854 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
15855
15856 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
15857 modes larger than TImode as TImode if NEON is not enabled.
15858
15859 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
15860
15861 PR target/69100
15862 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
15863 mode for %f0-%f31 only if TARGET_FPU.
15864
15865 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
15866
15867 PR target/69072
15868 * config/sparc/sparc.c (scan_record_type): Take into account subfields
15869 to compute the PACKED_P predicate.
15870 (function_arg_record_value): Minor tweaks.
15871
15872 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15873
15874 * doc/install.texi (--with-multilib-list): Describe the meaning of the
15875 option for arm*-*-* targets.
15876
15877 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
15878
15879 * doc/extend.texi (Common Function Attributes): Move docs for
15880 MSP430-specific attributes to....
15881 (MSP430 Function Attributes): ...here. Delete the redundant
15882 entries and copy-edit the remaining text.
15883 (MSP430 Variable Attributes): Use uniform format for index
15884 entries and add a cross-reference to the corresponding function
15885 attribute docs.
15886
15887 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
15888
15889 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
15890 -finite-math typo.
15891 (x86 Options): Likewise.
15892
15893 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
15894
15895 PR 1078
15896
15897 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
15898 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
15899 to corresponding attribute.
15900
15901 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
15902
15903 * doc/extend.texi (Common Function Attributes) <noplt>: Move
15904 to correct alphabetization of table. Copy-edit and correct
15905 markup.
15906 <stack_protect>: Likewise.
15907 <target_clones>: Likewise.
15908 <simd>: Likewise.
15909 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
15910 Correct punctuation.
15911 (Code Gen Options) <-fno-plt>: Copy-edit.
15912
15913 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
15914
15915 PR target/68917
15916 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
15917 SI values. Explicitly convert SI to DI and vice-versa.
15918
15919 2016-01-01 Jakub Jelinek <jakub@redhat.com>
15920
15921 PR tree-optimization/69070
15922 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
15923 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
15924
15925 PR sanitizer/69055
15926 * ubsan.c (ubsan_instrument_float_cast): Call
15927 initialize_sanitizer_builtins.
15928
15929 PR target/69015
15930 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
15931 \f
15932 Copyright (C) 2016 Free Software Foundation, Inc.
15933
15934 Copying and distribution of this file, with or without modification,
15935 are permitted in any medium without royalty provided the copyright
15936 notice and this notice are preserved.