omp-low.c (struct omp_context): Remove reduction_map field.
[gcc.git] / gcc / ChangeLog
1 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2
3 * omp-low.c (struct omp_context): Remove reduction_map field.
4 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
5 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6 reduction_map handling.
7 (lower_omp_target): Remove obsolete openacc reduction handling.
8
9 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
10
11 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
12
13 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
14 Cesar Philippidis <cesar@codesourcery.com>
15
16 * config/nvptx/nvptx.c: Include gimple headers.
17 (worker_red_size, worker_red_align, worker_red_name,
18 worker_red_sym): New.
19 (nvptx_option_override): Initialize worker reduction buffer.
20 (nvptx_file_end): Write out worker reduction buffer var.
21 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
22 nvptx_expand_cmp_swap): New builtin expanders.
23 (enum nvptx_builtins): New.
24 (nvptx_builtin_decls): New.
25 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
26 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
27 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
28 nvptx_lockless_update): New helpers.
29 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
30 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
31 (nvptx_goacc_reduction): New.
32 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
33 TARGET_BUILTIN_DECL): Override.
34 (TARGET_GOACC_REDUCTION): Override.
35
36 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
37 Cesar Philippidis <cesar@codesourcery.com>
38
39 * internal-fn.def (GOACC_REDUCTION): New.
40 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
41 * internal-fn.c (expand_GOACC_REDUCTION): New.
42 * target.def (goacc.reduction): New OpenACC hook.
43 * targhooks.h (default_goacc_reduction): Declare.
44 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
45 * doc/tm.texi: Rebuilt.
46 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
47 scan_sharing_clauses): Remove oacc reduction handling here.
48 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
49 (oacc_lower_reduction_var_helper): Delete.
50 (lower_oacc_reductions): New.
51 (lower_reduction_clauses): Don't handle OpenACC reductions here.
52 (lower_oacc_head_tail): Call lower_oacc_reductions.
53 (oacc_gimple_assign, oacc_init_reduction_array,
54 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
55 oacc_process_reduction_data): Delete.
56 (lower_omp_target): Remove old OpenACC reduction handling. Insert
57 dummy OpenACC gang reduction for reductions at outer level.
58 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
59 (default_goacc_reduction): New.
60 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
61
62 2015-11-04 Martin Liska <mliska@suse.cz>
63
64 * cgraphunit.c (cgraph_node::expand_thunk): Call
65 allocate_struct_function before init_function_start.
66 (cgraph_node::expand): Use push_cfun and pop_cfun.
67 * config/i386/i386.c (ix86_code_end): Call
68 allocate_struct_function before init_function_start.
69 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
70 * function.c (init_function_start): Move preamble to all
71 callers.
72 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
73 (execute_one_pass): Handle newly added TODO_discard_function.
74 (execute_pass_list_1): Terminate if cfun equals to NULL.
75 (execute_pass_list): Do not push and pop cfun, expect that
76 cfun is set.
77 * tree-pass.h (TODO_discard_function): Define.
78
79 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
80
81 * cfganal.c (inverted_post_order_compute): Remove conditional
82 compilation, use flag_checking.
83 * config.in: Regenerate.
84 * configure: Regenerate.
85 * configure.ac: Remove ENABLE_CHECKING.
86 * genconditions.c: Do not #undef ENABLE_CHECKING.
87 * sese.h (bb_in_region): Comment out broken check.
88 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
89 conditional compilation, use flag_checking.
90
91 2015-11-04 Tom de Vries <tom@codesourcery.com>
92
93 PR tree-optimization/67742
94 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
95 field.
96 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
97 (create_variable_info_for_1): Add and handle handle_param parameter.
98 Add restrict handling.
99 (create_variable_info_for): Call create_variable_info_for_1 with extra
100 arg.
101 (make_param_constraints): Drop restrict_name parameter. Ignore
102 vi->only_restrict_pointers.
103 (intra_create_variable_infos): Call create_variable_info_for_1 with
104 extra arg. Remove restrict handling. Call make_param_constraints with
105 one fewer arg.
106
107 2015-11-04 Tom de Vries <tom@codesourcery.com>
108
109 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
110 variable.
111
112 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
113
114 * config/arm/coff.h: Remove.
115
116 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
117
118 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
119 check for aggregate types and beef up comment for mode check.
120
121 2015-11-03 Richard Biener <rguenther@suse.de>
122
123 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
124 data references here.
125 * tree-vect-loop.c: Include cgraph.h.
126 (vect_analyze_loop_2): Collect data references here.
127 * tree-vect-slp.c (find_bb_location): Inline ...
128 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
129 Factor in vect_slp_transform_bb.
130 (vect_slp_transform_bb): Removed.
131 (vect_slp_analyze_bb_1): Collect data references here.
132 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
133 vect_slp_bb.
134 * tree-vectorizer.h (vect_slp_bb): Declare.
135 (vect_slp_analyze_bb): Remove.
136 (vect_slp_transform_bb): Remove.
137 (find_bb_location): Remove.
138 (vect_analyze_data_refs): Remove stmt count reference parameter.
139
140 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
141
142 * multiple_target.c (create_dispatcher_calls): Add target check
143 on ifunc.
144 (create_target_clone): Change assembler name for versioned declarations.
145
146 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
147 Chung-Lin Tang <cltang@codesourcery.com>
148
149 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
150 * omp-low.c (check_omp_nesting_restrictions): Allow
151 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
152 contexts.
153
154 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
155
156 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
157 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
158 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
159 builtin.
160 (vmulxq_f32): Likewise.
161 (vmulx_f64): New.
162 (vmulxq_f64): Rewrite to call fmulx builtin.
163 (vmulxs_f32): Likewise.
164 (vmulxd_f64): Likewise.
165 (vmulx_lane_f32): Remove.
166 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
167
168 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
169
170 * config/aarch64/aarch64.md (*movhf_aarch64): Use
171 aarch64_reg_or_fp_zero for second operand.
172
173 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
174
175 * gimple-expr.c: Include hash-set.h and rtl.h.
176 (mark_addressable_queue): New var.
177 (mark_addressable): Factor actual marking into...
178 (mark_addressable_1): ... this. Queue it up during expand.
179 (mark_addressable_2): New.
180 (flush_mark_addressable_queue): New.
181 * gimple-expr.h (flush_mark_addressable_queue): Declare.
182 * cfgexpand.c: Include gimple-expr.h.
183 (pass_expand::execute): Flush mark_addressable queue.
184
185 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
186
187 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
188 bb_no_side_effects_p tests...
189 (tree_ssa_ifcombine_bb): ... here.
190
191 PR tree-optimization/68083
192 * tree-ssa-ifcombine.c: Include tree-ssa.h.
193 (bb_no_side_effects_p): Test for undefined uses too.
194 * tree-ssa.c (gimple_uses_undefined_value_p): New.
195 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
196
197 2015-11-02 Jeff Law <jeff@redhat.com>
198
199 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
200 cases where the loop latch edge is in the middle of an FSM path.
201
202 2015-11-03 Tom de Vries <tom@codesourcery.com>
203
204 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
205 (make_param_constraints): ... this. Add and handle restrict_name
206 parameter. Handle is_full_var case.
207 (intra_create_variable_infos): Use make_param_constraints.
208
209 2015-11-03 Tom de Vries <tom@codesourcery.com>
210
211 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
212 make_copy_constraint call with make_constraint_from call.
213
214 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
215
216 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
217 PIE executables.
218
219 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
220
221 * builtins.h (fold_fma): Move to fold-const-call.h.
222 * builtins.c: Include fold-const-call.h.
223 (mathfn_built_in_2): New function, split out from...
224 (mathfn_built_in_1): ...here.
225 (do_real_to_int_conversion, fold_const_builtin_pow)
226 (fold_const_builtin_logb, fold_const_builtin_significand)
227 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
228 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
229 (fold_builtin_sincos): Use fold_const_call to handle constants.
230 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
231 checks for ERROR_MARK. Use fold_const_call to handle constant
232 folds for math functions.
233 (fold_fma): Move to fold-const-call.c.
234 * fold-const.c: Include fold-const-call.h.
235 * Makefile.in (OBJS): Add fold-const-call.o.
236 (PLUGIN_HEADERS): Add fold-const-call.h.
237 * realmpfr.h (real_from_mpfr): Allow the format to be specified
238 directly.
239 * realmpfr.c (real_from_mpfr): Likewise.
240 * fold-const-call.h, fold-const-call.c: New files.
241
242 2015-11-02 Julian Brown <julian@codesourcery.com>
243
244 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
245 brackets and semicolon.
246
247 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
248
249 Revert:
250 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
251
252 PR tree-optimization/65963
253 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
254 LSHIFT_EXPRs as equivalent MULT_EXPRs.
255
256 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
257
258 PR middle-end/68166
259 * fold-const.c: Include "md5.h".
260
261 2015-11-01 Jeff Law <jeff@redhat.com>
262
263 * vmsdbgout.c: Revert unused header file reduction patch.
264
265 * config/mcore/mcore.c: Include regs.h.
266
267 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
268
269 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
270
271 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
272
273 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
274 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
275 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
276
277 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
278
279 * ggc-common.c: Restore needed header for checking=release.
280
281 2015-10-31 Tom de Vries <tom@codesourcery.com>
282
283 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
284
285 2015-10-31 Tom de Vries <tom@codesourcery.com>
286
287 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
288 existing varinfo for arguments.
289
290 2015-10-31 Tom de Vries <tom@codesourcery.com>
291
292 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
293 create_function_info_for. Dump constraints generated during
294 create_function_info_for. Move intra_create_variable_infos call and
295 function-return-values-escape bit to ...
296 (create_function_info_for): ... here, and merge
297 intra_create_variable_infos call with argument loop. Add and handle
298 nonlocal_p parameter.
299
300 2015-10-31 Tom de Vries <tom@codesourcery.com>
301
302 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
303 updating is alap, and seperated from preceding code. Make sure
304 insert_vi_for_tree is seperated from surrounding code.
305
306 2015-10-31 Tom de Vries <tom@codesourcery.com>
307
308 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
309
310 2015-10-30 Jeff Law <jeff@redhat.com>
311 Nathan Sidwell <nathan@acm.org>
312
313 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
314 args.
315 (MOVE_MAX): Set to 8.
316
317 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
318
319 * cgraph.c: Include context.h for offloading.
320 * varpool.c: Include context.h and omp-low.h.
321
322 2015-10-30 Anatoly Sokolov <aesok@post.ru>
323
324 * rtl.h (contains_symbol_ref_p): Declare.
325 (SYMBOL_REF_P): Define.
326 * rtlanal.c (contains_symbol_ref_p: New function.
327 * lra-constraints.c (contains_symbol_ref_p): Remove.
328 * var-tracking.c (contains_symbol_ref): Remove.
329 (track_expr_p): Use contains_symbol_ref_p instead of
330 contains_symbol_ref.
331
332 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
333
334 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
335 * fold-const.c (get_array_ctor_element_at_index): New.
336 (fold): Remove binary-search through CONSTRUCTOR, call previous.
337
338 * fold-const.h (get_array_ctor_element_at_index): New.
339
340 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
341
342 * Makefile.in (OBJS): Add multiple_target.o.
343 * attrib.c (make_attribute): Moved from config/i386/i386.c
344 * config/i386/i386.c (make_attribute): Deleted.
345 * multiple_target.c (create_dispatcher_calls): New.
346 (get_attr_len): Ditto.
347 (get_attr_str): Ditto.
348 (separate_attrs): Ditto.
349 (is_valid_asm_symbol): Ditto.
350 (create_new_asm_name): Ditto.
351 (create_target_clone): Ditto.
352 (expand_target_clones): Ditto.
353 (ipa_target_clone): Ditto.
354 (ipa_dispatcher_calls): Ditto.
355 * passes.def (pass_target_clone): Two new ipa passes.
356 * tree-pass.h (make_pass_target_clone): Ditto.
357 * doc/extend.texi (target_clones): New attribute description.
358
359 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
360
361 PR rtl-optimization/68106
362 * lra-remat.c (input_regno_present_p): Process hard regs
363 explicitly present in machine description insns.
364 (call_used_input_regno_present_p): Ditto.
365 (calculate_gen_cands): Ditto.
366 (do_remat): Ditto.
367
368 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
369
370 * config/arm/neon-testgen.ml: Fix comment typo.
371
372 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
373
374 * rtlanal.c (reg_set_p): Expand function comment.
375
376 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
377
378 * alias.c: Remove unused headers.
379 * asan.c: Likewise.
380 * attribs.c: Likewise.
381 * auto-inc-dec.c: Likewise.
382 * auto-profile.c: Likewise.
383 * bb-reorder.c: Likewise.
384 * bitmap.c: Likewise.
385 * bt-load.c: Likewise.
386 * builtins.c: Likewise.
387 * caller-save.c: Likewise.
388 * calls.c: Likewise.
389 * ccmp.c: Likewise.
390 * cfg.c: Likewise.
391 * cfganal.c: Likewise.
392 * cfgbuild.c: Likewise.
393 * cfgcleanup.c: Likewise.
394 * cfgexpand.c: Likewise.
395 * cfghooks.c: Likewise.
396 * cfgloop.c: Likewise.
397 * cfgloopanal.c: Likewise.
398 * cfgloopmanip.c: Likewise.
399 * cfgrtl.c: Likewise.
400 * cgraph.c: Likewise.
401 * cgraphbuild.c: Likewise.
402 * cgraphclones.c: Likewise.
403 * cgraphunit.c: Likewise.
404 * cilk-common.c: Likewise.
405 * combine-stack-adj.c: Likewise.
406 * combine.c: Likewise.
407 * compare-elim.c: Likewise.
408 * convert.c: Likewise.
409 * coverage.c: Likewise.
410 * cppbuiltin.c: Likewise.
411 * cprop.c: Likewise.
412 * cse.c: Likewise.
413 * cselib.c: Likewise.
414 * data-streamer-in.c: Likewise.
415 * data-streamer-out.c: Likewise.
416 * data-streamer.c: Likewise.
417 * dbxout.c: Likewise.
418 * dce.c: Likewise.
419 * ddg.c: Likewise.
420 * debug.c: Likewise.
421 * df-core.c: Likewise.
422 * df-problems.c: Likewise.
423 * df-scan.c: Likewise.
424 * dfp.c: Likewise.
425 * dojump.c: Likewise.
426 * dominance.c: Likewise.
427 * domwalk.c: Likewise.
428 * double-int.c: Likewise.
429 * dse.c: Likewise.
430 * dumpfile.c: Likewise.
431 * dwarf2asm.c: Likewise.
432 * dwarf2cfi.c: Likewise.
433 * dwarf2out.c: Likewise.
434 * emit-rtl.c: Likewise.
435 * except.c: Likewise.
436 * explow.c: Likewise.
437 * expmed.c: Likewise.
438 * expr.c: Likewise.
439 * final.c: Likewise.
440 * fixed-value.c: Likewise.
441 * fold-const.c: Likewise.
442 * function.c: Likewise.
443 * fwprop.c: Likewise.
444 * gcse.c: Likewise.
445 * generic-match-head.c: Likewise.
446 * ggc-common.c: Likewise.
447 * gimple-builder.c: Likewise.
448 * gimple-expr.c: Likewise.
449 * gimple-fold.c: Likewise.
450 * gimple-iterator.c: Likewise.
451 * gimple-low.c: Likewise.
452 * gimple-match-head.c: Likewise.
453 * gimple-pretty-print.c: Likewise.
454 * gimple-ssa-isolate-paths.c: Likewise.
455 * gimple-ssa-strength-reduction.c: Likewise.
456 * gimple-streamer-in.c: Likewise.
457 * gimple-streamer-out.c: Likewise.
458 * gimple-walk.c: Likewise.
459 * gimple.c: Likewise.
460 * gimplify-me.c: Likewise.
461 * gimplify.c: Likewise.
462 * godump.c: Likewise.
463 * graph.c: Likewise.
464 * graphds.c: Likewise.
465 * haifa-sched.c: Likewise.
466 * hw-doloop.c: Likewise.
467 * ifcvt.c: Likewise.
468 * init-regs.c: Likewise.
469 * internal-fn.c: Likewise.
470 * ipa-chkp.c: Likewise.
471 * ipa-comdats.c: Likewise.
472 * ipa-cp.c: Likewise.
473 * ipa-devirt.c: Likewise.
474 * ipa-icf-gimple.c: Likewise.
475 * ipa-icf.c: Likewise.
476 * ipa-inline-analysis.c: Likewise.
477 * ipa-inline-transform.c: Likewise.
478 * ipa-inline.c: Likewise.
479 * ipa-polymorphic-call.c: Likewise.
480 * ipa-profile.c: Likewise.
481 * ipa-prop.c: Likewise.
482 * ipa-pure-const.c: Likewise.
483 * ipa-ref.c: Likewise.
484 * ipa-reference.c: Likewise.
485 * ipa-split.c: Likewise.
486 * ipa-utils.c: Likewise.
487 * ipa-visibility.c: Likewise.
488 * ipa.c: Likewise.
489 * ira-build.c: Likewise.
490 * ira-color.c: Likewise.
491 * ira-conflicts.c: Likewise.
492 * ira-costs.c: Likewise.
493 * ira-emit.c: Likewise.
494 * ira-lives.c: Likewise.
495 * ira.c: Likewise.
496 * jump.c: Likewise.
497 * langhooks.c: Likewise.
498 * lcm.c: Likewise.
499 * lists.c: Likewise.
500 * loop-doloop.c: Likewise.
501 * loop-init.c: Likewise.
502 * loop-invariant.c: Likewise.
503 * loop-iv.c: Likewise.
504 * loop-unroll.c: Likewise.
505 * lower-subreg.c: Likewise.
506 * lra-assigns.c: Likewise.
507 * lra-coalesce.c: Likewise.
508 * lra-constraints.c: Likewise.
509 * lra-eliminations.c: Likewise.
510 * lra-lives.c: Likewise.
511 * lra-remat.c: Likewise.
512 * lra-spills.c: Likewise.
513 * lra.c: Likewise.
514 * lto-cgraph.c: Likewise.
515 * lto-compress.c: Likewise.
516 * lto-opts.c: Likewise.
517 * lto-section-in.c: Likewise.
518 * lto-section-out.c: Likewise.
519 * lto-streamer-in.c: Likewise.
520 * lto-streamer-out.c: Likewise.
521 * lto-streamer.c: Likewise.
522 * mcf.c: Likewise.
523 * mode-switching.c: Likewise.
524 * modulo-sched.c: Likewise.
525 * optabs.c: Likewise.
526 * opts-global.c: Likewise.
527 * passes.c: Likewise.
528 * plugin.c: Likewise.
529 * postreload-gcse.c: Likewise.
530 * postreload.c: Likewise.
531 * predict.c: Likewise.
532 * print-tree.c: Likewise.
533 * profile.c: Likewise.
534 * real.c: Likewise.
535 * realmpfr.c: Likewise.
536 * recog.c: Likewise.
537 * ree.c: Likewise.
538 * reg-stack.c: Likewise.
539 * regcprop.c: Likewise.
540 * reginfo.c: Likewise.
541 * regrename.c: Likewise.
542 * regstat.c: Likewise.
543 * reload.c: Likewise.
544 * reload1.c: Likewise.
545 * reorg.c: Likewise.
546 * resource.c: Likewise.
547 * rtl-chkp.c: Likewise.
548 * rtl-error.c: Likewise.
549 * rtlanal.c: Likewise.
550 * rtlhooks.c: Likewise.
551 * sanopt.c: Likewise.
552 * sched-deps.c: Likewise.
553 * sched-ebb.c: Likewise.
554 * sched-rgn.c: Likewise.
555 * sdbout.c: Likewise.
556 * sel-sched-dump.c: Likewise.
557 * sel-sched-ir.c: Likewise.
558 * sel-sched.c: Likewise.
559 * sese.c: Likewise.
560 * shrink-wrap.c: Likewise.
561 * simplify-rtx.c: Likewise.
562 * stack-ptr-mod.c: Likewise.
563 * statistics.c: Likewise.
564 * stmt.c: Likewise.
565 * stor-layout.c: Likewise.
566 * store-motion.c: Likewise.
567 * stringpool.c: Likewise.
568 * symtab.c: Likewise.
569 * target-globals.c: Likewise.
570 * targhooks.c: Likewise.
571 * toplev.c: Likewise.
572 * tracer.c: Likewise.
573 * trans-mem.c: Likewise.
574 * tree-affine.c: Likewise.
575 * tree-call-cdce.c: Likewise.
576 * tree-cfg.c: Likewise.
577 * tree-cfgcleanup.c: Likewise.
578 * tree-chkp-opt.c: Likewise.
579 * tree-chkp.c: Likewise.
580 * tree-chrec.c: Likewise.
581 * tree-complex.c: Likewise.
582 * tree-data-ref.c: Likewise.
583 * tree-dfa.c: Likewise.
584 * tree-diagnostic.c: Likewise.
585 * tree-dump.c: Likewise.
586 * tree-eh.c: Likewise.
587 * tree-emutls.c: Likewise.
588 * tree-if-conv.c: Likewise.
589 * tree-inline.c: Likewise.
590 * tree-into-ssa.c: Likewise.
591 * tree-iterator.c: Likewise.
592 * tree-loop-distribution.c: Likewise.
593 * tree-nested.c: Likewise.
594 * tree-nrv.c: Likewise.
595 * tree-object-size.c: Likewise.
596 * tree-outof-ssa.c: Likewise.
597 * tree-parloops.c: Likewise.
598 * tree-phinodes.c: Likewise.
599 * tree-predcom.c: Likewise.
600 * tree-pretty-print.c: Likewise.
601 * tree-profile.c: Likewise.
602 * tree-scalar-evolution.c: Likewise.
603 * tree-sra.c: Likewise.
604 * tree-ssa-address.c: Likewise.
605 * tree-ssa-alias.c: Likewise.
606 * tree-ssa-ccp.c: Likewise.
607 * tree-ssa-coalesce.c: Likewise.
608 * tree-ssa-copy.c: Likewise.
609 * tree-ssa-dce.c: Likewise.
610 * tree-ssa-dse.c: Likewise.
611 * tree-ssa-forwprop.c: Likewise.
612 * tree-ssa-ifcombine.c: Likewise.
613 * tree-ssa-live.c: Likewise.
614 * tree-ssa-loop-ch.c: Likewise.
615 * tree-ssa-loop-im.c: Likewise.
616 * tree-ssa-loop-ivcanon.c: Likewise.
617 * tree-ssa-loop-ivopts.c: Likewise.
618 * tree-ssa-loop-manip.c: Likewise.
619 * tree-ssa-loop-niter.c: Likewise.
620 * tree-ssa-loop-prefetch.c: Likewise.
621 * tree-ssa-loop-unswitch.c: Likewise.
622 * tree-ssa-loop.c: Likewise.
623 * tree-ssa-math-opts.c: Likewise.
624 * tree-ssa-operands.c: Likewise.
625 * tree-ssa-phiopt.c: Likewise.
626 * tree-ssa-phiprop.c: Likewise.
627 * tree-ssa-pre.c: Likewise.
628 * tree-ssa-propagate.c: Likewise.
629 * tree-ssa-reassoc.c: Likewise.
630 * tree-ssa-scopedtables.c: Likewise.
631 * tree-ssa-sink.c: Likewise.
632 * tree-ssa-strlen.c: Likewise.
633 * tree-ssa-structalias.c: Likewise.
634 * tree-ssa-tail-merge.c: Likewise.
635 * tree-ssa-ter.c: Likewise.
636 * tree-ssa-threadupdate.c: Likewise.
637 * tree-ssa-uncprop.c: Likewise.
638 * tree-ssa-uninit.c: Likewise.
639 * tree-ssa.c: Likewise.
640 * tree-ssanames.c: Likewise.
641 * tree-stdarg.c: Likewise.
642 * tree-streamer-in.c: Likewise.
643 * tree-streamer-out.c: Likewise.
644 * tree-streamer.c: Likewise.
645 * tree-switch-conversion.c: Likewise.
646 * tree-tailcall.c: Likewise.
647 * tree-vect-data-refs.c: Likewise.
648 * tree-vect-generic.c: Likewise.
649 * tree-vect-loop-manip.c: Likewise.
650 * tree-vect-loop.c: Likewise.
651 * tree-vect-patterns.c: Likewise.
652 * tree-vect-slp.c: Likewise.
653 * tree-vect-stmts.c: Likewise.
654 * tree-vectorizer.c: Likewise.
655 * tree-vrp.c: Likewise.
656 * tree.c: Likewise.
657 * tsan.c: Likewise.
658 * ubsan.c: Likewise.
659 * value-prof.c: Likewise.
660 * var-tracking.c: Likewise.
661 * varasm.c: Likewise.
662 * varpool.c: Likewise.
663 * vmsdbgout.c: Likewise.
664 * vtable-verify.c: Likewise.
665 * web.c: Likewise.
666 * wide-int-print.cc: Likewise.
667 * wide-int.cc: Likewise.
668 * xcoffout.c: Likewise.
669
670 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
671
672 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
673 between pass numbering and execution order.
674
675 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
676
677 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
678 check for dependencies.
679
680 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
681
682 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
683 CDI_DOMINATORS.
684
685 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
686
687 * real.h (format_helper): New.
688 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
689 (real_from_target, real_nan, real_2expN, real_value_truncate)
690 (significand_size, real_from_string2, exact_real_inverse)
691 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
692 (real_round, real_isinteger, real_from_integer): Replace
693 machine_mode arguments with format_helper arguments.
694 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
695 (real_from_integer, real_nan, real_2expN, real_convert)
696 (real_value_truncate, exact_real_truncate, real_to_target)
697 (real_from_target, significand_size, real_powi, real_trunc)
698 (real_floor, real_ceil, real_round, real_isinteger): Replace
699 machine_mode arguments with format_helper arguments.
700 (real_to_target_fmt, real_from_target_fmt): Delete.
701 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
702 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
703 argument with real_format.
704 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
705
706 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
707
708 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
709 (fixed_to_decimal, fixed_convert_from_real)
710 (real_convert_from_fixed): Fix mode arguments to real_2expN.
711
712 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
713
714 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
715 SCALAR_FLOAT_MODE_P.
716
717 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
718
719 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
720 (completely_scalarize): Comment zero-length arrays.
721 (get_access_replacement): Correct comment re. precondition.
722
723 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
724
725 * config/i386/i386.c (get_builtin_code_for_version): Set priority
726 for PROCESSOR_ZNVER1.
727 (enum processor_model): Add M_AMDFAM17H_znver1.
728 (struct arch_names_table): Likewise.
729 * doc/extend.texi: ADD znver1.
730
731 2015-10-30 Richard Biener <rguenther@suse.de>
732
733 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
734 fold () on single RHSs. Allow CONSTRUCTORS with trailing
735 zeros to be folded to VECTOR_CSTs.
736 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
737 * fold-const.c (fold): Use build_vector_from_ctor.
738
739 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
740
741 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
742 "mov %0.h[0], %1.h[0] to "neon_move".
743 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
744 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
745 "mov_imm".
746 (*cmovsi_insn_uxtw): Likewise.
747
748 2015-10-30 Tom de Vries <tom@codesourcery.com>
749
750 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
751 unsigned, and initialize, and use initial value instead of hardcoded
752 constant. Add generic constraints dumping section. Don't dump global
753 initializers constraints dumping section if empty. Don't update
754 variable from if unused.
755
756 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
757
758 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
759 flag_checking and/or CHECKING_P to eliminate conditional compilation
760 on ENABLE_CHECKING.
761 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
762 * config/bfin/bfin.c (hwloop_optimize): Likewise.
763 * config/i386/i386.c (ix86_print_operand_address): Likewise.
764 (output_387_binary_op): Likewise.
765 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
766 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
767 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
768 Likewise.
769 * config/rs6000/rs6000.h: Likewise.
770 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
771
772 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
773
774 * config/sh/sh.opt (mfdpic): Add missing period.
775
776 2015-08-29 Anatoly Sokolov <aesok@post.ru>
777
778 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
779 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
780 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
781 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
782 mcore_base_register_rtx_p, mcore_legitimate_index_p,
783 mcore_legitimate_address_p): New functions.
784 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
785
786 2015-10-29 Jeff Law <law@redhat.com>
787
788 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
789 method.
790 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
791 * tree-ssa-threadedge.c
792 (record_temporary_equivalences_from_stmts_at_dest): Remove
793 backedge_seen argument and associated code which invalidated
794 equivalences based on the value of that argument.
795 (thread_through_normal_block): Corresponding changes.
796
797 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
798
799 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
800 function earlier in the file.
801 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
802 df_regs_ever_live_p.
803
804 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
805
806 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
807 by ignoring it.
808
809 2015-10-29 Richard Henderson <rth@redhat.com>
810
811 PR target/68124
812 PR rtl-opt/67609
813 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
814 sse check to the exact conditions of PR 67609.
815
816 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
817
818 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
819 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
820 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
821 of the traditional names that TFmode uses for handling IEEE
822 extended double. If -mfloat128, add KFmode functions for all of
823 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
824 make TFmode use the same emulation functions as KFmode.
825 (init_float128_ibm): Likewise.
826 (init_float128_ieee): Likewise.
827 (rs6000_generate_compare): For IEEE 128-bit floating point
828 comparisons, call the unordered comparison function instead of the
829 ordered comparison function.
830 (rs6000_expand_float128_convert): Deal with operands that are
831 memory operands. Restructure the code to use a switch statement on
832 the mode. Add support for TFmode defaulting to either IBM extended
833 double or IEEE 128-bit floating point. If the underlying types are
834 the same, use a move instead of a conversion function.
835 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
836 use for IEEE 128-bit floating point constants with -mfloat128.
837 (rs6000_c_mode_for_suffix): Likewise.
838 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
839 128-bit floating point with IBM extended double floating point.
840 (rs6000_invalid_binary_op): Likewise.
841 (rs6000_gen_le_vsx_permute): On little endian systems generate a
842 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
843 types that can go in vector registers.
844 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
845 point types that can go in vector registers on little endian
846 PowerPC systems.
847 (mark_swaps_for_removal): Likewise.
848 (rs6000_analyze_swaps): Likewise.
849 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
850
851 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
852 rework IEEE 128-bit floating point insns to deal with TFmode being
853 either IBM extended double or IEEE 128-bit floating point.
854 (IFKF): Likewise.
855 (IBM128): Update iterator to add condition that the mode is IBM
856 extended double.
857 (IEEE128): New iterator for IEEE 128-bit floating point.
858 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
859 (FLOAT128): Likewise.
860 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
861 iterator.
862 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
863 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
864 instead of hard coding TFmode or KFmode.
865 (negtf2_internal): Likewise.
866 (neg<mode>2_internal): Likewise.
867 (abs<mode>2): Likewise.
868 (abstf2_internal): Likewise.
869 (abs<mode>2_internal): Likewise.
870 (ieee_128bit_neg<mode>2): Likewise.
871 (ieee_128bit_neg<mode>2_internal): Likewise.
872 (ieee_128bit_abs<mode>2): Likewise.
873 (ieee_128bit_abs<mode>2_internal): Likewise.
874 (ieee_128bit_nabs<mode>2): Likewise.
875 (ieee_128bit_nabs<mode>2_internal): Likewise.
876 (extendiftf2): Add explicit conversions between 128-bit floating
877 point types. Drop the old conversions that had become unwieldy.
878 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
879 (extendifkf2): Likewise.
880 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
881 (extendtfkf2): Likewise.
882 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
883 (trunciftf2): Likewise.
884 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
885 (truncifkf2): Likewise.
886 (float<SDI:mode><IFKF:mode>2): Likewise.
887 (trunckftf2): Likewise.
888 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
889 (trunctfif2): Likewise.
890 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
891 (extenddftf2): Rework 128-bit floating point conversions to
892 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
893 KFmode expanders into one function.
894 (extenddf<mode>2): Likewise.
895 (extenddftf2_fprs): Likewise.
896 (extenddf<mode>2_fprs): Likewise.
897 (extenddftf2_vsx): Likewise.
898 (extenddf<mode>2_vsx): Likewise.
899 (extendsftf2): Likewise.
900 (extendsf<mode>2): Likewise.
901 (trunctfdf2): Likewise.
902 (trunc<mode>df2): Likewise.
903 (trunctfdf2_internal1): Likewise.
904 (trunc<mode>df2_internal1): Likewise.
905 (trunctfdf2_internal2): Likewise.
906 (trunc<mode>df2_internal2): Likewise.
907 (trunctfsf2): Likewise.
908 (trunc<mode>sf2): Likewise.
909 (trunctfsf2_fprs): Likewise.
910 (trunc<mode>sf2_fprs): Likewise.
911 (floatsit2f): Likewise.
912 (floatsi<mode>2): Likewise.
913 (fix_trunc_helper): Likewise.
914 (fix_trunc_helper<mode>): Likewise.
915 (fix_trunctfsi2): Likewise.
916 (fix_trunc<mode>si2): Likewise.
917 (fix_trunctfsi2_fprs): Likewise.
918 (fix_trunc<mode>si2_fprs): Likewise.
919 (fix_trunctfsi2_internal): Likewise.
920 (fix_trunc<mode>si2_internal): Likewise.
921 (fix_trunctfdi2): Likewise.
922 (fix_trunc<mode>di2): Likewise.
923 (fixuns_trunctf<mode>2): Likewise.
924 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
925 (floatditf2): Likewise.
926 (floatdi<mode>2): Likewise.
927 (floatuns<mode>tf2): Likewise.
928 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
929 (cmptf_internal1): Use a mode iterator to add support for both
930 types (IFmode, TFmode) that support IBM extended double.
931 (cmp<mode>_internal1): Likewise.
932 (cmptf_internal2): Likewise.
933 (cmp<mode>_internal2): Likewise.
934
935 * doc/extend.texi (Floating Types): Document __ibm128 and
936 __float128 on PowerPC.
937
938 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
939 -mfloat128 and -mno-float128.
940
941 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
942
943 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
944 floating point modes that can go in vector registers.
945 (MODES_TIEABLE_P): Move tests for vector modes before tests for
946 scalar floating point, so that IEEE 128-bit floating point that
947 can go in vector registers bind with vectors and not FP.
948 (struct rs6000_args): Add libcall field.
949
950 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
951 and -mfloat128-software switches. Replace them with a binary
952 -mfloat128 switch.
953 (-mfloat128): Likewise.
954
955 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
956 128-bit floating point types in GPRs, even if the appropriate
957 option enabling the type was not used.
958 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
959 debugging.
960 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
961 pre-decrement on IEEE 128-bit floating point values.
962 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
963 is IEEE 128-bit floating point.
964 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
965 128-bit floating point types that can go in vector registers.
966 (rs6000_option_override_internal): Change -mfloat128-none and
967 -mfloat128-software to -mfloat128, and move code to be near other
968 VSX option handling.
969 (rs6000_option_override_internal): Disable -mfloat128 if we don't
970 have the Altivec ABI.
971 (rs6000_init_builtins): Don't make TFmode use either IFmode or
972 KFmode floating point nodes. Instead, have three separate nodes.
973 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
974 eventually moving the long double default to IEEE 128-bit floating
975 point.
976 (rs6000_opt_masks): Add -mfloat128.
977 (struct rs6000_opt_var): Fix typo in comment.
978 (init_cumulative_args): Initialize libcall field in
979 CUMULATIVE_ARGS.
980 (rs6000_function_arg): Treat library functions as if they had
981 prototypes to prevent IEEE 128-bit support functions from passing
982 arguments in both GPRs and vector registers.
983 (rs6000_arg_partial_bytes): Likewise.
984
985 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
986 an option that can be turned on via -mcpu=<xxx>.
987
988 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
989 longer used.
990
991 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
992 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
993 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
994 double is IBM extended double.
995
996 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
997 SUBREGs.
998
999 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
1000
1001 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
1002 * genconditions.c: Define CHECKING_P in the generated code.
1003 * genextract.c: Use flag_checking in insn_extract.
1004 * gengtype.c (main): Remove conditional compilation.
1005 * gengtype.h: Likewise.
1006
1007 2015-10-29 Jeff Law <law@redhat.com>
1008
1009 PR tree-optimization/67892
1010 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
1011 in comment.
1012 (thread_through_normal_block): If we have seen a backedge, then
1013 do nothing. No longer call find_jump_threads_backwards here.
1014 (thread_across_edge): Use find_jump_threads_backwards to find
1015 jump threads if the old style threader was not successful.
1016 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
1017 gsi_last_nondebug_bb. Return NULL if the block does not end
1018 with a control statement.
1019 (find_jump_threads_backwards): Setup code moved here from
1020 tree-ssa-threadedge.c::thread_through_normal_block. Accept
1021 single edge argument instead of name & block.
1022 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
1023 prototype.
1024
1025 2015-10-29 Tom de Vries <tom@codesourcery.com>
1026
1027 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
1028 types.
1029
1030 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1031
1032 * omp-low.c (lower_omp_target): Remove unreachable code & merge
1033 ifs.
1034
1035 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
1036
1037 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
1038
1039 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
1040
1041 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
1042 guard_bb0 and use guard_bb throughout.
1043
1044 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
1045
1046 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
1047 unnecessary label.
1048
1049 2015-10-29 Richard Biener <rguenther@suse.de>
1050
1051 PR middle-end/68142
1052 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
1053 overflow.
1054
1055 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
1056
1057 * alias.c: Reorder #include statements and remove duplicates.
1058 * asan.c: Likewise.
1059 * attribs.c: Likewise.
1060 * auto-inc-dec.c: Likewise.
1061 * auto-profile.c: Likewise.
1062 * bb-reorder.c: Likewise.
1063 * bt-load.c: Likewise.
1064 * builtins.c: Likewise.
1065 * caller-save.c: Likewise.
1066 * calls.c: Likewise.
1067 * ccmp.c: Likewise.
1068 * cfg.c: Likewise.
1069 * cfganal.c: Likewise.
1070 * cfgbuild.c: Likewise.
1071 * cfgcleanup.c: Likewise.
1072 * cfgexpand.c: Likewise.
1073 * cfghooks.c: Likewise.
1074 * cfgloop.c: Likewise.
1075 * cfgloopanal.c: Likewise.
1076 * cfgloopmanip.c: Likewise.
1077 * cfgrtl.c: Likewise.
1078 * cgraph.c: Likewise.
1079 * cgraphbuild.c: Likewise.
1080 * cgraphclones.c: Likewise.
1081 * cgraphunit.c: Likewise.
1082 * cilk-common.c: Likewise.
1083 * combine-stack-adj.c: Likewise.
1084 * combine.c: Likewise.
1085 * compare-elim.c: Likewise.
1086 * convert.c: Likewise.
1087 * coverage.c: Likewise.
1088 * cppbuiltin.c: Likewise.
1089 * cprop.c: Likewise.
1090 * cse.c: Likewise.
1091 * cselib.c: Likewise.
1092 * data-streamer-in.c: Likewise.
1093 * data-streamer-out.c: Likewise.
1094 * data-streamer.c: Likewise.
1095 * dbxout.c: Likewise.
1096 * dce.c: Likewise.
1097 * ddg.c: Likewise.
1098 * debug.c: Likewise.
1099 * df-core.c: Likewise.
1100 * df-problems.c: Likewise.
1101 * df-scan.c: Likewise.
1102 * dfp.c: Likewise.
1103 * dojump.c: Likewise.
1104 * dominance.c: Likewise.
1105 * double-int.c: Likewise.
1106 * dse.c: Likewise.
1107 * dumpfile.c: Likewise.
1108 * dwarf2asm.c: Likewise.
1109 * dwarf2cfi.c: Likewise.
1110 * dwarf2out.c: Likewise.
1111 * emit-rtl.c: Likewise.
1112 * except.c: Likewise.
1113 * explow.c: Likewise.
1114 * expmed.c: Likewise.
1115 * expr.c: Likewise.
1116 * final.c: Likewise.
1117 * fixed-value.c: Likewise.
1118 * fold-const.c: Likewise.
1119 * function.c: Likewise.
1120 * fwprop.c: Likewise.
1121 * gcse.c: Likewise.
1122 * generic-match-head.c: Likewise.
1123 * ggc-common.c: Likewise.
1124 * gimple-builder.c: Likewise.
1125 * gimple-expr.c: Likewise.
1126 * gimple-fold.c: Likewise.
1127 * gimple-iterator.c: Likewise.
1128 * gimple-low.c: Likewise.
1129 * gimple-match-head.c: Likewise.
1130 * gimple-pretty-print.c: Likewise.
1131 * gimple-ssa-isolate-paths.c: Likewise.
1132 * gimple-ssa-strength-reduction.c: Likewise.
1133 * gimple-streamer-in.c: Likewise.
1134 * gimple-streamer-out.c: Likewise.
1135 * gimple-walk.c: Likewise.
1136 * gimple.c: Likewise.
1137 * gimplify-me.c: Likewise.
1138 * gimplify.c: Likewise.
1139 * godump.c: Likewise.
1140 * graph.c: Likewise.
1141 * graphite-poly.c: Likewise.
1142 * haifa-sched.c: Likewise.
1143 * hw-doloop.c: Likewise.
1144 * ifcvt.c: Likewise.
1145 * incpath.c: Likewise.
1146 * init-regs.c: Likewise.
1147 * internal-fn.c: Likewise.
1148 * ipa-chkp.c: Likewise.
1149 * ipa-comdats.c: Likewise.
1150 * ipa-cp.c: Likewise.
1151 * ipa-devirt.c: Likewise.
1152 * ipa-icf-gimple.c: Likewise.
1153 * ipa-icf.c: Likewise.
1154 * ipa-inline-analysis.c: Likewise.
1155 * ipa-inline-transform.c: Likewise.
1156 * ipa-inline.c: Likewise.
1157 * ipa-polymorphic-call.c: Likewise.
1158 * ipa-profile.c: Likewise.
1159 * ipa-prop.c: Likewise.
1160 * ipa-pure-const.c: Likewise.
1161 * ipa-ref.c: Likewise.
1162 * ipa-reference.c: Likewise.
1163 * ipa-split.c: Likewise.
1164 * ipa-utils.c: Likewise.
1165 * ipa-visibility.c: Likewise.
1166 * ipa.c: Likewise.
1167 * ira-build.c: Likewise.
1168 * ira-color.c: Likewise.
1169 * ira-conflicts.c: Likewise.
1170 * ira-costs.c: Likewise.
1171 * ira-emit.c: Likewise.
1172 * ira-lives.c: Likewise.
1173 * ira.c: Likewise.
1174 * jump.c: Likewise.
1175 * langhooks.c: Likewise.
1176 * lcm.c: Likewise.
1177 * lists.c: Likewise.
1178 * loop-doloop.c: Likewise.
1179 * loop-init.c: Likewise.
1180 * loop-invariant.c: Likewise.
1181 * loop-iv.c: Likewise.
1182 * loop-unroll.c: Likewise.
1183 * lower-subreg.c: Likewise.
1184 * lra-assigns.c: Likewise.
1185 * lra-coalesce.c: Likewise.
1186 * lra-constraints.c: Likewise.
1187 * lra-eliminations.c: Likewise.
1188 * lra-lives.c: Likewise.
1189 * lra-remat.c: Likewise.
1190 * lra-spills.c: Likewise.
1191 * lra.c: Likewise.
1192 * lto-cgraph.c: Likewise.
1193 * lto-compress.c: Likewise.
1194 * lto-opts.c: Likewise.
1195 * lto-section-in.c: Likewise.
1196 * lto-section-out.c: Likewise.
1197 * lto-streamer-in.c: Likewise.
1198 * lto-streamer-out.c: Likewise.
1199 * lto-streamer.c: Likewise.
1200 * mode-switching.c: Likewise.
1201 * modulo-sched.c: Likewise.
1202 * omp-low.c: Likewise.
1203 * optabs.c: Likewise.
1204 * opts-global.c: Likewise.
1205 * passes.c: Likewise.
1206 * plugin.c: Likewise.
1207 * postreload-gcse.c: Likewise.
1208 * postreload.c: Likewise.
1209 * predict.c: Likewise.
1210 * print-tree.c: Likewise.
1211 * profile.c: Likewise.
1212 * real.c: Likewise.
1213 * realmpfr.c: Likewise.
1214 * recog.c: Likewise.
1215 * ree.c: Likewise.
1216 * reg-stack.c: Likewise.
1217 * regcprop.c: Likewise.
1218 * reginfo.c: Likewise.
1219 * regrename.c: Likewise.
1220 * regstat.c: Likewise.
1221 * reload.c: Likewise.
1222 * reload1.c: Likewise.
1223 * reorg.c: Likewise.
1224 * resource.c: Likewise.
1225 * rtl-chkp.c: Likewise.
1226 * rtl-error.c: Likewise.
1227 * rtlanal.c: Likewise.
1228 * rtlhooks.c: Likewise.
1229 * sanopt.c: Likewise.
1230 * sched-deps.c: Likewise.
1231 * sched-ebb.c: Likewise.
1232 * sched-rgn.c: Likewise.
1233 * sese.c: Likewise.
1234 * shrink-wrap.c: Likewise.
1235 * simplify-rtx.c: Likewise.
1236 * stack-ptr-mod.c: Likewise.
1237 * statistics.c: Likewise.
1238 * stmt.c: Likewise.
1239 * stor-layout.c: Likewise.
1240 * store-motion.c: Likewise.
1241 * stringpool.c: Likewise.
1242 * symtab.c: Likewise.
1243 * target-globals.c: Likewise.
1244 * targhooks.c: Likewise.
1245 * toplev.c: Likewise.
1246 * tracer.c: Likewise.
1247 * trans-mem.c: Likewise.
1248 * tree-affine.c: Likewise.
1249 * tree-call-cdce.c: Likewise.
1250 * tree-cfg.c: Likewise.
1251 * tree-cfgcleanup.c: Likewise.
1252 * tree-chkp-opt.c: Likewise.
1253 * tree-chkp.c: Likewise.
1254 * tree-chrec.c: Likewise.
1255 * tree-complex.c: Likewise.
1256 * tree-data-ref.c: Likewise.
1257 * tree-dfa.c: Likewise.
1258 * tree-diagnostic.c: Likewise.
1259 * tree-dump.c: Likewise.
1260 * tree-eh.c: Likewise.
1261 * tree-emutls.c: Likewise.
1262 * tree-if-conv.c: Likewise.
1263 * tree-inline.c: Likewise.
1264 * tree-into-ssa.c: Likewise.
1265 * tree-iterator.c: Likewise.
1266 * tree-loop-distribution.c: Likewise.
1267 * tree-nested.c: Likewise.
1268 * tree-nrv.c: Likewise.
1269 * tree-object-size.c: Likewise.
1270 * tree-outof-ssa.c: Likewise.
1271 * tree-parloops.c: Likewise.
1272 * tree-phinodes.c: Likewise.
1273 * tree-predcom.c: Likewise.
1274 * tree-pretty-print.c: Likewise.
1275 * tree-profile.c: Likewise.
1276 * tree-scalar-evolution.c: Likewise.
1277 * tree-sra.c: Likewise.
1278 * tree-ssa-address.c: Likewise.
1279 * tree-ssa-alias.c: Likewise.
1280 * tree-ssa-ccp.c: Likewise.
1281 * tree-ssa-coalesce.c: Likewise.
1282 * tree-ssa-copy.c: Likewise.
1283 * tree-ssa-dce.c: Likewise.
1284 * tree-ssa-dom.c: Likewise.
1285 * tree-ssa-dse.c: Likewise.
1286 * tree-ssa-forwprop.c: Likewise.
1287 * tree-ssa-ifcombine.c: Likewise.
1288 * tree-ssa-live.c: Likewise.
1289 * tree-ssa-loop-ch.c: Likewise.
1290 * tree-ssa-loop-im.c: Likewise.
1291 * tree-ssa-loop-ivcanon.c: Likewise.
1292 * tree-ssa-loop-ivopts.c: Likewise.
1293 * tree-ssa-loop-manip.c: Likewise.
1294 * tree-ssa-loop-niter.c: Likewise.
1295 * tree-ssa-loop-prefetch.c: Likewise.
1296 * tree-ssa-loop-unswitch.c: Likewise.
1297 * tree-ssa-loop.c: Likewise.
1298 * tree-ssa-math-opts.c: Likewise.
1299 * tree-ssa-operands.c: Likewise.
1300 * tree-ssa-phiopt.c: Likewise.
1301 * tree-ssa-phiprop.c: Likewise.
1302 * tree-ssa-pre.c: Likewise.
1303 * tree-ssa-propagate.c: Likewise.
1304 * tree-ssa-reassoc.c: Likewise.
1305 * tree-ssa-sccvn.c: Likewise.
1306 * tree-ssa-scopedtables.c: Likewise.
1307 * tree-ssa-sink.c: Likewise.
1308 * tree-ssa-strlen.c: Likewise.
1309 * tree-ssa-structalias.c: Likewise.
1310 * tree-ssa-tail-merge.c: Likewise.
1311 * tree-ssa-ter.c: Likewise.
1312 * tree-ssa-threadedge.c: Likewise.
1313 * tree-ssa-threadupdate.c: Likewise.
1314 * tree-ssa-uncprop.c: Likewise.
1315 * tree-ssa-uninit.c: Likewise.
1316 * tree-ssa.c: Likewise.
1317 * tree-ssanames.c: Likewise.
1318 * tree-stdarg.c: Likewise.
1319 * tree-streamer-in.c: Likewise.
1320 * tree-streamer-out.c: Likewise.
1321 * tree-streamer.c: Likewise.
1322 * tree-switch-conversion.c: Likewise.
1323 * tree-tailcall.c: Likewise.
1324 * tree-vect-data-refs.c: Likewise.
1325 * tree-vect-generic.c: Likewise.
1326 * tree-vect-loop-manip.c: Likewise.
1327 * tree-vect-loop.c: Likewise.
1328 * tree-vect-patterns.c: Likewise.
1329 * tree-vect-slp.c: Likewise.
1330 * tree-vect-stmts.c: Likewise.
1331 * tree-vectorizer.c: Likewise.
1332 * tree-vrp.c: Likewise.
1333 * tree.c: Likewise.
1334 * tsan.c: Likewise.
1335 * ubsan.c: Likewise.
1336 * value-prof.c: Likewise.
1337 * var-tracking.c: Likewise.
1338 * varasm.c: Likewise.
1339 * varpool.c: Likewise.
1340 * vtable-verify.c: Likewise.
1341 * web.c: Likewise.
1342 * wide-int-print.cc: Likewise.
1343 * wide-int.cc: Likewise.
1344 * xcoffout.c: Likewise.
1345
1346 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
1347
1348 * Makefile.in (NO_PIE_CFLAGS): New.
1349 (NO_PIE_FLAG): Likewise.
1350 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1351 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1352 (BUILD_NO_PIE_CFLAGS): Likewise.
1353 (BUILD_NO_PIE_FLAG): Likewise.
1354 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
1355 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
1356 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
1357 $(BUILD_NO_PIE_CFLAGS).
1358 (BUILD_CXXFLAGS): Likewise.
1359 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
1360 $(BUILD_NO_PIE_FLAG).
1361 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
1362 (BUILD_NO_PIE_FLAG): Likewise.
1363 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1364 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1365 * configure: Regenerated.
1366
1367 2015-10-29 Richard Biener <rguenther@suse.de>
1368
1369 PR middle-end/56956
1370 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1371 unsigned conditonal negation to ABS_EXPR.
1372
1373 2015-10-29 Richard Biener <rguenther@suse.de>
1374
1375 * gimple-match-head.c (gimple_simplify): Remove premature checking
1376 of builtin_decl_implicit of function calls we simplify.
1377
1378 2015-10-29 Bin Cheng <bin.cheng@arm.com>
1379
1380 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1381 (get_computation_cost_at): Ditto.
1382 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1383 and inv_expr_id.
1384
1385 2015-10-28 Tom de Vries <tom@codesourcery.com>
1386
1387 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1388 superfluous code.
1389
1390 2015-10-28 Jason Merrill <jason@redhat.com>
1391
1392 * Makefile.in (TAGS): Include libcpp and libiberty.
1393
1394 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1395
1396 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1397 (extract_omp_for_data): Remove OpenACC special handling of
1398 chunking.
1399
1400 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1401 (struct parallel): Update comment.
1402 (nvptx_reorg): Likewise.
1403 (nvptx_neuter): Cleanup whitespace.
1404
1405 2015-10-28 Richard Henderson <rth@redhat.com>
1406
1407 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1408
1409 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1410
1411 PR target/67839
1412 * config/avr/predicates.md (low_io_address_operand): Don't
1413 consider MODE when computing upper bound.
1414 (io_address_operand): Likewise.
1415
1416 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
1417
1418 * fold-const.c (operand_equal_p): Do not verify that types are
1419 compatible for MEM_REFs.
1420
1421 2015-10-28 Richard Biener <rguenther@suse.de>
1422
1423 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1424 in simplifying VEC_COND_EXPR conditions.
1425
1426 2015-10-28 Tom de Vries <tom@codesourcery.com>
1427
1428 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1429 into vi_next of a full_var.
1430
1431 2015-10-28 Tom de Vries <tom@codesourcery.com>
1432
1433 * tree-ssa-structalias.c (new_var_info, make_heapvar)
1434 (make_constraint_from_restrict, make_constraint_from_global_restrict)
1435 (create_function_info_for, create_variable_info_for_1)
1436 (create_variable_info_for): Add and handle add_id parameter.
1437 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1438 (init_base_vars): Add extra argument to calls to new_var_info.
1439 (get_vi_for_tree): Add extra argument to call to
1440 create_variable_info_for.
1441 (process_constraint, do_deref, process_all_all_constraints): Add extra
1442 argument to calls to new_scalar_tmp_constraint_exp.
1443 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1444 argument to calls to make_heapvar.
1445 (make_restrict_var_constraints): Add extra argument to call to
1446 make_constraint_from_global_restrict.
1447 (intra_create_variable_infos): Add extra argument to call to
1448 create_variable_info_for_1.
1449 (ipa_pta_execute): Add extra argument to call to
1450 create_function_info_for.
1451
1452 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1453
1454 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1455 (sibcall_value): Likewise.
1456
1457 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1458
1459 * config/nvptx/nvptx.h (struct machine_function): Add
1460 axis_predicate.
1461 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1462 nvptx_expand_oacc_join): Declare.
1463 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1464 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1465 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1466 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1467 UNSPECV_JOINING, UNSPECV_JOIN): New.
1468 (BITS, BITD): New mode iterators.
1469 (br_true_uni, br_false_uni): New.
1470 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1471 (oacc_dim_size, oacc_dim_pos): New.
1472 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1473 (oacc_fork, oacc_join): New.
1474 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1475 (worker_load<mode>, worker_store<mode>): New.
1476 (nvptx_barsync): New.
1477 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1478 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1479 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1480 worker_bcast_sym): New.
1481 (nvptx_option_override): Initialize worker broadcast buffer.
1482 (nvptx_emit_forking, nvptx_emit_joining): New.
1483 (nvptx_init_axis_predicate): New.
1484 (nvptx_declare_function_name): Init axis predicates.
1485 (nvptx_expand_call): Add fork/join markers around routine call.
1486 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1487 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1488 (nvptx_gen_vcast): New.
1489 (struct wcast_data_t): New.
1490 (enum propagate_mask): New.
1491 (nvptx_gen_wcast): New.
1492 (nvptx_print_operand): Add 'S' case.
1493 (struct parallel): New.
1494 (parallel::parallel, parallel::~parallel): New.
1495 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1496 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1497 nvptx_find_par, nvptx_discover_pars): New.
1498 (nvptx_propagate): New.
1499 (vprop_gen, nvptx_vpropagate): New.
1500 (wprop_gen, nvptx_wpropagate): New.
1501 (nvptx_wsync): New.
1502 (nvptx_single, nvptx_skip_par): New.
1503 (nvptx_process_pars, nvptx_neuter_pars): New.
1504 (ntptx_reorg): Split blocks, generate parallel structure, apply
1505 neutering.
1506 (nvptx_cannot_copy_insn_p): New.
1507 (nvptx_file_end): Emit worker broadcast decl.
1508 (nvptx_goacc_fork_join): New.
1509 (TARGET_CANNOT_COPY_INSN_P): Override.
1510 (TARGET_GOACC_FORK_JOIN): Override.
1511
1512 2015-10-28 Richard Biener <rguenther@suse.de>
1513
1514 * fold-const.c (negate_expr_p): Adjust the division case to
1515 properly avoid introducing undefined overflow.
1516 (fold_negate_expr): Likewise.
1517
1518 2015-10-28 Richard Biener <rguenther@suse.de>
1519
1520 PR tree-optimization/65962
1521 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1522 Avoid creating loop carried dependences also for outer loops
1523 of the loop a use to replace is in.
1524
1525 2015-10-28 Richard Biener <rguenther@suse.de>
1526
1527 * common.opt (fchecking): New flag controlling flag_checking.
1528 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1529 * timevar.c (timer::print): Adjust output.
1530 * doc/invoke.texi (fchecking): Document.
1531
1532 2015-10-28 Richard Biener <rguenther@suse.de>
1533
1534 PR middle-end/68067
1535 * fold-const.c (negate_expr_p): We cannot negate plus or minus
1536 if overflow is not wrapping. Likewise multiplication unless
1537 one operand is constant and not power of two.
1538 (fold_negate_expr): Adjust accordingly.
1539
1540 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1541
1542 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1543 fields.
1544 (is_oacc_parallel, is_oacc_kernels): New.
1545 (enclosing_target_ctx): May return NULL.
1546 (ctx_in_oacc_kernels_region): New.
1547 (check_oacc_kernel_gwv): New.
1548 (oacc_loop_or_target_p): Delete.
1549 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
1550 operands. Strip reductions fro kernels.
1551 (scan_omp_target): Don't calculate gwv mask.
1552 (lower_oacc_head_mark, lower_oacc_loop_marker,
1553 lower_oacc_head_tail): New.
1554 (struct oacc_collapse): New.
1555 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1556 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1557 Remove OpenACC handling.
1558 (expand_oacc_for): New.
1559 (expand_omp_for): Call expand_oacc_for.
1560 (lower_omp_for): Call lower_oacc_head_tail.
1561
1562 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
1563
1564 * attribs.c (check_attribute_tables): New function, broken out from...
1565 (init_attributes): Use it.
1566 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1567 gcc_checking_assert and checking_* functions to eliminate
1568 ENABLE_CHECKING conditionals.
1569 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1570 (pass_expand::execute): Likewise.
1571 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1572 * cgraphunit.c (mark_functions_to_output): Likewise.
1573 (cgraph_node::expand_thunk): Likewise.
1574 (symbol_table::compile): Likewise.
1575 * ddg.c (add_cross_iteration_register_deps): Likewise.
1576 (create_ddg_all_sccs): Likewise.
1577 * df-core.c (df_finish_pass, df_analyze): Likewise.
1578 * diagnostic-core.h: Likewise.
1579 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1580 * dominance.c (calculate_dominance_info): Likewise.
1581 * dwarf2out.c (add_AT_die_ref): Likewise.
1582 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1583 (loc_list_from_tree, gen_lexical_block_die): Likewise.
1584 gen_type_die_with_usage, gen_type_die): Likewise.
1585 (dwarf2out_decl): Likewise.
1586 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1587 * except.c (duplicate_eh_regions): Likewise.
1588 * fwprop.c (register_active_defs, update_df_init): Likewise.
1589 (fwprop_init, fwprop_done): Likewise.
1590 (update_uses): Likewise.
1591 * ggc-page.c (ggc_grow): Likewise.
1592 * gimplify.c (gimplify_body): Likewise.
1593 (gimplify_hasher::equal): Likewise.
1594 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1595 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1596 Likewise.
1597 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1598 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1599 * hash-table.h (::find_empty_slot_for_expand): Likewise.
1600 * ifcvt.c (if_convert): Likewise.
1601 * ipa-cp.c (ipcp_propagate_stage): Likewise.
1602 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1603 (odr_type_p, odr_types_equivalent_p): Likewise.
1604 (add_type_duplicate, get_odr_type): Likewise.
1605 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1606 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1607 (sem_item_optimizer::verify_classes): Likewise.
1608 (sem_item_optimizer::traverse_congruence_split): Likewise.
1609 (sem_item_optimizer::checking_verify_classes): New.
1610 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1611 method.
1612 * cfgrtl.c (commit_edge_insertions): Likewise.
1613 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1614 (rtl_flow_call_edges_add): Likewise.
1615 * cgraph.c (symbol_table::create_edge): Likewise.
1616 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1617 * cgraph.h (symtab_node): Likewise.
1618 (symtab_node::checking_verify_symtab_nodes): Define.
1619 (cgraph_node::checking_verify_cgraph_nodes): Define.
1620 * cfghooks.h (checking_verify_flow_info): Define.
1621 * cfgloop.h (checking_verify_loop_structure): Define.
1622 * dominance.h (checking_verify_dominators): Define.
1623 * et-forest.c: Fix comment.
1624 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1625 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1626 ENABLE_CHECKING conditionals.
1627 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1628 * ipa-inline.c (inline_small_functions): Likewise.
1629 (early_inliner): Likewise.
1630 * ipa-inline.h (estimate_edge_growth): Likewise.
1631 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1632 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1633 (ipa_single_use): Likewise.
1634 * ira-int.h: Likewise.
1635 * ira.c (ira): Likewise.
1636 * loop-doloop.c (doloop_optimize_loops): Likewise.
1637 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1638 * loop-invariant.c (move_loop_invariants): Likewise.
1639 * lra-assigns.c (lra_assign): Likewise.
1640 * lra-constraints.c (lra_constraints): Likewise.
1641 * lra-eliminations.c (lra_eliminate): Likewise.
1642 * lra-int.h (struct lra_reg): Likewise.
1643 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1644 (lra_create_live_ranges_1): Likewise.
1645 * lra-remat.c (create_remat_bb_data): Likewise.
1646 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1647 (lra): Likewise.
1648 (check_rtl): Always define. Remove incorrect guard around
1649 extract_constrain_insn call.
1650 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1651 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1652 ENABLE_CHECKING conditionals.
1653 * lto-streamer-out.c (DFS::DFS): Likewise.
1654 (lto_output): Likewise.
1655 * lto-streamer.c (lto_streamer_init): Likewise.
1656 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1657 expand_omp_target, execute_expand_omp): Likewise.
1658 (lower_omp_target): Likewise.
1659 * passes.c (execute_function_todo): Likewise.
1660 (execute_todo, execute_one_pass): Likewise.
1661 (verify_curr_properties): Always define.
1662 * predict.c (tree_estimate_probability: Use flag_checking,
1663 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1664 ENABLE_CHECKING conditionals.
1665 (propagate_freq): Likewise.
1666 * pretty-print.c (pp_format): Likewise.
1667 * real.c (real_to_decimal_for_mode): Likewise.
1668 * recog.c (split_all_insns): Likewise.
1669 * regcprop.c (kill_value_one_regno): Likewise.
1670 (copy_value): Likewise.
1671 (validate_value_data): Define unconditionally.
1672 * reload.c: Fix comment.
1673 * timevar.c: Include options.h
1674 * tree-ssa.h (checking_verify_ssa): Define.
1675 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1676 * sched-deps.c (CHECK): Remove unused macro.
1677 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1678 gcc_checking_assert and checking_* functions to eliminate
1679 ENABLE_CHECKING conditionals.
1680 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1681 * sel-sched.c (struct moveop_static_params): Likewise.
1682 (find_best_reg_for_expr, move_cond_jump): Likewise.
1683 (move_op_orig_expr_not_found): Likewise.
1684 (code_motion_process_successors, move_op): Likewise.
1685 * ssa-iterators.h (first_readonly_imm_use): Likewise.
1686 (next_readonly_imm_use): Likewise.
1687 * store-motion.c (compute_store_table): Likewise.
1688 * symbol-summary.h (function_summary::function_summary): Likewise.
1689 * target.h (cumulative_args_t): Likewise.
1690 (get_cumulative_args, pack_cumulative_args): Likewise.
1691 * timevar.c: (timer::print): Likewise.
1692 * trans-mem.c (ipa_tm_execute): Likewise.
1693 * tree-cfg.c (move_stmt_op): Likewise.
1694 (move_sese_region_to_fn): Likewise.
1695 (gimple_flow_call_edges_add): Likewise.
1696 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1697 Likewise.
1698 * tree-eh.c (remove_unreachable_handlers): Likewise.
1699 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1700 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1701 * tree-into-ssa.c (update_ssa): Likewise.
1702 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1703 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1704 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1705 * tree-predcom.c (suitable_component_p): Likewise.
1706 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1707 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1708 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1709 * tree-ssa-live.h (register_ssa_partition): Likewise.
1710 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1711 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1712 (tree_transform_and_unroll_loop): Likewise.
1713 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1714 * tree-ssa-operands.c (get_expr_operands): Likewise.
1715 * tree-ssa-propagate.c (replace_exp_1): Likewise.
1716 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1717 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1718 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1719 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1720 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1721 * tree-vect-loop-manip.c
1722 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1723 (slpeel_checking_verify_cfg_after_peeling): Likewise.
1724 (vect_do_peeling_for_loop_bound): Likewise.
1725 (vect_do_peeling_for_alignment): Likewise.
1726 * tree-vrp.c (supports_overflow_infinity): Likewise.
1727 (set_value_range): Likewise.
1728 * tree.c (free_lang_data_in_cgraph): Likewise.
1729 * value-prof.c (gimple_remove_histogram_value): Likewise.
1730 (free_hist): Likewise.
1731 * var-tracking.c (canonicalize_values_star): Likewise.
1732 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1733
1734 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1735
1736 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1737 IFN_GOACC_LOOP): New.
1738 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1739 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1740 IFN_UNIQUE_OACC_TAIL_MARK.
1741 (enum ifn_goacc_loop_kind): New.
1742 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1743 IFN_UNIQUE_OACC_JOIN cases.
1744 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1745 (expand_GOACC_LOOP): New.
1746 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1747 * omp-low.c: Include gimple-pretty-print.h.
1748 (struct oacc_loop): New.
1749 (enum oacc_loop_flags): New.
1750 (oacc_thread_numbers): New.
1751 (oacc_xform_loop): New.
1752 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1753 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1754 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1755 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1756 oacc_loop_discovery): New.
1757 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1758 oacc_loop_process): New.
1759 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1760 (execute_oacc_device_lower): Discover & process loops. Process
1761 internal fns.
1762 * target.def (goacc.fork_join): Change sense of hook, clarify
1763 documentation.
1764 * doc/tm.texi: Regenerated.
1765
1766 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1767
1768 * target-insns.def (oacc_fork, oacc_join): Define.
1769 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1770 (goacc.fork_join): New GOACC hook.
1771 * targhooks.h (default_goacc_fork_join): Declare.
1772 * omp-low.c (default_goacc_forkjoin): New.
1773 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1774 * doc/tm.texi: Regenerate.
1775
1776 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1777
1778 * omp-low.c (oacc_init_rediction_array): New.
1779 (oacc_initialize_reduction_data): Initialize array.
1780
1781 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1782
1783 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1784
1785 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1786
1787 * internal-fn.c (expand_UNIQUE): New.
1788 * internal-fn.h (enum ifn_unique_kind): New.
1789 * internal-fn.def (IFN_UNIQUE): New.
1790 * target-insns.def (unique): Define.
1791 * gimple.h (gimple_call_internal_unique_p): New.
1792 * gimple.c (gimple_call_same_target_p): Check internal fn
1793 uniqueness.
1794 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1795 * tree-ssa-threadedge.c
1796 (record_temporary_equivalences_from_stmts): Likewise.
1797 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1798
1799 2015-10-27 Richard Henderson <rth@redhat.com>
1800
1801 PR rtl-opt/67609
1802 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1803 narrowing subregs on SSE and MMX registers.
1804 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1805 appear to be sub-words of multi-register pseudos must be rejected.
1806 * doc/tm.texi: Regenerate.
1807
1808 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1809
1810 PR target/68102
1811 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1812 operands[0] is a reg before taking its REGNO in split condition.
1813 (*movdi_aarch64): Likewise.
1814
1815 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1816
1817 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1818 Handle floating point inner modes properly.
1819
1820 2015-10-27 Alan Hayward <alan.hayward@arm.com>
1821
1822 * tree-vect-looop.c
1823 (vectorizable_live_operation): Change iterator.
1824
1825 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1826 Aditya Kumar <aditya.k7@samsung.com>
1827
1828 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1829 function to schedule based on isl_schedule_node.
1830 (get_schedule_map_st): New schedule optimizer based on
1831 isl_schedule_node.
1832 (scop_get_domains): New. Return the isl_union_set containing the
1833 domains of all the pbbs.
1834 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1835
1836 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
1837
1838 PR target/67215
1839 * calls.c (prepare_call_address): Don't handle -fno-plt here.
1840 * config/i386/i386.c (ix86_expand_call): Generate indirect call
1841 via GOT for -fno-plt. Support indirect call via GOT for x32.
1842 * config/i386/predicates.md (sibcall_memory_operand): Allow
1843 GOT memory operand.
1844
1845 2015-10-27 Richard Biener <rguenther@suse.de>
1846
1847 PR tree-optimization/68104
1848 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1849 strided access check ...
1850 (vect_compute_data_refs_alignment): ... here.
1851
1852 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
1853 Joseph Myers <joseph@codesourcery.com>
1854 Mark Shinwell <shinwell@codesourcery.com>
1855 Andrew Stubbs <ams@codesourcery.com>
1856 Rich Felker <dalias@libc.org>
1857
1858 * config.gcc: Handle --enable-fdpic.
1859 * config/sh/constraints.md (Ccl): New constraint.
1860 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1861 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1862 __SH_FDPIC__.
1863 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1864 library functions.
1865 * config/sh/sh-protos.h (function_symbol_result): New struct.
1866 (function_symbol): Return function_symbol_result.
1867 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1868 declarations.
1869 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1870 target hook.
1871 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1872 (sh_option_override): Force -fPIC if FDPIC is in effect.
1873 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1874 UNSPEC_GOTOFFFUNCDESC cases.
1875 (prepare_move_operands): Use FDPIC initial GOT register for
1876 TLS-related GOT access; inhibit cross-section address offset constants
1877 for FDPIC.
1878 (sh_assemble_integer): New function.
1879 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1880 PC-relative call sites.
1881 (expand_ashiftrt): Adapt invocation of function_symbol.
1882 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1883 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1884 UNSPEC_GOTOFFFUNCDESC.
1885 (legitimize_pic_address): Resolve function symbols to function
1886 descriptors for FDPIC. Do not use GOT-relative addressing for local
1887 data that may be read-only on FDPIC.
1888 (sh_emit_storesi, sh_emit_storehi): New functions.
1889 (sh_trampoline_init): Generate FDPIC trampolines.
1890 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1891 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1892 (sh_output_mi_thunk): Generate FDPIC call.
1893 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
1894 FDPIC, generate call site labels to use PC-relative addressing rather
1895 than GOT-relative addressing.
1896 (sh_conditional_register_usage): Make PIC register fixed and call used
1897 when FDPIC is in effect.
1898 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1899 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1900 sh_get_fdpic_reg_initial_val): New functions.
1901 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1902 Handle -mfdpic.
1903 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1904 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1905 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1906 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1907 FDPIC_SELF_SPECS.
1908 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1909 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1910 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1911 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1912 constants.
1913 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1914 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1915 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1916 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1917 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1918 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1919 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1920 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1921 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1922 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1923 block_move_real, block_lump_real, block_move_real_i4,
1924 block_lump_real_i4): Add support for FDPIC calls.
1925 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1926 call_value_pop): Adjust for new function_symbol signature.
1927 * config/sh/sh.opt (-mfdpic): New option.
1928 * doc/install.texi (Options specification): Document --enable-fdpic.
1929 * doc/invoke.texi (SH Options): Document -mfdpic.
1930
1931
1932 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1933
1934 PR tree-optimization/65963
1935 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1936 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1937
1938 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1939
1940 PR target/67929
1941 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1942 * config/arm/constraints.md (Dp): Update callsite.
1943 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1944
1945 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1946
1947 * builtins.c (fold_builtin_load_exponent): Rename to...
1948 (fold_const_builtin_load_exponent): ...this and only handle
1949 constant arguments.
1950 (fold_builtin_2): Update accordingly.
1951 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1952
1953 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1954
1955 * builtins.c (fold_builtin_logb): Rename to...
1956 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1957 (fold_builtin_significand): Rename to...
1958 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1959 (fold_builtin_1): Update accordingly.
1960
1961 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1962
1963 * builtins.c (fold_builtin_fmin_fmax): Delete.
1964 (fold_builtin_2): Handle constant fmin and fmax arguments here.
1965 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1966
1967 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
1968
1969 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1970 for register extension into sign and zero register extension.
1971 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
1972 for sign and zero register extension.
1973 (cortexa57_addrcost_table): Likewise.
1974 (xgene1_addrcost_table): Likewise.
1975
1976 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1977
1978 * fold-const.c (fold_minmax): Delete.
1979 (fold_binary_loc): Don't call it.
1980 * match.pd: Add rules previously handled by fold_minmax.
1981
1982 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1983
1984 * builtins.c (fold_builtin_fma): Remove constant handling.
1985 (fold_builtin_3): Handle constant fma arguments here.
1986
1987 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1988
1989 * builtins.c (fold_builtin_fabs): Remove constant handling.
1990 (fold_builtin_abs): Likewise.
1991
1992 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1993
1994 * builtins.c (fold_builtin_copysign): Delete.
1995 (fold_builtin_2): Handle constant copysign arguments here.
1996 * match.pd: Add rules previously handled by fold_builtin_copysign.
1997
1998 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1999
2000 * builtins.c (fold_builtin_signbit): Delete.
2001 (fold_builtin_2): Handle constant signbit arguments here.
2002 * match.pd: Add rules previously handled by fold_builtin_signbit.
2003
2004 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2005
2006 * match.pd: Handle sqrt(x) cmp 0 specially.
2007
2008 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
2009
2010 * tree-vect-generic.c (expand_vector_operations_1): Check
2011 optab type before using it.
2012
2013 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2014
2015 * config/aarch64/aarch64-protos.h
2016 (struct tune_params): Add autoprefetcher_model field.
2017 * config/aarch64/aarch64.c: Include params.h
2018 (generic_tunings): Specify autoprefetcher_model value.
2019 (cortexa53_tunings): Likewise.
2020 (cortexa57_tunings): Likewise.
2021 (cortexa72_tunings): Likewise.
2022 (thunderx_tunings): Likewise.
2023 (xgene1_tunings): Likewise.
2024 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
2025 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
2026 (aarch64_override_options_internal): Set
2027 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
2028
2029 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * builtins.c (fold_builtin_exponent): Delete.
2032 (fold_builtin_2): Handle constant expN arguments here.
2033 * match.pd: Fold expN(logN(x)) -> x.
2034
2035 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2036
2037 * builtins.c (fold_builtin_powi): Delete.
2038 (fold_builtin_2): Handle constant powi arguments here.
2039 * match.pd: Add rules previously handled by fold_builtin_powi.
2040
2041 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2042
2043 * builtins.c (fold_builtin_pow): Delete in favor of...
2044 (fold_const_builtin_pow): ...this new function. Only handle constant
2045 arguments.
2046 (fold_builtin_2): Update accordingly.
2047 * match.pd: Add rules previously handled by fold_builtin_pow.
2048
2049 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2050
2051 * builtins.c (fold_builtin_hypot): Delete.
2052 (fold_builtin_2): Handle constant hypot arguments here.
2053 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
2054 hypot(x, x) to fabs(x)*sqrt(2).
2055
2056 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2057
2058 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
2059 instead of make_ssa_name if not yet in SSA form.
2060
2061 2015-10-27 Richard Biener <rguenther@suse.de>
2062
2063 * cfg.c (free_edge): Add function argument and use it instead of cfun.
2064 (clear_edges): Likewise.
2065 * cfg.h (clear_edges): Adjust prototype.
2066 * cfgexpand.c (pass_expand::execute): Adjust.
2067 * cfgloop.c (release_recorded_exits): Add function argument and use
2068 it instead of cfun.
2069 * cfgloop.h (release_recorded_exits): Adjust prototype.
2070 (loops_state_satisfies_p): Add overload with function argument.
2071 (loops_state_set): Likewise.
2072 (loops_state_clear): Likewise.
2073 (struct loop_iterator): Add function argument to constructor
2074 and iterator and use it instead of cfun.
2075 (FOR_EACH_LOOP_FN): New macro.
2076 (loop_optimizer_finalize): Add overload with function argument.
2077 * loop-init.c (loop_optimizer_init): Adjust.
2078 (fix_loop_structure): Likewise.
2079 (loop_optimizer_finaliz): Add function argument and use it
2080 instead of cfun.
2081 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2082 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
2083 * cgraph.c (release_function_body): Do not push/pop cfun.
2084 * final.c (rest_of_clean_state): Adjust.
2085 * graphite.c (graphite_finalize): Likewise.
2086 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2087 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2088 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2089 (tree_unroll_loops_completely): Likewise.
2090 (pass_complete_unrolli::execute): Likewise.
2091 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
2092 Add function argument and use it instead of cfun.
2093 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
2094 Adjust prototype.
2095 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
2096 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
2097 instead of cfun.
2098 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
2099 * tree-ssanames.c (fini_ssanames): Add function argument and use it
2100 instead of cfun.
2101 * tree-ssanames.c (fini_ssanames): Adjust prototype.
2102 * tree-vrp.c (execute_vrp): Adjust.
2103 * value-prof.c (free_histograms): Add function argument and use it
2104 instead of cfun.
2105 * value-prof.h (free_histograms): Adjust prototype.
2106
2107 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2108
2109 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
2110 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
2111 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
2112
2113 2015-10-27 Tom de Vries <tom@codesourcery.com>
2114
2115 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
2116 field_type.
2117
2118 2015-10-27 Bin Cheng <bin.cheng@arm.com>
2119
2120 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
2121 (inv_can_prop_to_addr_use): New function.
2122 (record_use): Call can_prop_to_addr_uses, set the new field.
2123 (get_inv_cost): Count cost if inv can't be propagated into its
2124 address uses.
2125
2126 2015-10-26 Doug Evans <dje@google.com>
2127
2128 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
2129
2130 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
2131
2132 * match.pd (fold_widened_comparison): Apply simplifications to all
2133 integral types.
2134
2135 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
2136
2137 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
2138 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
2139 * doc/tm.texi: Regenerated.
2140 * reorg.c (dbr_schedule): Use new hook.
2141 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
2142
2143 2015-10-26 Jeff Law <law@redhat.com>
2144
2145 PR tree-optimization/68013
2146 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2147 Make sure the first block in the path is in VISITED_BBs.
2148
2149 2015-10-26 Richard Biener <rguenther@suse.de>
2150 Dominik Vogt <vogt@linux.vnet.ibm.com>
2151
2152 PR middle-end/67443
2153 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
2154 Properly prune ref->ref for accesses outside of ref.
2155
2156 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2157
2158 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
2159 new statements to be inserted if inplace. Allow calls to have
2160 nonempty sequences.
2161
2162 2015-10-26 Richard Biener <rguenther@suse.de>
2163
2164 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
2165 (do_valueize): New function.
2166 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
2167 replace_uses_by.
2168 * tree-ssa-threadedge.c: Remove builtins.h include, include
2169 gimple-fold.h
2170 (fold_assignment_stmt): Remove.
2171 (threadedge_valueize): New function.
2172 (record_temporary_equivalences_from_stmts): Use
2173 gimple_fold_stmt_to_constant_1, note additional cleanup
2174 opportunities.
2175
2176 2015-10-26 Richard Biener <rguenther@suse.de>
2177
2178 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
2179 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
2180
2181 2015-10-26 Alan Hayward <alan.hayward@arm.com>
2182
2183 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2184 VEC_COND_EXPR types.
2185
2186 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2187
2188 * auto-inc-dec.c (insert_move_insn_before): Delete.
2189 (attempt_change): Remember to cost the simple move in the
2190 FORM_PRE_ADD and FORM_POST_ADD cases.
2191
2192 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
2193
2194 PR target/68091
2195 * config/sh/sh.c (sh_vector_mode_supported_p): Use
2196 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
2197
2198 2015-10-26 Tom de Vries <tom@codesourcery.com>
2199
2200 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2201 factored out of ...
2202 (intra_create_variable_infos): ... here.
2203
2204 2015-10-26 Tom de Vries <tom@codesourcery.com>
2205
2206 * tree-ssa-structalias.c (intra_create_variable_infos): Add
2207 restrict_pointer_p and recursive_restrict_p variables.
2208
2209 2015-10-26 Tom de Vries <tom@codesourcery.com>
2210
2211 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2212 get_vi_for_tree call.
2213
2214 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2215
2216 PR middle-end/67989
2217 * optabs.c (expand_atomic_compare_and_swap): Handle case when
2218 ptarget_oval or ptarget_bool are const0_rtx.
2219
2220 2015-10-26 Christian Bruel <christian.bruel@st.com>
2221
2222 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2223 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2224 * cp/method.c (implicitly_declare_fn): Likewise.
2225 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2226 * java/class.c (add_method_1): Likewise.
2227
2228 2015-10-26 Richard Biener <rguenther@suse.de>
2229
2230 * alloc-pool.h (base_pool_allocator): Use placement new.
2231 (base_pool_allocator::remove): Likewise. Compute size outside of
2232 flag_checking.
2233
2234 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2235
2236 * builtins.c (do_real_to_int_conversion): New function.
2237 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2238 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2239 arguments here.
2240 * match.pd: Add rules previously handled by fold_fixed_mathfn
2241 and fold_builtin_int_roundingfn.
2242
2243 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2244
2245 * match.pd: Use macros to define built-in operator lists.
2246
2247 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
2248 Richard Biener <rguenther@suse.de>
2249
2250 * genmatch.c (dt_simplify::gen): Skip captures that are
2251 part of the result.
2252 (parser::parse_expr): Allow captures in results too.
2253 * builtins.c (fold_builtin_cexp): Delete.
2254 (fold_builtin_1): Handle constant cexp arguments here.
2255 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2256
2257 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
2258
2259 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2260 conditional compilation.
2261 (base_pool_allocator::remove): Use flag_checking.
2262
2263 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
2264
2265 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2266
2267 PR middle-end/68079
2268 * dojump.c (do_compare_and_jump): Canonicalize both function and
2269 method types.
2270
2271 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
2272
2273 PR target/68084
2274 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2275 for =@ccae.
2276
2277 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2278
2279 PR ipa/pr67600
2280 * ipa-polymorphic-call.c
2281 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2282 instance offset with offset of outer type.
2283
2284 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2285
2286 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2287
2288 2015-10-23 Caroline Tice <cmtice@google.com>
2289
2290 (from Richard Biener
2291 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
2292 call to iterative_hash_host_wide_int.
2293
2294 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2295
2296 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2297 Define as yes.
2298
2299 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2300
2301 * tree-vect-generic.c (expand_vector_operations_1): Check
2302 optab exists before use it.
2303
2304 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2305
2306 * tree-vect-generic.c (expand_vector_condition): Avoid
2307 uninitialized variable warning.
2308
2309 2015-10-23 Jeff Law <law@redhat.com>
2310
2311 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2312 here. Instead...
2313 (execute_todo): Call it here.
2314 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2315 statistics
2316 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2317
2318 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2319 Szabolcs Nagy <szabolcs.nagy@arm.com>
2320
2321 * config.gcc (enable_secureplt): Add *-linux*-musl*.
2322
2323 2015-10-23 Jeff Law <law@redhat.com>
2324
2325 PR tree-optimization/67830
2326 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2327 Explicitly verify the mask has no bits outside the type of
2328 the innermost operands.
2329
2330 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2331 Szabolcs Nagy <szabolcs.nagy@arm.com>
2332
2333 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2334 (MUSL_DYNAMIC_LINKER64): Define.
2335 (GNU_USER_DYNAMIC_LINKER32): Update.
2336 (GNU_USER_DYNAMIC_LINKER64): Update.
2337 (CHOOSE_DYNAMIC_LINKER): Update.
2338
2339 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
2340 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
2341 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2342 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2343 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2344 (CHOOSE_DYNAMIC_LINKER): Update.
2345 (INCLUDE_DEFAULTS): Redefine.
2346
2347 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
2348
2349 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2350
2351 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
2352 comparing addresses.
2353
2354 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2355
2356 * fold-const.c (operand_equal_p): Handle matching of vector
2357 constructors.
2358
2359 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2360
2361 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
2362
2363 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
2364 Andrew Pinski <apinski@cavium.com>
2365
2366 PR rtl-optimization/67736
2367 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2368 of gen_lowpart.
2369
2370 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2371
2372 PR middle-end/68066
2373 * tree.c (build_truth_vector_type): Support BLK mode
2374 returned for boolean vector.
2375
2376 2015-10-23 Alan Hayward <alan.hayward@arm.com>
2377
2378 PR tree-optimization/65947
2379 * tree-vect-loop.c
2380 (vect_is_simple_reduction_1): Find condition reductions.
2381 (vect_model_reduction_cost): Add condition reduction costs.
2382 (get_initial_def_for_reduction): Add condition reduction initial var.
2383 (vect_create_epilog_for_reduction): Add condition reduction epilog.
2384 (vectorizable_reduction): Condition reduction support.
2385 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2386 * doc/sourcebuild.texi (Vector-specific attributes): Document
2387 vect_max_reduc
2388
2389 2015-10-23 Richard Biener <rguenther@suse.de>
2390
2391 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2392 and builtins.def.
2393
2394 2015-10-23 Richard Biener <rguenther@suse.de>
2395 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2396
2397 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2398 into (A ^ B) - B to match.pd
2399 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2400
2401 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2402 New simplifier.
2403 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2404 New simplifier.
2405 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2406 New simplifier.
2407 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2408 New simplifier.
2409 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2410 INTEGER_CST@1)): New simplifier.
2411
2412 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
2413
2414 * builtins.c (integer_valued_real_p): Move to fold-const.c.
2415 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2416 (fold_builtin_ceil, fold_builtin_round): Delete.
2417 (fold_builtin_1): Handle constant trunc, floor, ceil and round
2418 arguments here.
2419 * convert.c (convert_to_real): Remove narrowing of rounding
2420 functions.
2421 * fold-const.h (integer_valued_real_unary_p)
2422 (integer_valued_real_binary_p, integer_valued_real_call_p)
2423 (integer_valued_real_single_p, integer_valued_real_p): Declare.
2424 * fold-const.c (tree_single_nonnegative_warnv_p): Move
2425 name_registered_for_update_p check to SSA_NAME case statement.
2426 Don't call tree_simple_nonnegative_warnv_p for SSA names.
2427 (integer_valued_real_unary_p, integer_valued_real_binary_p)
2428 (integer_valued_real_call_p, integer_valued_real_single_p)
2429 (integer_valued_real_invalid_p): New functions.
2430 (integer_valued_real_p): Move from fold-const.c and rework
2431 to call the functions above. Handle SSA names.
2432 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2433 * gimple-fold.c (gimple_assign_integer_valued_real_p)
2434 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2435 (gimple_stmt_integer_valued_real_p): New functions.
2436 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2437 Fold f(x)->x for the same f if x is known to be integer-valued.
2438 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2439 the result. Canonicalize floor(x) as trunc(x) if x is
2440 nonnegative.
2441
2442 2015-10-23 Tom de Vries <tom@codesourcery.com>
2443
2444 * tree-ssa-structalias.c (intra_create_variable_infos): Use
2445 make_constraint_from.
2446
2447 2015-10-23 Tom de Vries <tom@codesourcery.com>
2448
2449 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2450 setting of is_full_var in case of a single field.
2451
2452 2015-10-22 Martin Sebor <msebor@redhat.com>
2453
2454 PR driver/68043
2455 * config/i386/i386.opt: Add missing periods to the ends of sentences.
2456 * config/msp430/msp430.opt: Same.
2457
2458 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2459
2460 * doc/extend.exp (Global Register Variables): Rewrite.
2461
2462 2015-10-22 Jeff Law <law@redhat.com>
2463
2464 * genattrtab.c (main): If we do not have any annul-true or annul-false
2465 slots, then write out a dummy eligible_for_annul_true or
2466 eligible_for_annul_false as needed.
2467
2468 2015-10-22 Nick Clifton <nickc@redhat.com>
2469
2470 * config/msp430/msp430.opt: Add -msilicon-errata and
2471 -msilicon-errata-warn.
2472 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2473 assembler.
2474 * doc/invoke.texi: Document new options.
2475
2476 2015-10-22 Richard Biener <rguenther@suse.de>
2477
2478 PR tree-optimization/58497
2479 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2480 (expand_vector_operations_1): Use it. Lower operations on
2481 all uniform vectors to scalar operations if the HW supports it.
2482
2483 2015-10-22 Richard Biener <rguenther@suse.de>
2484
2485 PR tree-optimization/19049
2486 PR tree-optimization/65962
2487 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2488 to strided accesses if single-element interleaving doesn't work.
2489
2490 2015-10-22 Richard Biener <rguenther@suse.de>
2491
2492 PR middle-end/68046
2493 PR middle-end/61893
2494 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2495 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2496 (expand_unop): Likewise.
2497
2498 2015-10-22 Richard Biener <rguenther@suse.de>
2499
2500 * fold-const.c (fold_addr_of_array_ref_difference): Properly
2501 convert operands before folding a MINUS_EXPR.
2502 (fold_binary_loc): Move simplification of MINUS_EXPR on
2503 converted POINTER_PLUS_EXPRs ...
2504 * match.pd: ... here.
2505
2506 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2507
2508 * builtins.c (fold_builtin_tan): Delete.
2509 (fold_builtin_1): Handle constant tan arguments here.
2510 * match.pd: Simplify (tan (atan x)) to x.
2511
2512 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2513
2514 * builtins.c (fold_builtin_cproj): Delete.
2515 (fold_builtin_1): Handle constant arguments here.
2516 (build_complex_cproj): Move and rename to...
2517 * tree.c: (build_complex_inf): ...this.
2518 * tree.h (build_complex_inf): Declare.
2519 * match.pd: Fold cproj(x)->x if x has no infinity.
2520 Use build_complex_inf for existing cproj rules.
2521
2522 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2523
2524 PR target/68015
2525 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2526 already have a comparison result.
2527
2528 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2529
2530 PR target/63304
2531 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2532 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2533 (aarch64_classify_address): Likewise.
2534 (aarch64_secondary_reload): Likewise.
2535 (aarch64_override_options_after_change_1): Adjust.
2536 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2537 Use aarch64_nopcrelative_literal_loads.
2538 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2539 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2540 Declare.
2541
2542 2015-10-21 Martin Sebor <msebor@redhat.com>
2543
2544 PR driver/68043
2545 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2546 (print_filtered_help): Reference aliased option's name and encourage
2547 readers to use it in preference to the alias if the former is not
2548 documented. Mention when using an option is diagnosed.
2549 * gcc.c (display_help): End each sentence with a period.
2550
2551 * common.opt: End each sentence that describes an option with
2552 a period.
2553 * config/aarch64/aarch64.opt: Same.
2554 * config/alpha/alpha.opt: Same.
2555 * config/arc/arc.opt: Same.
2556 * config/arm/arm.opt: Same.
2557 * config/avr/avr.opt: Same.
2558 * config/bfin/bfin.opt: Same.
2559 * config/c6x/c6x.opt: Same.
2560 * config/cr16/cr16.opt: Same.
2561 * config/cris/cris.opt: Same.
2562 * config/cris/linux.opt: Same.
2563 * config/darwin.opt: Same.
2564 * config/epiphany/epiphany.opt: Same.
2565 * config/fr30/fr30.opt: Same.
2566 * config/frv/frv.opt: Same.
2567 * config/ft32/ft32.opt: Same.
2568 * config/g.opt: Same.
2569 * config/h8300/h8300.opt: Same.
2570 * config/i386/cygming.opt: Same.
2571 * config/i386/djgpp.opt: Same.
2572 * config/i386/i386.opt: Same.
2573 * config/i386/interix.opt: Same.
2574 * config/i386/mingw-w64.opt: Same.
2575 * config/i386/mingw.opt: Same.
2576 * config/ia64/ia64.opt: Same.
2577 * config/ia64/ilp32.opt: Same.
2578 * config/iq2000/iq2000.opt: Same.
2579 * config/linux.opt: Same.
2580 * config/lm32/lm32.opt: Same.
2581 * config/lynx.opt: Same.
2582 * config/m32c/m32c.opt: Same.
2583 * config/m32r/m32r.opt: Same.
2584 * config/m68k/ieee.opt: Same.
2585 * config/m68k/m68k.opt: Same.
2586 * config/mcore/mcore.opt: Same.
2587 * config/mep/mep.opt: Same.
2588 * config/microblaze/microblaze.opt: Same.
2589 * config/mips/mips.opt: Same.
2590 * config/mmix/mmix.opt: Same.
2591 * config/mn10300/mn10300.opt: Same.
2592 * config/moxie/moxie.opt: Same.
2593 * config/msp430/msp430.opt: Same.
2594 * config/nios2/elf.opt: Same.
2595 * config/nios2/nios2.opt: Same.
2596 * config/nvptx/nvptx.opt: Same.
2597 * config/pa/pa-hpux.opt: Same.
2598 * config/pa/pa-hpux1010.opt: Same.
2599 * config/pa/pa-hpux1111.opt: Same.
2600 * config/pa/pa-hpux1131.opt: Same.
2601 * config/pa/pa.opt: Same.
2602 * config/pa/pa64-hpux.opt: Same.
2603 * config/pdp11/pdp11.opt: Same.
2604 * config/rl78/rl78.opt: Same.
2605 * config/rs6000/476.opt: Same.
2606 * config/rs6000/aix64.opt: Same.
2607 * config/rs6000/darwin.opt: Same.
2608 * config/rs6000/linux64.opt: Same.
2609 * config/rs6000/rs6000.opt: Same.
2610 * config/rs6000/sysv4.opt: Same.
2611 * config/s390/s390.opt: Same.
2612 * config/s390/tpf.opt: Same.
2613 * config/sh/sh.opt: Same.
2614 * config/sol2.opt: Same.
2615 * config/sparc/long-double-switch.opt: Same.
2616 * config/sparc/sparc.opt: Same.
2617 * config/spu/spu.opt: Same.
2618 * config/stormy16/stormy16.opt: Same.
2619 * config/tilegx/tilegx.opt: Same.
2620 * config/tilepro/tilepro.opt: Same.
2621 * config/v850/v850.opt: Same.
2622 * config/vax/vax.opt: Same.
2623 * config/visium/visium.opt: Same.
2624 * config/vms/vms.opt: Same.
2625 * config/vxworks.opt: Same.
2626 * config/xtensa/xtensa.opt: Same.
2627
2628 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2629 Sebastian Pop <s.pop@samsung.com>
2630
2631 * graphite-scop-detection.c (parameter_index_in_region): Update call to
2632 invariant_in_sese_p_rec.
2633 * graphite-sese-to-poly.c (extract_affine): Same.
2634 * sese.c (invariant_in_sese_p_rec): Pass in an extra
2635 parameter has_vdefs.
2636 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2637 variable depends on virtual definitions in the current region.
2638 * sese.h (invariant_in_sese_p_rec): Update declaration.
2639
2640 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2641 Sebastian Pop <s.pop@samsung.com>
2642
2643 * graphite-scop-detection.c (build_scops): Do not handle scops
2644 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2645 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2646
2647 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
2648
2649 * config.in: Regenerate.
2650 * configure: Regenerate.
2651 * configure.ac (CHECKING_P): Define.
2652 * system.h: Use CHECKING_P.
2653
2654 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2655
2656 PR ipa/67056
2657 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2658 is negative we don't know the type.
2659 (check_stmt_for_type_change): Skip constructors of non-polymorphic
2660 types as those won't help devirutalization.
2661
2662 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2663
2664 * fold-const.c (operand_equal_p): Add code matching empty constructors.
2665
2666 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
2667
2668 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2669 comments.
2670 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2671 Add comments on sign of the result.
2672 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2673 Recurse on operand #1 instead of operand #0.
2674 <CEIL_MOD_EXPR>: Do not recurse.
2675 <ROUND_MOD_EXPR>: Likewise.
2676
2677 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2678
2679 * cfgrtl.c (pass_free_cfg::execute): Adjust.
2680 * final.c (dbr_sequence_length): Always define.
2681 (shorten_branches): Adjust.
2682 * genattr-common.c (main): Always define DELAY_SLOTS.
2683 * genattr.c (main): Unconditionally declare functions and define
2684 macros related to delay slots.
2685 * genattrtab.c (write_eligible_delay): Adjust.
2686 (main): Always write out delay slot functions.
2687 * opts.c (default_options_table): Adjust.
2688 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2689 (redirect_with_delay_list_safe_p): Likewise.
2690 (fill_simple_delay_slots): Likewise.
2691 (fill_slots_from_thread): Likewise.
2692 (make_return_insns): Likewise.
2693 (dbr_schedule): Likewise.
2694 (rest_of_handle_delay_slots): Likewise.
2695 (pass_delay_slots::gate): Likewise.
2696 * toplev.c (process_options): Likewise.
2697
2698 2015-10-21 Richard Henderson <rth@redhat.com>
2699
2700 * targhooks.c (default_addr_space_pointer_mode): Remove check
2701 for generic address space.
2702 (default_addr_space_address_mode): Likewise.
2703 (default_addr_space_valid_pointer_mode): Likewise.
2704 (default_addr_space_legitimate_address_p): Likewise.
2705 (default_addr_space_legitimize_address): Likewise.
2706 * target.def (addr_space.pointer_mode): Update documentation
2707 of default behavior.
2708 (addr_space.address_mode): Likewise.
2709 * tm.texi: Update.
2710
2711 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2712 address spaces.
2713
2714 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2715
2716 * builtins.c (fold_builtin_cabs): Delete.
2717 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2718 * match.pd: Add rules previously handled by fold_builtin_cabs.
2719
2720 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2721
2722 * fold-const.h (fold_strip_sign_ops): Delete.
2723 * fold-const.c (fold_strip_sign_ops): Likewise.
2724 (fold_unary_loc, fold_binary_loc): Remove calls to it.
2725 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2726 (fold_builtin_ccos): Delete.
2727 (fold_builtin_pow): Don't call fold_strip_sign_ops.
2728 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2729 Remove fndecl argument.
2730 (fold_builtin_1): Update calls accordingly. Handle constant
2731 cos, cosh, ccos and ccosh here.
2732
2733 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2734
2735 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2736 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2737 * common.opt (fssa-backprop): New option.
2738 * fold-const.h (negate_mathfn_p): Declare.
2739 * fold-const.c (negate_mathfn_p): Make public.
2740 * timevar.def (TV_TREE_BACKPROP): New.
2741 * tree-pass.h (make_pass_backprop): Declare.
2742 * passes.def (pass_backprop): Add.
2743 * gimple-ssa-backprop.c: New file.
2744
2745 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2746 Sebastian Pop <s.pop@samsung.com>
2747
2748 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2749 Do not call create_empty_if_region_on_edge when cond_expr is true.
2750 (translate_isl_ast_node_for): Check whether a guard has been generated.
2751
2752 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2753
2754 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2755 (operator=): Removed.
2756 (dr_info): Make alias_set number the last argument with default
2757 value of invalid_alias_set.
2758 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2759 of dr_info.
2760 (rewrite_reductions_out_of_ssa): Iterate only through the
2761 basic blocks which are inside region.
2762 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2763 * sese.h (struct sese_l): Removed assignment operator.
2764 (split_region_for_bb): Removed dead code.
2765
2766 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2767
2768 * graphite-poly.h (struct dr_info): Removed conversion constructor.
2769 (struct scop): Renamed scop::region to scop::scop_info
2770 (scop_set_region): Same.
2771 (SCOP_REGION): Removed
2772 (SCOP_CONTEXT): Removed.
2773 (POLY_SCOP_P): Removed.
2774 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2775 Rename scop->region to scop->scop_info.
2776 (add_parameters_to_ivs_params): Same.
2777 (graphite_regenerate_ast_isl): Same.
2778 * graphite-poly.c (new_scop): Same.
2779 (free_scop): Same.
2780 (print_scop_params): Same.
2781 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2782 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2783 (dot_all_scops_1): Rename scop->region to scop->scop_info.
2784 (scop_detection::nb_pbbs_in_loops): Same.
2785 (find_scop_parameters): Same.
2786 (try_generate_gimple_bb): Same.
2787 (gather_bbs::before_dom_children): Same.
2788 (gather_bbs::after_dom_children): Same.
2789 (build_scops): Same.
2790 * graphite-sese-to-poly.c (build_scop_scattering): Same.
2791 (extract_affine_chrec): Same.
2792 (extract_affine): Same.
2793 (set_scop_parameter_dim): Same.
2794 (build_loop_iteration_domains): Same.
2795 (create_pw_aff_from_tree): Same.
2796 (add_param_constraints): Same.
2797 (build_scop_iteration_domain): Same.
2798 (build_scop_drs): Same.
2799 (analyze_drs_in_stmts): Same.
2800 (insert_out_of_ssa_copy_on_edge): Same.
2801 (rewrite_close_phi_out_of_ssa):Same.
2802 (rewrite_reductions_out_of_ssa):Same.
2803 (handle_scalar_deps_crossing_scop_limits):Same.
2804 (rewrite_cross_bb_scalar_deps):Same.
2805 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2806 (build_poly_scop):Same.
2807 (build_alias_set): Use pointer to dr_info.
2808 * graphite.c (print_graphite_scop_statistics):
2809 (graphite_transform_loops):
2810 * sese.h (struct sese_l): Remove conversion constructor.
2811
2812 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2813
2814 PR middle-end/67966
2815 * tree.c (verify_type): Verify that TYPE_MODE match
2816 between TYPE_CANONICAL and type.
2817 * expr.c (store_expr_with_bounds): Revert my previous change.
2818 * expmed.c (store_bit_field_1): Revert prevoius change.
2819 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2820 to match for all types.
2821
2822 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
2823
2824 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2825 nesting.
2826
2827 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2828
2829 * doc/tm.texi: Regenerated.
2830 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2831 * stor-layout.c (layout_type): Use mode to get vector mask size.
2832 * target.def (get_mask_mode): New.
2833 * targhooks.c (default_get_mask_mode): New.
2834 * targhooks.h (default_get_mask_mode): New.
2835 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
2836 for boolean vector.
2837 * tree.c (MAX_BOOL_CACHED_PREC): New.
2838 (nonstandard_boolean_type_cache): New.
2839 (build_nonstandard_boolean_type): New.
2840 (make_vector_type): Vector mask has no canonical type.
2841 (build_truth_vector_type): New.
2842 (build_same_sized_truth_vector_type): New.
2843 (truth_type_for): Support vector masks.
2844 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2845 (build_truth_vector_type): New.
2846 (build_same_sized_truth_vector_type): New.
2847 (build_nonstandard_boolean_type): New.
2848 * tree-cfg.c (verify_gimple_comparison) Require boolean
2849 vector type for vector comparison.
2850 (verify_gimple_assign_ternary): Likewise.
2851 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2852 condition operand.
2853 * tree-vect-stmts.c (vectorizable_condition): Use boolean
2854 vector type for vector comparison.
2855 * tree-vect-generic.c (elem_op_func): Add new operand to hold
2856 vector type.
2857 (do_unop): Adjust to modified function type.
2858 (do_binop): Likewise.
2859 (do_plus_minus): Likewise.
2860 (do_negate); Likewise.
2861 (expand_vector_piecewise): Likewise.
2862 (do_cond): Likewise.
2863 (do_compare): Use comparison instead of condition.
2864 (expand_vector_divmod): Use boolean vector type for comparison.
2865 (expand_vector_operations_1): Skip scalar mask operations.
2866
2867 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2868
2869 * omp-low.c (simd_clone_create): Set in_other_partition
2870 for created clones.
2871
2872 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2873
2874 * doc/extend.exp (Local Register Variables): Rewrite.
2875
2876 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2877
2878 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2879 and x*x in cases where the operands are sign ops. Extend these
2880 rules to handle copysign as a sign op (including for cos, cosh
2881 and pow, which already treated negate and abs as sign ops).
2882
2883 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
2884
2885 PR target/68018
2886 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2887 for 64-bit MS_ABI targets also when default incoming stack boundary
2888 is overriden.
2889
2890 2015-10-21 Richard Biener <rguenther@suse.de>
2891
2892 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2893 cond stmts, enhanced and split out from ...
2894 (vn_phi_eq): ... here.
2895
2896 2015-10-21 Richard Biener <rguenther@suse.de>
2897
2898 PR middle-end/68031
2899 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2900 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2901 (tree_single_nonnegative_warnv_p): ... here. For SSA names
2902 make sure they are not registered for update.
2903
2904 2015-10-21 Richard Biener <rguenther@suse.de>
2905
2906 PR tree-optimization/68026
2907 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2908 unsigned VARYING values.
2909
2910 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2911
2912 * asan.c (asan_emit_stack_protection): Don't pass local stack to
2913 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2914 NULL and use local stack than.
2915 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2916 in addition to __asan_init.
2917 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2918 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2919 * asan.h (asan_intercepted_p): Handle new string builtins.
2920 * ubsan.c (ubsan_use_new_style_p): New function.
2921 (ubsan_instrument_float_cast): If location is unknown, assign
2922 input_location to loc. Propagate loc to ubsan_create_data if
2923 ubsan_use_new_style_p returned true.
2924
2925 2015-10-21 Jeff Law <law@redhat.com>
2926
2927 * Makefile.in (OBJS): Remove sched-vis.c
2928 * sched-vis.c: Removed. Code moved into...
2929 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
2930 * rtl.h: Remove prototypes for functions now living in print-rtl.c
2931 * print-rtl.h Add prototypes for new functions in print-rtl.c.
2932 * auto-inc-dec.c: Include print-rtl.h
2933 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2934 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2935
2936 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2937 ATTRIBUTE_UNUSED.
2938
2939 2015-10-21 Richard Biener <rguenther@suse.de>
2940 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2941
2942 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2943 to match.pd.
2944 Move (a * (1 << b)) is (a << b) to match.pd.
2945 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2946 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2947 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2948
2949 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2950 New simplifier.
2951 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2952 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2953 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2954 : New simplifier.
2955 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2956 New simplifier.
2957 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2958
2959 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
2960 Szabolcs Nagy <szabolcs.nagy@arm.com>
2961 Alan Modra <amodra@gmail.com>
2962
2963 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2964 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2965 (LINK_SPEC): Add %(link_secure_plt).
2966 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2967 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2968
2969 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
2970 Szabolcs Nagy <szabolcs.nagy@arm.com>
2971
2972 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
2973 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
2974
2975 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2976
2977 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
2978 New function.
2979 (fusion_load_store): Use it.
2980 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
2981 ldp and stp in VD modes.
2982 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
2983 (store_pair<mode>, VD): Likewise.
2984
2985 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
2986
2987 PR rtl-optimization/67609
2988 * lra-splill.c (lra_final_code_change): Don't remove all
2989 sub-registers.
2990
2991 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2992
2993 * simplify-rtx.c (simplify_binary_operation): If either operand was
2994 a constant pool reference use them if all other simplifications failed.
2995
2996 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2997
2998 * config/aarch64/aarch64.md
2999 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
3000 * config/aarch64/aarch64-simd.md
3001 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
3002 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
3003 (aarch64_fpconst_pow_of_2): New function.
3004 (aarch64_vec_fpconst_pow_of_2): Likewise.
3005 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
3006 prototype.
3007 (aarch64_vec_fpconst_pow_of_2): Likewise.
3008 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
3009 (aarch64_fp_vec_pow2): Likewise.
3010
3011 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
3012
3013 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
3014 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
3015 * config/alpha/alpha.c (alpha_function_arg_advance): Update
3016 ALPHA_ARG_SIZE usage.
3017 (alpha_arg_partial_bytes): Ditto.
3018
3019 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3020
3021 PR target/66810
3022 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
3023 error_mark_node decls.
3024
3025 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3026
3027 PR target/67963
3028 PR target/67985
3029 * common/config/i386/i386-common.c (ix86_handle_option): Remove
3030 OPT_miamcu handling.
3031 * config/i386/i386.c (PTA_NO_80387): New macro.
3032 (processor_alias_table): Add PTA_NO_80387 to lakemont.
3033 (ix86_option_override_internal): Update MASK_80387 from
3034 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
3035 SSE math only if 80387 is supported. Don't change
3036 MASK_FLOAT_RETURNS.
3037 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
3038 80387 is supported.
3039 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
3040 if TARGET_80387 is true and TARGET_IAMCU is false.
3041 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
3042 is true and TARGET_IAMCU_P is false.
3043
3044 2015-10-20 Richard Biener <rguenther@suse.de>
3045
3046 PR tree-optimization/68017
3047 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
3048
3049 2015-10-20 Martin Liska <mliska@suse.cz>
3050
3051 * cgraphclones.c (cgraph_node::create_virtual_clone):
3052 Verify cgraph_node.local.versionable instead of calling
3053 tree_versionable_function_p.
3054 * ipa-cp.c (determine_versionability): Save the information
3055 to ipa_node_params summary.
3056 (ipcp_versionable_function_p): Use it.
3057 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
3058 (ipcp_generate_summary): Do not compute cgraph_node
3059 versionability.
3060 * ipa-inline-analysis.c (inline_generate_summary): Compute
3061 versionability for all cgraph nodes.
3062 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
3063 ipa_node_params::versionability.
3064 * ipa-prop.h (struct ipa_node_params): Declare it.
3065
3066 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3067
3068 PR other/67868
3069 * varasm.c (assemble_variable): Move special vtv handling to..
3070 (handle_vtv_comdat_sections): .. here. New function.
3071 (output_object_block): Handle vtv sections.
3072
3073 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
3074
3075 PR target/66912
3076 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
3077
3078 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
3079
3080 * doc/extend.texi: Update documentation WRT inline functions.
3081
3082 2015-10-20 Alan Modra <amodra@gmail.com>
3083
3084 PR go/66870
3085 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
3086 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3087 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3088
3089 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
3090
3091 PR rtl-optimization/66790
3092 * df.h (DF_MIR): New macro.
3093 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
3094 (DF_MIR_INFO_BB): New macro.
3095 (DF_MIR_IN, DF_MIR_OUT): New macros.
3096 (struct df_mir_bb_info): New.
3097 (df_mir): New macro.
3098 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
3099 declarations.
3100 (df_mir_get_bb_info): New.
3101 * df-problems.c (struct df_mir_problem_data): New.
3102 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
3103 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
3104 df_mir_confluence_0, df_mir_confluence_n,
3105 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
3106 df_mir_bottom_dump, df_mir_verify_solution_start,
3107 df_mir_verify_solution_end): New.
3108 (problem_MIR): New.
3109 (df_mir_add_problem, df_mir_simulate_one_insn): New.
3110 * timevar.def (TV_DF_MIR): New.
3111 * ree.c: Include bitmap.h
3112 (add_removable_extension): Add an INIT_REGS parameter. Use it
3113 to skip zero-extensions that may get an uninitialized register.
3114 (find_removable_extensions): Compute must-initialized registers
3115 using the MIR dataflow problem. Update the call to
3116 add_removable_extension.
3117 (find_and_remove_re): Call df_mir_add_problem.
3118
3119 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
3120
3121 * common/config/mn10300/mn10300-common.c
3122 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
3123 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
3124
3125 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
3126
3127 * doc/extend.texi (Explicit Register Variables): Simplify and
3128 avoid unnecessary and confusion abbreviations. Update cross
3129 references.
3130 doc/implement-c.tex: Update cross reference.
3131
3132 2015-10-19 Jeff Law <law@redhat.com>
3133
3134 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
3135 that create irreducible loops unless the path elimiantes a multiway
3136 branch.
3137
3138 2015-10-19 Richard Biener <rguenther@suse.de>
3139
3140 PR tree-optimization/67975
3141 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
3142 * tree-cfg.c (extract_true_false_controlled_edges): Split out
3143 core worker from ...
3144 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
3145 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
3146 instead of block number for PHIs with two or one args.
3147 (vn_phi_eq): Compare edge predicates of PHIs that are in different
3148 blocks.
3149
3150 2015-10-19 Richard Biener <rguenther@suse.de>
3151
3152 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
3153 (gimple_stmt_nonnegative_warnv_p): Use it.
3154 * match.pd (CPROJ): New operator list.
3155 (cproj (complex ...)): Move simplifications from ...
3156 * builtins.c (fold_builtin_cproj): ... here.
3157
3158 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3159
3160 * config/i386/i386.c (ix86_expand_vector_move): Use
3161 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
3162 alignment.
3163
3164 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3165
3166 * doc/invoke.texi: Replace @optindex with @opindex.
3167
3168 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3169
3170 PR target/67995
3171 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
3172 arch= is set, clear all bits in x_ix86_isa_flags, except for
3173 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
3174
3175 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
3176
3177 PR middle-end/68002
3178 * common.opt (fkeep-static-functions): New option.
3179 * doc/invoke.texi: Document it.
3180 * cgraphunit.c (cgraph_node::finalize_function): Use it.
3181
3182 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3183
3184 * sched-int.h (struct autopref_multipass_data_): Remove offset
3185 field. Add min_offset, max_offset, multi_mem_insn_p fields.
3186 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
3187 (autopref_multipass_init): Use it. Handle PARALLEL sets.
3188 (autopref_rank_data): New function.
3189 (autopref_rank_for_schedule): Use it.
3190 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
3191
3192 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
3193
3194 PR other/65800
3195 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
3196
3197 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3198
3199 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
3200 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
3201 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3202 (STANDARD_STARTFILE_PREFIX_1): New.
3203 (STANDARD_STARTFILE_PREFIX_2): New.
3204
3205 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3206
3207 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3208 (darwin_driver_init): Note a version-min when provided on the c/l.
3209 * config/darwin.h (%darwin_minversion): Remove.
3210 * config/i386/darwin.h: Likewise.
3211 * config/rs6000/darwin.h: Likewise.
3212 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3213 rather than an arbitrary constant.
3214
3215 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3216
3217 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3218 PPC, detect conflicts between -arch and multilib settings. Detect
3219 and warn about conflicts between multiple -arch definitions.
3220
3221 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3222
3223 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3224
3225 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3226
3227 * lra-constraints.c (add_next_usage_insn): Change argument type
3228 from rtx to rtx_insn *.
3229
3230 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
3231
3232 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3233 for Lakemont.
3234
3235 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
3236
3237 * config/tilepro/gen-mul-tables.cc: Adjust include files.
3238 * config/tilegx/mul-tables.c: Regenerate.
3239 * config/tilepro/mul-tables.c: Regenerate.
3240
3241 * config/tilegx/tilegx-c.c: Adjust include files.
3242 * config/tilegx/tilegx.c: Likewise.
3243 * config/tilepro/tilepro-c.c: Likewise.
3244 * config/tilepro/tilepro.c: Likewise.
3245 * config/aarch64/aarch64-builtins.c: Likewise.
3246 * config/aarch64/aarch64.c: Likewise.
3247 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3248 * config/alpha/alpha.c: Likewise.
3249 * config/arc/arc.c: Likewise.
3250 * config/arm/aarch-common.c: Likewise.
3251 * config/arm/arm-builtins.c: Likewise.
3252 * config/arm/arm-c.c: Likewise.
3253 * config/arm/arm.c: Likewise.
3254 * config/avr/avr-c.c: Likewise.
3255 * config/avr/avr-devices.c: Likewise.
3256 * config/avr/avr-log.c: Likewise.
3257 * config/avr/avr.c: Likewise.
3258 * config/bfin/bfin.c: Likewise.
3259 * config/c6x/c6x.c: Likewise.
3260 * config/cr16/cr16.c: Likewise.
3261 * config/cris/cris.c: Likewise.
3262 * config/darwin-c.c: Likewise.
3263 * config/darwin-driver.c: Likewise.
3264 * config/darwin.c: Likewise.
3265 * config/default-c.c: Likewise.
3266 * config/epiphany/epiphany.c: Likewise.
3267 * config/epiphany/mode-switch-use.c: Likewise.
3268 * config/epiphany/resolve-sw-modes.c: Likewise.
3269 * config/fr30/fr30.c: Likewise.
3270 * config/frv/frv.c: Likewise.
3271 * config/ft32/ft32.c: Likewise.
3272 * config/glibc-c.c: Likewise.
3273 * config/h8300/h8300.c: Likewise.
3274 * config/i386/host-cygwin.c: Likewise.
3275 * config/i386/host-mingw32.c: Likewise.
3276 * config/i386/i386-c.c: Likewise.
3277 * config/i386/i386.c: Likewise.
3278 * config/i386/msformat-c.c: Likewise.
3279 * config/i386/winnt-cxx.c: Likewise.
3280 * config/i386/winnt-stubs.c: Likewise.
3281 * config/i386/winnt.c: Likewise.
3282 * config/ia64/ia64-c.c: Likewise.
3283 * config/ia64/ia64.c: Likewise.
3284 * config/iq2000/iq2000.c: Likewise.
3285 * config/lm32/lm32.c: Likewise.
3286 * config/m32c/m32c-pragma.c: Likewise.
3287 * config/m32c/m32c.c: Likewise.
3288 * config/m32r/m32r.c: Likewise.
3289 * config/mcore/mcore.c: Likewise.
3290 * config/mep/mep-pragma.c: Likewise.
3291 * config/mep/mep.c: Likewise.
3292 * config/microblaze/microblaze-c.c: Likewise.
3293 * config/microblaze/microblaze.c: Likewise.
3294 * config/mips/mips-tables.opt
3295 * config/mips/mips.c: Likewise.
3296 * config/mmix/mmix.c: Likewise.
3297 * config/mn10300/mn10300.c: Likewise.
3298 * config/moxie/moxie.c: Likewise.
3299 * config/msp430/msp430-c.c: Likewise.
3300 * config/msp430/msp430.c: Likewise.
3301 * config/nds32/nds32-cost.c: Likewise.
3302 * config/nds32/nds32-fp-as-gp.c: Likewise.
3303 * config/nds32/nds32-intrinsic.c: Likewise.
3304 * config/nds32/nds32-isr.c: Likewise.
3305 * config/nds32/nds32-md-auxiliary.c: Likewise.
3306 * config/nds32/nds32-memory-manipulation.c: Likewise.
3307 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3308 * config/nds32/nds32-predicates.c: Likewise.
3309 * config/nds32/nds32.c: Likewise.
3310 * config/nios2/nios2.c: Likewise.
3311 * config/nvptx/mkoffload.c: Likewise.
3312 * config/nvptx/nvptx.c: Likewise.
3313 * config/pa/pa.c: Likewise.
3314 * config/pdp11/pdp11.c: Likewise.
3315 * config/rl78/rl78-c.c: Likewise.
3316 * config/rl78/rl78.c: Likewise.
3317 * config/rs6000/host-darwin.c: Likewise.
3318 * config/rs6000/rs6000-c.c: Likewise.
3319 * config/rs6000/rs6000-linux.c: Likewise.
3320 * config/rs6000/rs6000.c: Likewise.
3321 * config/rx/rx.c: Likewise.
3322 * config/s390/s390-c.c: Likewise.
3323 * config/s390/s390.c: Likewise.
3324 * config/sh/sh-c.c: Likewise.
3325 * config/sh/sh-mem.cc: Likewise.
3326 * config/sh/sh.c: Likewise.
3327 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3328 * config/sh/sh_treg_combine.cc: Likewise.
3329 * config/sol2-c.c: Likewise.
3330 * config/sol2-cxx.c: Likewise.
3331 * config/sol2-stubs.c: Likewise.
3332 * config/sol2.c: Likewise.
3333 * config/sparc/sparc-c.c: Likewise.
3334 * config/sparc/sparc.c: Likewise.
3335 * config/spu/spu-c.c: Likewise.
3336 * config/spu/spu.c: Likewise.
3337 * config/stormy16/stormy16.c: Likewise.
3338 * config/v850/v850-c.c: Likewise.
3339 * config/v850/v850.c: Likewise.
3340 * config/vax/vax.c: Likewise.
3341 * config/visium/visium.c: Likewise.
3342 * config/vms/vms-c.c: Likewise.
3343 * config/vms/vms.c: Likewise.
3344 * config/vxworks.c: Likewise.
3345 * config/winnt-c.c: Likewise.
3346 * config/xtensa/xtensa.c: Likewise.
3347
3348 2015-10-16 Christian Bruel <christian.bruel@st.com>
3349
3350 PR target/67745
3351 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
3352 (FUNCTION_BOUNDARY_P): New macro:
3353 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
3354 New hook.
3355 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
3356 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
3357 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
3358 * function.c (allocate_struct_function): Call
3359 relayout_function hook.
3360 * passes.c (rest_of_decl_compilation): Likewise.
3361
3362 2015-10-16 Christian Bruel <christian.bruel@st.com>
3363
3364 PR target/67745
3365 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
3366 * config/arm/arm.c (arm_option_override_internal): Call
3367 arm_override_options_after_change_1.
3368 (arm_override_options_after_change): New function.
3369 (arm_override_options_after_change_1): Likewise.
3370 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3371
3372 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3373
3374 Revert:
3375 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3376 empty constructors.
3377
3378 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
3379
3380 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3381 argument is an ADDR_EXPR.
3382
3383 2015-10-16 Richard Biener <rguenther@suse.de>
3384
3385 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3386 and get rid of force_gimple_operand_gsi.
3387 (gimple_fold_builtin_memory_chk): Likewise.
3388 (gimple_fold_builtin_stxcpy_chk): Likewise.
3389 (rewrite_to_defined_overflow): Likewise.
3390 (gimple_convert_to_ptrofftype): New function.
3391 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3392
3393 2015-10-16 Richard Biener <rguenther@suse.de>
3394
3395 * tree-nested.h (build_addr): Adjust prototype.
3396 * tree-nested.c (build_addr): Remove context argument and use
3397 mark_addressable.
3398 (get_static_chain): Adjust calls to build_addr.
3399 (convert_nl_goto_reference): Likewise.
3400 (convert_tramp_reference_op): Likewise.
3401 (finalize_nesting_tree_1): Likewise.
3402 * value-prof.c (gimple_ic): Likewise.
3403 * gimple-low.c (lower_builtin_setjmp): Likewise.
3404 * tree-parloops.c (take_address_of): Likewise.
3405 (create_call_for_reduction_1): Likewise.
3406 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3407 (gimple_gen_ic_func_profiler): Likewise.
3408
3409 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3410
3411 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3412 empty constructors.
3413
3414 2015-10-16 Michael Collison <michael.collison@linaro.org>
3415 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3416
3417 * match.pd ((x < y) && (x < z) -> x < min (y,z),
3418 (x > y) and (x > z) -> x > max (y,z))
3419
3420 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
3421 Szabolcs Nagy <szabolcs.nagy@arm.com>
3422
3423 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3424 (DYNAMIC_LINKER): Renamed to ...
3425 (GLIBC_DYNAMIC_LINKER): This.
3426 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3427
3428 2015-10-15 Marek Polacek <polacek@redhat.com>
3429
3430 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3431 gimple_call_builtin instead of is_gimple_call.
3432
3433 2015-10-15 Richard Biener <rguenther@suse.de>
3434
3435 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3436
3437 2015-10-15 Richard Biener <rguenther@suse.de>
3438
3439 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3440 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3441 * tree-vect-loop.c (get_initial_def_for_induction): Drop
3442 use of force_gimple_operand in favor of gimple_build.
3443 Use vect_get_new_ssa_name.
3444 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3445 (vectorizable_mask_load_store): Likewise.
3446 (vectorizable_call): Likewise.
3447 (vectorizable_store): Likewise.
3448 (vectorizable_load): Likewise.
3449 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3450
3451 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
3452
3453 PR tree-optimization/67945
3454 * tree-pass.h (PROP_gimple_opt_math): New property flag.
3455 * generic-match-head.c (canonicalize_math_p): New function.
3456 * gimple-match-head.c: Include tree-pass.h.
3457 (canonicalize_math_p): New function.
3458 * match.pd: Group math built-in rules into simplifications
3459 and canonicalizations. Guard the latter with canonicalize_math_p.
3460 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3461 PROP_gimple_opt_math property.
3462
3463 2015-10-15 Marek Polacek <polacek@redhat.com>
3464
3465 PR tree-optimization/67953
3466 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3467
3468 2015-10-15 Jiong Wang <jiong.wang@arm.com>
3469
3470 * config.gcc: Recognize "." in architecture base name for AArch64.
3471
3472 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3473
3474 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3475 ROUND_UP macro.
3476 * config/mips/mips.c (mips_setup_incoming_varargs): Use
3477 ROUND_DOWN to calculate off.
3478 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3479 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3480 rounded_size.
3481
3482 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
3483
3484 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3485
3486 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
3487 Torvald Riegel <triegel@redhat.com>
3488
3489 PR target/67281
3490 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3491 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3492 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3493 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3494 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
3495 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3496 trechkpt, treclaim, tsr, ttest): New define_expands.
3497 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3498 __TM_FENCE__ for htm.
3499 * doc/extend.texi: Update documentation for htm builtins.
3500
3501 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3502
3503 PR target/67967
3504 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3505 REG_CFA_EXPRESSION to aligned SSE stores.
3506
3507 2015-10-14 Jeff Law <law@redhat.com>
3508
3509 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3510 num_threaded_edges for successful FSM threads too.
3511
3512 2015-10-14 Richard Biener <rguenther@suse.de>
3513
3514 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3515 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
3516 (vect_get_vec_def_for_operand): Remove unused parameter.
3517 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3518 (vect_create_epilog_for_reduction): Likewise.
3519 (vectorizable_reduction): Likewise.
3520 (vectorizable_live_operation): Likewise.
3521 * tree-vect-patterns.c (type_conversion_p): Likewise.
3522 (vect_recog_vector_vector_shift_pattern): Likewise.
3523 (check_bool_pattern): Likewise.
3524 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3525 (vect_analyze_slp_cost_1): Likewise.
3526 * tree-vect-stmts.c (process_use): Likewise.
3527 (vect_get_vec_def_for_operand): Do not handle reductions.
3528 (vect_get_vec_defs): Adjust.
3529 (vectorizable_mask_load_store): Likewise.
3530 (vectorizable_call): Likewise.
3531 (vectorizable_simd_clone_call): Likewise.
3532 (vect_get_loop_based_defs): Likewise.
3533 (vectorizable_conversion): Likewise.
3534 (vectorizable_assignment): Likewise.
3535 (vectorizable_shift): Likewise.
3536 (vectorizable_operation): Likewise.
3537 (vectorizable_store): Likewise.
3538 (vectorizable_load): Likewise.
3539 (vect_is_simple_cond): Likewise.
3540 (vectorizable_condition): Likewise.
3541 (vect_is_simple_use): Remove unused parameters.
3542 (vect_is_simple_use_1): Adjust and rename.
3543
3544 2015-10-14 Richard Biener <rguenther@suse.de>
3545
3546 PR tree-optimization/67915
3547 * match.pd: Handle comparisons of addresses of STRING_CSTs.
3548 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3549 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3550 stmt folding in favor of GIMPLE one.
3551
3552 2015-10-14 Marek Polacek <polacek@redhat.com>
3553
3554 PR tree-optimization/67815
3555 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3556 (reassociate_bb): Call it.
3557
3558 2015-10-14 Richard Biener <rguenther@suse.de>
3559
3560 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3561 Reset info at start.
3562 (vect_analyze_group_access_1): Add debug print.
3563 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3564 (vect_compute_single_scalar_iteration_cost): ... to this.
3565 (vect_analyze_loop_2): Adjust.
3566 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3567 * tree-vectorizer.h: ... here.
3568 (add_stmt_info_to_vec): Remove.
3569 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3570
3571 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
3572
3573 * targhooks.c (default_target_option_pragma_parse): Do not warn if
3574 called on behalf of "#pragma GCC pop_options".
3575
3576 2015-10-14 Tom de Vries <tom@codesourcery.com>
3577
3578 * cfganal.c (verify_no_unreachable_blocks): New function.
3579 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3580 verify_no_unreachable_blocks.
3581 cfganal.h (verify_no_unreachable_blocks): Declare.
3582
3583 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
3584
3585 * common.opt: Add flag_checking.
3586 * system.h (CHECKING_P): Define.
3587
3588 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3589 Aldy Hernandez <aldyh@redhat.com>
3590 Ilya Verbin <ilya.verbin@intel.com>
3591
3592 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3593 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3594 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3595 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3596 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3597 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3598 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3599 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3600 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3601 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3602 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3603 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3604 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3605 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3606 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3607 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3608 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3609 (struct cgraph_simd_clone_arg): Adjust comment.
3610 * coretypes.h (struct gomp_ordered): New forward decl.
3611 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3612 set critical clauses to it.
3613 (gimple_build_omp_ordered): Return gomp_ordered * instead of
3614 gimple *. Add CLAUSES argument, set ordered clauses to it.
3615 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3616 GIMPLE_OMP_ORDERED.
3617 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3618 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3619 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
3620 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3621 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
3622 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3623 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
3624 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3625 renumber
3626 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3627 (gomp_critical): Add clauses field.
3628 (gomp_ordered): New struct.
3629 (is_a_helper <gomp_ordered *>::test): New inline.
3630 (gimple_build_omp_critical): Add CLAUSES argument.
3631 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
3632 instead of gimple *.
3633 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3634 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3635 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3636 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3637 inline functions.
3638 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3639 (dump_gimple_omp_target): Handle enter data and exit data.
3640 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3641 (dump_gimple_omp_critical): Print clauses.
3642 (dump_gimple_omp_ordered): New function.
3643 (dump_gimple_omp_task): Handle taskloop.
3644 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3645 GIMPLE_OMP_ORDERED.
3646 * gimple-walk.c (walk_gimple_op): Walk clauses on
3647 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3648 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3649 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3650 (struct gimplify_omp_ctx): Add loop_iter_var,
3651 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3652 and target_firstprivatize_array_bases fields.
3653 (delete_omp_context): Release loop_iter_var.
3654 (gimplify_bind_expr): Handle ORT_NONE.
3655 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3656 ORT_COMBINED_TARGET.
3657 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3658 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3659 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
3660 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
3661 ctx->target_map_scalars_firstprivate.
3662 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
3663 data sharing clauses. For data sharing clause with VLA decl
3664 on omp target/target data don't add firstprivate for the pointer.
3665 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3666 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3667 the addition of ORT_COMBINED_TARGET.
3668 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
3669 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
3670 pointers as zero length array sections and
3671 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3672 data sharing.
3673 (omp_check_private): Handle omp_member_access_dummy_var vars.
3674 (find_decl_expr): New function.
3675 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
3676 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3677 Handle OMP_CLAUSE_GANG separately. Handle
3678 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3679 clauses. Diagnose linear clause on combined
3680 distribute {, parallel for} simd construct, unless it is the loop
3681 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3682 Handle map clauses with COMPONENT_REF. Initialize
3683 ctx->target_map_scalars_firstprivate,
3684 ctx->target_firstprivatize_array_bases and
3685 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
3686 linear clause even to target region if combined. Remove
3687 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3688 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
3689 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3690 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
3691 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3692 For linear clause on worksharing loop combined with parallel add
3693 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
3694 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
3695 omp_member_access_dummy_var vars. Add lastprivate clause to outer
3696 taskloop if needed.
3697 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3698 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3699 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3700 GOMP_MAP_POINTER.
3701 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
3702 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3703 in target body. Handle removal of struct mapping if struct is not
3704 seen in target body. Remove GOMP_MAP_STRUCT map clause on
3705 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
3706 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
3707 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3708 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3709 clause appear together. Handle
3710 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
3711 clause if it has map-type-modifier always. Handle
3712 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3713 clauses.
3714 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3715 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3716 callers.
3717 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
3718 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
3719 iterators in doacross loops.
3720 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3721 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
3722 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
3723 for the addition of ORT_COMBINED_TARGET.
3724 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3725 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
3726 and OMP_TARGET_EXIT_DATA.
3727 (gimplify_omp_ordered): New function.
3728 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3729 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
3730 Gimplify clauses on OMP_CRITICAL.
3731 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3732 expand_GOMP_SIMD_ORDERED_END): New functions.
3733 * internal-fn.def (GOMP_SIMD_ORDERED_START,
3734 GOMP_SIMD_ORDERED_END): New internal functions.
3735 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3736 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3737 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3738 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3739 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3740 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3741 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3742 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3743 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3744 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3745 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3746 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3747 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3748 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3749 adjust type.
3750 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3751 GOMP_target_data_41, adjust type.
3752 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3753 GOMP_target_update_41, adjust type.
3754 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3755 field.
3756 (struct omp_for_data): Add ordered and simd_schedule fields.
3757 (omp_member_access_dummy_var, unshare_and_remap_1,
3758 unshare_and_remap, is_taskloop_ctx): New functions.
3759 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3760 (extract_omp_for_data): Handle taskloops and doacross loops
3761 and simd schedule modifier.
3762 (omp_adjust_chunk_size): New function.
3763 (get_ws_args_for): Use it.
3764 (lookup_sfield): Change first argument to splay_tree_key,
3765 add overload with first argument tree.
3766 (maybe_lookup_field): Likewise.
3767 (use_pointer_for_field): Handle omp_member_access_dummy_var.
3768 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3769 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3770 (build_outer_var_ref): Add LASTPRIVATE argument, handle
3771 taskloops and omp_member_access_dummy_var vars.
3772 (build_sender_ref): Change first argument to splay_tree_key,
3773 add overload with first argument tree.
3774 (install_var_field): For mask & 8 use &DECL_UID as key instead
3775 of the tree itself.
3776 (fixup_child_record_type): Const qualify *.omp_data_i.
3777 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3778 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3779 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3780 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3781 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3782 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3783 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3784 kinds.
3785 (add_taskreg_looptemp_clauses): New function.
3786 (scan_omp_parallel): Use it.
3787 (scan_omp_task): Likewise.
3788 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3789 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3790 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3791 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
3792 sandwiched taskloop constructs. Type check
3793 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
3794 region. Diagnose depend(source) or depend(sink:...) on
3795 target constructs or task/taskloop.
3796 (handle_simd_reference): Use get_name.
3797 (lower_rec_input_clauses): Likewise. Ignore all
3798 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3799 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
3800 before passing it to omp_clause_{default,copy}_ctor. Handle
3801 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
3802 lastprivate_firstprivate flag for linear that needs copyin and
3803 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3804 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3805 on taskloop lookup decl in outer context. Pass true to
3806 build_outer_var_ref lastprivate argument. Handle
3807 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3808 outside of outer taskloop for.
3809 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3810 OMP_CLAUSE_DECL.
3811 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3812 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
3813 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
3814 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
3815 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3816 abstract origin. Handle omp_member_access_dummy_var vars.
3817 (expand_parallel_call): Use expand_omp_build_assign.
3818 (expand_task_call): Handle taskloop construct expansion. Add
3819 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
3820 integers. Add priority argument to GOMP_task* calls. Or in
3821 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3822 GOMP_task call.
3823 (expand_omp_build_assign): Add prototype. Add AFTER
3824 argument, if true emit statements after *GSI_P and continue linking.
3825 (expand_omp_taskreg): Adjust expand_task_call caller.
3826 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3827 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3828 zero_iter2_bb and first_zero_iter2 arguments, handle computation
3829 of counts even for ordered loops.
3830 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3831 (expand_omp_ordered_source, expand_omp_ordered_sink,
3832 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3833 functions.
3834 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
3835 clauses on worksharing loop. Handle DOACROSS loop expansion.
3836 (expand_omp_for_static_nochunk): Handle linear clauses on
3837 worksharing loop. Adjust expand_omp_for_init_counts
3838 callers.
3839 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
3840 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
3841 expand_omp_for_init_counts callers.
3842 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3843 functions.
3844 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3845 Handle doacross loops.
3846 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3847 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
3848 GOMP_target_{41,update_41,enter_exit_data} libcalls.
3849 (expand_omp): Don't expand ordered depend constructs here, record
3850 ord_stmt instead for later expand_omp_for_generic.
3851 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3852 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3853 clause as stand-alone directive.
3854 (lower_omp_ordered_clauses): New function.
3855 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3856 don't lower anything.
3857 (lower_omp_for_lastprivate): Use last _looptemp_ clause
3858 on taskloop for comparison.
3859 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
3860 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3861 expansion for linear adjustments.
3862 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3863 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3864 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
3865 to tree * pointing to the stmt's clauses.
3866 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3867 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3868 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3869 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3870 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3871 clauses. Always use short kind and 8-bit align shift.
3872 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3873 (struct lower_omp_regimplify_operands_data): New type.
3874 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3875 New functions.
3876 (lower_omp_1): Use lower_omp_regimplify_operands instead of
3877 gimple_regimplify_operands.
3878 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3879 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3880 clause as stand-alone directive.
3881 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3882 (simd_clone_mangle): Mangle the various linear kinds
3883 per the new ABI.
3884 (simd_clone_adjust_argument_types): Handle
3885 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3886 (simd_clone_init_simd_arrays): Don't do anything for uval.
3887 (simd_clone_adjust): Handle
3888 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3889 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3890 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3891 * omp-low.h (omp_member_access_dummy_var): New prototype.
3892 * passes.def (pass_simduid_cleanup): Schedule another copy of the
3893 pass after all optimizations.
3894 * tree.c (omp_clause_code_name): Add entries for
3895 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3896 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3897 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
3898 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3899 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3900 OMP_CLAUSE_REDUCTION 5 arguments. Handle
3901 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3902 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3903 clauses.
3904 * tree-core.h (enum omp_clause_linear_kind): New.
3905 (struct tree_omp_clause): Change type of map_kind
3906 from unsigned char to unsigned int. Add subcode.if_modifier
3907 and subcode.linear_kind fields.
3908 (enum omp_clause_code): Add
3909 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3910 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3911 (OMP_CLAUSE_REDUCTION): Document
3912 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3913 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3914 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3915 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
3916 operand.
3917 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
3918 operand.
3919 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3920 codes.
3921 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3922 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3923 char.
3924 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3925 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3926 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3927 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3928 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3929 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3930 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3931 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3932 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3933 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3934 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3935 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3936 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3937 * tree-inline.c (remap_gimple_stmt): Handle clauses on
3938 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
3939 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3940 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3941 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3942 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3943 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3944 (convert_local_omp_clauses): Likewise.
3945 * tree-pretty-print.c (dump_omp_clause): Handle
3946 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3947 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3948 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3949 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3950 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
3951 GOMP_MAP_FORCE_DEALLOC. Handle
3952 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3953 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3954 and clauses on OMP_ORDERED and OMP_CRITICAL.
3955 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3956 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3957 (vectorize_loops): Adjust comments.
3958 (pass_simduid_cleanup::execute): Likewise.
3959 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3960 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3961 * wide-int.h (wi::gcd): New.
3962
3963 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3964
3965 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3966 (ix86_function_arg_advance): Ditto.
3967 (ix86_function_arg): Ditto.
3968 (ix86_gimplify_va_arg): Ditto.
3969 (ix86_class_max_nregs): Ditto.
3970 (inline_memory_move_cost): Ditto.
3971 (ix86_set_reg_reg_cost): Ditto.
3972 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
3973
3974 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
3975
3976 PR middle-end/67912
3977 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
3978
3979 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3980
3981 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
3982 ROUND_UP macro and UNITS_PER_WORD * 2.
3983 * config/sparc/sparc.c (sparc_compute_frame_size):
3984 Use ROUND_UP and ROUND_DOWN macros where applicable.
3985 (function_arg_record_value, function_arg_record_value_1)
3986 (function_arg_record_value_1): Ditto.
3987 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
3988 alignment to double-word.
3989 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
3990 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
3991 rounded_size.
3992
3993 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
3994
3995 * rtl.h (print_insn): Fix prototype.
3996
3997 2015-10-13 Tom de Vries <tom@codesourcery.com>
3998
3999 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
4000 -1. Add assert that returned entry matches phi argument.
4001 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
4002 free_stmt_vec_info_vec ...
4003 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
4004 with -1.
4005
4006 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
4007
4008 PR tree-optimization/67909, 67947
4009 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
4010 really skip the inner loop.
4011
4012 2015-10-13 Jeff Law <law@redhat.com>
4013
4014 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4015 Allow single block jump threading paths.
4016
4017 2015-10-13 Tom de Vries <tom@codesourcery.com>
4018
4019 PR tree-optimization/67476
4020 * doc/invoke.texi (@item parloops-schedule): New item.
4021 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
4022 * tree-parloops.c: Include params-enum.h.
4023 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
4024
4025 2015-10-13 Tom de Vries <tom@codesourcery.com>
4026
4027 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
4028 * params-enum.h: New file.
4029 * opts.c (handle_param): Handle case that param arg is a string.
4030 * params-list.h: Handle DEFPARAMENUM5 in params.def.
4031 * params.c (find_param): New function, factored out of ...
4032 (set_param_value): ... here.
4033 (param_string_value_p): New function.
4034 * params.h (struct param_info): Add value_names field.
4035 (find_param, param_string_value_p): Declare.
4036
4037 2015-10-13 Tom de Vries <tom@codesourcery.com>
4038
4039 PR tree-optimization/67476
4040 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
4041
4042 2015-10-13 Richard Biener <rguenther@suse.de>
4043
4044 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
4045 the data dependence vector.
4046 (vect_peeling_hash_insert): Get the peeling hash table as argument.
4047 (vect_peeling_hash_get_lowest_cost): Likewise.
4048 (vect_enhance_data_refs_alignment): Adjust.
4049 (struct _vect_peel_info, struct _vect_peel_extended_info,
4050 struct peel_info_hasher): Move from ...
4051 * tree-vectorizer.h: ... here.
4052 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
4053 (LOOP_VINFO_PEELING_HTAB): Likewise.
4054 (struct _loop_vec_info): Remove min_profitable_iters and
4055 peeling_htab members.
4056 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
4057 here.
4058 (destroy_loop_vec_info): Adjust.
4059 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
4060 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
4061 to estimate alias versioning cost.
4062 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
4063
4064 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
4065
4066 * real.h (real_isinteger): Declare.
4067 * real.c (real_isinteger): New function.
4068 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
4069 if y is an even integer.
4070
4071 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4072
4073 revert:
4074 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4075 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4076 counts when these are more informative.
4077
4078 2015-10-12 Jeff Law <law@redhat.com>
4079
4080 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
4081 (fsm_find_control_stmt_paths): Change name of first argument to
4082 more accurately relfect what it really is. Handle simplification
4083 of GIMPLE_COND after finding a thread path for NAME.
4084 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
4085 nontrivial conditions to be handled by FSM threader.
4086 (thread_through_normal_block): Extract the name to looup via
4087 FSM threader from COND_EXPR.
4088
4089 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
4090 restriction that traced SSA_NAME is a user variable.
4091
4092 2015-10-12 Tom de Vries <tom@codesourcery.com>
4093
4094 PR tree-optimization/67476
4095 * omp-low.c (expand_omp_for_generic): Add missing phis.
4096
4097 2015-10-12 Tom de Vries <tom@codesourcery.com>
4098
4099 PR tree-optimization/67476
4100 * omp-low.c (expand_omp_for_generic): Handle simple latch.
4101
4102 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
4103
4104 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4105 tables: add tbl3 and tbx4.
4106 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
4107 (aarch64_tbx4v8qi): New.
4108 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
4109 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
4110 Rewrite using builtin functions.
4111 * config/aarch64/iterators.md (UNSPEC_TBX): New.
4112
4113 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
4114
4115 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
4116 ROUND_UP macro.
4117 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4118 Use ROUND_UP and ROUND_DOWN macros where applicable.
4119 (rs6000_darwin64_record_arg_flush): Ditto.
4120 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
4121 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
4122 rounded_size.
4123
4124 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
4125
4126 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
4127 (AARCH64_ROUND_DOWN): Ditto.
4128 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
4129
4130 2015-10-12 Richard Biener <rguenther@suse.de>
4131
4132 PR ipa/67783
4133 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
4134 code that analyzes IVs on each stmt but in a cheaper way avoiding
4135 quadratic behavior.
4136
4137 2015-10-12 Nick Clifton <nickc@redhat.com>
4138
4139 * config/msp430/msp430.c (msp430_mcu_names): Rename to
4140 msp430_mcu_data, add fields for ISA and hardware multiply
4141 support. Import latest data from the devices.csv file.
4142 (msp430_override_option): Use the data from the new array.
4143 (msp430_use_f5_series_hwmult): Likewise.
4144 (use_32bit_hwmult): Likewise.
4145 (msp430_no_hwmult): Likewise.
4146 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
4147 MCU names.
4148 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
4149 not recognised then no hardware multiply support is assumed and
4150 that only the MSP430 ISA is allowed.
4151
4152 2015-10-12 Richard Biener <rguenther@suse.de>
4153
4154 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
4155 related code ...
4156 (vect_analyze_loop_2): ... here.
4157
4158 2015-10-11 Jason Merrill <jason@redhat.com>
4159
4160 PR c++/67557
4161 * expr.c (store_field): Call store_constructor directly when
4162 storing a CONSTRUCTOR into a target smaller than its type.
4163 Guard against unsafe bitwise copy.
4164
4165 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4166
4167 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4168 counts when these are more informative.
4169
4170 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4171
4172 * tree-profile.c (tree_profiling): Do not clear
4173 pure/const when not instrumenting.
4174 (pass tree_profile): Add dump of symtab.
4175
4176 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4177
4178 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
4179 addresses.
4180 (fold_addr_of_array_ref_difference): Likewise.
4181
4182 2015-10-11 Jeff Law <law@redhat.com>
4183
4184 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
4185 tree-ssa-threadbackward.c.
4186 (fsm_find_control_statement_thread_paths): Likewise.
4187 (thread_through_normal_block): Break out FSM bits and move them
4188 into a new function in tree-ssa-threadbackward.c. Call new function
4189 instead.
4190 Minimize header file usage.
4191 * tree-ssa-threadbackward.h: New file.
4192 * tree-ssa-threadbackward.c: Likewise.
4193 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
4194
4195 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
4196
4197 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
4198
4199 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
4200
4201 PR rtl-optimization/67864
4202 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
4203 fallthrough edges for conditional jumps. Don't sort candidate
4204 edges if not optimizing for speed.
4205
4206 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4207
4208 * defaults.h (REVERSE_CONDITION): New default definition.
4209 * jump.c (reversed_comparison_code_parts): Adjust.
4210
4211 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4212
4213 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4214 check HARD_FRAME_POINTER_IS_ARG_POINTER.
4215
4216 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4217
4218 * defaults.h (FRAME_ADDR_RTX): New default definition.
4219 * builtins.c (expand_builtin_return_addr): Adjust.
4220
4221 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4222
4223 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4224 * builtins.c (expand_builtin_return_addr): Adjust.
4225
4226 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4227
4228 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4229 * builtins.c (expand_builtin_return_addr): Adjust.
4230 * doc/tm.texi: Likewise.
4231 * doc/tm.texi.in: Likewise.
4232 * except.c (expand_builtin_unwind_init): Likewise.
4233
4234 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4235
4236 * builtins.c (expand_builtin_return_addr): Adjust.
4237 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4238
4239 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4240
4241 * tree.c (type_with_interoperable_signedness): New.
4242 (gimple_canonical_types_compatible_p): Use it.
4243 * tree.h (type_with_interoperable_signedness): Declare
4244
4245 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4246
4247 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4248 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4249 when OEP_ADDRESS_OF is se.
4250
4251 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4252 Sebastian Pop <s.pop@samsung.com>
4253
4254 * graphite-dependences.c (scop_get_dependences): Add dump of the
4255 data dependence graph.
4256 * graphite-poly.c (print_isl_union_map): New.
4257 (debug_isl_union_map): New.
4258 * graphite-poly.h (print_isl_union_map): Declare.
4259 (debug_isl_union_map): Declare.
4260
4261 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4262 Sebastian Pop <s.pop@samsung.com>
4263
4264 * graphite-poly.c (print_iteration_domain): Remove verbosity.
4265 Remove OpenScop formatting.
4266 (print_iteration_domains): Same.
4267 (debug_iteration_domain): Same.
4268 (debug_iteration_domains): Same.
4269 (print_pdr): Same.
4270 (debug_pdr): Same.
4271 (dump_gbb_cases): Same.
4272 (dump_gbb_conditions): Same.
4273 (print_pdrs): Same.
4274 (debug_pdrs): Same.
4275 (print_pbb_body): Same.
4276 (print_pbb): Same.
4277 (print_scop_params): Same.
4278 (print_scop_context): Same.
4279 (print_scop): Same.
4280 (debug_pbb_domain): Same.
4281 (debug_pbb): Same.
4282 (debug_scop_context): Same.
4283 (debug_scop): Same.
4284 (debug_scop_params): Same.
4285 * graphite-poly.h: Same.
4286 * graphite.c (graphite_transform_loops): Same.
4287
4288 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4289
4290 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4291 call that isn't needed.
4292
4293 2015-10-09 Jeff Law <law@redhat.com>
4294
4295 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4296 rather than moving each name to the freelist individually.
4297
4298 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
4299
4300 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4301 * frame-header-opt.c: New file.
4302 * config/mips/mips-proto.h (mips_register_frame_header_opt):
4303 Add prototype.
4304 * config/mips/mips.c (mips_compute_frame_info): Check
4305 optimize_call_stack flag.
4306 (mips_option_override): Register new frame_header_opt pass.
4307 (mips_frame_info, mips_int_mask, mips_shadow_set,
4308 machine_function): Move these types to...
4309 * config/mips/mips.h: here.
4310 (machine_function): Add does_not_use_frame_header and
4311 optimize_call_stack fields.
4312 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4313 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4314 Document new flags.
4315 * config/mips/mips.opt (mframe-header-opt): Add new option.
4316
4317 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
4318
4319 * config/i386/i386.c
4320 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4321 ROUND_DOWN where applicable.
4322
4323 2015-10-09 Jeff Law <law@redhat.com>
4324
4325 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4326 correct statement.
4327
4328 2015-10-09 Renlin Li <renlin.li@arm.com>
4329
4330 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4331 operands[0] and operands[2].
4332 (neon_vtrn<mode>_insn): Likewise.
4333 (neon_vzip<mode>_insn): Likewise.
4334
4335 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
4336
4337 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4338 ((X & C2) << C1): Expand to...
4339 (X {&,^,|} C2 << C1): ...This.
4340 ((X & C2) >> C1): Expand to...
4341 (X {&,^,|} C2 >> C1): ...This.
4342
4343 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
4344
4345 PR target/67895
4346 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
4347 Adjust embedded rounding/SAE specifier position.
4348 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
4349 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
4350 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
4351 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
4352 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4353 Likewise.
4354 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
4355
4356 2015-10-09 Martin Jambor <mjambor@suse.cz>
4357
4358 tree-optimization/67794
4359 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
4360 between types of state,ents but accept original definitions as a
4361 parameter.
4362 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
4363 iterate over definitions.
4364
4365 2015-10-09 James Norris <jnorris@codesourcery.com>
4366
4367 * config/rs6000/rs6000.c (rs6000_offload_options): New.
4368 (TARGET_OFFLOAD_OPTIONS): New.
4369
4370 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
4371
4372 PR middle-end/67891
4373 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4374
4375 PR middle-end/67766
4376 * function.c (expand_function_end): Move return value
4377 promotion past the handling of PARALLELs and CONCATs.
4378
4379 PR rtl-optimization/67828
4380 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4381 (tree_may_unswitch_on): Don't unswitch on expressions
4382 involving undefined values.
4383
4384 2015-10-09 Richard Biener <rguenther@suse.de>
4385
4386 * genmatch.c (print_operand): Fix formatting.
4387 (dt_node::append_simplify): Warn for multiple simplifiers
4388 that match the same pattern.
4389 * match.pd (log (exp @0)): Remove duplicates.
4390
4391 2015-10-09 Richard Biener <rguenth@suse.de>
4392
4393 PR target/67366
4394 * gimple-fold.c (optabs-query.h): Include
4395 (gimple_fold_builtin_memory_op): Allow unaligned stores
4396 when movmisalign_optabs are available.
4397
4398 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4399
4400 PR target/67366
4401 * config/arm/arm.md (movmisalign<mode>): New.
4402 * config/arm/iterators.md (HSI): New.
4403
4404 2015-10-09 Richard Biener <rguenther@suse.de>
4405
4406 PR tree-optimization/67891
4407 * gimple-match.h (gimple_simplified_result_is_gimple_val):
4408 New helper.
4409 (gimple_resimplify1): Declare.
4410 (gimple_resimplify2): Likewise.
4411 (gimple_resimplify3): Likewise.
4412 * gimple-match-head.c (gimple_resimplify1): Export.
4413 (gimple_resimplify2): Likewise.
4414 (gimple_resimplify3): Likewise.
4415 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4416 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4417 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4418 to avoid creating stmts without VN info.
4419
4420 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
4421
4422 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4423 of availability.
4424
4425 2015-10-08 Jeff Law <law@redhat.com>
4426
4427 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4428 and release_ssa_name in two places.
4429 (gimple_stringop_fixed_value): Similarly.
4430
4431 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4432 release_defs.
4433
4434 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4435 unlink_stmt_vdef and release_ssa_name_fn.
4436
4437 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4438 release_defs.
4439
4440 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
4441
4442 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4443 SSE register save area to 16 bytes only if the incoming stack
4444 boundary is no less than 16 bytes.
4445
4446 2015-10-08 Jeff Law <law@redhat.com>
4447
4448 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4449 release_ssa_name. Fix typo in comment.
4450
4451 2015-10-08 Nathan Sidwell <nathan@acm.org>
4452
4453 * config/nvptx/nvptx.h (struct machine_function): Add comment.
4454 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4455 may return pointer as well as in memory.
4456 (nvptx_output_return): Likewise.
4457
4458 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4459
4460 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4461 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4462 * match.pd: Add rules previously handled by fold_builtin_sqrt
4463 and fold_builtin_cbrt.
4464
4465 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4466
4467 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4468 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4469 * fold-const.h (tree_unary_nonnegative_warnv_p)
4470 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4471 (tree_expr_nonnegative_warnv_p): Add depth parameters.
4472 * fold-const.c: Include gimple-fold.h and params.h.
4473 (tree_ssa_name_nonnegative_warnv_p): New function.
4474 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4475 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4476 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4477 Add a depth parameter and increment it for recursive calls to
4478 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
4479 to handle SSA names.
4480 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4481 (gimple_stmt_nonnegative_warnv_p): Declare.
4482 * tree-vrp.c (remove_range_assertions): Remove assert that condition
4483 cannot be proven false.
4484 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4485 (gimple_stmt_nonnegative_warnv_p): Move to...
4486 * gimple-fold.c: ...here. Add depth parameters and pass them
4487 down to the tree routines. Accept statements that aren't
4488 assignments or calls but just return false for them.
4489 (gimple_val_nonnegative_real_p): Delete.
4490 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4491 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4492 Check HONOR_NANs first.
4493
4494 2015-10-08 Martin Jambor <mjambor@suse.cz>
4495
4496 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
4497 unnecessary MIN.
4498
4499 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4500
4501 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4502 in the tail of outer-loop.
4503
4504 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
4505
4506 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4507 return UI_NONE.
4508
4509 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4510
4511 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4512 "cfghooks.h", add prototypes for introduced new functions.
4513 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4514 checks on ability of loop unswitching to tree_unswitch_single_loop;
4515 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4516 on innermost loop check.
4517 (tree_unswitch_single_loop): Add all required checks on ability of
4518 loop unswitching under zero recursive level guard.
4519 (tree_unswitch_outer_loop): New function.
4520 (find_loop_guard): Likewise.
4521 (empty_bb_without_guard_p): Likewise.
4522 (used_outside_loop_p): Likewise.
4523 (get_vop_from_header): Likewise.
4524 (hoist_guard): Likewise.
4525 (check_exit_phi): Likewise.
4526
4527 2015-10-08 Marek Polacek <polacek@redhat.com>
4528
4529 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4530 ops element.
4531
4532 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4533
4534 PR c/65345
4535 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4536 create_tmp_var_raw instead of create_tmp_var.
4537
4538 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
4539
4540 * expr.c (store_expr_with_bounds): Handle aggregate moves from
4541 BLKmode.
4542 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4543 to define gimple type system; compare aggregates only by size.
4544
4545 2015-10-07 Jeff Law <law@redhat.com>
4546
4547 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4548 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4549 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
4550 unnecessarily.
4551
4552 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4553 Sebastian Pop <s.pop@samsung.com>
4554
4555 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4556 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4557 (generate_isl_schedule): Same.
4558 * graphite-optimize-isl.c (scop_get_domains): Same.
4559 (apply_schedule_map_to_scop): Same.
4560 * graphite-poly.c (print_iteration_domains): Same.
4561 (remove_gbbs_in_scop): Same.
4562 (new_scop): Same.
4563 (free_scop): Same.
4564 (print_scop): Same.
4565 * graphite-poly.h (struct scop): Rename bbs to pbbs.
4566 (SCOP_BBS): Remove.
4567 * graphite-scop-detection.c (compare_bb_depths): Remove.
4568 (graphite_sort_dominated_info): Remove.
4569 (try_generate_gimple_bb): Move out of scop_detection.
4570 (all_non_dominated_preds_marked_p): Remove.
4571 (build_scop_bbs_1): Remove.
4572 (build_scop_bbs): Remove.
4573 (nb_pbbs_in_loops): Do not use SCOP_BBS.
4574 (find_scop_parameters): Same.
4575 (sese_dom_walker): Rename gather_bbs.
4576 (before_dom_children): Call try_generate_gimple_bb and collect gbb
4577 and pbb.
4578 (build_scops): Call gather_bbs.
4579 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4580 (add_conditions_to_constraints): Same.
4581 (build_scop_iteration_domain): Same.
4582 (build_scop_drs): Same.
4583 (new_pbb_from_pbb): Same.
4584 * sese.c (new_sese_info): Create bbs.
4585 * sese.h (struct sese_info_t): Add bbs.
4586
4587 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
4588
4589 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4590 encoding in 64-bit mode.
4591
4592 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
4593
4594 PR target/66697
4595 * config/i386/i386.c (ix86_option_override_internal): Always use
4596 8-byte minimum stack boundary in 64-bit mode.
4597 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4598 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4599 Add a REG_CFA_EXPRESSION note if needed.
4600 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4601 (ix86_handle_force_align_arg_pointer_attribute): New.
4602 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4603 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4604 with ix86_handle_force_align_arg_pointer_attribute.
4605 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4606
4607 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4608 Sebastian Pop <s.pop@samsung.com>
4609
4610 * graphite-scop-detection.c (parameter_index_in_region): Remove
4611 use of SESE_ADD_PARAMS.
4612 (find_scop_parameters): Same.
4613 * sese.c (new_sese_info): Same.
4614 * sese.h (struct sese_info_t): Remove add_params.
4615 (SESE_ADD_PARAMS): Remove.
4616
4617 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4618 Sebastian Pop <s.pop@samsung.com>
4619
4620 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4621 an sese_info_p.
4622 (copy_def): Same.
4623 (copy_internal_parameters): Same.
4624 (translate_isl_ast_to_gimple): Use an sese_l.
4625 (build_iv_mapping): Same.
4626 * graphite-poly.c (new_sese): Rename new_sese_info.
4627 (free_sese): Rename free_sese_info.
4628 * graphite-poly.h (struct scop): Use an sese_info_p.
4629 (scop_set_region): Same.
4630 * graphite-scop-detection.c (struct sese_l): Moved...
4631 (get_entry_bb): Moved...
4632 (get_exit_bb): Moved...
4633 (parameter_index_in_region_1): Use an sese_info_p.
4634 (parameter_index_in_region): Same.
4635 (scan_tree_for_params): Same.
4636 (find_params_in_bb): Same.
4637 (sese_dom_walker): Use an sese_l.
4638 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4639 (reduction_phi_p): Same.
4640 (parameter_index_in_region_1): Use an sese_info_p.
4641 (propagate_expr_outside_region): Use an sese_l.
4642 * graphite.c: Replace uses of SCOP_REGION.
4643 * sese.c (sese_record_loop): Use an sese_info_p.
4644 (build_sese_loop_nests): Same.
4645 (sese_build_liveouts_use): Same.
4646 (sese_build_liveouts_bb): Same.
4647 (sese_build_liveouts_bb): Same.
4648 (sese_bad_liveouts_use): Same.
4649 (sese_reset_debug_liveouts_bb): Same.
4650 (sese_build_liveouts): Same.
4651 (new_sese): Renamed new_sese_info.
4652 (free_sese): Renamed free_sese_info.
4653 (set_rename): Use an sese_info_p.
4654 (graphite_copy_stmts_from_block): Same.
4655 (copy_bb_and_scalar_dependences): Same.
4656 (outermost_loop_in_sese_1): Use an sese_l.
4657 (outermost_loop_in_sese): Same.
4658 (if_region_set_false_region): Use an sese_info_p.
4659 (move_sese_in_condition): Same.
4660 (scalar_evolution_in_region): Use an sese_l.
4661 * sese.h (struct sese_l): ... here.
4662 (SESE_ENTRY): Remove.
4663 (SESE_ENTRY_BB): Remove.
4664 (SESE_EXIT): Remove.
4665 (SESE_EXIT_BB): Remove.
4666 (sese_contains_loop): Use an sese_info_p.
4667 (sese_nb_params): Same.
4668 (bb_in_sese_p): Use an sese_l.
4669 (stmt_in_sese_p): Same.
4670 (defined_in_sese_p): Same.
4671 (loop_in_sese_p): Same.
4672 (sese_loop_depth): Same.
4673 (struct ifsese_s): Use an sese_info_p.
4674 (gbb_loop_at_index): Use an sese_l.
4675 (nb_common_loops): Same.
4676 (scev_analyzable_p): Same.
4677
4678 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4679
4680 * config/i386/i386.c (ix86_conditional_register_usage): Use
4681 CALL_USED_REGISTERS_MASK.
4682 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4683
4684 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4685
4686 PR bootstrap/67385
4687 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4688 * configure: Regenerated.
4689
4690 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4691
4692 PR target/67850
4693 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4694 (ix86_set_current_function): This.
4695 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4696
4697 2015-10-07 Richard Biener <rguenther@suse.de>
4698
4699 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4700 (vinfo_for_stmt): Adjust.
4701 (set_vinfo_for_stmt): Likewise.
4702 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4703 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4704 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4705 of inner loop.
4706 (vect_analyze_loop_1): Remove.
4707 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4708 inner loop when vectorizing an outer loop by splitting out from ...
4709 (vect_analyze_loop_form): ... here.
4710
4711 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4712
4713 PR c/65345
4714 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4715 Use create_tmp_var_raw instead of create_tmp_var.
4716
4717 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
4718
4719 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4720 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4721 * real.c (CACHED_FRACTION): New helper macro.
4722 (dconst_third_ptr): Use it.
4723 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4724 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4725 dconst_sixth.
4726 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4727
4728 2015-10-06 Jeff Law <law@redhat.com>
4729
4730 PR tree-optimization/67816
4731 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4732 from remove_jump_threads_starting_at. Accept an edge rather than
4733 a basic block.
4734 * tree-ssa-threadupdate.c (removed_edges): New hash table.
4735 (remove_jump_threads_including): Note edges that get removed from
4736 the CFG for later pruning of jump threading paths including them.
4737 (thread_through_all_blocks): Remove paths which include edges that
4738 have been removed.
4739 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4740 on each outgoing edges when optimizing away a control statement.
4741
4742 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4743
4744 * reorg.c (emit_delay_sequence): Store list of delay slot insns
4745 in a vector instead of rtx_insn_list.
4746 (add_to_delay_list): Likewise.
4747 (delete_from_delay_slot): Likewise.
4748 (optimize_skip): Likewise.
4749 (redirect_with_delay_list_safe_p): Likewise.
4750 (check_annul_list_true_false): Likewise.
4751 (steal_delay_list_from_target): Likewise.
4752 (steal_delay_list_from_fallthrough): Likewise.
4753 (redundant_insn): Likewise.
4754 (fill_simple_delay_slots): Likewise.
4755 (fill_slots_from_thread): Likewise.
4756 (fill_eager_delay_slots): Likewise.
4757 (relax_delay_slots): Likewise.
4758
4759 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
4760
4761 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4762 For -mgpopt=local, also exclude unintialized common symbols.
4763 * doc/invoke.texi (Nios II Options): Document the change.
4764
4765 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4766
4767 * config/aarch64/iterators.md (vwcore): Add missing cases for
4768 V4HF/V8HF modes.
4769
4770 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4771 Sebastian Pop <s.pop@samsung.com>
4772
4773 * graphite-poly.c (new_scop): Initialize drs.
4774 * graphite-poly.h (struct dr_info): New.
4775 (struct scop): Add drs.
4776 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4777 (pdr_add_memory_accesses): Same.
4778 (build_poly_dr): Same.
4779 (build_alias_set): Same.
4780 (build_scop_drs): Same.
4781 (build_pbb_drs): Remove.
4782 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4783 * tree-data-ref.h (data_reference): Remove alias_set.
4784
4785 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4786 Sebastian Pop <s.pop@samsung.com>
4787
4788 * graphite-poly.c (free_data_refs_aux): Remove.
4789 (free_gimple_poly_bb): Do not call free_data_refs_aux.
4790 * graphite-poly.h (struct base_alias_pair): Remove.
4791 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4792 base_alias_pair and dr->aux.
4793 (build_alias_set): Same.
4794 * tree-data-ref.c (create_data_ref): Initialize alias_set.
4795 * tree-data-ref.h (data_reference): Add alias_set.
4796
4797 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4798 Sebastian Pop <s.pop@samsung.com>
4799
4800 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4801 Do not set PDR_BASE_OBJECT_SET.
4802 * graphite-poly.h (poly_dr): Same.
4803 (PDR_BASE_OBJECT_SET): Remove.
4804 (new_poly_dr): Update decl.
4805 * graphite-sese-to-poly.c (build_poly_dr): Update call to
4806 new_poly_dr.
4807 (write_alias_graph_to_ascii_dimacs): Remove.
4808 (write_alias_graph_to_ascii_dot): Remove.
4809 (write_alias_graph_to_ascii_ecc): Remove.
4810 (dr_same_base_object_p): Remove.
4811 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
4812 code.
4813 (build_base_obj_set_for_drs): Remove.
4814 (dump_alias_graphs): Remove.
4815 (build_scop_drs): Remove dead code.
4816
4817 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4818 Peter Bergner <bergner@vnet.ibm.com>
4819
4820 PR target/67808
4821 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4822 allow registers, but provide insns for the combiner to create for
4823 loads from memory. Separate VSX code from non-VSX code. For
4824 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4825 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4826 so that registers come before memory operations. Drop support from
4827 converting DFmode to TFmode, if the DFmode value is in a GPR
4828 register.
4829 (extenddftf2_fprs): Likewise.
4830 (extenddftf2_internal): Likewise.
4831 (extenddftf2_vsx): Likewise.
4832 (extendsftf2): In the expander, only allow registers, but provide
4833 insns for the combiner to create for stores and loads.
4834
4835 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4836
4837 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4838 from the decl parameter.
4839
4840 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
4841
4842 PR 67861
4843 * gimple-fold.c (gimple_fold_builtin): Add break after
4844 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4845
4846 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
4847
4848 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4849 to scop->isl_context.
4850
4851 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4852
4853 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4854 (output_probe_stack_range): Rotate the loop and simplify.
4855 (thumb1_expand_prologue): Tweak sorry message.
4856 * config/arm/arm.md (probe_stack): Use bare string.
4857
4858 2015-10-06 Nick Clifton <nickc@redhat.com>
4859
4860 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4861
4862 2015-10-06 Nick Clifton <nickc@redhat.com>
4863
4864 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4865 (ATTR_PERSIST): New constant.
4866 (msp430_data_attr): New function - verifies an attribute that only
4867 applies to variables.
4868 (msp430_attributes): Add noinit and persistent attributes.
4869 (noinit_section): New variable.
4870 (presis_section): New variable.
4871 (TARGET_ASM_INIT_SECTIONS): Define.
4872 (msp430_init_sections): New function - initialises the noinit and
4873 persist section variables.
4874 (msp430_select_section): Add support for noinit and persist
4875 attributes.
4876 (msp430_section_type_flags): Likewise.
4877 * doc/extend.texi: Document the reent, critical, wakeup, noinit
4878 and persistent attributes.
4879
4880 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4881 Sebastian Pop <s.pop@samsung.com>
4882
4883 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4884 (no_violations): Remove.
4885 (subtract_commutative_associative_deps): Remove.
4886 (compute_deps): Do not call subtract_commutative_associative_deps.
4887 (transform_is_safe): Remove.
4888 (graphite_legal_transform): Remove.
4889 * graphite-poly.h (graphite_legal_transform): Remove.
4890
4891 2015-10-05 Aditya Kumar <hiraditya@msn.com>
4892
4893 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4894 which are in this region are passed so gcc_assert and remove redundant
4895 computation.
4896 * sese.c (sese_build_liveouts): Pass only those bbs which are not
4897 in region.
4898 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4899 gcc_assert on that and remove unnecessary computation.
4900 (sese_build_liveouts_use): Same.
4901
4902 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4903
4904 * graphite-dependences.c (scop_get_reads): Renamed scop->context
4905 to scop->param_context.
4906 (scop_get_must_writes): Same.
4907 (scop_get_may_writes): Same.
4908 (scop_get_original_schedule): Same.
4909 (scop_get_transformed_schedule): Same.
4910 (subtract_commutative_associative_deps): Same.
4911 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4912 (generate_isl_context): Same.
4913 (generate_isl_schedule): Same.
4914 (scop_to_isl_ast): Same.
4915 (graphite_regenerate_ast_isl): Same.
4916 * graphite-optimize-isl.c (scop_get_domains): Same.
4917 (optimize_isl): Renamed scop->context to scop->param_context.
4918 * graphite-poly.c (new_poly_bb): Change the type of argument to
4919 gimple_poly_bb_p.
4920 (new_scop): Renamed scop->context to scop->param_context.
4921 (free_scop): Same.
4922 (print_scop_context): Same.
4923 * graphite-poly.h (new_poly_dr): Change the type of argument from
4924 void* to data_reference_p.
4925 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4926 (new_poly_bb): Change the type of argument from void* to
4927 gimple_poly_bb_p.
4928 (pbb_set_black_box): Same.
4929 (struct scop): Rename context to param_context, ctx to isl_context.
4930 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4931 Move declarations closer to assignment.
4932 (find_params_in_bb): Same.
4933 (find_scop_parameters): Same.
4934 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4935 Global to be used for statement IDs.
4936 (isl_id_for_pbb): Use ssa_name_version_typesize.
4937 (simple_copy_phi_p): Move declarations closer to assignment.
4938 (build_pbb_scattering_polyhedrons): Same.
4939 (build_scop_scattering): Same.
4940 (isl_id_for_ssa_name): Same.
4941 (extract_affine_name): Same.
4942 (extract_affine_int): Same.
4943 (extract_affine): Same.
4944 (set_scop_parameter_dim): Use renamed member.
4945 (build_loop_iteration_domains): Same.
4946 (add_param_constraints): Same.
4947 (build_scop_iteration_domain): Same.
4948 (pdr_add_data_dimensions): Same.
4949 (build_poly_dr): Same.
4950 (build_scop_drs): Move declarations closer to assignment.
4951 (analyze_drs_in_stmts): Same.
4952 (insert_out_of_ssa_copy): Same.
4953 (insert_out_of_ssa_copy_on_edge): Same.
4954 (propagate_expr_outside_region): Same.
4955 (rewrite_phi_out_of_ssa): Same.
4956 (rewrite_degenerate_phi): Same.
4957 (rewrite_reductions_out_of_ssa): Same.
4958 (rewrite_cross_bb_scalar_dependence): Same.
4959 (handle_scalar_deps_crossing_scop_limits): Same.
4960 (rewrite_cross_bb_scalar_deps): Same.
4961 * graphite.c (graphite_transform_loops): Use renamed member.
4962
4963 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
4964
4965 PR c/65345
4966 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4967 create_tmp_var_raw instead of create_tmp_var.
4968
4969 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4970
4971 PR c/65345
4972 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
4973 Use create_tmp_var_raw instead of create_tmp_var.
4974
4975 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
4976
4977 PR target/67849
4978 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
4979 split for upper-bank registers when target does not support
4980 AVX512VL.
4981 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
4982 split when target does not support AVX512VL.
4983
4984 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
4985
4986 PR c/65345
4987 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
4988 Adjust to use create_tmp_var_raw instead of create_tmp_var.
4989
4990 2015-10-06 Nick Clifton <nickc@redhat.com>
4991
4992 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
4993 multiplication.
4994
4995 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4996
4997 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
4998 (case ${target}): Add znver1.
4999 * config/i386/cpuid.h(bit_CLZERO): Define.
5000 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5001 -march=native recognize znver1 processors.
5002 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5003 znver1, clzero def_and_undef.
5004 * config/i386/i386.c (struct processor_costs znver1_cost): New.
5005 (m_znver1): New definition.
5006 (m_AMD_MULTIPLE): Includes m_znver1.
5007 (processor_target_table): Add znver1 entry.
5008 (ix86_target_string) : Add clzero entry.
5009 (static const char *const cpu_names): Add znver1 entry.
5010 (ix86_option_override_internal): Add znver1 instruction sets.
5011 (PTA_CLZERO) : New definition.
5012 (ix86_option_override_internal): Handle new clzerooption.
5013 (ix86_issue_rate): Add znver1.
5014 (ix86_adjust_cost): Add znver1.
5015 (ia32_multipass_dfa_lookahead): Add znver1.
5016 (has_dispatch): Add znver1.
5017 * config/i386/i386.h (TARGET_znver1): New definition.
5018 (TARGET_CLZERO): Define.
5019 (TARGET_CLZERO_P): Define.
5020 (struct ix86_size_cost): Add TARGET_ZNVER1.
5021 (enum processor_type): Add PROCESSOR_znver1.
5022 * config/i386/i386.md (define_attr "cpu"): Add znver1.
5023 (set_attr znver1_decode): New definitions for znver1.
5024 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
5025 (mclzero): New.
5026 * config/i386/mmx.md (set_attr znver1_decode): New definitions
5027 for znver1.
5028 * config/i386/sse.md (set_attr znver1_decode): Likewise.
5029 * config/i386/x86-tune.def: Add znver1 tunings.
5030 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
5031 * doc/invoke.texi: Add details about znver1
5032
5033 2015-10-06 Richard Biener <rguenther@suse.de>
5034
5035 PR tree-optimization/67859
5036 * tree-ssa-pre.c (create_expression_by_pieces): Properly
5037 discard not inserted stmts.
5038
5039 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
5040
5041 * doc/extend.texi (Template Instantiation): Reorder options and
5042 de-emphasize -frepo.
5043 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
5044 example instead of -frepo.
5045
5046 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
5047
5048 PR c/65345
5049 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
5050 use create_tmp_var_raw rather than create_tmp_var.
5051
5052 2015-10-06 Richard Biener <rguenther@suse.de>
5053
5054 * tree-vectorizer.h (vec_info): New base class for...
5055 (_loop_vec_info): ... this and ...
5056 (_bb_vec_info): ... this.
5057 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
5058 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
5059 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
5060 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
5061 vect_destroy_datarefs): Adjust interface to take a vec_info *
5062 rather than both a loop_vec_info and a bb_vec_info argument.
5063 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
5064 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
5065 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
5066 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
5067 accordingly.
5068 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
5069 (destroy_loop_vec_info, vect_analyze_loop_2,
5070 vect_is_simple_reduction_1, get_initial_def_for_induction,
5071 vect_create_epilog_for_reduction, vectorizable_reduction,
5072 vectorizable_live_operation, vect_transform_loop): Adjust.
5073 * tree-vect-patterns.c (type_conversion_p,
5074 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
5075 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
5076 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
5077 check_bool_pattern, vect_recog_bool_pattern,
5078 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
5079 * tree-vect-slp.c (vect_get_and_check_slp_defs,
5080 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
5081 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
5082 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
5083 (new_bb_vec_info): Initialize base classs.
5084 * tree-vect-stmts.c (record_stmt_cost, process_use,
5085 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
5086 vectorizable_mask_load_store, vectorizable_call,
5087 vectorizable_simd_clone_call, vectorizable_conversion,
5088 vectorizable_assignment, vectorizable_shift,
5089 vectorizable_operation, vectorizable_store,
5090 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
5091 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
5092 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
5093
5094 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
5095
5096 PR c/65345
5097 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
5098 create_tmp_var_raw rather than create_tmp_var.
5099
5100 2015-10-05 Marek Polacek <polacek@redhat.com>
5101
5102 * tree-ssa-loop-im.c
5103 (move_computations_dom_walker::before_dom_children): Don't set
5104 SSA_NAME_ANTI_RANGE_P.
5105 * tree-ssa-phiopt.c (value_replacement): Likewise.
5106
5107 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5108 Sebastian Pop <s.pop@samsung.com>
5109
5110 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
5111
5112 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5113 Sebastian Pop <s.pop@samsung.com>
5114
5115 * graphite-poly.c (new_gimple_poly_bb): ... here.
5116 (free_data_refs_aux): ... here.
5117 (free_gimple_poly_bb): ... here.
5118 (remove_gbbs_in_scop): ... here.
5119 (new_scop): Call new_sese.
5120 (free_scop): Call remove_gbbs_in_scop and free_sese.
5121 * graphite-poly.h (base_alias_pair): ... here.
5122 (new_gimple_poly_bb): Declare.
5123 (free_gimple_poly_bb): Declare.
5124 * graphite-scop-detection.c (parameter_index_in_region_1):
5125 (parameter_index_in_region): ... here.
5126 (scan_tree_for_params): ... here.
5127 (find_params_in_bb): ... here.
5128 (find_scop_parameters): ... here.
5129 (build_scops): Call find_scop_parameters.
5130 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
5131 (free_scops): Move...
5132 (single_pred_cond_non_loop_exit): Move...
5133 (sese_dom_walker::before_dom_children): Move...
5134 (sese_dom_walker::after_dom_children): Move...
5135 (build_poly_scop): Move...
5136 * graphite-sese-to-poly.h (base_alias_pair): Move...
5137 * graphite.c (free_scops): ... here.
5138
5139 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5140 Sebastian Pop <s.pop@samsung.com>
5141
5142 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
5143 (trivially_empty_bb_p): Move...
5144 (same_close_phi_node): Move...
5145 (new_gimple_poly_bb): Move...
5146 (compare_bb_depths): Move...
5147 (graphite_sort_dominated_info): Move...
5148 (remove_duplicate_close_phi): Move...
5149 (make_close_phi_nodes_unique): Move...
5150 (canonicalize_loop_closed_ssa): Move...
5151 (canonicalize_loop_closed_ssa_form): Move...
5152 (loop_ivs_can_be_represented): Move...
5153 (single_pred_cond_non_loop_exit): Move...
5154 (graphite_can_represent_init): Move...
5155 (graphite_can_represent_scev): Move...
5156 (stmt_has_simple_data_refs_p): Move...
5157 (stmt_has_side_effects): Move...
5158 (graphite_can_represent_stmt): Move...
5159 (scop_detection): ... here.
5160 (sese_dom_walker): ... and here.
5161 (build_scops): Call all moved functions.
5162 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
5163 (all_non_dominated_preds_marked_p): Move...
5164 (build_scop_bbs_1): Move...
5165 (build_scop_bbs): Move...
5166 (set_scop_parameter_dim): Move...
5167 (nb_pbbs_in_loops): Move...
5168 (build_poly_scop): Do not call all the moved functions.
5169
5170 2015-10-05 Martin Jambor <mjambor@suse.cz>
5171 Jan Hubicka <hubicka@ucw.cz>
5172
5173 * ipa-cp.c (ipcp_alignment_lattice): New type.
5174 (ipcp_param_lattices): Use the above to represent alignment.
5175 (ipcp_alignment_lattice::print): New function.
5176 (print_all_lattices): Use it to print alignment information.
5177 (ipcp_alignment_lattice::top_p): New function.
5178 (ipcp_alignment_lattice::bottom_p): Likewise.
5179 (ipcp_alignment_lattice::set_to_bottom): Likewise.
5180 (ipcp_alignment_lattice::meet_with_1): Likewise.
5181 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
5182 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
5183 (initialize_node_lattices): Likewise.
5184 (propagate_alignment_accross_jump_function): Work with the new class
5185 for alignment lattices.
5186 (propagate_constants_accross_call): Pass only the alignment lattice to
5187 propagate_alignment_accross_jump_function.
5188 (ipcp_store_alignment_results): Work with the new class for alignment
5189 lattices.
5190
5191 2015-10-05 Marek Polacek <polacek@redhat.com>
5192
5193 PR tree-optimization/67821
5194 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
5195
5196 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
5197
5198 PR other/65021
5199 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
5200 function to...
5201 (mkoffload_cleanup): ... this. Adjust all users.
5202 (maybe_unlink): Look at save_temps and verbose flags instead of
5203 debug flag.
5204 (main): Parse "-save-temps" flag.
5205 (generate_target_descr_file, generate_target_offloadend_file)
5206 (generate_host_descr_file, prepare_target_image): Pass it on.
5207 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5208 (mkoffload_cleanup): New function.
5209 (maybe_unlink): Look at save_temps and verbose flags instead of
5210 debug flag.
5211 (main): Instead of calling utils_cleanup, register atexit handler
5212 for mkoffload_cleanup.
5213 (main): Parse "-save-temps" flag.
5214 (compile_native, main): Pass it on.
5215 * lto-wrapper.c (compile_offload_image): Likewise.
5216
5217 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5218
5219 * gimple.h (gimple_op_ptr): Require a non const gimple *.
5220 (gimple_assign_lhs_ptr): Likewise.
5221 (gimple_assign_rhs1_ptr): Likewise.
5222 (gimple_assign_rhs2_ptr): Likewise.
5223 (gimple_assign_rhs3_ptr): Likewise.
5224 (gimple_call_lhs_ptr): Likewise.
5225 (gimple_call_fn_ptr): Likewise.
5226 (gimple_call_chain_ptr): Likewise.
5227 (gimple_call_arg_ptr): Likewise.
5228 (gimple_cond_lhs_ptr): Likewise.
5229 (gimple_cond_rhs_ptr): Likewise.
5230 (gimple_switch_index_ptr): Likewise.
5231 (gimple_return_retval_ptr): Likewise.
5232
5233 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5234
5235 * gimple.h (gimple_asm_input_op_ptr): Remove.
5236 (gimple_asm_output_op_ptr): Likewise.
5237
5238 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5239
5240 * gimple.h (gimple_location_ptr): Remove.
5241 * tree-vrp.c (check_all_array_refs): Adjust.
5242
5243 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5244
5245 * tree-ssa-operands.c (build_uses): store tree * instead of
5246 tree.
5247 (finalize_ssa_uses): Adjust.
5248 (append_use): Likewise.
5249 (verify_ssa_operands): Likewise.
5250
5251 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5252
5253 * real.h (build_real_truncate): Declare.
5254 * tree.c (build_real_truncate): New function.
5255 (strip_float_extensions): Use it.
5256 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5257 (fold_builtin_hypot, fold_builtin_pow): Likewise.
5258 * match.pd: Likewise.
5259
5260 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5261 Jiong Wang <jiong.wang@arm.com>
5262
5263 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5264
5265 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5266
5267 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5268 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5269 (aarch64_print_operand, aarch64_float_const_representable_p)
5270 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5271 instead of REAL_VALUE_FROM_CONST_DOUBLE.
5272 * config/arc/arc.c (arc_print_operand): Likewise.
5273 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5274 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5275 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5276 Likewise.
5277 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5278 (consttable_16): Likewise.
5279 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5280 * config/avr/avr.c (avr_print_operand): Likewise.
5281 * config/bfin/bfin.md: Likewise (in a define_split).
5282 * config/c6x/c6x.md: Likewise (in a define_split).
5283 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5284 (cr16_print_operand): Likewise.
5285 * config/cris/cris.c (cris_print_operand): Likewise.
5286 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5287 * config/fr30/fr30.c (fr30_print_operand): Likewise.
5288 (fr30_const_double_is_zero): Likewise.
5289 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5290 * config/frv/frv.md: Likewise (in a define_split).
5291 * config/frv/predicates.md (int_2word_operand): Likewise.
5292 * config/h8300/h8300.c (h8300_print_operand): Likewise.
5293 * config/i386/i386.c (standard_80387_constant_p): Likewise.
5294 (ix86_print_operand, ix86_split_to_parts): Likewise.
5295 * config/i386/i386.md: Likewise (in a define_split).
5296 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5297 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5298 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5299 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5300 (print_operand): Likewise.
5301 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5302 * config/mep/mep.md: Likewise (in define_split).
5303 * config/microblaze/microblaze.c (microblaze_const_double_ok)
5304 (print_operand): Likewise.
5305 * config/mips/mips.md (consttable_float): Likewise.
5306 * config/mmix/mmix.c (mmix_intval): Likewise.
5307 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5308 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5309 * config/pa/pa.c (pa_singlemove_string): Likewise.
5310 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5311 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5312 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5313 (output_toc): Likewise.
5314 * config/rs6000/rs6000.md: Likewise (in define_splits).
5315 * config/rx/rx.c (rx_print_operand): Likewise.
5316 * config/s390/s390.c (s390_output_pool_entry): Likewise.
5317 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5318 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5319 (and also in define_splits).
5320 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5321 (fp_high_losum_p): Likewise.
5322 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5323 (*movsf_high): Likewise.
5324 * config/spu/spu.c (const_double_to_hwint): Likewise.
5325 * config/v850/v850.c (const_double_split): Likewise.
5326 * config/vax/vax.c (vax_float_literal): Likewise.
5327 * config/visium/visium.c (visium_expand_copysign): Likewise.
5328 * config/visium/visium.md: Likewise (in define_split).
5329 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5330 * config/xtensa/xtensa.c (print_operand): Likewise.
5331 (xtensa_output_literal): Likewise.
5332 * cprop.c (implicit_set_cond_p): Likewise.
5333 * dwarf2out.c (insert_float): Likewise.
5334 * expmed.c (expand_mult, make_tree): Likewise.
5335 * expr.c (compress_float_constant): Likewise.
5336 * rtlanal.c (split_double): Likewise.
5337 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5338 (simplify_const_unary_operation, simplify_binary_operation_1)
5339 (simplify_const_binary_operation): Likewise.
5340 (simplify_const_relational_operation): Likewise.
5341 * varasm.c (output_constant_pool_2): Likewise.
5342
5343 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5344
5345 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
5346 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5347 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
5348 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
5349 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5350 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
5351 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
5352 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
5353 (ix86_emit_swsqrtsf): Likewise.
5354 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
5355 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5356 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5357 * config/pa/pa.c (pa_expand_builtin): Likewise.
5358 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
5359 (rs6000_scale_v2df): Likewise.
5360 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
5361 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
5362 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
5363 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
5364 (vec_ctul): Likewise.
5365 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
5366 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5367 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5368 * cse.c (fold_rtx): Likewise.
5369 * emit-rtl.c (immed_double_const): Likewise (in comments).
5370 (init_emit_once): Likewise.
5371 * expr.c (compress_float_constant, expand_expr_real_1)
5372 (const_vector_from_tree): Likewise.
5373 * optabs.c (expand_float, expand_fix): Likewise.
5374 * reg-stack.c (reg_to_stack): Likewise.
5375 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5376 (simplify_const_unary_operation, simplify_binary_operation_1)
5377 (simplify_const_binary_operation, simplify_relational_operation)
5378 (simplify_immed_subreg): Likewise.
5379
5380 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5381
5382 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5383 * doc/tm.texi: Regenerate.
5384 * real.h (REAL_ARITHMETIC): Delete.
5385 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5386 (ix86_expand_round_sse4): Use real_arithmetic instead of
5387 REAL_ARITHMETIC.
5388 * config/i386/sse.md (round<mode>2): Likewise.
5389 * rtl.h (rtx_to_tree_code): Likewise (in comment).
5390 * explow.c (rtx_to_tree_code): Likewise (in comment).
5391 * match.pd: Likewise.
5392 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5393 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5394 (expand_pow_as_sqrts): Likewise.
5395 * tree-pretty-print.c (dump_generic_node): Remove code that
5396 was conditional on REAL_ARITHMETIC being undefined.
5397
5398 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5399
5400 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5401 * doc/tm.texi: Regenerate.
5402 * real.h (real_less): Declare.
5403 (REAL_VALUES_LESS): Delete.
5404 * real.c (real_less): New function.
5405 (real_compare): Use it.
5406 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5407 of REAL_VALUES_LESS.
5408 * config/microblaze/microblaze.c (microblaze_const_double_ok):
5409 Likewise.
5410 * fold-const.c (fold_convert_const_int_from_real): Likewise.
5411 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5412 (simplify_const_relational_operation): Likewise.
5413 * tree-call-cdce.c (check_pow): Likewise.
5414 (gen_conditions_for_pow_cst_base): Likewise.
5415
5416 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5417
5418 * real.h (REAL_VALUES_IDENTICAL): Delete.
5419 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5420 instead of REAL_VALUES_IDENTICAL.
5421 * fold-const.c (operand_equal_p): Likewise.
5422 * ipa-icf.c (sem_variable::equals): Likewise.
5423 * tree-complex.c (some_nonzerop): Likewise.
5424 (expand_complex_multiplication): Likewise.
5425 * tree.c (simple_cst_equal): Likewise.
5426 * varasm.c (compare_constant): Likewise.
5427
5428 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5429
5430 * real.h (real_equal): Declare.
5431 (REAL_VALUES_EQUAL): Delete.
5432 * real.c (real_equal): New function.
5433 (real_compare): Use it.
5434 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5435 * doc/tm.texi: Regenerate.
5436 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5437 real_equal instead of REAL_VALUES_EQUAL.
5438 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5439 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5440 (fp_const_from_val): Likewise.
5441 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5442 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5443 (floating_exact_log2): Likewise.
5444 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5445 * config/vax/vax.c (vax_float_literal): Likewise.
5446 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5447 * cprop.c (implicit_set_cond_p): Likewise.
5448 * expmed.c (expand_mult): Likewise.
5449 * fold-const.c (const_binop): Likewise.
5450 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5451 (simplify_const_binary_operation): Likewise.
5452 (simplify_const_relational_operation): Likewise.
5453 * tree-call-cdce.c (check_pow): Likewise.
5454 (gen_conditions_for_pow_cst_base): Likewise.
5455 * tree-inline.c (estimate_num_insns): Likewise.
5456 * tree-ssa-dom.c (record_equality): Likewise.
5457 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5458 (gimple_expand_builtin_pow): Likewise.
5459 (pass_optimize_widening_mul::execute): Likewise.
5460 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5461 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5462 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5463
5464 2015-10-05 Richard Biener <rguenther@suse.de>
5465
5466 PR ipa/67783
5467 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5468 consider loop header PHI defs as IVs.
5469
5470 2015-10-05 Richard Biener <rguenther@suse.de>
5471
5472 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5473 call handling ...
5474 (create_expression_by_pieces): ... here and build GIMPLE
5475 calls directly. Use gimple_build API and avoid force_gimple_operand.
5476 (insert_into_preds_of_block): Simplify.
5477 (do_regular_insertion): Add comment.
5478
5479 2015-10-04 Jason Merrill <jason@redhat.com>
5480
5481 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5482
5483 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
5484
5485 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5486 check for general register.
5487 (ix86_emit_save_regs): Ditto.
5488 (ix86_emit_save_regs_using_mov): Ditto.
5489 (ix86_emit_restore_regs_using_pop): Ditto.
5490 (ix86_emit_restore_regs_using_mov): Ditto.
5491
5492 2015-10-03 Marek Polacek <polacek@redhat.com>
5493
5494 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5495 (insn-dfatab.o): Likewise.
5496
5497 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
5498
5499 * config.gcc (xtensa*-*-uclinux*): New configuration.
5500 * config/xtensa/uclinux.h: New file.
5501 * config/xtensa/uclinux.opt: New file.
5502
5503 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
5504
5505 * doc/cpp.texi (Standard Predefined Macros): Document value of
5506 __cplusplus for C++14.
5507
5508 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
5509
5510 * gcc.c (process_command): Use spec_machine rather than
5511 spec_host_machine to build tooldir_prefix2.
5512
5513 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5514 Bernd Schmidt <bernds@codesourcery.com>
5515
5516 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5517 (Token, Stmt): Remove structs.
5518 (decls, vars, fns): Remove variables.
5519 (alloc_comment, append_stmt, is_keyword): Remove macros.
5520 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5521 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5522 (parse_init, parse_file): Remove functions.
5523 (read_file): Accept a pointer to a length and store into it.
5524 (process): Don't try to parse the input file, just write it out as
5525 a string, but looking for maps. Also write out the length.
5526 (main): Don't use "-S" to compile PTX code.
5527
5528 2015-10-02 Jeff Law <law@redhat.com>
5529
5530 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5531 fixups.
5532
5533 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5534
5535 PR target/67822
5536 * config/nvptx/mkoffload.c (main): Scan the argument vector for
5537 -fopenmp, and skip generating an offloading image if specified.
5538
5539 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
5540
5541 * system.h (ROUND_UP): New macro definition.
5542 (ROUND_DOWN): Ditto.
5543 * ggc-page.c (ROUND_UP): Remove local macro definition.
5544 (PAGE_ALIGN): Implement using ROUND_UP macro.
5545
5546 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5547 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5548 to align values.
5549 (ix86_compute_frame_layout): Ditto.
5550 (ix86_expand_prologue): Ditto.
5551 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5552 to round down values.
5553 (expand_set_or_movmem_via_rep): Ditto.
5554
5555 2015-10-02 Marek Polacek <polacek@redhat.com>
5556
5557 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5558
5559 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
5560
5561 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5562 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5563 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5564 (free_gimple_bb): Renamed free_gimple_poly_bb.
5565 (try_generate_gimple_bb): Hoist loop invariant code.
5566 (analyze_drs_in_stmts): Same.
5567 (build_scop_drs): Call renamed functions.
5568 (new_pbb_from_pbb): Same.
5569 (scop_ivs_can_be_represented): Delete as functionality now moved to
5570 graphite-scop-detection.c
5571 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5572
5573 2015-10-02 Aditya Kumar <hiraditya@msn.com>
5574
5575 * graphite-scop-detection.c (stmt_has_side_effects): New function
5576 outlined from stmt_simple_for_scop_p.
5577 (graphite_can_represent_stmt): Same.
5578 (stmt_simple_for_scop_p): Moved code out of this function for better
5579 readability.
5580
5581 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5582
5583 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5584 F_AVX512IFMA.
5585 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5586
5587 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5588
5589 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5590
5591 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
5592
5593 PR rtl-optimization/67756
5594 * lra-constraints.c (match_reload): Add a new parameter. Use it
5595 for creating a pseudo with the same value.
5596 (curr_insn_transform): Pass a new argument to match_reload.
5597
5598 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5599
5600 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5601 (expand_vec_perm_even_odd_1): Handle V64QImode.
5602 (ix86_expand_vec_perm_const_1): Try expansion with
5603 expand_vec_perm_even_odd_trunc as well.
5604 * config/i386/sse.md (VI124_AVX512F): Rename to ...
5605 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5606 to V54QI.
5607 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5608 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5609 to V32HI and V16SI.
5610 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5611 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5612 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5613 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5614 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5615 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5616
5617 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5618
5619 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5620 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5621
5622 2015-10-02 Jason Merrill <jason@redhat.com>
5623
5624 PR c/59218
5625 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5626 (diagnose_tm_1_op): Also diagnose volatile accesses in
5627 transaction_safe function.
5628
5629 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
5630
5631 * system.h (malloc.h): Don't include obsolete header.
5632
5633 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5634
5635 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5636 (TLS_SECTION_ASM_FLAG): Delete.
5637
5638 2015-10-02 Marek Polacek <polacek@redhat.com>
5639
5640 PR c/64249
5641 * doc/invoke.texi: Document -Wduplicated-cond.
5642 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5643 (insn-dfatab.o): Likewise.
5644 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5645 warning.
5646
5647 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
5648
5649 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5650 sequences.
5651
5652 2015-10-02 Renlin Li <renlin.li@arm.com>
5653
5654 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5655
5656 2015-10-02 Renlin Li <renlin.li@arm.com>
5657
5658 PR target/66776
5659 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5660
5661 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5662
5663 PR rtl-optimization/67786
5664 PR rtl-optimization/67787
5665 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5666 it modifies a reg used in the condition calculation.
5667
5668 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
5669
5670 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5671 alternatives for reads from memory and moves from general-purpose
5672 registers.
5673 (*aarch64_combinez_be<mode>): Likewise.
5674
5675 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
5676
5677 PR target/51726
5678 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5679 selectany within this function without need to keep attribute.
5680 (i386_pe_encode_section_info): Remove selectany-code.
5681
5682 2015-10-02 Richard Biener <rguenther@suse.de>
5683
5684 * tree-ssa-sccvn.c (has_VN_INFO): New function.
5685 (free_scc_vn): Use it.
5686 (visit_use): Remove dead code and refactor to use gassign
5687 and use less indentation.
5688
5689 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5690
5691 PR target/67788
5692 PR target/67789
5693 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5694 (rs6000_cannot_copy_insn_p): New function.
5695 * config/rs6000/rs6000.md (cannot_copy): New attribute.
5696 (load_toc_v4_PIC_1_normal): Set cannot_copy.
5697 (load_toc_v4_PIC_1_476): Ditto.
5698
5699 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5700
5701 * graphite-scop-detection.c (struct sese_l): New conversion constructor
5702 so that this type can be pushed into a vec.
5703 (class scop_builder): use sese_l to collect scops.
5704 (get_scops): New getter function.
5705 (remove_intersecting_scops): Use sese_l instead of scops_p.
5706 (intersects): Same.
5707 (add_scop): Same.
5708 (subsumes): Same.
5709 (remove_subscops): Same.
5710 (build_scops): Add scops to vec<scops_p> once all the scops have been
5711 detected.
5712
5713 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5714
5715 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5716 Renamed type from gimple_bb_p to gimple_poly_bb_p.
5717 (translate_isl_ast_node_user): Same.
5718 * graphite-poly.c (new_poly_bb): Same.
5719 * graphite-poly.h (gbb_from_bb): Same.
5720 * sese.h: Same.
5721 * graphite-sese-to-poly.c (new_gimple_bb):
5722 gimple_bb_p -> gimple_poly_bb_p
5723 (build_scop_scattering): Same.
5724 (find_params_in_bb): Same.
5725 (add_conditions_to_domain): Same.
5726 (sese_dom_walker::before_dom_children): Same.
5727 (analyze_drs_in_stmts): Same.
5728 (new_pbb_from_pbb): Same.
5729 (free_data_refs_aux): New pointer to type base_alias_pair.
5730 * graphite-sese-to-poly.h: Same.
5731 * sese.c (if_region_set_false_region): Fixed Indentation.
5732 (move_sese_in_condition): Same.
5733
5734 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5735 Aditya Kumar <aditya.k7@samsung.com>
5736
5737 PR tree-optimization/66980
5738 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5739 when data reference analysis has failed.
5740
5741 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5742 Aditya Kumar <aditya.k7@samsung.com>
5743
5744 PR tree-optimization/67754
5745 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5746 scev analysis on the same loop nest as analyze_drs_in_stmts.
5747 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5748 renamed...
5749 (try_generate_gimple_bb): Call outermost_loop_in_sese.
5750 (analyze_drs_in_stmts): Same.
5751 * sese.c (outermost_loop_in_sese): ...here.
5752
5753 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5754 Aditya Kumar <aditya.k7@samsung.com>
5755
5756 PR tree-optimization/67754
5757 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5758 recursion on the inner loops.
5759
5760 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5761
5762 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5763 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5764 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5765 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5766 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5767
5768 2015-10-01 Marek Polacek <polacek@redhat.com>
5769
5770 PR c/65345
5771 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5772 create_tmp_var_raw rather than create_tmp_var.
5773
5774 2015-10-01 Marek Polacek <polacek@redhat.com>
5775
5776 PR tree-optimization/67769
5777 * tree-ssa-phiopt.c (conditional_replacement): Call
5778 reset_flow_sensitive_info_in_bb.
5779 (minmax_replacement): Likewise.
5780 (abs_replacement): Likewise.
5781
5782 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
5783
5784 * builtins.c: Don't include gomp-constants.h.
5785 (fold_builtin_1): Don't fold acc_on_device here.
5786 * gimple-fold.c: Include gomp-constants.h.
5787 (gimple_fold_builtin_acc_on_device): New.
5788 (gimple_fold_builtin): Call it.
5789
5790 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
5791
5792 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5793 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5794
5795 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
5796
5797 * config/arm/aarch-common-protos.h
5798 (aarch_accumulator_forwarding): New.
5799 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5800 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5801 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5802 * config/arm/cortex-a53.md: Rewrite.
5803
5804 2015-10-01 Richard Biener <rguenther@suse.de>
5805
5806 * gimple-match.h (mprts_hook): Declare.
5807 * gimple-match.head.c (mprts_hook): Define.
5808 (maybe_push_res_to_seq): Use new hook.
5809 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5810 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5811 (vn_ssa_aux::has_constants): Remove.
5812 * tree-ssa-sccvn.c: Include gimple-match.h.
5813 (VN_INFO_GET): Assert we don't re-use SSA names.
5814 (vn_get_expr_for): Remove.
5815 (expr_has_constants): Likewise.
5816 (stmt_has_constants): Likewise.
5817 (simplify_binary_expression): Likewise.
5818 (simplify_unary_expression): Likewise.
5819 (vn_lookup_simplify_result): New hook.
5820 (visit_copy): Adjust.
5821 (visit_reference_op_call): Likewise.
5822 (visit_phi): Likewise.
5823 (visit_use): Likewise.
5824 (process_scc): Likewise.
5825 (init_scc_vn): Likewise.
5826 (visit_reference_op_load): Likewise. Use match-and-simplify and
5827 a gimple seq for inserted expressions.
5828 (try_to_simplify): Remove GENERIC stmt combining code.
5829 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5830 * tree-ssa-pre.c (eliminate_insert): Adjust.
5831 (eliminate_dom_walker::before_dom_children): Likewise.
5832
5833 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5834
5835 * doc/invoke.texi (Optimization Options): Add
5836 -freorder-blocks-algorithm=.
5837 (Optimize Options) <-O>: Add -freorder-blocks.
5838 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
5839 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5840 <-freorder-blocks>: Also enabled at levels -O and -Os.
5841 <-freorder-blocks-algorithm=>: Document new option.
5842
5843 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5844
5845 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5846 with flag_reorder_blocks_algorithm.
5847 * common.opt (freorder-blocks-algorithm=): New flag.
5848 (reorder_blocks_algorithm): New enum.
5849 * flag-types.h (reorder_blocks_algorithm): New enum.
5850 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5851 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5852
5853 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5854
5855 * bb-reorder.c: Add intro comment.
5856 (reorder_basic_blocks_software_trace_cache): Print a header to
5857 the dump file.
5858 (edge_order): New function.
5859 (reorder_basic_blocks_simple): New function.
5860 (reorder_basic_blocks): Choose between the STC and the simple
5861 algorithms (always choose the former).
5862
5863 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5864
5865 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5866 function, factored out from ...
5867 (reorder_basic_blocks): ... here.
5868
5869 2015-10-01 Tom de Vries <tom@codesourcery.com>
5870
5871 * tree-cfg.c (dump_function_to_file): Dump function attributes using
5872 __attribute__(()) string. Move dumping of function attributes to before
5873 function name.
5874
5875 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
5876
5877 PR target/66870
5878 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5879 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5880 based on gold linker version.
5881 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5882 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5883 * configure, config.in: Regenerate.
5884
5885 2015-10-01 Alan Modra <amodra@gmail.com>
5886
5887 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5888 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5889 (rs6000_output_mi_thunk): Likewise.
5890
5891 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5892
5893 * config/nvptx/mkoffload.c (process): Change offload data format.
5894
5895 2015-09-30 Jeff Law <law@redhat.com>
5896
5897 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5898 with constant conditions.
5899 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5900 (remove_ctrl_stmt_and_useless_edges): No longer static.
5901 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5902 (remove_ctrl_stmt_and_useless_edges): Likewise.
5903
5904 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5905 Cesar Philippidis <cesar@codesourcery.com>
5906
5907 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5908 (TARGET_GOACC_VALIDATE_DIMS): Override.
5909 * target.def (TARGET_GOACC): New target hook prefix.
5910 (validate_dims): New hook.
5911 * targhooks.h (default_goacc_validate_dims): New.
5912 * omp-low.c (oacc_validate_dims): New.
5913 (execute_oacc_device_lower): New.
5914 (default_goacc_validate_dims): New.
5915 (pass_data_oacc_device_lower): New.
5916 (pass_oacc_device_lower): New pass.
5917 (make_pass_oacc_device_lower): New.
5918 * tree-pass.h (make_pass_oacc_device_lower): Declare.
5919 * passes.def (pass_oacc_device_lower): Add it.
5920 * doc/tm.texi: Rebuilt.
5921 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5922 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5923
5924 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5925
5926 PR rtl-optimization/67037
5927 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5928
5929 2015-09-30 Bernd Schmidt <bernds@redhat.com>
5930
5931 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5932 * passes.c: Include tree-ssanames.h.
5933 (execute_function_todo): Flush the pending free SSA_NAMEs after
5934 eliminating unreachable basic blocks.
5935 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5936 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5937 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5938 (flush_ssanames_freelist): New function.
5939 (release_ssaname_fn): Put released names on the queue.
5940 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5941 * tree-ssanames.h (flush_ssanames_freelist): Declare.
5942
5943 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5944
5945 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5946 (generate_target_descr_file, generate_target_offloadend_file)
5947 (generate_host_descr_file, prepare_target_image): Pass it on.
5948 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5949 (compile_native, main): Pass it on.
5950 * lto-wrapper.c (compile_offload_image): Likewise.
5951
5952 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5953 Ilya Verbin <ilya.verbin@intel.com>
5954 Andrey Turetskiy <andrey.turetskiy@intel.com>
5955
5956 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5957 (prepare_target_image, main): Refactor argv building to use
5958 obstacks.
5959
5960 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5961
5962 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5963 * config/spu/spu.c (spu_expand_atomic_op): New function.
5964 * config/spu/spu.md (AINT): New mode iterator.
5965 (ATOMIC): New code iterator.
5966 (atomic_name, atomic_pred): New code predicates.
5967 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5968 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5969 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5970 "atomic_<atomic_name>_fetch<mode>"): Likewise.
5971
5972 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
5973
5974 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
5975 debug insns.
5976 (scalar_chain::convert_reg): Likewise.
5977
5978 2015-09-30 Richard Biener <rguenther@suse.de>
5979
5980 * builtins.c: Add comment that no new simplifications should
5981 be added here.
5982
5983 2015-09-30 Marek Polacek <polacek@redhat.com>
5984
5985 PR tree-optimization/67690
5986 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
5987 reset_flow_sensitive_info_in_bb.
5988 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
5989 * tree-ssanames.c: Include "gimple-iterator.h".
5990 (reset_flow_sensitive_info_in_bb): New function.
5991 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
5992
5993 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5994
5995 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
5996 variable, replacing it with...
5997 (offload_abi): ... this new variable. Adjust all users.
5998 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
5999
6000 2015-09-30 Matthias Klose <doko@ubuntu.com>
6001
6002 * configure.ac: Remove extraneous ;;.
6003 * configure: Regenerate.
6004
6005 2015-09-29 James Bowman <james.bowman@ftdichip.com>
6006
6007 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
6008 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
6009 predicate, disallow register for operand 2.
6010
6011 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
6012
6013 * graphite-dependences.c (scop_get_dependences): Moved in down
6014 in order to be visible to its caller.
6015 * graphite-poly.h: Removed compute_deps, and extend_schedule.
6016
6017 2015-09-29 Sebastian Pop <s.pop@samsung.com>
6018 Aditya Kumar <aditya.k7@samsung.com>
6019
6020 PR tree-optimization/67754
6021 * graphite-optimize-isl.c (optimize_isl): Call
6022 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
6023
6024 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6025
6026 * builtins.c (expand_builtin_acc_on_device): Delete.
6027 (expand_builtin): Don't call it.
6028 (fold_builtin_1): Fold acc_on_device.
6029
6030 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
6031
6032 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
6033 (ix86_nsaved_sseregs): Likewise.
6034
6035 2015-09-29 Jeff Law <law@redhat.com>
6036
6037 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
6038 computation of unused value.
6039
6040 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
6041 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
6042 inline macro expansion.
6043
6044 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
6045
6046 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
6047 (gen_shl_sext): Likewise.
6048 * config/sh/sh.md (divsi3): Likewise.
6049 (imm->ext_dest_operand splitter): Likewise.
6050
6051 2015-09-29 Sebastian Pop <s.pop@samsung.com>
6052 Aditya Kumar <aditya.k7@samsung.com>
6053
6054 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
6055 (nb_data_writes_in_bb): Remove.
6056 (split_pbb): Remove.
6057 (split_reduction_stmt): Remove.
6058 (is_reduction_operation_p): Remove.
6059 (phi_contains_arg): Remove.
6060 (follow_ssa_with_commutative_ops): Remove.
6061 (detect_commutative_reduction_arg): Remove.
6062 (detect_commutative_reduction_assign): Remove.
6063 (follow_inital_value_to_phi): Remove.
6064 (edge_initial_value_for_loop_phi): Remove.
6065 (initial_value_for_loop_phi): Remove.
6066 (used_outside_reduction): Remove.
6067 (detect_commutative_reduction): Remove.
6068 (translate_scalar_reduction_to_array_for_stmt): Remove.
6069 (remove_phi): Remove.
6070 (dr_indices_valid_in_loop): Remove.
6071 (close_phi_written_to_memory): Remove.
6072 (translate_scalar_reduction_to_array): Remove.
6073 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
6074 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
6075 (rewrite_commutative_reductions_out_of_ssa): Remove.
6076 (build_poly_scop): Remove call to
6077 rewrite_commutative_reductions_out_of_ssa.
6078
6079 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
6080
6081 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
6082 Add new insn types for vector load and store pairs.
6083 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
6084 types "neon_ldp{,_q}".
6085 * config/arm/cortex-a57.md (neon_load_c): Add insn types
6086 "neon_ldp{,_q}".
6087 (neon_store_complex): Add insn types "neon_stp{,_q}".
6088 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
6089 "neon_{ldp,stp}_q".
6090
6091 2015-09-29 Jeff Law <law@redhat.com>
6092
6093 * config/rx/constraints.md (Int08): Fix undefined left shift
6094 behaviour.
6095 (Sint08, Sint16, Sint24): Likewise.
6096 * config/rx/rx.c (rx_get_stack_layout): Likewise.
6097
6098 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
6099 behaviour.
6100
6101 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
6102 left shift behaviour.
6103 * config/msp430/constraints.md ('L' constraint): Similarly.
6104 ('Ys' constraint): Similarly.
6105
6106 2015-09-29 Richard Biener <rguenther@suse.de>
6107
6108 PR tree-optimization/67170
6109 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
6110 the translate function pointer parameter to get the
6111 bool whether to disambiguate only by reference.
6112 (walk_non_aliased_vuses): Likewise.
6113 * tree-ssa-alias.c (maybe_skip_until): Adjust.
6114 (get_continuation_for_phi_1): Likewise.
6115 (get_continuation_for_phi): Likewise.
6116 (walk_non_aliased_vuses): Likewise.
6117 * tree-ssa-sccvn.c (const_parms): New bitmap.
6118 (vn_reference_lookup_3): Adjust for interface change.
6119 Disambiguate parameters pointing to readonly memory.
6120 (free_scc_vn): Free const_parms.
6121 (run_scc_vn): Initialize const_parms from a fn spec attribute.
6122
6123 2015-09-29 Richard Biener <rguenther@suse.de>
6124
6125 PR tree-optimization/67741
6126 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
6127 builtin calls with correct signature.
6128
6129 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
6130
6131 PR target/65105
6132 * config/i386/i386.c: Include dbgcnt.h.
6133 (has_non_address_hard_reg): New.
6134 (convertible_comparison_p): New.
6135 (scalar_to_vector_candidate_p): New.
6136 (remove_non_convertible_regs): New.
6137 (scalar_chain): New.
6138 (scalar_chain::scalar_chain): New.
6139 (scalar_chain::~scalar_chain): New.
6140 (scalar_chain::add_to_queue): New.
6141 (scalar_chain::mark_dual_mode_def): New.
6142 (scalar_chain::analyze_register_chain): New.
6143 (scalar_chain::add_insn): New.
6144 (scalar_chain::build): New.
6145 (scalar_chain::compute_convert_gain): New.
6146 (scalar_chain::replace_with_subreg): New.
6147 (scalar_chain::replace_with_subreg_in_insn): New.
6148 (scalar_chain::emit_conversion_insns): New.
6149 (scalar_chain::make_vector_copies): New.
6150 (scalar_chain::convert_reg): New.
6151 (scalar_chain::convert_op): New.
6152 (scalar_chain::convert_insn): New.
6153 (scalar_chain::convert): New.
6154 (convert_scalars_to_vector): New.
6155 (pass_data_stv): New.
6156 (pass_stv): New.
6157 (make_pass_stv): New.
6158 (ix86_option_override): Created and register stv pass.
6159 (flag_opts): Add -mstv.
6160 (ix86_option_override_internal): Likewise.
6161 * config/i386/i386.md (SWIM1248x): New.
6162 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
6163 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
6164 (*anddi3_doubleword): New.
6165 (*zext<mode>_doubleword): New.
6166 (*zextsi_doubleword): New.
6167 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
6168 (*<code>di3_doubleword): New.
6169 * config/i386/i386.opt (mstv): New.
6170 * dbgcnt.def (stv_conversion): New.
6171
6172 2015-09-29 Tom de Vries <tom@codesourcery.com>
6173
6174 * tree-cfg.c (dump_function_to_file): Dump function attributes.
6175
6176 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
6177
6178 PR target/67716
6179 * config/sh/sh.c (sh_override_options_after_change): New.
6180 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6181 (sh_option_override): Move align_loops, align_jumps and
6182 align_functions handling into sh_override_options_after_change.
6183
6184 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6185
6186 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
6187 (nvptx_record_offload_symbol): Record function execution geometry.
6188 * config/nvptx/mkoffload.c (process): Include launch geometry in
6189 function data.
6190 * omp-low.c (oacc_launch_pack): New.
6191 (replace_oacc_fn_attrib): New.
6192 (set_oacc_fn_attrib): New.
6193 (get_oacc_fn_attrib): New.
6194 (expand_omp_target): Create keyed varargs for GOACC_parallel call
6195 generation.
6196 * omp-low.h (get_oacc_fn_attrib): Declare.
6197 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
6198 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6199 * tree.h (OMP_CLAUSE_EXPR): New.
6200 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6201
6202 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6203 Sebastian Pop <s.pop@samsung.com>
6204
6205 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6206
6207 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6208 Sebastian Pop <s.pop@samsung.com>
6209
6210 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6211 * graphite-scop-detection.c (struct sese_l): New type.
6212 (get_entry_bb): API for getting entry bb of SESE.
6213 (get_exit_bb): API for getting exit bb of SESE.
6214 (class debug_printer): New type. Simple printer in debug mode.
6215 (trivially_empty_bb_p): New. Return true when BB is empty or
6216 contains only debug instructions.
6217 (graphite_can_represent_expr): Call scalar_evoution_in_region
6218 instead of analyze_scalar_evolution. Pass in scop instead of only
6219 the scop entry.
6220 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6221 scop entry.
6222 (stmt_simple_for_scop_p): Same.
6223 (harmful_stmt_in_bb): Same.
6224 (graphite_can_represent_loop): Deleted.
6225 (struct scopdet_info): Deleted.
6226 (scopdet_basic_block_info): Deleted.
6227 (build_scops_1): Deleted.
6228 (bb_in_sd_region): Deleted.
6229 (find_single_entry_edge): Deleted.
6230 (find_single_exit_edge): Deleted.
6231 (create_single_entry_edge): Deleted.
6232 (sd_region_without_exit): Deleted.
6233 (create_single_exit_edge): Deleted.
6234 (unmark_exit_edges): Deleted.
6235 (mark_exit_edges): Deleted.
6236 (create_sese_edges): Deleted.
6237 (build_graphite_scops): Deleted.
6238 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6239 (build_scops): Use the new scop_builder to build scops.
6240 (dot_all_scops_1): Use the new pretty printer. Print loop father
6241 as well.
6242 (loop_body_is_valid_scop): New. Return true if loop body is a
6243 valid scop.
6244 (class scop_builder): New. Builds SCoPs for polyhedral
6245 optimizations.
6246 (scop_builder): New constructor.
6247 (static sese_l invalid_sese): sese_l with invalid edges.
6248 (get_sese): Get an sese (from a loop) if possible, invalid_sese
6249 otherwise.
6250 (get_nearest_dom_with_single_entry): Get nearest dominator of a
6251 basic_block with single entry. Return NULL if we get to the
6252 beginning of a function.
6253 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6254 a basic_block with single exit. Return NULL if we get to the
6255 beginning of a function.
6256 (print_sese): Pretty-print SESE.
6257 (merge_sese): Merge two SESEs if possible and return the new SESE.
6258 (build_scop_depth): Start building the SCoP within a loop nest.
6259 (build_scop_breadth): Start building the SCoP at a single loop
6260 depth. Merge adjacent SESEs if valid.
6261 (can_represent_loop_1): Returns true if Graphite can represent
6262 loop inside SCoP. Helper for can_represent_loop.
6263 (can_represent_loop): Returns true if Graphite can represent LOOP
6264 and all its nested loops in SCoP.
6265 (loop_is_valid_scop): Returns true if LOOP and all its nests
6266 constitute a valid SCoP.
6267 (region_has_one_loop): Returns true of a region has only one loop.
6268 (add_scop): Add SCoP to the list of valid scops. Removes an
6269 already existing scop if it intersects with or subsumed by this one.
6270 (harmful_stmt_in_region): Returns true if SCoP has any statment
6271 which cannot be represented by Graphite.
6272 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6273 (remove_subscops): Remove any SCoP from the list of already found
6274 SCoPs, if subsumed by S1.
6275 (intersects): Return true if region bounded by SCoPs S1 and S2
6276 intersect.
6277 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6278 * graphite.c (print_graphite_scop_statistics):
6279 (print_graphite_statistics): Print SCoP info while debugging.
6280 (graphite_initialize): Early exit in case number of loops in a
6281 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6282 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6283 (graphite_finalize):
6284 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6285 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6286 (recompute_all_dominators): Recalculate POST_DOMINATORS.
6287 * tree-cfg.c (print_loops): Print the function name while printing
6288 loops.
6289
6290 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6291 Sebastian Pop <s.pop@samsung.com>
6292
6293 PR tree-optimization/67700
6294 * graphite-sese-to-poly.c (parameter_index_in_region): Call
6295 invariant_in_sese_p_rec.
6296 (extract_affine): Same.
6297 (rewrite_cross_bb_scalar_deps): Call update_ssa.
6298 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
6299 * sese.h (invariant_in_sese_p_rec): Declare.
6300
6301 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
6302
6303 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6304
6305 2015-09-28 Jiong Wang <jiong.wang@arm.com>
6306
6307 Revert:
6308 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6309 Jiong Wang <jiong.wang@arm.com>
6310
6311 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6312 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6313 (REG_CLASS_NAMES): Likewise.
6314 (REG_CLASS_CONTENTS): Likewise.
6315 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6316 (aarch64_register_move_cost): Likewise.
6317 (aarch64_load_symref_appropriately): Invoke the new added pattern if
6318 possible.
6319 * config/aarch64/constraints.md (Uc0): New constraint.
6320
6321 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
6322
6323 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6324
6325 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
6326
6327 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6328 SECTION_EXCLUDE in XO mapping class.
6329
6330 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6331
6332 PR target/54236
6333 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6334 and handle ne and eq codes.
6335 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6336 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
6337 CONST_INT_P. Use reverse_condition.
6338 (sh_split_treg_set_expr): Likewise.
6339
6340 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
6341
6342 * config/arm/types.md (type): Add rotate_imm.
6343 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
6344 ROR immediate case.
6345 (*rorsi3_insn_uxtw): Likewise.
6346 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
6347 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
6348 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
6349
6350 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6351
6352 PR rtl-optimization/67481
6353 * ifcvt.c (contains_ccmode_rtx_p): New function.
6354 (insn_valid_noce_process_p): Use it.
6355
6356 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6357
6358 PR rtl-optimization/67456
6359 PR rtl-optimization/67464
6360 PR rtl-optimization/67465
6361 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
6362 move in the mode of x. Handle combination of complex and simple
6363 block pairs as well as the case when one is empty.
6364
6365 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6366
6367 * doc/gimple.texi: Update references to gimple_statement_base.
6368 * gdbhooks.py: Likewise.
6369 * gimple.h: Likewise.
6370
6371 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6372
6373 * config/sparc/driver-sparc.c: map LEON to leon3
6374
6375 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6376
6377 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6378 and make it inverse to change default
6379 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6380 supervisor mode
6381 * doc/invoke.texi: Document change of default
6382
6383 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6384
6385 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6386 true on %f0 for a target without FPU.
6387 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6388 without FPU.
6389 (untyped_return): Do not load %f0 for a target without FPU.
6390
6391 2015-09-28 Andrew Pinski <apinski@cavium.com>
6392
6393 * config/aarch64/aarch64.md (prefetch):
6394 Change the predicate of operand 0 to register_operand.
6395
6396 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
6397
6398 * config/i386/predicates.md (register_sse4nonimm_operand): New
6399 predicate.
6400 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6401 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6402 Use register_sse4nonimm_operand as operand 0 predicate.
6403 (*vec_extractv8hi_sse2): Remove insn pattern.
6404 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6405 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6406
6407 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6408 Kaz Kojima <kkojima@gcc.gnu.org>
6409
6410 PR target/67391
6411 * config/sh/sh-protos.h (sh_lra_p): Declare.
6412 * config/sh/sh.c (sh_lra_p): Make non-static.
6413 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6414 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
6415 Expand into addsi3_scr if operands[2] if needed.
6416 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
6417 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
6418 (addsi3_scr, *addsi3): New insn_and_split patterns.
6419
6420 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
6421
6422 PR rtl-optimization/64164
6423 PR tree-optimization/67312
6424 PR middle-end/67340
6425 PR middle-end/67490
6426 PR bootstrap/67597
6427 * cfgexpand.c (parm_in_stack_slot_p): Remove.
6428 (ssa_default_def_partition): Remove.
6429 (get_rtl_for_parm_ssa_default_def): Remove.
6430 (set_rtl): Check that RTL assignments match expectations.
6431 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
6432 default def location for params and results. Record SSA names
6433 or types in REG and MEM attrs, respectively.
6434 (set_parm_rtl): New.
6435 (expand_one_ssa_partition): Drop logic that assigned MEMs with
6436 unassigned addresses.
6437 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6438 deferred stack alloc vars.
6439 (expand_used_vars): Skip partitions holding parm default defs.
6440 Move adjust_one_expanded_partition_var loop...
6441 (pass_expand::execute): ... here. Drop redundant assert.
6442 Adjust comments before the final loop over all ssa names.
6443 Require assigned rtl of parms and results to match exactly.
6444 Reset its attributes to match them, not any other variables in
6445 the same partition.
6446 (expand_debug_expr): Use entry value for PARM's default defs
6447 only iff they have zero nondebug uses.
6448 * cfgexpand.h (parm_in_stack_slot_p): Remove.
6449 (get_rtl_for_parm_ssa_default_def): Remove.
6450 (set_parm_rtl): Declare.
6451 * doc/invoke.texi: Improve wording.
6452 * explow.c (promote_decl_mode): Fix promote_function_mode for
6453 result decls not by reference.
6454 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6455 bypass TYPE_MODE to get the actual vector mode.
6456 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
6457 2015-08-19's changes as follows. Drop include of
6458 basic-block.h and df.h.
6459 (rtl_for_parm): Remove.
6460 (maybe_reset_rtl_for_parm): Remove.
6461 (parm_in_unassigned_mem_p): Remove.
6462 (use_register_for_decl): Add logic for RESULT_DECLs matching
6463 assign_parms' behavior.
6464 (split_complex_args): Revert.
6465 (assign_parms_augmented_arg_list): Revert. Add comment
6466 referencing the logic above.
6467 (assign_parm_adjust_stack_rtl): Revert.
6468 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
6469 of SET_DECL_RTL. Set up a REG if the parm demands so.
6470 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
6471 calls into a single set_parm_rtl. Set up a temporary RTL
6472 temporarily for expand_assignment.
6473 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
6474 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
6475 (assign_bounds): Revert.
6476 (assign_parms): Revert. Use set_parm_rtl.
6477 (allocate_struct_function): Relayout result and parms of
6478 non-abstruct functions.
6479 (expand_function_start): Revert. Use set_parm_rtl. If the
6480 result is not a hard reg, create a pseudo from the promoted
6481 mode of the default def. Promote static chain mode.
6482 * tree-outof-ssa.c (remove_ssa_form): Drop unused
6483 partition_has_default_def. Set up
6484 partitions_for_parm_default_defs.
6485 (finish_out_of_ssa): Remove partition_has_default_def.
6486 Release partitions_for_parm_default_defs.
6487 * tree-outof-ssa.h (struct ssaexpand): Remove
6488 partition_has_default_def. Add
6489 partitions_for_parm_default_defs.
6490 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6491 stor-layout.h.
6492 (build_ssa_conflict_graph): Fix conflict-detection of default
6493 defs of even unused default defs of params and results.
6494 (for_all_parms): New.
6495 (create_default_def): New.
6496 (register_default_def): New.
6497 (coalesce_with_default): New.
6498 (create_outofssa_var_map): Create default defs for all parms
6499 and results, and register their partitions. Add GIMPLE_RETURN
6500 operands as coalesce candidates with results. Add default
6501 defs of each parm or result as coalesce candidates with its
6502 other defs. Mark each result def, and each default def of
6503 parms, as used_in_copy.
6504 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
6505 with the ssa names, even anonymous ones. Drop
6506 parm_in_stack_slot_p calls. Require same signedness and
6507 alignment.
6508 (coalesce_ssa_name): Add coalesce candidates for all defs of
6509 each parm and result, even unused ones.
6510 (parm_default_def_partition_arg): New type.
6511 (set_parm_default_def_partition): New.
6512 (get_parm_default_def_partitions): New.
6513 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6514 * tree-ssa-live.c (partition_view_init): Regard unused defs of
6515 parms and results as used.
6516 (verify_live_on_entry): Don't error out just because they're
6517 not live.
6518
6519 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
6520
6521 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6522 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6523 (output_fde): Don't output length for debug_frame on AIX.
6524 (output_call_frame_info): Don't output length for debug_frame on AIX.
6525 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6526 HAVE_XCOFF_DWARF_EXTRAS.
6527 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6528 HAVE_XCOFF_DWARF_EXTRAS.
6529 (output_compilation_unit_header): Don't output length on AIX.
6530 (output_pubnames): Don't output length on AIX.
6531 (output_aranges): Delete argument. Compute length locally. Don't
6532 output length on AIX.
6533 (output_line_info): Don't output length on AIX.
6534 (dwarf2out_finish): Don't compute aranges_length.
6535 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6536 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6537 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6538 symbol decoration for AIX.
6539 (rs6000_xcoff_debug_unwind_info): New.
6540 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6541 for SECTION_DEBUG.
6542 (rs6000_xcoff_declare_function_name): Emit different
6543 .function pseudo-op when DWARF2_DEBUG. Don't call
6544 xcoffout_declare_function for DWARF2_DEBUG.
6545 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6546 Redefine.
6547 * config/rs6000/aix71.h: New.
6548 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6549 locations support.
6550 * configure: Regenerate.
6551 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6552 DWARF support.
6553
6554 2015-09-26 Jeff Law <law@redhat.com>
6555
6556 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6557 behaviour.
6558 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6559 behaviour.
6560
6561 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6562 behaviour
6563
6564 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6565 undefined behaviour.
6566
6567 * config/cris/cris.md (asrandb): Fix left shift undefined
6568 behaviour.
6569 (asrandw): Likewise.
6570
6571 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
6572
6573 PR target/61578
6574 * lra-constarints.c (match_reload): Check presence of the input pseudo
6575 in the output operand.
6576
6577 2015-09-25 Tobias Burnus <burnus@net-b.de>
6578
6579 * doc/invoke.texi (-fsanitize): Minor wording tweak.
6580
6581 2015-09-25 Tobias Burnus <burnus@net-b.de>
6582
6583 * doc/invoke.texi (-fsanitize): Update URLs.
6584
6585 2015-09-25 Teresa Johnson <tejohnson@google.com>
6586
6587 * opts.c (finish_options): Unset -freorder-blocks-and-partition
6588 if not using profile.
6589
6590 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6591
6592 PR pretty-print/67567
6593 * pretty-print.c (pp_string): Add gcc_checking_assert.
6594 * pretty-print.h (output_buffer_append_r): Likewise.
6595
6596 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
6597
6598 PR target/67675
6599 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6600 addr2 individually. Don't emit logical or insn if one is known to
6601 be aligned approriately.
6602 (sh_expand_cmpnstr): Likewise.
6603
6604 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
6605
6606 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6607 __builtin_aarch64_fp[sc]r arguments into a register.
6608
6609 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
6610
6611 * config.gcc (x86_archs): Replace lakemount with lakemont.
6612 (with_cpu): Likewise.
6613 (with_arch): Likewise.
6614 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6615 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
6616 __tune_lakemount__ with __tune_lakemont__.
6617 * config/i386/i386.c (lakemount_cost): Renamed to ...
6618 (lakemont_cost): This.
6619 (m_LAKEMOUNT): Renamed to ...
6620 (m_LAKEMONT): This.
6621 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6622 (processor_target_table): Replace "lakemount" with "lakemont".
6623 (processor_alias_table): Likewise.
6624 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6625 PROCESSOR_LAKEMONT.
6626 (ix86_adjust_cost): Likewise.
6627 (ia32_multipass_dfa_lookahead): Likewise.
6628 * config/i386/i386.h (processor_type): Likewise.
6629 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6630 * doc/invoke.texi: Replace lakemount with lakemont. Replace
6631 Lakemount with Lakemont.
6632
6633 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
6634
6635 * config.gcc (x86_archs): Replace iamcu with lakemount.
6636 (with_cpu): Likewise.
6637 (with_arch): Likewise.
6638 * doc/invoke.texi: Likewise.
6639 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6640 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
6641 __tune_iamcu__ with __tune_lakemount__.
6642 * config/i386/i386.c (iamcu_cost): Renamed to ...
6643 (lakemount_cost): This.
6644 (m_IAMCU): Renamed to ...
6645 (m_LAKEMOUNT): This.
6646 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6647 (processor_target_table): Replace "iamcu" with "lakemount".
6648 (processor_alias_table): Likewise.
6649 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6650 PROCESSOR_LAKEMOUNT.
6651 (ix86_adjust_cost): Likewise.
6652 (ia32_multipass_dfa_lookahead): Likewise.
6653 * config/i386/i386.h (processor_type): Likewise.
6654 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6655
6656 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
6657
6658 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6659 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6660 Declare.
6661 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6662 (pa_expand_compare_and_swap_loop): New.
6663 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6664 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6665 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6666 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6667 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6668 Revise.
6669
6670 2015-09-24 Michael Collison <michael.collison@linaro.org>
6671
6672 PR other/57195
6673 * read-md.c (read_name): Allow mode iterators inside angle
6674 brackets in rtl expressions.
6675
6676 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
6677
6678 PR target/61578
6679 * ira-color.c (update_allocno_cost): Add parameter.
6680 (update_costs_from_allocno): Decrease conflict cost. Pass the new
6681 parameter.
6682
6683 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6684
6685 PR driver/67640
6686 * opts-common.c (prune_options): Discard all -fdiagnostics-color
6687 but the last one, which is moved to the front to be processed
6688 first.
6689 * opts.c (enable_warning_as_error): Reject options that do not
6690 control warnings.
6691
6692 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6693
6694 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6695
6696 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6697
6698 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6699 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6700 (aarch64_cannot_force_const_mem): Likewise.
6701 (aarch64_classify_address): Likewise.
6702 (aarch64_classify_symbolic_expression): Likewise.
6703 (aarch64_print_operand): Likewise.
6704 (aarch64_classify_symbol): Likewise.
6705 (aarch64_mov_operand_p): Likewise.
6706 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6707 (aarch64_mov_operand): Likewise.
6708
6709 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
6710
6711 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6712 for info->spe_gp_size.
6713
6714 2015-09-24 Richard Biener <rguenther@suse.de>
6715
6716 PR lto/67699
6717 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6718 abstract origins.
6719
6720 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
6721
6722 * tree-object-size.c (plus_stmt_object_size)
6723 (cond_expr_object_size): Change the formal parameters from gimple
6724 to gimple *.
6725 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6726 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6727 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6728
6729 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6730
6731 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6732 Check for ld -type pie on Solaris 11.x and 12.
6733 * configure: Regenerate.
6734 * config.in: Regenerate.
6735
6736 * gcc.c (LD_PIE_SPEC): Allow redefinition.
6737
6738 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6739 (STARTFILE_SPEC): Use it.
6740 (ENDFILE_CRTEND_SPEC): Define.
6741 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6742 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6743 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6744 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6745 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6746 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6747 (ENDFILE_ARCH_SPEC): Define.
6748 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6749
6750 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6751
6752 * configure.ac (gcc_cv_solaris_crts): New test.
6753 * configure. Regenerate.
6754 * config.in: Regenerate.
6755 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6756 HAVE_SOLARIS_CRTS variant.
6757
6758 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6759
6760 * tree-inline.h (count_insns_seq): Delete prototype.
6761 (estimate_num_insns_seq): Define prototype.
6762 * tree-inline.c (count_insns_seq): Delete.
6763 (estimate_num_insns_seq): Remove static qualifier.
6764 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6765 with estimate_num_insns_seq.
6766
6767 2015-09-24 Richard Biener <rguenther@suse.de>
6768
6769 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6770 members.
6771 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6772 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
6773 offset.
6774 (ao_ref_init_from_vn_reference): Record clique and base in the
6775 built base.
6776 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6777
6778 2015-09-24 Richard Biener <rguenther@suse.de>
6779
6780 PR tree-optimization/48885
6781 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6782 as not including any restrict tags from other pointers.
6783
6784 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6785
6786 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6787 character when appending to offload_targets.
6788
6789 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6790 offload targets by commas, not colons.
6791 * config.in: Regenerate.
6792 * configure: Likewise.
6793 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6794 instead of setting up the default offload targets here...
6795 (process_command): ..., do it here.
6796 libgomp/
6797 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6798 targets are separated by commas.
6799 * config.h.in: Regenerate.
6800
6801 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6802 Nathan Sidwell <nathan@codesourcery.com>
6803
6804 * omp-low.h (omp_reduction_init_op): Declare.
6805 * omp-low.c (omp_reduction_init_op): New, broken out of ...
6806 (omp_reduction_init): ... here. Call it.
6807 * tree-parloops.c (initialize_reductions): Use
6808 omp_reduction_init_op.
6809
6810 2015-09-23 Richard Biener <rguenther@suse.de>
6811
6812 PR middle-end/67662
6813 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6814 undefined overflow unless they will cancel out.
6815
6816 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6817
6818 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6819 insn emit.
6820
6821 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6822
6823 PR c/49655
6824 * opts.h (write_langs): Declare.
6825 * opts-global.c (write_langs): Make it extern.
6826
6827 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
6828
6829 PR target/67391
6830 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6831 overlapping regs when matching the pattern.
6832
6833 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
6834
6835 * config/aarch64/aarch64-simd.md
6836 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6837 (aarch64_float_truncate_hi_v4sf_le): New.
6838 (aarch64_float_truncate_hi_v4sf_be): Likewise.
6839
6840 2015-09-23 Richard Biener <rguenther@suse.de>
6841
6842 * tree-ssa-structalias.c (intra_create_variable_infos): Build
6843 representatives for all restrict qualified pointer destinations.
6844
6845 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6846
6847 * config/i386/i386.md (define_code_attr mshift): New.
6848 (define_mode_iterator SWI1248_AVX512BW): Rename ...
6849 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6850 only.
6851 (define_insn "*k<logic><mode>"): Use new iterator name.
6852 (define_insn "*<mshift><mode>3"): New.
6853
6854 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
6855
6856 PR middle-end/67649
6857 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6858 mark the block as accessible.
6859
6860 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
6861
6862 * function.c (thread_prologue_and_epilogue_insns): Delete
6863 orig_entry_edge argument to try_shrink_wrapping.
6864 * shrink-wrap.c (can_get_prologue): New function.
6865 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6866 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
6867 can_get_prologue where needed. Remove code that finds a single
6868 edge for the prologue. Remove code that tests if any reg clobbered
6869 by the prologue is live on the prologue edge. Remove code that finds
6870 the new prologue edge after duplicating blocks. Make a new prologue
6871 block and edge.
6872 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6873
6874 2015-09-22 Jeff Law <law@redhat.com>
6875
6876 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6877 behavior.
6878
6879 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6880
6881 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
6882 -Wtemplates, -Wnamespaces): Document.
6883
6884 2015-09-22 Tom de Vries <tom@codesourcery.com>
6885
6886 PR tree-optimization/67671
6887 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6888 pointer references as restrict.
6889
6890 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6891
6892 * config/nios2/nios2.c (nios2_legitimize_address): When handling
6893 'reg + reloc' cases, allow first operand to be non-REG, and use
6894 force_reg() to enforce address pattern.
6895
6896 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
6897
6898 PR target/67480
6899 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6900 (define_mode_iterator VI12_AVX_AVX512F): New.
6901 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6902 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6903 (define_insn "*<code><mode>3"): ... Into new pattern using
6904 VI12_AVX_AVX512F iterators without masking.
6905
6906 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6907
6908 * config.gcc: Support "skylake-avx512".
6909 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6910 PROCESSOR_SKYLAKE_AVX512.
6911 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6912 (processor_target_table): Add "skylake-avx512".
6913 (PTA_SKYLAKE_AVX512): Define.
6914 (ix86_option_override_internal): Add "skylake_avx512".
6915 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6916 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6917 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6918 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6919 * doc/invoke.texi (skylake-avx512): New.
6920
6921 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6922
6923 * config/i386/i386.md (define_insn "kunpckhi"): Fix
6924 operand in pattern.
6925 (define_insn "kunpcksi"): Ditto.
6926 (define_insn "kunpckdi"): Ditto.
6927
6928 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6929
6930 * config/i386/i386.md (define_split not/xor SWI1248x): Use
6931 iterator instead of fixed modes.
6932
6933 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6934
6935 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6936 Adjust declaration.
6937 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6938 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
6939 out_result. Update to support update-fetch operations.
6940 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6941 Adjust for change to aarch64_gen_atomic_ldop.
6942 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6943 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6944 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6945 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6946 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6947
6948 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6949
6950 * config/aarch64/aarch64-protos.h
6951 (aarch64_atomic_ldop_supported_p): Declare.
6952 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6953 (enum aarch64_atomic_load_op_code): New.
6954 (aarch64_emit_atomic_load_op): New.
6955 (aarch64_gen_atomic_ldop): Update to support load-operate
6956 patterns.
6957 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6958 to an expander.
6959 (aarch64_atomic_<atomic_optab><mode>): New.
6960 (aarch64_atomic_<atomic_optab><mode>_lse): New.
6961 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6962 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6963 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6964
6965 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6966
6967 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6968 (UNSPECV_ATOMIC_LDOP_OR): New.
6969 (UNSPECV_ATOMIC_LDOP_BIC): New.
6970 (UNSPECV_ATOMIC_LDOP_XOR): New.
6971 (UNSPECV_ATOMIC_LDOP_PLUS): New.
6972 (ATOMIC_LDOP): New.
6973 (atomic_ldop): New.
6974 (aarch64_atomic_load<atomic_ldop><mode>): New.
6975
6976 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6977
6978 * config/aarch64/aarch64.md
6979 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
6980 pattern.
6981
6982 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6983
6984 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6985 Declare.
6986 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
6987 (aarch64_gen_atomic_ldop): New.
6988 (aarch64_split_atomic_op): Fix whitespace and add a comment.
6989 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
6990 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
6991 (atomic_exchange<mode>): Replace with an expander.
6992 (aarch64_atomic_exchange<mode>): New.
6993 (aarch64_atomic_exchange<mode>_lse): New.
6994 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
6995 (aarch64_atomic_swp<mode>): New.
6996
6997 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
6998
6999 * tree-inline.c (expand_call_inline): Use inform for extra note.
7000 Do not give a note with UNKNOWN_LOCATION.
7001 Replace input_location with gimple_location (stmt).
7002 Use true/false instead of TRUE/FALSE.
7003
7004 2015-09-22 Tom de Vries <tom@codesourcery.com>
7005
7006 PR tree-optimization/67666
7007 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
7008 with single field non-conservative.
7009
7010 2015-09-21 David S. Miller <davem@davemloft.net>
7011
7012 PR/67622
7013 Revert:
7014 2015-09-11 David S. Miller <davem@davemloft.net>
7015
7016 * config/sparc/constraints.md: Make "U" constraint a real register
7017 constraint.
7018 * config/sparc/sparc.c (TARGET_LRA_P): Define.
7019 (D_MODES, DF_MODES): Add missing cast.
7020 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
7021 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
7022 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
7023 cost to 8.
7024 * config/sparc/sparc.h (PROMOTE_MODE): Define.
7025 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
7026 provide these insn when flag_pic.
7027
7028 2015-09-17 David S. Miller <davem@davemloft.net>
7029
7030 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
7031 Declare.
7032 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
7033 function.
7034 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7035 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7036 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7037 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7038 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7039 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7040 provide when flag_pic.
7041
7042 2015-09-21 Jeff Law <law@redhat.com>
7043
7044 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
7045 behavior.
7046
7047 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7048
7049 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
7050
7051 2015-09-21 Richard Biener <rguenther@suse.de>
7052
7053 * passes.c (rest_of_decl_compilation): Do not call
7054 dwarf2out_early_global_decl for aliases.
7055
7056 2015-09-21 Richard Biener <rguenther@suse.de>
7057
7058 PR debug/67664
7059 * dwarf2out.c (add_location_or_const_value_attribute): Remove
7060 attribute parameter. Early exit if either DW_AT_const_value
7061 or DW_AT_location are present already.
7062 (gen_variable_die): Adjust caller.
7063 (dwarf2out_late_global_decl): Likewise.
7064
7065 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7066
7067 PR target/67657
7068 * config/sh/sh.c (sh_remove_overlapping_post_inc,
7069 sh_peephole_emit_move_insn): Add new functions.
7070 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
7071 sh_peephole_emit_move_insn): Declere them.
7072 * config/sh/sh.md: Use them in various peephole2 patterns.
7073
7074 2015-09-21 Richard Biener <rguenther@suse.de>
7075
7076 PR middle-end/67651
7077 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
7078 address with -fno-delete-null-pointer-checks.
7079
7080 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
7081
7082 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
7083 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
7084 (reduc_uplus_v16qi): Remove.
7085
7086 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
7087 (reduc_<VEC_reduc_name>_v2df): Remove.
7088 (reduc_<VEC_reduc_name>_v4sf): Remove.
7089 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
7090
7091 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
7092 gen_ function by removing * prefix.
7093 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
7094
7095 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7096
7097 PR middle-end/60832
7098 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
7099 Print i_bound without converting it to a tree.
7100
7101 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
7102
7103 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
7104 operands[4] operands[5] swap with std::swap, removed tmp variable.
7105 (arm_evpc_neon_vzip): Replaced in0/in1 and
7106 out0/out1 swaps with std::swap, removed x variable.
7107 (arm_evpc_neon_vtrn): Replaced in0/int1 and
7108 out0/out1 swaos with std::swap, removed x variable.
7109 (arm_expand_vec_perm_const_1): Replaced
7110 d->op0/d->op1 swap with std::swap, removed x variable.
7111 (arm_evpc_neon_vuzp): Replaced in0/in1 and
7112 out0/out1 swaps with std::swap, removed x variable.
7113
7114 2015-09-21 Jonathan Yong <10walls@gmail.com>
7115
7116 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
7117 sysroot/usr/lib/32api for additional win32 libraries,
7118 fixes failing Cygwin bootstrapping.
7119
7120 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7121
7122 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
7123
7124 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7125
7126 PR target/67126
7127 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
7128 (*mov_t_msb_neg): Rewrite negc pattern.
7129
7130 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7131
7132 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
7133 immediate generation code.
7134
7135 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7136
7137 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
7138 redundant immediate generation code.
7139
7140 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7141
7142 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
7143 (AARCH64_NUM_BITMASKS): Remove.
7144 (aarch64_bitmasks_cmp): Remove.
7145 (aarch64_build_bitmask_table): Remove.
7146
7147 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7148
7149 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
7150 slow immediate matching loops with a faster algorithm.
7151
7152 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7153
7154 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
7155 faster algorithm.
7156
7157 2015-09-20 Jeff Law <law@redhat.com>
7158
7159 PR tree-optimization/47679
7160 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
7161 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
7162 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
7163 (thread_through_normal_block): Use record_temporary_equivalences.
7164
7165 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
7166
7167 * coretypes.h (gimple): Change typedef to be a forward declaration.
7168 * gimple.h (gimple_statement_base): rename to gimple.
7169 * (all functions and types using gimple): Adjust.
7170 * *.[ch]: Likewise.
7171
7172 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
7173 David Edelsohn <dje.gcc@gmail.com>
7174
7175 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
7176 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7177 (EH_FRAME_THROUGH_COLLECT2): Define.
7178 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7179 (ASM_OUTPUT_DWARF_PCREL): Define.
7180 (ASM_OUTPUT_DWARF_DATAREL): Define.
7181
7182 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
7183
7184 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
7185 of TARGET_ELF32.
7186
7187 2015-09-18 Jeff Law <law@redhat.com>
7188
7189 PR tree-optimization/47679
7190 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
7191 it here ...
7192 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
7193 object. Update constructor.
7194 (pass_dominator::execute): Corresponding chagnes to declaration
7195 and initialization of avail_exprs_stack. Update constructor call
7196 for dom_opt_dom_walker object.
7197 (lookup_avail_expr, record_cond): Accept additional argument. Pass
7198 it down to children as needed.
7199 (record_equivalences_from_incoming_edge): Likewise.
7200 (eliminate_redundant_computations): Likewise.
7201 (record_equivalences_from_stmt): Likewise.
7202 (simplify_stmt_for_jump_threading): Likewise.
7203 (record_temporary_equivalences): Likewise.
7204 (optimize_stmt): Likewise.
7205 (dom_opt_dom_walker::thread_across_edge): Update access to
7206 avail_exprs_stack object and pass it to children as needed.
7207 (dom_opt_dom_walker::before_dom_children): Similarly.
7208 (dom_opt_dom_walker::after_dom_children): Similarly.
7209 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7210 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7211 Add avail_expr_stack argument. Pass it to children as needed.
7212 (dummy_simplify): Likewise.
7213 (simplify_control_stmt_condition): Likewise.
7214 (thread_around_empty_blocks): Likewise.
7215 (thread_through_normal_block): Likewise.
7216 (thread_across_edge): Likewise.
7217 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7218 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7219
7220 PR tree-optimization/47679
7221 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
7222 it here ...
7223 (dom_opt_dom_walker): New private member holding the const_and_copies
7224 object. Update constructor.
7225 (pass_dominator::execute): Corresponding changes to declaration
7226 and initialization of const_and_copies. Update constructor call
7227 for the dom_opt_dom_walker object.
7228 (record_temporary_equivalences): Accept const_and_copies argument
7229 pass it down to children as needed.
7230 (record_equality): Likewise.
7231 (record_equivalences_from_incoming_edge): Likewise.
7232 (cprop_into_successor_phis, optimize_stmt): Likewise.
7233 (eliminate_redundant_computations): Likewise.
7234 (dom_opt_dom_walker::thread_across_edge): Update access to
7235 const_and_copies object and pass it to children as needed.
7236 (dom_opt_dom_walker::before_dom_children): Similarly.
7237 (dom_opt_dom_walker::after_dom_children): Similarly.
7238
7239 PR tree-optimization/47679
7240 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
7241 it into the avail_exprs_stack class.
7242 (pass_dominator::execute): Corresponding changes to declaration
7243 and initialization of avail_exprs. Pass avail_exprs to
7244 dump_dominator_optimization_stats.
7245 (record_cond): Extract avail_exprs from avail_exprs_stack.
7246 (lookup_avail_expr): Similarly.
7247 (htab_staticstics): Remove unnecessary prototype. Move to earlier
7248 position in file.
7249 (dump_dominator_optimization_stats): Make static and prototype.
7250 Add argument for the hash table to dump.
7251 (debug_dominator_optimization_stats): Remove.
7252 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7253 prototype.
7254 (debug_dominator_optimization_stats): Similarly.
7255 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7256 "void" in prototype for pop_to_marker method. Add accessor method
7257 for the underlying avail_exprs table.
7258
7259 * tree-ssa-threadedge.c: Remove trailing whitespace.
7260
7261 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
7262
7263 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7264 unsigned.
7265 (pa_ldil_cint_p): Likewise.
7266 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7267 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7268 Update callers.
7269 * config/pa/pa.md: Likewise.
7270
7271 2015-09-18 David Malcolm <dmalcolm@redhat.com>
7272
7273 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7274 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7275 (diagnostic_show_locus): Likewise.
7276 (diagnostic_print_caret_line): Likewise.
7277 * diagnostic-show-locus.c: New file.
7278
7279 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
7280
7281 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7282 "back" parameter. Declare label in #if block.
7283
7284 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
7285
7286 PR middle-end/67619
7287 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7288 the address to a register.
7289
7290 2015-09-18 Jeff Law <law@redhat.com>
7291
7292 PR tree-optimization/47679
7293 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7294 * tree-ssa-dom.c: Remove unnecessary header includes.
7295 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7296 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7297 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7298 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7299 (pass_phi_only_cprop::execute): Likewise.
7300 (make_pass_phi_only_cprop): Likewise.
7301 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
7302 uses of file scoped statics by passing the required objects
7303 as parameters wherever needed.
7304
7305 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
7306 David Edelsohn <dje.gcc@gmail.com>
7307
7308 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7309 EH_FRAME_THROUGH_COLLECT2.
7310 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7311 DW_EH_PE_datarel.
7312 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7313 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
7314 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7315 * except.c (switch_to_exception_section): Use a read-only section
7316 even if EH_FRAME_SECTION_NAME is undefined.
7317 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7318 * collect2.c (write_c_file_stat): Provide dbase on AIX.
7319 (scan_prog_file): Don't export __dso_handle nor
7320 __gcc_unwind_dbase.
7321 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7322 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7323 (ASM_OUTPUT_DWARF_PCREL): Define.
7324 (ASM_OUTPUT_DWARF_DATAREL): Define.
7325 (EH_FRAME_THROUGH_COLLECT2): Define.
7326 (EH_FRAME_IN_DATA_SECTION): Delete.
7327 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7328 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7329 Declare.
7330 (rs6000_asm_output_dwarf_datarel): Declare.
7331 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7332 (rs6000_aix_asm_output_dwarf_datarel): New.
7333 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7334 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7335 (EH_FRAME_THROUGH_COLLECT2): Define.
7336 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7337 (EH_FRAME_THROUGH_COLLECT2): Define.
7338 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7339 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
7340 (EH_FRAME_THROUGH_COLLECT2): New.
7341 (ASM_OUTPUT_DWARF_DATAREL): New.
7342 * doc/tm.texi: Regenerate.
7343
7344 2015-09-18 Richard Biener <rguenther@suse.de>
7345
7346 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
7347 we're in early phase.
7348 (schedule_generic_params_dies_gen): Likewise.
7349 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
7350 work as possible, retaining unhandled cases.
7351 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
7352 clear out generic_type_instances at the end.
7353 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
7354 (dwarf2out_early_finish): ... here. Do most of
7355 gen_remaining_tmpl_value_param_die_attribute here.
7356
7357 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
7358
7359 PR tree-optimization/67283
7360 * tree-sra.c (type_consists_of_records_p): Rename to...
7361 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7362 (completely_scalarize_record): Rename to...
7363 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7364 (scalarize_elem): New.
7365 (analyze_all_variable_accesses): Follow renamings.
7366
7367 2015-09-18 Richard Biener <rguenther@suse.de>
7368
7369 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7370 in early-dwarf.
7371
7372 2015-09-18 Richard Biener <rguenther@suse.de>
7373
7374 PR tree-optimization/66142
7375 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7376 treat MEM[&x] and x the same.
7377 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7378 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7379 when we simplified sth.
7380 (vn_reference_maybe_forwprop_address): Likewise.
7381 (valueize_refs_1): When we simplified through
7382 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7383 set valueized_anything to true.
7384 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7385 one ref kills the other instead of just a offset-based test.
7386 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7387 for the operand_equal_p test to compare bases and also compare
7388 sizes.
7389
7390 2015-09-17 Christian Bruel <christian.bruel@st.com>
7391
7392 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7393
7394 2015-09-17 Richard Henderson <rth@redhat.com>
7395
7396 PR libstdc++/65913
7397 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7398 pointers that encode the alignment of the object.
7399
7400 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7401
7402 PR rtl-optimization/66790
7403 * df-problems.c (LIVE): Amend documentation.
7404
7405 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
7406
7407 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7408 and optabs-tree.o.
7409 (GTFILES): Replace optabs.c with optabs-libfunc.c.
7410 * genopinit.c (main): Add an include guard to insn-opinit.h.
7411 Protect the rtx_code parts with NUM_RTX_CODE.
7412 * optabs.h: Split parts out to...
7413 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7414 * optabs.c: Split parts out to...
7415 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7416 * cilk-common.c: Include optabs-query.h rather than optabs.h.
7417 * fold-const.c: Likewise.
7418 * target-globals.c: Likewise.
7419 * tree-if-conv.c: Likewise.
7420 * tree-ssa-forwprop.c: Likewise.
7421 * tree-ssa-loop-prefetch.c: Likewise.
7422 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7423 Remove unncessary include files.
7424 * tree-ssa-phiopt.c: Likewise.
7425 * tree-ssa-reassoc.c: Likewise.
7426 * tree-switch-conversion.c: Likewise.
7427 * tree-vect-data-refs.c: Likewise.
7428 * tree-vect-generic.c: Likewise.
7429 * tree-vect-loop.c: Likewise.
7430 * tree-vect-patterns.c: Likewise.
7431 * tree-vect-slp.c: Likewise.
7432 * tree-vect-stmts.c: Likewise.
7433 * tree-vrp.c: Likewise.
7434 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7435 rather than optabs.h.
7436 * expr.c: Include optabs-tree.h.
7437 * function.c: Likewise.
7438
7439 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7440
7441 PR middle-end/65958
7442 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7443 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7444 * config/arm/arm.c: Include common/common-target.h.
7445 (use_return_insn): Return 0 if the static chain register was saved
7446 above a non-APCS frame.
7447 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7448 (struct scratch_reg): New.
7449 (get_scratch_register_on_entry): New function.
7450 (release_scratch_register_on_entry): Likewise.
7451 (arm_emit_probe_stack_range): Likewise.
7452 (output_probe_stack_range): Likewise.
7453 (arm_expand_prologue): Factor out code dealing with the IP register
7454 for nested function and adjust it for stack checking.
7455 Invoke arm_emit_probe_stack_range if static builtin stack checking
7456 is enabled.
7457 (thumb1_expand_prologue): Sorry out if static builtin stack checking
7458 is enabled.
7459 (arm_expand_epilogue): Add the saved static chain register, if any, to
7460 the amount of pre-pushed registers to pop.
7461 (arm_frame_pointer_required): Return true if static stack checking is
7462 enabled and we want to catch the exception with the EABI unwinder.
7463 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7464 (UNSPEC_PROBE_STACK_RANGE): Likewise.
7465 * config/arm/arm.md (probe_stack): New insn.
7466 (probe_stack_range): Likewise.
7467
7468 2015-09-17 Richard Biener <rguenther@suse.de>
7469
7470 * genmatch.c (parser::parse_expr): Improve error message
7471 for mis-placed flags.
7472
7473 2015-09-17 Richard Biener <rguenther@suse.de>
7474
7475 * passes.c (rest_of_decl_compilation): Always call early_global_decl
7476 debug hook when we created a varpool node.
7477 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7478 dwarf2out_early_global_decl, when not just add location or
7479 value attributes to existing DIEs.
7480
7481 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
7482
7483 * config/aarch64/aarch64.md (copysigndf3): New.
7484 (copysignsf3): Likewise.
7485
7486 2015-09-17 David S. Miller <davem@davemloft.net>
7487
7488 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7489 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7490 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7491 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7492 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7493 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7494 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7495 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7496 provide when flag_pic.
7497
7498 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
7499
7500 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7501 object_allocator change.
7502
7503 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7504
7505 PR tree-optimization/66388
7506 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7507 (dump_iv): Dump no_overflow information.
7508 (alloc_iv): Initialize new field for struct iv.
7509 (mark_bivs): Count number of no_overflow bivs.
7510 (find_deriving_biv_for_expr, record_biv_for_address_use): New
7511 functions.
7512 (idx_find_step): Call new functions above.
7513 (add_candidate_1, add_candidate): New paramter.
7514 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7515 (get_computation_aff): Simplify convertion of cand for BIV.
7516 (get_computation_cost_at): Step cand's base if necessary.
7517
7518 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7519
7520 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7521 parameter.
7522 (tree_simplify_using_condition): Ditto.
7523 (simplify_using_initial_conditions): Ditto.
7524 (loop_exits_before_overflow): Pass new argument to function
7525 simplify_using_initial_conditions. Remove case for type conversions
7526 simplification.
7527 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7528 parameter.
7529 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7530 in iv base using loop initial conditions.
7531
7532 2015-09-16 Jeff Law <law@redhat.com>
7533
7534 PR tree-optimization/47679
7535 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7536 (free_all_edge_infos): Use it.
7537 (allocate_edge_info): Free preexisting edge info data.
7538 (pass_dominator::execute): Set up initial edge info structures.
7539 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7540 thread_across_edge.
7541 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7542 If non-null, then push/pop markers appropriately.
7543 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7544 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7545 thread-across_edge.
7546
7547 2015-09-16 James Bowman <james.bowman@ftdichip.com>
7548
7549 * config/ft32/ft32.c: Fix the memory address space predicate.
7550
7551 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7552
7553 PR target/67573
7554 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7555 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7556
7557 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7558
7559 * toplev.h (check_global_declaration): Remove declaration.
7560 * toplev.c (check_global_declaration): Move to ...
7561 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7562 (analyze_functions): Update call.
7563
7564 2015-09-16 David S. Miller <davem@davemloft.net>
7565
7566 * lra-constraints.c (simplify_operand_subreg): Do not assume that
7567 lowpart of a SUBREG has offset zero.
7568
7569 2015-09-16 Jeff Law <law@redhat.com>
7570
7571 PR tree-optimization/47679
7572 * tree-ssa-dom.c (enum expr_kind): Moved from here to
7573 tree-ssa-scopedtables.h.
7574 (struct hashable_expr, class expr_hash_elt): Likewise.
7575 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7576 Move associated methods into tree-ssa-scopedtables.c.
7577 (avail_expr_hash, initialize_expr_from_cond): Similarly.
7578 (hashable_expr_equal_p, add_expr_commutative): Likewise.
7579 (add_hashable_expr): Likewise.
7580 (record_cond): Delete element directly.
7581 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7582 private copy ctor and assignment operator methods.
7583 (expr_elt_hasher): Inline trivial methods.
7584 (initialize_expr_from_cond): Prototype.
7585 * tree-ssa-scopedtables.c: Add necessary includes, functions and
7586 methods that were previously in tree-ssa-dom.c. Improve various
7587 comments.
7588
7589 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
7590
7591 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7592
7593 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
7594
7595 PR bootstrap/67587
7596 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7597 fixup_partitions.
7598
7599 2015-09-16 Richard Biener <rguenther@suse.de>
7600
7601 PR middle-end/67253
7602 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7603 location of possibly shared trees.
7604
7605 2015-09-16 Richard Biener <rguenther@suse.de>
7606
7607 PR middle-end/67271
7608 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7609
7610 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
7611
7612 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7613 offset and size computations instead of HOST_WIDE_INT.
7614
7615 2015-09-16 Richard Biener <rguenther@suse.de>
7616
7617 PR middle-end/67442
7618 * fold-const.c (extract_muldiv_1): Properly extend multiplication
7619 result before builting a tree via wide_int_to_tree.
7620
7621 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7622
7623 * Makefile.in: Add memory-block.cc
7624 (pool_allocator::initialize): Use fixed block size.
7625 (pool_allocator::release): Use memory_block_pool.
7626 (pool_allocator::allocate): Likewise.
7627 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7628 object pools.
7629 * cfg.c (initialize_original_copy_tables): Likewise.
7630 * cselib.c (elt_list_pool, elt_loc_list_pool,
7631 cselib_val_pool): Likewise.
7632 * df-problems.c (df_chain_alloc): Likewise.
7633 * df-scan.c (df_scan_alloc): Likewise.
7634 * dse.c (cse_store_info_pool, rtx_store_info_pool,
7635 read_info_type_pool, insn_info_type_pool, bb_info_pool,
7636 group_info_pool, deferred_change_pool): Likewise.
7637 * et-forest.c (et_nodes, et_occurrences): Likewise.
7638 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7639 ipcp_agg_lattice_pool): Likewise.
7640 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7641 * ipa-profile.c (histogram_pool): Likewise.
7642 * ipa-prop.c (ipa_refdesc_pool): Likewise.
7643 * ira-build.c (live_range_pool, allocno_pool, object_pool,
7644 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7645 * ira-color.c (update_cost_record_pool): Likewise.
7646 * lra-lives.c (lra_live_range_pool): Likewise.
7647 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7648 * memory-block.cc: New file.
7649 * memory-block.h: New file.
7650 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7651 * sched-deps.c (sched_deps_init): Likewise.
7652 * sel-sched-ir.c (sched_lists_pool): Likewise.
7653 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7654 * tree-sra.c (access_pool): Likewise.
7655 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7656 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7657 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7658 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7659 * tree-ssa-strlen.c (strinfo_pool): Likewise.
7660 * tree-ssa-structalias.c (variable_info_pool): Likewise.
7661 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7662 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7663
7664 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7665
7666 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7667 definition.
7668 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7669 call0 ABI.
7670
7671 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7672
7673 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7674 to pass TLS call argument, according to current ABI.
7675 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7676 callx0 for TLS call, according to current ABI.
7677
7678 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7679
7680 * tree-eh.c (lower_try_finally_dup_block): Clear location information
7681 on stack restore statements.
7682 (decide_copy_try_finally): Do not consider a stack restore statement as
7683 coming from sources.
7684
7685 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
7686
7687 * config/alpha/alpha.c (alpha_expand_block_clear): Use
7688 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7689
7690 2015-09-15 Jeff Law <law@redhat.com>
7691
7692 PR tree-optimization/47679
7693 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7694 methods and private members.
7695 (avail_exprs_stack): Similarly. Change type of global
7696 from a pair of expr_hash_elt_t to the new class.
7697 (expr_elt_hasher::hash): Corresponding changes.
7698 (expr_elt_hasher::equal): Similarly.
7699 (avail_expr_hash): Similarly.
7700 (pass_dominator::execute): Similarly.
7701 (dom_opt_dom_walker::thread_across_edge): Similarly.
7702 (record_cond): Similarly.
7703 (dom_opt_dom_walker::before_dom_children): Similarly.
7704 (dom_opt_dom_walker::after_dom_children): Similarly.
7705 (lookup_avail_expr): Likewise.
7706 (initialize_hash_element): Now a expr_hash_elt constructor.
7707 (initialize_hash_element_from_expr): Similarly.
7708 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7709 (free_expr_hash_elt): Call dtor for the element.
7710 (remove_local_expressions_from_table): Now the "pop_to_marker"
7711 method in the available_exprs_stack class.
7712 (avail_expr_stack::record_expr): Method factored out.
7713 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7714 Fix formatting.
7715 (hashable_expr_equal_p): Fix formatting.
7716
7717 2015-09-15 David Malcolm <dmalcolm@redhat.com>
7718
7719 * input.h (location_get_source_line): Drop "expanded_location"
7720 param in favor of a file and line number.
7721 * input.c (location_get_source_line): Likewise.
7722 (dump_location_info): Update for change in signature of
7723 location_get_source_line.
7724 * diagnostic.c (diagnostic_print_caret_line): Likewise.
7725
7726 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7727
7728 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7729 Bump to 4KB for SJLJ exceptions.
7730 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
7731 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7732 * doc/tm.texi: Regenerate.
7733
7734 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7735
7736 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7737 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
7738 Update prototype.
7739
7740 2015-09-15 Richard Biener <rguenther@suse.de>
7741
7742 PR tree-optimization/67470
7743 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7744 structure for PHI hoisting by inserting a forwarder block
7745 if appropriate.
7746
7747 2015-09-15 Christian Bruel <christian.bruel@st.com>
7748
7749 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7750 (arm_option_print): New function.
7751
7752 2015-09-15 Christian Bruel <christian.bruel@st.com>
7753
7754 PR target/52144
7755 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7756 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7757 Remove flags parameter.
7758 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7759 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7760 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7761 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7762 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7763 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7764 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7765 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7766
7767 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7768
7769 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7770
7771 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7772 AARCH64_VALID_SIMD_DREG_MODE.
7773
7774 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7775
7776 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7777 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7778 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7779 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7780 aarch64_ld4_lane<mode>): Combine together, making...
7781 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7782 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7783 aarch64_st4_lane<mode>): Combine together, making...
7784 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7785 * config/aarch64/iterators.md (nregs): Add comment.
7786
7787 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7788
7789 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7790 Change operand mode from <V_TWO_ELEM> to BLK.
7791 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7792 (aarch64_vec_store_lanesoi_lane<mode): Likewise
7793 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7794 (aarch64_ld2_lane<mode>): Likewise.
7795 (aarch64_st2_lane<VQ:mode>): Likewise.
7796 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7797
7798 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7799
7800 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7801 Change operand mode from <V_FOUR_ELEM> to BLK.
7802 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7803 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7804 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7805 (aarch64_ld4_lane<mode>): Likewise.
7806 (aarch64_st4_lane<mode>): Likewise.
7807 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7808
7809 2015-09-15 Richard Biener <rguenther@suse.de>
7810
7811 PR middle-end/67563
7812 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7813 transfer EH info from old to new stmt.
7814 (replace_call_with_value): Likewise.
7815 (replace_call_with_call_and_fold): Likewise.
7816 (gimple_fold_builtin_memory_op): Likewise.
7817 (gimple_fold_builtin_memset): Likewise.
7818 (gimple_fold_builtin_stpcpy): Likewise.
7819 (gimple_fold_call): Likewise.
7820
7821 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7822
7823 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7824 comment.
7825 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7826 (aarch64_simd_intEI_type_node): Likewise.
7827 (aarch64_simd_builtin_std_type): Remove EImode case.
7828 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7829 * config/aarch64/aarch64-modes.def: Remove EImode.
7830
7831 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7832
7833 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7834 Change operand mode from <V_THREE_ELEM> to BLK.
7835 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7836 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7837 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7838 (aarch64_ld3_lane<mode>): Likewise.
7839 (aarch64_st3_lane<mode>): Likewise.
7840 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7841
7842 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7843
7844 * config/aarch64/aarch64-simd.md
7845 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7846 Change all TImode operands to BLKmode.
7847 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7848 Change all EImode operands to BLKmode.
7849 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7850 Change all OImode operands to BLKmode.
7851
7852 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7853 and call set_mem_size.
7854 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7855
7856 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7857
7858 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7859
7860 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7861 to...
7862 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7863
7864 (vec_store_lanesci_lane<mode>): Rename to...
7865 (aarch64_vec_store_lanesci_lane<mode>): ...this.
7866
7867 (vec_store_lanesxi_lane<mode>): Rename to...
7868 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7869
7870 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7871 aarch64_st4_lane<mode>): Follow renaming.
7872
7873 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7874
7875 * config/s390/s390.c (s390_const_operand_ok): Add missing
7876 brackets.
7877
7878 2015-09-15 Richard Biener <rguenther@suse.de>
7879
7880 PR lto/67568
7881 * lto-streamer.h (lto_location_cache::current_sysp): Properly
7882 initialize.
7883 * lto-streamer-out.c (clear_line_info): Likewise.
7884
7885 2015-09-15 Richard Biener <rguenther@suse.de>
7886
7887 * doc/match-and-simplify.texi: Fix wording.
7888
7889 2015-09-15 Bin Cheng <bin.cheng@arm.com>
7890
7891 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7892 unnecessary type conversion in op1.
7893
7894 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7895
7896 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7897 (dup_block_and_redirect): Delete function.
7898 (can_dup_for_shrink_wrapping): New function.
7899 (fix_fake_fallthrough_edge): New function.
7900 (try_shrink_wrapping): Rewrite function.
7901 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7902
7903 2015-09-14 Rich Felker <dalias@libc.org>
7904
7905 * configure.ac: Change target pattern for sh TLS support
7906 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7907 * configure: Regenerate.
7908
7909 2015-09-14 Jeff Law <law@redhat.com>
7910
7911 PR tree-optimization/47679
7912 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7913 type rather than void *.
7914
7915 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7916
7917 PR fortran/67460
7918 * diagnostic.c (diagnostic_initialize): Do not set
7919 some_warnings_are_errors.
7920 (diagnostic_finish): Use DK_WERROR count instead.
7921 (diagnostic_report_diagnostic): Do not set
7922 some_warnings_are_errors.
7923 * diagnostic.h (struct diagnostic_context): Remove
7924 some_warnings_are_errors.
7925
7926 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
7927
7928 * config/sparc/predicates.md (const_all_ones_operand): Use
7929 CONSTM1_RTX to simplify definition.
7930
7931 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
7932
7933 PR target/67061
7934 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7935 Handle call insns.
7936
7937 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
7938
7939 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7940 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7941 OPT_fshow_column to handled saved option cases.
7942 (append_compiler_options): Do not skip the above added options.
7943
7944 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7945
7946 PR target/63304
7947 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7948 nopcrelative_literal_loads.
7949 (aarch64_classify_address): Likewise.
7950 (aarch64_constant_pool_reload_icode): Define.
7951 (aarch64_secondary_reload): Handle secondary reloads for
7952 literal pools.
7953 (aarch64_override_options): Handle nopcrelative_literal_loads.
7954 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7955 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7956 Define.
7957 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7958 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7959 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7960 predicate.
7961 * doc/invoke.texi (mpc-relative-literal-loads): Document.
7962
7963 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
7964
7965 PR middle-end/67401
7966 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7967 sync_compare_and_swap_optab libcall to target_oval.
7968
7969 2015-09-14 Marek Polacek <polacek@redhat.com>
7970
7971 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
7972 value.
7973 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
7974
7975 2015-09-11 Mark Wielaard <mjw@redhat.com>
7976
7977 PR c/28901
7978 * toplev.c (check_global_declaration): Check and use
7979 warn_unused_const_variable.
7980 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
7981 (-Wunused-variable): Remove non-constant. For C implies
7982 -Wunused-const-variable.
7983 (-Wunused-const-variable): New.
7984
7985 2015-09-14 Richard Biener <rguenther@suse.de>
7986
7987 * doc/match-and-simplify.texi: Update for changed syntax
7988 of inner ifs and the new switch expression.
7989
7990 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
7991
7992 * config/i386/haswell.md: New file describing Haswell pipeline.
7993 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
7994 haswell-like processors.
7995 (ix86_reassociation_width): Increase reassociation width for 64-bit
7996 Haswell processor family.
7997 * config/i386/i386.md: Introduce haswell cpu and include new md file.
7998
7999 2015-09-14 Richard Biener <rguenther@suse.de>
8000
8001 * doc/match-and-simplify.texi: Fixup some formatting issues
8002 and document the 's' flag.
8003
8004 2015-09-13 Olivier Hainque <hainque@adacore.com>
8005 Eric Botcazou <ebotcazou@adacore.com>
8006
8007 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
8008 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
8009 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
8010 (TARGET_CPU_gr5): Likewise.
8011 (TARGET_CPU_gr6): Likewise.
8012 (MULTILIB_DEFAULTS): Likewise.
8013 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
8014 for mcpu=gr5 and mcpu=gr6.
8015 (MULTILIB_DIRNAMES): Adjust accordingly.
8016
8017 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8018
8019 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
8020 (mem_ref_p): Likewise.
8021 (outermost_indep_loop): Adjust.
8022 (mem_ref_in_stmt): Likewise.
8023 (determine_max_movement): Likewise.
8024 (mem_ref_alloc): Likewise.
8025 (record_mem_ref_loc): Likewise.
8026 (set_ref_stored_in_loop): Likewise.
8027 (mark_ref_stored): Likewise.
8028 (gather_mem_refs_stmt): Likewise.
8029 (mem_refs_may_alias_p): Likewise.
8030 (for_all_locs_in_loop): Likewise.
8031 (struct rewrite_mem_ref_loc): Likewise.
8032 (rewrite_mem_refs): Likewise.
8033 (struct first_mem_ref_loc_1): Likewise.
8034 (first_mem_ref_loc): Likewise.
8035 (struct sm_set_flag_if_changed): Likewise.
8036 (execute_sm_if_changed_flag_set): Likewise.
8037 (execute_sm): Likewise.
8038 (hoist_memory_references):
8039 (struct ref_always_accessed): Likewise.
8040 (ref_always_accessed_p): Likewise.
8041 (refs_independent_p): Likewise.
8042 (record_dep_loop): Likewise.
8043 (ref_indep_loop_p_1): Likewise.
8044 (ref_indep_loop_p_2): Likewise.
8045 (ref_indep_loop_p): Likewise.
8046 (can_sm_ref_p): Likewise.
8047 (find_refs_for_sm): Likewise.
8048 (tree_ssa_lim_finalize): Likewise.
8049
8050 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8051
8052 * dwarf2out.c (dw_attr_ref): Remove typedef.
8053 (dw_line_info_ref): Likewise.
8054 (pubname_ref): Likewise.
8055 (dw_ranges_ref): Likewise.
8056 (dw_ranges_by_label_ref): Likewise.
8057 (comdat_type_node_ref): Likewise.
8058 (get_AT): Adjust.
8059 (get_AT_low_pc): Likewise.
8060 (get_AT_hi_pc): Likewise.
8061 (get_AT_string): Likewise.
8062 (get_AT_flag): Likewise.
8063 (get_AT_unsigned): Likewise.
8064 (get_AT_ref): Likewise.
8065 (get_AT_file): Likewise.
8066 (remove_AT): Likewise.
8067 (print_die): Likewise.
8068 (check_die): Likewise.
8069 (die_checksum): Likewise.
8070 (attr_checksum_ordered): Likewise.
8071 (struct checksum_attributes): Likewise.
8072 (collect_checksum_attributes): Likewise.
8073 (die_checksum_ordered): Likewise.
8074 (same_die_p): Likewise.
8075 (is_declaration_die): Likewise.
8076 (clone_die): Likewise.
8077 (clone_as_declaration): Likewise.
8078 (copy_declaration_context): Likewise.
8079 (break_out_comdat_types): Likewise.
8080 (copy_decls_walk): Likewise.
8081 (output_location_lists): Likewise.
8082 (external_ref_hasher::hash): Likewise.
8083 (optimize_external_refs_1): Likewise.
8084 (build_abbrev_table): Likewise.
8085 (size_of_die): Likewise.
8086 (unmark_all_dies): Likewise.
8087 (size_of_pubnames): Likewise.
8088 (output_die_abbrevs): Likewise.
8089 (output_die): Likewise.
8090 (output_pubnames): Likewise.
8091 (add_ranges_num): Likewise.
8092 (add_ranges_by_labels): Likewise.
8093 (add_high_low_attributes): Likewise.
8094 (gen_producer_string): Likewise.
8095 (dwarf2out_set_name): Likewise.
8096 (new_line_info_table): Likewise.
8097 (prune_unused_types_walk_attribs): Likewise.
8098 (prune_unused_types_update_strings): Likewise.
8099 (prune_unused_types): Likewise.
8100 (resolve_addr): Likewise.
8101 (optimize_location_lists_1): Likewise.
8102 (index_location_lists): Likewise.
8103 (dwarf2out_finish): Likewise.
8104
8105 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8106
8107 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
8108
8109 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8110
8111 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
8112 (dump_asserts_for): Adjust.
8113 (register_new_assert_for): Likewise.
8114 (process_assert_insertions): Likewise.
8115 (insert_range_assertions): Likewise.
8116
8117 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8118
8119 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
8120 and remove typedef.
8121 (new_temp_expr_table): Adjust.
8122 (free_temp_expr_table): Likewise.
8123 (version_to_be_replaced_p): Likewise.
8124 (make_dependent_on_partition): Likewise.
8125 (add_to_partition_kill_list): Likewise.
8126 (remove_from_partition_kill_list): Likewise.
8127 (add_dependence): Likewise.
8128 (finished_with_expr): Likewise.
8129 (process_replaceable): Likewise.
8130 (kill_expr): Likewise.
8131 (kill_virtual_exprs): Likewise.
8132 (mark_replaceable): Likewise.
8133 (find_replaceable_in_bb): Likewise.
8134 (find_replaceable_exprs): Likewise.
8135 (debug_ter): Likewise.
8136
8137 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8138
8139 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
8140 (struct btr_user): Rename from btr_user_s.
8141 (struct btr_def): Rename from btr_def_s.
8142 (find_btr_def_group): Adjust.
8143 (add_btr_def): Likewise.
8144 (new_btr_user): Likewise.
8145 (note_other_use_this_block): Likewise.
8146 (compute_defs_uses_and_gen): Likewise.
8147 (link_btr_uses): Likewise.
8148 (build_btr_def_use_webs): Likewise.
8149 (block_at_edge_of_live_range_p): Likewise.
8150 (btr_def_live_range): Likewise.
8151 (combine_btr_defs): Likewise.
8152 (move_btr_def): Likewise.
8153 (migrate_btr_def): Likewise.
8154 (migrate_btr_defs): Likewise.
8155
8156 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8157
8158 * var-tracking.c (shared_hash_def): Rename to shared_hash.
8159 (shared_hash): Remove typedef.
8160 (struct dataflow_set): Adjust.
8161 (shared_hash_unshare): Likewise.
8162 (dataflow_set_merge): Likewise.
8163 (vt_initialize): Likewise.
8164 (vt_finalize): Likewise.
8165
8166 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8167
8168 * var-tracking.c (struct location_chain): Rename from
8169 location_chain_def.
8170 (struct variable_part): Adjust.
8171 (variable_htab_free): Likewise.
8172 (unshare_variable): Likewise.
8173 (get_init_value): Likewise.
8174 (get_addr_from_local_cache): Likewise.
8175 (drop_overlapping_mem_locs): Likewise.
8176 (val_reset): Likewise.
8177 (struct variable_union_info): Likewise.
8178 (variable_union): Likewise.
8179 (find_loc_in_1pdv): Likewise.
8180 (insert_into_intersection): Likewise.
8181 (intersect_loc_chains): Likewise.
8182 (canonicalize_loc_order_check): Likewise.
8183 (canonicalize_values_mark): Likewise.
8184 (canonicalize_values_star): Likewise.
8185 (canonicalize_vars_star): Likewise.
8186 (variable_merge_over_cur): Likewise.
8187 (remove_duplicate_values): Likewise.
8188 (variable_post_merge_new_vals): Likewise.
8189 (variable_post_merge_perm_vals): Likewise.
8190 (find_mem_expr_in_1pdv): Likewise.
8191 (dataflow_set_preserve_mem_locs): Likewise.
8192 (dataflow_set_remove_mem_locs): Likewise.
8193 (variable_part_different_p): Likewise.
8194 (onepart_variable_different_p): Likewise.
8195 (find_src_set_src): Likewise.
8196 (dump_var): Likewise.
8197 (set_slot_part): Likewise.
8198 (clobber_slot_part): Likewise.
8199 (delete_slot_part): Likewise.
8200 (vt_expand_var_loc_chain): Likewise.
8201 (emit_note_insn_var_location): Likewise.
8202 (vt_finalize): Likewise.
8203
8204 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8205
8206 * dse.c (store_info_t): Remove typedef.
8207 (group_info_t): Likewise.
8208 (const_group_info_t): Likewise.
8209 (deferred_change_t): Likewise.
8210 (get_group_info): Adjust.
8211 (free_store_info): Likewise.
8212 (canon_address): Likewise.
8213 (clear_rhs_from_active_local_stores): Likewise.
8214 (record_store): Likewise.
8215 (replace_read): Likewise.
8216 (check_mem_read_rtx): Likewise.
8217 (scan_insn): Likewise.
8218 (remove_useless_values): Likewise.
8219 (dse_step1): Likewise.
8220 (dse_step2_init): Likewise.
8221 (dse_step2_nospill): Likewise.
8222 (scan_stores_nospill): Likewise.
8223 (scan_reads_nospill): Likewise.
8224 (dse_step3_exit_block_scan): Likewise.
8225 (dse_step3): Likewise.
8226 (dse_step5_nospill): Likewise.
8227 (dse_step6): Likewise.
8228
8229 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8230
8231 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8232 (alias_set_entry): Remove typedef.
8233 (alias_set_subset_of): Adjust.
8234 (alias_sets_conflict_p): Likewise.
8235 (init_alias_set_entry): Likewise.
8236 (get_alias_set): Likewise.
8237 (new_alias_set): Likewise.
8238 (record_alias_subset): Likewise.
8239
8240 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
8241
8242 * doc/install.texi (Downloading the source): Mark up
8243 contrib/download_prerequisites properly and drop leading "./".
8244
8245 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8246
8247 * config/arc/arc.h: Remove define of STRUCT_VALUE.
8248 * config/lm32/lm32.h: Likewise.
8249 * config/mep/mep.h: Likewise.
8250 * config/visium/visium.h: Likewise.
8251 * system.h: Poison STRUCT_VALUE macro.
8252
8253 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
8254
8255 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8256 CONSTANT_P operands.
8257
8258 2015-09-11 David S. Miller <davem@davemloft.net>
8259
8260 * config/sparc/constraints.md: Make "U" constraint a real register
8261 constraint.
8262 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8263 (D_MODES, DF_MODES): Add missing cast.
8264 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8265 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8266 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8267 cost to 8.
8268 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8269 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8270 provide these insn when flag_pic.
8271
8272 2015-09-11 Jeff Law <law@redhat.com>
8273
8274 PR tree-optimization/47679
8275 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8276 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8277 member with m_. Update inline member functions as necessary. Add
8278 toplevel comment.
8279 * tree-ssa-scopedtables.c: Update const_and_copies's member
8280 functions to use m_ prefix to access the stack.
8281
8282 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8283
8284 * graphite-optimize-isl.c (disable_tiling): Remove.
8285 (get_schedule_for_band): Do not use disable_tiling.
8286 (get_prevector_map): Delete function.
8287 (enable_polly_vector): Remove.
8288 (get_schedule_for_band_list): Remove dead code.
8289
8290 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8291
8292 * graphite-optimize-isl.c (get_tile_map): Refactor.
8293 (get_schedule_for_band): Same.
8294 (getScheduleForBand): Same.
8295 (get_prevector_map): Same.
8296 (get_schedule_for_band_list): Same.
8297 (get_schedule_map): Same.
8298 (get_single_map): Same.
8299 (apply_schedule_map_to_scop): Same.
8300 (optimize_isl): Same.
8301
8302 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8303
8304 PR target/63304
8305 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8306 (movtf): Delete.
8307 * config/aarch64/iterators.md (GPF_TF_F16): New.
8308 (GPF_F16): Delete.
8309
8310 2015-09-10 Nathan Sidwell <nathan@acm.org>
8311
8312 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8313 (nvptx_reorg): Adjust comments.
8314
8315 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
8316
8317 PR bootstrap/67363
8318 * configure.ac: Check if setenv and unsetenv are declared.
8319 * configure: Rebuild.
8320 * config.in: Rebuild.
8321 * system.h: Declare setenv and unsetenv if not declared.
8322
8323 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8324
8325 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8326 commentary to simplify permute mask adjustment equation.
8327 (special_handling_values): Add SH_VPERM.
8328 (const_load_sequence_p): New function.
8329 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8330 the mask loaded from the constant pool.
8331 (adjust_vperm): New function.
8332 (handle_special_swappables): Call adjust_vperm.
8333 (dump_swap_insn_table): Handle SH_VPERM.
8334
8335 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
8336
8337 * shrink-wrap.c (requires_stack_frame_p): Remove static.
8338 * shrink-wrap.h (requires_stack_frame_p): Put back.
8339
8340 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
8341
8342 * reload1.c (elimination_costs_in_insn): Locally turn
8343 -Wmaybe-uninitialized into a warning.
8344
8345 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
8346
8347 * shrink-wrap.c (requires_stack_frame_p): Make static.
8348 (prepare_shrink_wrap): Likewise.
8349 (dup_block_and_redirect): Likewise.
8350 * shrink-wrap.h: Remove declarations of those functions.
8351
8352 2015-09-10 Mark Wielaard <mjw@redhat.com>
8353
8354 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
8355
8356 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
8357
8358 PR target/67506
8359 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
8360 missing simplify_gen_subreg.
8361
8362 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8363
8364 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
8365 the vector element is bigger than 64 bit.
8366
8367 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8368
8369 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8370 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8371
8372 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8373
8374 * config/s390/s390.c: Add V1TImode to constant pool modes.
8375
8376 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8377
8378 PR target/67439
8379 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8380 predicate. Set predicable_short_it attr to "no".
8381
8382 2015-09-10 Jiong Wang <jiong.wang@arm.com>
8383
8384 PR rtl-optimization/67421
8385 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8386 left wide shift tranformation.
8387
8388 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8389
8390 * common/config/arc/arc-common.c: Remove references to A5.
8391 * config/arc/arc-opts.h: Likewise.
8392 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8393 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8394 * config/arc/t-arc-newlib: Likewise.
8395
8396 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8397
8398 * config/arc/arc.md (length): Fix attribute length for conditional
8399 executed instructions with long immediate.
8400
8401 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8402
8403 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8404 type for second alternative.
8405
8406 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
8407
8408 * doc/invoke.texi (Downloading GCC): Mention
8409 contrib/download_prerequisites script.
8410
8411 2015-09-10 Jakub Jelinek <jakub@redhat.com>
8412
8413 PR c++/67523
8414 * gimplify.c (gimplify_omp_for): If inner stmt is not found
8415 for combined loop, assert seen_error () and return GS_ERROR.
8416
8417 PR middle-end/67521
8418 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8419 if decl is already in outer->variables.
8420
8421 PR middle-end/67517
8422 * gimplify.c (gimplify_scan_omp_clauses): Instead of
8423 asserting that decl is not specified in octx->variables,
8424 break out of the loop if it is.
8425
8426 PR c++/67514
8427 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8428 iterator is not explicitly determined, but is defined inside
8429 of the combined workshare region, handle it like if it has
8430 DECL_EXPR in OMP_FOR_PRE_BODY.
8431
8432 2015-09-09 Nathan Sidwell <nathan@acm.org>
8433
8434 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8435 (*cmp<mode>): Add assembler spacing.
8436 (setcc_int<mode>, set_cc_float<mode>): Likewise.
8437 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8438 level.
8439 (write_func_decl_from_insn): Refactor argument loops & comma emission.
8440 (nvptx_expand_call): Likewise.
8441 (nvptx_output_call_insn): Likewise.
8442 (nvptx_reorg_subreg): Add spacing.
8443
8444 2015-09-09 Marek Polacek <polacek@redhat.com>
8445
8446 PR middle-end/67512
8447 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8448 for comparisons.
8449
8450 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8451
8452 PR c++/53184
8453 * doc/invoke.texi ([Wsubobject-linkage]): Document.
8454
8455 2015-09-09 Tom de Vries <tom@codesourcery.com>
8456
8457 * params-list.h: Add missing copyright notice.
8458
8459 2015-09-09 Nathan Sidwell <nathan@acm.org>
8460
8461 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8462 sel_truesi, not andsi.
8463
8464 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8465
8466 * config/arm/arm.md (*subsi3_compare0): Rename to...
8467 (subsi3_compare0): ... This.
8468 (modsi3): New define_expand.
8469 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8470 when operand is power of 2.
8471
8472 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8473
8474 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8475 (*neg<mode>2_compare0): Rename to...
8476 (neg<mode>2_compare0): ... This.
8477 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8478 Move check for speed inside the if-then-elses. Reflect
8479 CSNEG sequence in MOD by power of 2 case.
8480
8481 2015-09-09 Alan Modra <amodra@gmail.com>
8482
8483 PR target/67378
8484 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8485 reload replacement for PRE_MODIFY address reg.
8486
8487 2015-09-09 Sebastian Pop <s.pop@samsung.com>
8488
8489 PR tree-optimization/53852
8490 * config.in: Regenerate.
8491 * configure: Regenerate.
8492 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8493 * graphite-optimize-isl.c (optimize_isl): Stop computation when
8494 PARAM_MAX_ISL_OPERATIONS is reached.
8495 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8496 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8497 result equal to isl_stat_ok as the status now can be isl_error_quota.
8498 (subtract_commutative_associative_deps): Same.
8499 (compute_deps): Same.
8500
8501 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8502 Sebastian Pop <s.pop@samsung.com>
8503
8504 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8505 Return the parameter if it was saved in corresponding
8506 parameter_rename_map of the region.
8507 (copy_def): Copy def from sese region to the newly created region.
8508 (copy_internal_parameters): Copy all the internal parameters defined
8509 within a region to the newly created region.
8510 (graphite_regenerate_ast_isl): Copy parameters to the new region before
8511 translating isl to gimple.
8512 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8513 the loop-nest does not have any data-references.
8514 (build_graphite_scops): Create a scop only when there is at least one
8515 loop inside it.
8516 (contains_only_close_phi_nodes): Deleted.
8517 (print_graphite_scop_statistics): Deleted
8518 (print_graphite_statistics): Deleted
8519 (limit_scops): Deleted.
8520 (build_scops): Removed call to limit_scops.
8521 * sese.c (new_sese): Construct.
8522 (free_sese): Destruct.
8523 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8524 added.
8525 (set_rename): Pass sese region so that parameters inside the region can
8526 be added to its parameter_rename_map.
8527 (rename_uses): Pass sese region.
8528 (graphite_copy_stmts_from_block): Do not copy parameters that have been
8529 generated in the header of the scop. For each SSA_NAME in the
8530 parameter_rename_map rename its usage.
8531 (invariant_in_sese_p_rec): Return false if tree t is defined outside
8532 sese region.
8533 (scalar_evolution_in_region): If the tree t is invariant just return t.
8534 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8535 struct sese to keep track of all the parameters which need renaming.
8536 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8537 any data-refs.
8538 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8539
8540 2015-09-08 Tom de Vries <tom@codesourcery.com>
8541
8542 * Makefile.in (generated_files): Add params.list.
8543 (params.list, s-params.list): Add rule.
8544 * params.h (enum compiler_param): Include params-list.h. Move define
8545 DEFPARAM, include params.def and undef DEFPARAM ...
8546 * params-list.h: ... here. New file.
8547
8548 2015-09-08 David Malcolm <dmalcolm@redhat.com>
8549
8550 * pretty-print.h (printer_fn): Fix typo in comment.
8551
8552 2015-09-07 Jeff Law <law@redhat.com>
8553
8554 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8555
8556 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8557
8558 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8559 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8560 (arm_neon_fp16_hw): New.
8561
8562 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8563
8564 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8565 UNITS_PER_WORD >= 4.
8566
8567 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8568
8569 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8570 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8571 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8572 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8573 (aarch64_float_extend_lo_v2df): Rename to...
8574 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8575
8576 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8577 (float_extend_lo): Add v4sf.
8578
8579 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8580 * config/aarch64/iterators.md (VQ_HSF): New iterator.
8581 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8582 (Vwide): New mode_attr.
8583
8584 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8585
8586 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8587 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8588 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8589 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8590 V4HF and V8HF variants to iterator.
8591
8592 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8593
8594 * config/aarch64/iterators.md (VDQF_F16): New.
8595 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8596
8597 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8598
8599 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8600 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8601 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8602 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8603 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8604 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8605 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8606 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8607 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8608 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8609 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8610 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8611 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8612 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8613 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8614 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8615 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8616 vld1q_dup_f16): New.
8617
8618 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8619
8620 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8621 Reparameterize to...
8622 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8623 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8624 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8625
8626 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8627 v8hf variant.
8628 (float_truncate_lo_): Use BUILTIN_VDF iterator.
8629
8630 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8631
8632 * config/aarch64/iterators.md (VDF, Vdtype): New.
8633 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8634
8635 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8636
8637 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8638 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8639 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8640 Add __builtin_aarch64_simd_hf.
8641 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8642 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8643 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8644 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8645 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8646 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8647 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8648 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8649 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8650
8651 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8652 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8653 (VDC, Vdbl): Add V4HF.
8654
8655 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8656
8657 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8658 V4HFmode and V8HFmode.
8659 (aarch64_split_simd_move): Add case for V8HFmode.
8660 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8661 (aarch64_simd_builtin_std_type): Handle HFmode.
8662 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8663
8664 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8665 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8666 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8667
8668 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8669 Float16x8_t.
8670
8671 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8672 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8673 New typedefs.
8674 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8675 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8676 vst1q_lane_f16): New.
8677 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8678 (VALLDI_F16, VALL_F16): New.
8679 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8680 Add cases for V4HF and V8HF.
8681 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8682
8683 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8684
8685 * config/arm/arm-builtins.c (VAR11, VAR12): New.
8686 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8687 vld4_dup): Add v4hf variant.
8688 (vget_high, vget_low): Add v8hf variant.
8689 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8690 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8691 v4hf and v8hf variants.
8692
8693 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8694 (VDX): Add V4HF.
8695 (V_DOUBLE): Add case for V4HF.
8696 (VQX): Add V8HF.
8697 (V_HALF): Add case for V8HF.
8698 (VDQX): Add V4HF, V8HF.
8699 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8700 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8701
8702 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8703 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8704 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8705 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8706 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8707 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8708 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8709 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8710 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8711
8712 (neon_vcreate, neon_vreinterpretv8qi<mode>,
8713 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8714 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8715 Change VDX to VD_RE.
8716
8717 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8718 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8719 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8720
8721 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8722 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8723 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8724 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8725 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8726 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8727 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8728 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8729 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8730
8731 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8732
8733 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8734 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8735 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8736 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8737 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8738 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8739 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8740 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8741 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8742 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8743 New.
8744
8745 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8746
8747 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8748
8749 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8750
8751 * config/arm/arm-builtins.c (v8hf_UP): New.
8752 (arm_init_simd_builtin_types): Initialise Float16x8_t.
8753
8754 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8755
8756 * config/arm/arm_neon.h (float16x8_t): New typedef.
8757
8758 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8759
8760 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8761 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8762 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8763 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8764 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8765 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8766 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8767 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8768 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8769 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8770
8771 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
8772
8773 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8774 non-alphanumeric characters in the symbol name.
8775
8776 2015-09-07 Marek Polacek <polacek@redhat.com>
8777
8778 PR inline-asm/67448
8779 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8780 a memory input.
8781
8782 2015-09-07 Marek Polacek <polacek@redhat.com>
8783
8784 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8785
8786 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
8787
8788 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8789 not warn.
8790
8791 2015-09-04 Jakub Jelinek <jakub@redhat.com>
8792
8793 PR middle-end/67452
8794 * tree-ssa-live.c: Include cfgloop.h.
8795 (remove_unused_locals): Clear loop->simduid if simduid is about
8796 to be removed from cfun->local_decls.
8797
8798 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8799
8800 PR target/65210
8801 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8802 attribute as well.
8803
8804 2015-09-04 Tom de Vries <tom@codesourcery.com>
8805
8806 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8807
8808 2015-09-04 Jeff Law <law@redhat.com>
8809
8810 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8811 unnecessary constructor. It's now trivial and implemented inside...
8812 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8813 constructor. Add comments to various methods. Remove unused
8814 private fields.
8815 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8816 * tree-vrp.c (identify_jump_threads): Likewise.
8817 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8818 indentation issues.
8819 (thread_across_edge): Similarly.
8820 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8821 arguments in constructor call.
8822
8823 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8824
8825 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8826 temp path contains a '-'.
8827
8828 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8829 Petr Murzin <petr.murzin@intel.com>
8830 Kirill Yukhin <kirill.yukhin@intel.com>
8831
8832 * config/i386/i386-builtin-types.def
8833 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8834 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8835 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8836 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8837 * config/i386/i386.c
8838 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8839 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8840 IX86_BUILTIN_SCATTERALTDIV16SI.
8841 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8842 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8843 __builtin_ia32_scatteraltdiv8si.
8844 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8845 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8846 IX86_BUILTIN_SCATTERALTDIV16SI.
8847 (ix86_vectorize_builtin_scatter): New.
8848 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8849 ix86_vectorize_builtin_scatter.
8850
8851 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8852 Petr Murzin <petr.murzin@intel.com>
8853 Kirill Yukhin <kirill.yukhin@intel.com>
8854
8855 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8856 * doc/tm.texi: Regenerate.
8857 * target.def: Add scatter builtin.
8858 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8859 for loads/stores in case of gather/scatter accordingly.
8860 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8861 STMT_VINFO_GATHER_P(S).
8862 (vect_check_gather): Rename to ...
8863 (vect_check_gather_scatter): this.
8864 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8865 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8866 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8867 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8868 variable and new checkings for it accordingly.
8869 * tree-vect-stmts.c
8870 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8871 STMT_VINFO_GATHER_P(S).
8872 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8873 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8874
8875 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8876
8877 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8878 define_insn.
8879 (mulv16qi3): New define_expand.
8880
8881 2015-09-03 Martin Sebor <msebor@redhat.com>
8882
8883 PR c/66516
8884 * doc/extend.texi (Other Builtins): Document when the address
8885 of a built-in function can be taken.
8886
8887 2015-09-03 Richard Biener <rguenther@suse.de>
8888
8889 * dwarf2out.c (flush_limbo_die_list): Split out from ...
8890 (dwarf2out_early_finish): ... here.
8891 (dwarf2out_finish): Do not call dwarf2out_early_finish but
8892 flush_limbo_die_list. Assert we have no deferred asm names.
8893
8894 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8895
8896 * optabs.c (expand_binop): Don't create a broadcast vector with a
8897 source element wider than the inner mode.
8898
8899 2015-09-03 Richard Biener <rguenther@suse.de>
8900
8901 * varasm.c (output_constant): Use fold_convert instead of
8902 wide_int_to_tree.
8903
8904 2015-09-03 Tom de Vries <tom@codesourcery.com>
8905
8906 PR tree-optimization/65637
8907 * omp-low.c (expand_omp_for_static_chunk): Handle case that
8908 fin_bb has 2 predecessors.
8909
8910 2015-09-03 Tom de Vries <tom@codesourcery.com>
8911
8912 PR tree-optimization/65637
8913 * omp-low.c (find_phi_with_arg_on_edge): New function.
8914 (expand_omp_for_static_chunk): Fix inner loop phi.
8915
8916 2015-09-03 Tom de Vries <tom@codesourcery.com>
8917
8918 PR tree-optimization/65637
8919 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8920 that head is NULL.
8921
8922 2015-09-03 Tom de Vries <tom@codesourcery.com>
8923
8924 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8925
8926 2015-09-03 Tom de Vries <tom@codesourcery.com>
8927
8928 * doc/invoke.texi (parloops-chunk-size): Add item.
8929 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8930 * tree-parloops.c: Include params.h.
8931 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8932 param parloops-chunk-size is used.
8933
8934 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8935
8936 PR middle-end/67351
8937 * fold-const.c (fold_binary_loc) : Move
8938 Transform (x >> c) << c into x & (-1<<c) or
8939 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8940 types using simplify and match.
8941 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8942 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8943
8944 2015-09-03 Richard Biener <rguenther@suse.de>
8945
8946 PR ipa/66705
8947 * tree-ssa-structalias.c (ctor_for_analysis): New function.
8948 (create_variable_info_for_1): Use ctor_for_analysis instead
8949 of get_constructor.
8950 (create_variable_info_for): Likewise.
8951
8952 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
8953
8954 PR ipa/67280
8955 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8956 in new callgraph edge.
8957
8958 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
8959
8960 PR target/59810
8961 PR target/63652
8962 PR target/63653
8963 * config/aarch64/aarch64-simd.md
8964 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8965 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8966 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8967 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8968
8969 2015-09-02 Alan Modra <amodra@gmail.com>
8970
8971 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
8972 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
8973 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
8974
8975 2015-09-02 Alan Modra <amodra@gmail.com>
8976
8977 PR target/67417
8978 * config/rs6000/predicates.md (current_file_function_operand): Don't
8979 return true for weak symbols.
8980 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
8981
8982 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
8983 Andrew Bennett <andrew.bennett@imgtec.com>
8984
8985 * config/mips/mips-opts.h (mips_cb_setting): New enum.
8986 * config/mips/mips-protos.h: Add definitions for
8987 mips_output_jump and mips_output_equal_conditional_branch
8988 * config/mips/mips.c (MIPS_JR): Change to support the
8989 JIC instruction.
8990 (mips_emit_compare): Add support for the MIPS R6 conditional
8991 compact branches.
8992 (mips_process_sync_loop): Likewise.
8993 (mips_output_order_conditional_branch): Likewise.
8994 (mips16_build_call_stub): Change MIPS_CALL to
8995 mips_output_jump.
8996 (mips_print_operand_punctuation): Update 's' case to only
8997 apply to micromips r2.
8998 (mips_adjust_insn_length): Add support for forbidden slot
8999 hazards.
9000 (mips_avoid_hazard): Likewise.
9001 (mips_reorg_process_insns): Likewise.
9002 (mips_output_jump): New function.
9003 (mips_output_equal_conditional_branch): Likewise.
9004 (mips_output_conditional_branch): Use jrc/bc if compact
9005 branch support is enabled. Ensure the forbidden slots
9006 between the two branch instructions is filled with a nop.
9007 (mips_option_override): Add support to process the compact
9008 branch option and set the correct defaults. Prevent
9009 non-explict relocs being using for MIPS R6.
9010 (mips_trampoline_init): Add compact branch support.
9011 (mips_mult_zero_zero_cost): Allow zero initialisation of
9012 accumulators with TARGET_DSP.
9013 * config/mips/mips.h (TARGET_CB_NEVER): New define.
9014 (TARGET_CB_MAYBE): New define.
9015 (TARGET_CB_ALWAYS): New define.
9016 (ISA_HAS_DELAY_SLOTS): New define.
9017 (ISA_HAS_COMPACT_BRANCHES): New define.
9018 (ISA_HAS_JRC): New define.
9019 (MIPS_BRANCH_C): New define.
9020 (MIPS_CALL): Removed.
9021 (MICROMIPS_J): Removed.
9022 * config/mips/mips.md (compact_form): New attr.
9023 (hazard): Add support for forbidden slots.
9024 (define_delay): Add support for compact branches.
9025 (*branch_order<mode>): Likewise.
9026 (*branch_order<mode>_inverted): Likewise.
9027 (*branch_equality<mode>): Likewise.
9028 (*branch_equality<mode>_inverted): Likewise.
9029 (*jump_absolute): Likewise.
9030 (*jump_pic): Likewise.
9031 (indirect_jump): Use mips_output_jump to produce assembly output.
9032 (tablejump_<mode>"): Likewise.
9033 (*<optab>"): Likewise.
9034 (<optab>_internal): Likewise.
9035 (sibcall_internal): Likewise.
9036 (sibcall_value_internal): Likewise.
9037 (sibcall_value_multiple_internal): Likewise.
9038 (call_internal): Likewise.
9039 (call_split): Likewise.
9040 (call_internal_direct): Likewise.
9041 (call_direct_split): Likewise.
9042 (call_value_internal): Likewise.
9043 (call_value_split): Likewise.
9044 (call_value_internal_direct): Likewise.
9045 (call_value_direct_split): Likewise.
9046 (call_value_multiple_internal): Likewise.
9047 (call_value_multiple_split): Likewise.
9048 (mips_get_fcsr_mips16_<mode>): Likewise.
9049 (mips_set_fcsr_mips16_<mode>): Likewise.
9050 (tls_get_tp_mips16_<mode>): Likewise.
9051 * config/mips/mips.opt: Add -mcompact-branches option.
9052 * config/mips/predicates.md (order_operator): Ensure the
9053 conditional compact branches are only used if the ISA them.
9054 * doc/invoke.texi: Document -mcompact-branches option.
9055
9056 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
9057
9058 PR target/61578
9059 * lra-lives.c (process_bb_lives): Process move pseudos with the
9060 same value for copies and preferences
9061 * lra-constraints.c (match_reload): Create match reload pseudo
9062 with the same value from single dying input pseudo.
9063
9064 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
9065
9066 PR target/67405
9067 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
9068
9069 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
9070
9071 * trans-mem.c: Add contributed-by.
9072 * trans-mem.h: Same.
9073
9074 2015-09-01 Richard Biener <rguenther@suse.de>
9075
9076 * expr.c (expand_expr_real_1): For expanding TERed defs
9077 set the current location to that of the def if not UNKNOWN.
9078
9079 2015-09-01 David Sherwood <david.sherwood@arm.com>
9080
9081 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
9082
9083 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9084
9085 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
9086 then_cost, else_cost fields. Change branch_cost field to unsigned int.
9087 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
9088 Include rtl-iter.h.
9089 (noce_simple_bbs): New function.
9090 (noce_try_move): Bail if basic blocks are not simple.
9091 (noce_try_store_flag): Likewise.
9092 (noce_try_store_flag_constants): Likewise.
9093 (noce_try_addcc): Likewise.
9094 (noce_try_store_flag_mask): Likewise.
9095 (noce_try_cmove): Likewise.
9096 (noce_try_minmax): Likewise.
9097 (noce_try_abs): Likewise.
9098 (noce_try_sign_mask): Likewise.
9099 (noce_try_bitop): Likewise.
9100 (bbs_ok_for_cmove_arith): New function.
9101 (noce_emit_all_but_last): Likewise.
9102 (noce_emit_insn): Likewise.
9103 (noce_emit_bb): Likewise.
9104 (noce_try_cmove_arith): Handle non-simple basic blocks.
9105 (insn_valid_noce_process_p): New function.
9106 (contains_mem_rtx_p): Likewise.
9107 (bb_valid_for_noce_process_p): Likewise.
9108 (noce_process_if_block): Allow non-simple basic blocks
9109 where appropriate.
9110
9111 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
9112
9113 * tree-ssa-dom.c (record_equivalences_from_phis,
9114 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
9115 (lookup_avail_expr): Likewise, and remove comment and unused temp.
9116
9117 2015-09-01 Nick Clifton <nickc@redhat.com>
9118
9119 * config/msp430/msp430.opt (mcpu): Fix typo.
9120
9121 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9122
9123 * config/aarch64/aarch64.c (aarch64_set_current_function):
9124 Re-layout any vector parameters have non-simd layout.
9125 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
9126 Delete.
9127 (aarch64_simd_expand_args): Delete call to the above.
9128
9129 2015-08-31 Mike Frysinger <vapier@gentoo.org>
9130
9131 * doc/invoke.texi (asan-stack): Add space before option.
9132
9133 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9134
9135 * tree.h (zerop): New function.
9136 * tree.c (zerop): Likewise.
9137 (element_precision): Handle expressions.
9138 * match.pd (define_predicates): Add zerop.
9139 (x <= +Inf): Fix comment.
9140 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
9141 * fold-const.c (fold_binary_loc): ... here. Remove.
9142
9143 2015-08-31 Richard Biener <rguenther@suse.de>
9144
9145 PR middle-end/67381
9146 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
9147
9148 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9149
9150 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
9151 (CEXPI): New operator list.
9152 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
9153 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
9154 Converted from ...
9155 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
9156
9157 2015-08-31 Tom de Vries <tom@codesourcery.com>
9158
9159 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
9160 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
9161 parameter.
9162 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
9163 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
9164 (rewrite_into_loop_closed_ssa): ... here.
9165 (replace_uses_in_dominated_bbs): Remove function.
9166 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
9167 rewrite_into_loop_closed_ssa_1.
9168
9169 2015-08-31 Michael Matz <matz@suse.de>
9170
9171 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
9172 enter entry and exit blocks for reverse post order.
9173
9174 2015-08-31 Richard Biener <rguenther@suse.de>
9175
9176 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
9177 (lto_location_cache::current_sysp): Likewise.
9178 (output_block::current_sysp): Likewise.
9179 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
9180 (lto_location_cache::apply_location_cache): Properly record
9181 system header locations.
9182 (lto_location_cache::input_location): Input whether a file
9183 is a system header.
9184 * lto-streamer-out.c (lto_output_location): Stream whether a file
9185 is a system header.
9186
9187 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9188
9189 PR bootstrap/67363
9190 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
9191
9192 2015-08-31 Tom de Vries <tom@codesourcery.com>
9193
9194 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
9195 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
9196 Improve function header comments.
9197
9198 2015-08-30 Michael Collison <michael.collison@linaro.org>
9199
9200 PR other/67320
9201 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9202 standard names
9203
9204 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9205
9206 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9207 special_handling bitfield.
9208 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9209 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9210 that represents a general xxpermdi.
9211 (insn_is_swappable_p): Add handling for vec_concat of two
9212 doublewords, which maps to a specific xxpermdi.
9213 (adjust_xxpermdi): New function.
9214 (adjust_concat): Likewise.
9215 (handle_special_swappables): Call adjust_xxpermdi and
9216 adjust_concat.
9217 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9218
9219 2015-08-30 Rich Felker <dalias@libc.org>
9220
9221 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9222 case instead of sh[123456ble]-*-*.
9223
9224 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9225
9226 * ira.c (print_unform_and_important_classes,
9227 print_translated_classes): Remove reg_class_names static array.
9228 (print_unform_and_important_classes): Rename to ...
9229 (print_uniform_and_important_classes): ... this.
9230 (ira_debug_allocno_classes): Update accordingly.
9231
9232 2015-08-29 Tom de Vries <tom@codesourcery.com>
9233
9234 PR tree-optimization/46193
9235 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9236 clause.
9237
9238 2015-08-28 Jeff Law <law@redhat.com>
9239
9240 PR lto/66752
9241 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9242 unable to find X NE 0 in the tables, return X as the simplified
9243 condition.
9244 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9245 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9246 to VISISTED_BBS.
9247 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9248 after removing the control flow statement and unnecessary edges.
9249
9250 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
9251
9252 Revert:
9253 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9254
9255 PR tree-optimization/67283
9256 * tree-sra.c (type_consists_of_records_p): Rename to...
9257 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9258
9259 (completely_scalarize_record): Rename to...
9260 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9261 code to:
9262 (scalarize_elem): New.
9263
9264 2015-08-28 Jiong Wang <jiong.wang@arm.com>
9265
9266 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9267 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9268 (aarch64_symbol_type): Likewise.
9269 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9270 Likewise.
9271 (aarch64_expand_mov_immediate): Likewise.
9272 (aarch64_print_operand): Likewise.
9273 (aarch64_classify_tls_symbol): Likewise.
9274
9275 2015-08-28 Richard Biener <rguenther@suse.de>
9276
9277 * cgraphunit.c (symbol_table::compile): Move early debug generation
9278 and finish...
9279 (symbol_table::finalize_compilation_unit): ... back here and
9280 add a !seen_error () guard.
9281
9282 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9283
9284 * toplev.c (process_options): Do not use flag_loop_block,
9285 flag_loop_interchange, and flag_loop_strip_mine. Add check for
9286 flag_loop_optimize_isl.
9287
9288 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9289
9290 * Makefile.in (OBJS): Remove graphite-blocking.o and
9291 graphite-interchange.o.
9292 * common.opt (floop-strip-mine, floop-interchange, floop-block):
9293 Alias of floop-nest-optimize.
9294 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9295 Document as alias of -floop-nest-optimize.
9296 * graphite-blocking.c: Remove.
9297 * graphite-interchange.c: Remove.
9298 * graphite-optimize-isl.c: Include dumpfile.h.
9299 (getScheduleForBand): Add dump for tiled loops. Use
9300 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9301 * graphite-poly.c (scop_max_loop_depth): Remove.
9302 (print_scattering_function_1): Remove.
9303 (print_scattering_function): Remove.
9304 (print_scattering_functions): Remove.
9305 (debug_scattering_function): Remove.
9306 (debug_scattering_functions): Remove.
9307 (apply_poly_transforms): Remove use of flag_loop_block,
9308 flag_loop_strip_mine, and flag_loop_interchange.
9309 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9310 PBB_ORIGINAL.
9311 (print_pdr_access_layout): Remove.
9312 (print_pdr): Print ISL representation.
9313 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9314 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9315 (free_scop): Same.
9316 (openscop_print_pbb_domain): Remove.
9317 (print_pbb): Remove call to print_scattering_function.
9318 (openscop_print_scop_context): Remove.
9319 (print_scop_context): Do not print matrices anymore.
9320 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9321 SCOP_TRANSFORMED_SCHEDULE.
9322 (print_isl_set): Add printing of a new line.
9323 (print_isl_map): Same.
9324 (print_isl_aff): Same.
9325 (print_isl_constraint): Same.
9326 (loop_to_lst): Remove.
9327 (scop_to_lst): Remove.
9328 (lst_indent_to): Remove.
9329 (print_lst): Remove.
9330 (debug_lst): Remove.
9331 (dot_lst_1): Remove.
9332 (dot_lst): Remove.
9333 (reverse_loop_at_level): Remove.
9334 (reverse_loop_for_pbbs): Remove.
9335 * graphite-poly.h (pdr_dim_iter_domain): Remove.
9336 (pdr_nb_params): Remove.
9337 (pdr_alias_set_dim): Remove.
9338 (pdr_subscript_dim): Remove.
9339 (pdr_iterator_dim): Remove.
9340 (pdr_parameter_dim): Remove.
9341 (same_pdr_p): Remove.
9342 (struct poly_scattering): Remove.
9343 (struct poly_bb): Remove _original, _transformed, _saved.
9344 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
9345 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
9346 (PBB_NB_LOCAL_VARIABLES): Remove.
9347 (PBB_NB_SCATTERING_TRANSFORM): Remove.
9348 (schedule_to_scattering): Remove.
9349 (number_of_write_pdrs): Remove.
9350 (pbb_dim_iter_domain): Remove.
9351 (pbb_nb_params): Remove.
9352 (pbb_nb_scattering_orig): Remove.
9353 (pbb_nb_scattering_transform): Remove.
9354 (pbb_nb_dynamic_scattering_transform): Remove.
9355 (pbb_nb_local_vars): Remove.
9356 (pbb_iterator_dim): Remove.
9357 (pbb_parameter_dim): Remove.
9358 (psco_scattering_dim): Remove.
9359 (psct_scattering_dim): Remove.
9360 (psct_local_var_dim): Remove.
9361 (psco_iterator_dim): Remove.
9362 (psct_iterator_dim): Remove.
9363 (psco_parameter_dim): Remove.
9364 (psct_parameter_dim): Remove.
9365 (psct_dynamic_dim): Remove.
9366 (psct_static_dim): Remove.
9367 (psct_add_local_variable): Remove.
9368 (new_lst_loop): Remove.
9369 (new_lst_stmt): Remove.
9370 (free_lst): Remove.
9371 (copy_lst): Remove.
9372 (lst_add_loop_under_loop): Remove.
9373 (lst_depth): Remove.
9374 (lst_dewey_number): Remove.
9375 (lst_dewey_number_at_depth): Remove.
9376 (lst_pred): Remove.
9377 (lst_succ): Remove.
9378 (lst_find_pbb): Remove.
9379 (find_lst_loop): Remove.
9380 (lst_find_first_pbb): Remove.
9381 (lst_empty_p): Remove.
9382 (lst_find_last_pbb): Remove.
9383 (lst_contains_p): Remove.
9384 (lst_contains_pbb): Remove.
9385 (lst_create_nest): Remove.
9386 (lst_remove_from_sequence): Remove.
9387 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9388 (lst_niter_for_loop): Remove.
9389 (pbb_update_scattering): Remove.
9390 (lst_update_scattering_under): Remove.
9391 (lst_update_scattering): Remove.
9392 (lst_insert_in_sequence): Remove.
9393 (lst_replace): Remove.
9394 (lst_substitute_3): Remove.
9395 (lst_distribute_lst): Remove.
9396 (lst_remove_all_before_including_pbb): Remove.
9397 (lst_remove_all_before_excluding_pbb): Remove.
9398 (struct scop): Remove original_schedule, transformed_schedule, and
9399 saved_schedule.
9400 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9401 (SCOP_SAVED_SCHEDULE): Remove.
9402 (poly_scattering_new): Remove.
9403 (poly_scattering_free): Remove.
9404 (poly_scattering_copy): Remove.
9405 (store_scattering_pbb): Remove.
9406 (store_lst_schedule): Remove.
9407 (restore_lst_schedule): Remove.
9408 (store_scattering): Remove.
9409 (restore_scattering_pbb): Remove.
9410 (restore_scattering): Remove.
9411 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9412 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
9413 compute the scattering polyhedron dimension from the dimension of
9414 pbb->domain.
9415 (build_scop_scattering): Update call to
9416 build_pbb_scattering_polyhedrons.
9417 (build_poly_scop): Remove call to scop_to_lst.
9418 * graphite.c (graphite_transform_loops): Add call to print_scop.
9419 (gate_graphite_transforms): Remove use of flag_loop_block,
9420 flag_loop_interchange, and flag_loop_strip_mine.
9421
9422 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9423
9424 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9425 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9426 -floop-nest-optimize.
9427 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9428 (generate_luj_sepclass): Remove.
9429 (generate_luj_options): Remove.
9430 (set_options): Remove opt_luj.
9431 (scop_to_isl_ast): Remove opt_luj.
9432 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9433 flag_loop_unroll_jam.
9434 (getPrevectorMap_full): Remove.
9435 (getScheduleForBandList): Remove map_sepcl.
9436 (getScheduleMap): Same.
9437 (apply_schedule_map_to_scop): Remove sepcl.
9438 (optimize_isl): Same.
9439 * graphite-poly.c (apply_poly_transforms): Remove check for
9440 flag_loop_unroll_jam.
9441 (new_poly_bb): Remove map_sepclass.
9442 * graphite-poly.h (struct poly_bb): Same.
9443 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9444 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9445 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9446 * toplev.c (process_options): Remove flag_loop_unroll_jam.
9447
9448 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
9449
9450 PR target/67317
9451 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9452 (addqi3_cc): Ditto.
9453 (UNSPEC_ADD_CARRY): Remove.
9454 (addqi3_cconly_overflow): New expander.
9455 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9456 Adjust for changed add<mode>3_carry.
9457 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9458 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9459 (<plusminus_insn><mode>3_carry): Remove expander.
9460 (*<plusminus_insn><mode>3_carry): Split insn pattern to
9461 add<mode>3_carry and sub<mode>3_carry.
9462 (plusminus_carry_mnemonic): Remove code attribute.
9463 (add<mode>3_carry): Canonicalize insn pattern.
9464 (*addsi3_carry_zext): Ditto.
9465 (sub<mode>3_carry): Ditto.
9466 (*subsi3_carry_zext): Ditto.
9467 (adcx<mode>3): Remove insn pattern.
9468 (addcarry<mode>): New insn pattern.
9469 (subborrow<mode>): Ditto.
9470 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9471 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9472 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9473 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9474 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9475 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9476 Rewrite expander to not clobber carry flag chains.
9477
9478 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
9479
9480 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9481 instead of a rotate.
9482
9483 2015-08-27 Marek Polacek <polacek@redhat.com>
9484
9485 PR middle-end/67005
9486 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9487 an entry into an irreducible region.
9488
9489 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9490
9491 * configure: Regenerate.
9492
9493 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9494
9495 PR tree-optimization/67283
9496 * tree-sra.c (type_consists_of_records_p): Rename to...
9497 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9498
9499 (completely_scalarize_record): Rename to...
9500 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9501 (scalarize_elem): New.
9502
9503 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9504
9505 * tree-sra.c (completely_scalarize_var): Rename to...
9506 (create_total_scalarization_access): ... Here. Drop call to
9507 completely_scalarize_record.
9508
9509 (analyze_all_variable_accesses): Replace completely_scalarize_var
9510 with create_total_scalarization_access and completely_scalarize_record.
9511
9512 2015-08-27 Alan Modra <amodra@gmail.com>
9513
9514 PR target/67356
9515 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9516 for operand 1.
9517
9518 2015-08-27 Richard Biener <rguenther@suse.de>
9519
9520 * passes.c (rest_of_decl_compilation): Guard early_global_decl
9521 call with !seen_error ().
9522 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9523 early debug generation and finish...
9524 (symbol_table::compile): ... here to put it after a !seen_error ()
9525 guard.
9526
9527 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9528
9529 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9530 Solaris 12+.
9531
9532 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9533 Andre Vieira <andre.simoesdiasvieira@arm.com>
9534
9535 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9536 (*cb<optab><mode>1): Likewise.
9537 (*tb<optab><mode>1): Likewise.
9538 (*cb<optab><mode>1): Likewise.
9539 * config/aarch64/iterators.md (inv_cb): New code attribute.
9540 (inv_tb): Likewise.
9541 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9542 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9543
9544 2015-08-27 Richard Biener <rguenther@suse.de>
9545
9546 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9547
9548 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9549
9550 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9551 trap to fix ICE.
9552
9553 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9554
9555 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9556 Add declaration.
9557
9558 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9559 comment.
9560 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9561 floating point in VSX registers.
9562 (rs6000_output_move_128bit): Always print out the set insn if we
9563 can't generate an appropriate 128-bit move.
9564 (rs6000_generate_compare): Add support for IEEE 128-bit floating
9565 point in VSX registers comparisons.
9566 (rs6000_expand_float128_convert): Likewise.
9567
9568 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9569 predicate for only GPR hard registers.
9570
9571 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9572 modes to iterators. Add new iterators for moving 128-bit values in
9573 scalar FPR registers and VSX registers.
9574 (FMOVE128): Likewise.
9575 (FMOVE128_FPR): Likewise.
9576 (FMOVE128_GPR): Likewise.
9577 (FMOVE128_VSX): Likewise.
9578 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9579 in VSX registers.
9580 (IFKF): Likewise.
9581 (IBM128): Likewise.
9582 (TFIFKF): Likewise.
9583 (RELOAD): Add IEEE 128-bit floating point modes.
9584 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9585 floating point in VSX registers modes.
9586 (signbit<mode>2, IBM128 iterator): Likewise.
9587 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9588 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9589 (negtf2): Likewise.
9590 (neg<mode>2, TFIFKF iterator): Likewise.
9591 (negtf2_internal): Likewise.
9592 (abstf2): Likewise.
9593 (abs<mode>2, TFIFKF iterator): Likewise.
9594 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9595 VSX insn support for negate, absolute value, and negative absolute
9596 value.
9597 (ieee_128bit_vsx_neg<mode>2): Likewise.
9598 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9599 (ieee_128bit_vsx_abs<mode>2): Likewise.
9600 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9601 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9602 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9603 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9604 floating point in VSX registers.
9605 (unpack<mode>_dm): Likewise.
9606 (unpack<mode>_nodm): Likewise.
9607 (pack<mode>): Likewise.
9608 (unpackv1ti): Likewise.
9609 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9610 (packv1ti): Likewise.
9611 (pack<mode>, FMOVE128_VSX iterator): Likewise.
9612 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9613 registers.
9614 (extenddftf2_internal): Likewise.
9615 (trunctfdf2): Likewise.
9616 (trunctfdf2_internal2): Likewise.
9617 (fix_trunc_helper): Likewise.
9618 (fix_trunctfdi2"): Likewise.
9619 (floatditf2): Likewise.
9620 (floatuns<mode>tf2): Likewise.
9621 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9622 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9623 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9624 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9625 (float<SDI:mode><IFKF:mode>2): Likewise.
9626 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9627
9628 2015-08-26 Renlin Li <renlin.li@arm.com>
9629
9630 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9631
9632 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9633 Jiong Wang <jiong.wang@arm.com>
9634
9635 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9636 (tlsie_tiny_<mode>): New define_insn.
9637 (tlsie_tiny_sidi): Likewise.
9638 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9639 SYMBOL_TINY_TLSIE.
9640 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9641 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9642 SYMBOL_TINY_TLSIE.
9643 (aarch64_expand_mov_immediate): Likewise.
9644 (aarch64_print_operand): Likewise.
9645 (arch64_classify_tls_symbol): Likewise.
9646
9647 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9648
9649 * config/arm/arm-arches.def: Replace single value flags with
9650 an initializer built from ARM_FSET_MAKE_CPU1.
9651 * config/arm/arm-cores.def: Likewise.
9652 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9653 derivation from the ARM_CORE macro definition, use the given value
9654 instead.
9655 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9656 ARM_ARCH macro definition, use the given value instead.
9657
9658 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9659
9660 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9661 feature set.
9662 (struct builtin_description): Replace field mask with field
9663 features.
9664 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9665 (IWMMXT2_BUILTIN): Likewise.
9666 (IWMMXT2_BUILTIN2): Likewise.
9667 (FP_BUILTIN): Likewise.
9668 (CRC32_BUILTIN): Likewise.
9669 (CRYPTO_BUILTIN): Likewise.
9670 (iwmmx_mbuiltin): Likewise.
9671 (iwmmx2_mbuiltin): Likewise.
9672 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9673 struct builtin_description.
9674
9675 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9676
9677 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9678 (struct builtin_description): Change type of mask to unsigned
9679 long.
9680 * config/arm/arm-protos.h (insn_flags): Declare as type
9681 arm_feature_set.
9682 (tune_flags): Likewise.
9683 * config/arm/arm.c (feature_count): New.
9684 (insn_flags): Define as type arm_feature_set.
9685 (tune_flags): Likewise.
9686 (struct processors): Define field flags as type arm_feature_set.
9687 (all_cores): Update for change to struct processors.
9688 (all_architectures): Likewise.
9689 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9690 macros.
9691 (arm_option_override_internal): Likewise.
9692 (arm_option_override): Likewise.
9693
9694 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9695 Jiong Wang <jiong.wang@arm.com>
9696
9697 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9698 tls size for tiny, small, large memory model.
9699 (aarch64_load_symref_appropriately): Support new symbol types.
9700 (aarch64_expand_mov_immediate): Likewise.
9701 (aarch64_print_operand): Likewise.
9702 (aarch64_classify_tls_symbol): Likewise.
9703 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9704 (aarch64_symbol_type): Likewise.
9705 * config/aarch64/aarch64.md (tlsle): Deleted.
9706 (tlsle12_<mode>): New define_insn.
9707 (tlsle24_<mode>): Likewise.
9708 (tlsle32_<mode>): Likewise.
9709 (tlsle48_<mode>): Likewise.
9710 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9711 "aarch64_tlsle32".
9712
9713 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9714
9715 * config/arm/arm-protos.h (FL_NONE): New.
9716 (FL_ANY): New.
9717 (arm_feature_set): New.
9718 (ARM_FSET_MAKE): New.
9719 (ARM_FSET_MAKE_CPU1): New.
9720 (ARM_FSET_MAKE_CPU2): New.
9721 (ARM_FSET_CPU1): New.
9722 (ARM_FSET_CPU2): New.
9723 (ARM_FSET_EMPTY): New.
9724 (ARM_FSET_ANY): New.
9725 (ARM_FSET_HAS_CPU1): New.
9726 (ARM_FSET_HAS_CPU2): New.
9727 (ARM_FSET_HAS_CPU): New.
9728 (ARM_FSET_ADD_CPU1): New.
9729 (ARM_FSET_ADD_CPU2): New.
9730 (ARM_FSET_DEL_CPU1): New.
9731 (ARM_FSET_DEL_CPU2): New.
9732 (ARM_FSET_UNION): New.
9733 (ARM_FSET_INTER): New.
9734 (ARM_FSET_XOR): New.
9735 (ARM_FSET_EXCLUDE): New.
9736 (AFM_FSET_IS_EMPTY): New.
9737 (ARM_FSET_CPU_SUBSET): New.
9738
9739 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9740
9741 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9742 SYMBOL_TLSLE to SYMBOL_TLSLE24.
9743 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9744 Likewise.
9745 (aarch64_expand_mov_immediate): Likewise.
9746 (aarch64_print_operand): Likewise.
9747 (aarch64_classify_symbol): Likewise.
9748
9749 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9750
9751 * config/aarch64/aarch64.opt (mtls-size): New entry.
9752 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9753 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9754 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9755
9756 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9757
9758 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9759 ARM_CORE entry. Fix some white-space.
9760 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9761 ARM_CORE definition.
9762
9763 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9764
9765 * fold-const.c (fold_binary_loc) : Move Optimize
9766 root(x)*root(y) as root(x*y) to match.pd.
9767 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9768 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9769 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9770 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9771 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9772 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9773 (mult (exps:s @0) (exps:s @1)) : New simplifier.
9774 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9775 (rdiv @0 (exps:s @1)) : New simplifier.
9776
9777 2015-08-25 Joseph Myers <joseph@codesourcery.com>
9778
9779 * gcc.c (driver::finalize): Only assign to extra_specs if
9780 [EXTRA_SPECS].
9781
9782 2015-08-25 Marek Polacek <polacek@redhat.com>
9783
9784 PR middle-end/67330
9785 * varasm.c (declare_weak): Return after giving an error.
9786
9787 2015-08-25 David Malcolm <dmalcolm@redhat.com>
9788
9789 * gcc-main.c (main): Add params to driver ctor.
9790 * gcc.c (class env_manager): New.
9791 (env): New global.
9792 (env_manager::init): New.
9793 (env_manager::get): New.
9794 (env_manager::xput): New.
9795 (env_manager::restore): New.
9796 Poison getenv and putenv.
9797 (DEFAULT_TARGET_SYSTEM_ROOT): New.
9798 (target_system_root): Update initialization to use
9799 DEFAULT_TARGET_SYSTEM_ROOT.
9800 (struct spec_list): Add field "default_ptr".
9801 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9802 (init_spec): Likewise.
9803 (set_spec): Clear field "default_ptr".
9804 (read_specs): Free "spec" and "buffer".
9805 (xputenv): Reimplement in terms of env_manager.
9806 (process_command): Replace ::getenv calls with calls to the
9807 env_manager singleton.
9808 (process_brace_body): Free string in three places.
9809 (driver::driver): New.
9810 (driver::~driver): New.
9811 (used_arg): Convert from a function to...
9812 (class used_arg_t): ...this class, and...
9813 (used_arg): ...this new global instance.
9814 (used_arg_t::finalize): New function.
9815 (getenv_spec_function): Add "const" to local "value". Replace
9816 ::getenv call with call to the env_manager singleton.
9817 (path_prefix_reset): New function.
9818 (driver::finalize): New function.
9819 * gcc.h (driver::driver): New.
9820 (driver::~driver): New.
9821 (driver::finalize): New.
9822
9823 2015-08-25 Nathan Sidwell <nathan@acm.org>
9824
9825 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9826 target doesn't have one.
9827
9828 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9829
9830 PR target/67346
9831 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9832
9833 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9834
9835 PR target/67344
9836 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9837 a define_insn, remove second alternative.
9838
9839 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
9840 Joseph Myers <joseph@codesourcery.com>
9841
9842 * gcc.c (struct switchstr): Expand comment.
9843
9844 2015-08-25 Nathan Sidwell <nathan@acm.org>
9845
9846 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9847 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9848
9849 2015-08-25 Richard Biener <rguenther@suse.de>
9850
9851 PR middle-end/67306
9852 * genmatch.c (expr::gen_transform): Verify the result of
9853 builtin_decl_implicit.
9854 (dt_simplify::gen_1): Likewise.
9855
9856 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
9857
9858 * config/arm/constraints.md: Also list Cs and US ARM-specific
9859 constraints as used.
9860
9861 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
9862
9863 PR target/66609
9864 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9865 UNSPEC_PCREL.
9866 (nonpic_symbol_mentioned_p): Likewise.
9867 (sh_delegitimize_address): Likewise.
9868 (sh_function_ok_for_sibcall): Take into account weak symbols.
9869 (sh_expand_sym_label2reg): New.
9870 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9871 * config/sh/sh.md (UNSPEC_PCREL): New enum.
9872 (call_pcrel): Use sh_expand_sym_label2reg.
9873 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9874 (symPCREL_label2reg) New expand.
9875
9876 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9877
9878 * graphite-poly.c: Change type of region from void* to sese.
9879 * graphite-poly.h (struct scop): Changing the type of scop::region
9880 from void* to sese. Change accessor macro accordingly.
9881 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9882
9883 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9884
9885 * graphite-scop-detection.c (stmt_simple_for_scop_p):
9886 Constrain only on INTEGER_TYPE.
9887
9888 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9889
9890 PR target/67211
9891 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9892 -mefficient-unaligned-vsx on ISA 2.7.
9893
9894 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9895 option to a masked option.
9896
9897 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9898 logic for -mefficient-unaligned-vsx so that it is set via an arch
9899 ISA option, instead of being set if -mtune=power8 is set. Move
9900 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9901 near other default option handling.
9902
9903 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9904
9905 * genflags.c (gen_macro): Delete.
9906 (gen_proto): Don't create GEN.*CALL.* macros.
9907 * gensupport.h (get_file_location): Declare.
9908 * gensupport.c (rtx_locs): New variable.
9909 (read_md_rtx): Record rtx locations.
9910 (get_file_location): New function.
9911 * target-insns.def (call, call_pop, call_value, call_value_pop)
9912 (sibcall, sibcall_value): New patterns.
9913 * gentarget-def.c (parse_argument): New function.
9914 (def_target_insn): Use it. Handle optional operands. Raise an
9915 error if an .md pattern has the wrong number of operands for the
9916 pattern name. Remove the names of unused operands from the prototype.
9917 * builtins.c (expand_builtin_apply): Use targetm functions
9918 instead of HAVE_call_value and GEN_CALL_VALUE.
9919 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
9920 and sibcall_value_pop.
9921 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9922 of GEN_CALL.
9923 * config/alpha/alpha.md (untyped_call): Likewise.
9924 * config/iq2000/iq2000.md (untyped_call): Likewise.
9925 * config/m68k/m68k.md (untyped_call): Likewise.
9926 * config/mips/mips.md (untyped_call): Likewise.
9927 * config/pa/pa.md (untyped_call): Likewise.
9928 * config/rs6000/rs6000.md (untyped_call): Likewise.
9929 * config/sparc/sparc.md (untyped_call): Likewise.
9930 * config/tilegx/tilegx.md (untyped_call): Likewise.
9931 * config/tilepro/tilepro.md (untyped_call): Likewise.
9932 * config/visium/visium.md (untyped_call): Likewise.
9933 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9934 gen_call_value instead of GEN_CALL_VALUE.
9935 * config/arm/arm.md (untyped_call): Likewise.
9936 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9937 GEN_CALL.
9938
9939 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9940
9941 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9942 (have_cbranchcc4): New variable.
9943 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9944 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9945 (if_convert): Initialize have_cbranchcc4.
9946
9947 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9948
9949 * builtins.c (expand_cmpstrn): Rename to...
9950 (expand_cmpstrn_or_cmpmem): ...this.
9951 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9952 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9953 Remove mode argument.
9954 (expand_builtin): Update accordingly.
9955
9956 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9957
9958 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9959 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
9960 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9961 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9962 Add predicates for operands 0 and 3.
9963 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9964 operand.
9965 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9966 immediate_operand to nonmemory_operand.
9967
9968 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9969
9970 * df-scan.c (df_insn_info_init_fields): New function, split out
9971 from...
9972 (df_insn_create_insn_record): ...here.
9973 (df_insn_info_free_fields): New function, split out from...
9974 (df_insn_info_delete): ...here.
9975 (df_insn_rescan): Use the new functions instead of freeing and
9976 reallocating the df_insn_info.
9977
9978 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9979
9980 * doc/install.texi (Binaries): Remove links no longer valid.
9981
9982 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
9983
9984 * config/nvptx/mkoffload.c (process): Replace
9985 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
9986
9987 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
9988
9989 PR target/67329
9990 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
9991
9992 2015-08-24 Renlin Li <renlin.li@arm.com>
9993
9994 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
9995 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
9996 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
9997 * config/arm/constraints.md ("j"): Add check for high code.
9998
9999 2015-08-24 Tom de Vries <tom@codesourcery.com>
10000
10001 PR tree-optimization/65468
10002 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
10003 chunk_size is one.
10004
10005 2015-08-24 Nathan Sidwell <nathan@acm.org>
10006
10007 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
10008 change to nvptx_type_from_mode call. Use arg_promotion for both
10009 split and non-split args.
10010
10011 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10012
10013 * target-insns.def (movstr): New pattern.
10014 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
10015 (expand_movstr): Use targetm rather than HAVE_movstr/
10016 CODE_FOR_movstr.
10017
10018 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10019
10020 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
10021 cast syntax.
10022
10023 2015-08-24 Andrew Pinski <apinski@cavium.com>
10024
10025 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
10026 AARCH64_EXTRA_TUNING_OPTION.
10027 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
10028 New enum.
10029 (aarch64_extra_tuning_flags): Base the shifted value on the index
10030 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
10031 * config/aarch64/aarch64.c: Remove the last argument to
10032 AARCH64_EXTRA_TUNING_OPTION.
10033
10034 2015-08-23 Nathan Sidwell <nathan@acm.org>
10035
10036 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
10037 decls.
10038 (nvptx_declare_function_name): Insert formatting tabs for
10039 consistency.
10040
10041 2015-08-23 Tom de Vries <tom@codesourcery.com>
10042
10043 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
10044 parm_decl, rather than generating a dummy default def in cfun.
10045 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
10046 ssa_name from cfun and child_fn do not share a stmt as def stmt.
10047 (move_stmt_op): Handle PARM_DECl.
10048 (gather_ssa_name_hash_map_from): New function.
10049 (move_sese_region_to_fn): Add default defs for function params, and add
10050 them to vars_map. Release copied ssa names.
10051 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
10052
10053 2015-08-23 Tom de Vries <tom@codesourcery.com>
10054
10055 * doc/sourcebuild.texi: Rename vect_no_int_max with
10056 vect_no_int_min_max. Update description.
10057
10058 2015-08-22 Andrew Pinski <apinski@cavium.com>
10059
10060 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
10061 * config/aarch64/aarch64-protos.h
10062 (aarch64_fusion_pairs_index): New enum.
10063 (aarch64_fusion_pairs): Base the shifted value on the index instead
10064 Rewrite AARCH64_FUSE_ALL to be based on the end index.
10065 of the argument to AARCH64_FUSION_PAIR.
10066 * config/aarch64/aarch64.c: Remove the last argument to
10067 AARCH64_FUSION_PAIR.
10068
10069 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
10070
10071 * dominance.c (new_zero_array): Define.
10072 (dom_info): Redefine as class with proper encapsulation.
10073 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
10074 Add new members.
10075 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
10076 allocations/deallocations. Pass function as parameter (instead of
10077 using cfun).
10078 (dom_info::get_idom): Define accessor method.
10079 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
10080 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
10081 (calculate_dominance_info): Adjust to use dom_info class.
10082 (verify_dominators): Likewise.
10083
10084 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
10085
10086 * print-rtl.c (print_rtx): Check the correct range for
10087 flag_dump_unnumbered_links to behave as documented.
10088
10089 PR rtl-optimization/67227
10090 PR rtl-optimization/64164
10091 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
10092 (nonoverlapping_memrefs_p): Test offsets and sizes when given
10093 identical gimple_reg exprs.
10094
10095 2015-08-21 Nathan Sidwell <nathan@acm.org>
10096
10097 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
10098 expansion.
10099 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
10100 crtl->stack_alignment_needed to determine alignment.
10101 (nvptx_get_drap_rtx): New.
10102 (TARGET_GET_DRAP_RTX): Override.
10103 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
10104
10105 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10106
10107 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
10108
10109 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10110
10111 * configure.ac: Remove uwin* cases.
10112 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
10113 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
10114 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
10115 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
10116 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
10117 i[34567]86-*-uwin*, powerpc-*-beos*.
10118
10119 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
10120
10121 * gencodes.c (gencodes): Print the comma for the preceding
10122 enum value rather than the current one. Use aliased enum values
10123 rather than #defines for compiled-out patterns.
10124 (main): Update accordingly. Replace LAST_INSN_CODE with
10125 NUM_INSN_CODES.
10126 * lra.c (insn_code_data): Update accordingly.
10127 (finish_insn_code_data_once, get_static_insn_data): Likewise.
10128 * recog.h (target_recog): Likewise.
10129 (preprocess_insn_constraints): Change parameter to unsigned int.
10130 * recog.c (preprocess_insn_constraints): Likewise.
10131 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
10132 * tree-vect-stmts.c (vectorizable_operation): Simplify.
10133
10134 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
10135
10136 PR rtl-optimization/61657
10137 * loop-iv.c (iv_number_of_iterations): Declare up and down as
10138 unsigned. Remove superflous uint64_t cast.
10139
10140 2014-08-21 Felix Yang <felix.yang@huawei.com>
10141 Jiji Jiang <jiangjiji@huawei.com>
10142
10143 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
10144 argument and get builtin function code directly from CALL.
10145 (gimple_stringop_fixed_value): Modified accordingly.
10146 (gimple_stringops_transform, gimple_stringops_values_to_profile):
10147 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
10148
10149 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
10150
10151 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
10152
10153 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10154
10155 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
10156 to match.pd.
10157 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
10158 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
10159 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
10160 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
10161 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
10162 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
10163 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
10164 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
10165 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
10166 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
10167
10168 * match.pd (SIN ) : New Operator.
10169 (TAN) : New Operator.
10170 (mult (SQRT@1 @0) @1) : New simplifier.
10171 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
10172 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10173 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10174 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
10175 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
10176 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
10177 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
10178 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
10179 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
10180 (rdiv @0 (POW:s @1 @2)) : New simplifier.
10181
10182 2015-08-21 Bin Cheng <bin.cheng@arm.com>
10183
10184 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
10185 loop if EXPR is simplified to const value.
10186
10187 2015-08-21 Yury Gribov <y.gribov@samsung.com>
10188
10189 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10190 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
10191
10192 2015-08-21 Richard Biener <rguenther@suse.de>
10193
10194 PR middle-end/67285
10195 * gimple-fold.c (replace_stmt_with_simplification): Assert
10196 seq is empty when replacing a call with itself but different
10197 arguments.
10198 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
10199 a call require that it is const.
10200
10201 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10202
10203 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10204 * builtins.c (get_object_alignment_2): Adjust.
10205 * varasm.c (align_variable): Likewise.
10206 (get_variable_align): Likewise.
10207 (build_constant_desc): Likewise.
10208 (force_const_mem): Likewise.
10209 * doc/tm.texi.in: Likewise.
10210 * doc/tm.texi: Regenerate.
10211
10212 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10213
10214 * genconfig.c (main): Always define HAVE_cc0.
10215 * recog.c (rest_of_handle_peephole2): Adjust.
10216
10217 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10218
10219 * reorg.c (relax_delay_slots): Don't use #if to check value of
10220 HAVE_cc0.
10221
10222 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10223
10224 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10225 * targhooks.c (default_have_conditional_execution): Adjust.
10226
10227 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10228
10229 * rtl.h (rtvec_all_equal_p): Declare.
10230 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10231 * rtl.c (rtvec_all_equal_p): New function.
10232 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10233 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10234 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10235 * config/arm/arm.c (neon_vdup_constant): Likewise.
10236 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10237 * config/tilegx/constraints.md (W, Y): Likewise.
10238 * config/tilepro/constraints.md (W, Y): Likewise.
10239 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10240 (classify_immediate): Use unwrap_const_vec_duplicate.
10241 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10242 (reg_or_v2s8bit_operand): Likewise.
10243 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10244 (reg_or_v4s8bit_operand): Likewise.
10245
10246 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10247
10248 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10249 (vec_shasigma_be): New #define.
10250 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10251 (VPMSUMH): Likewise.
10252 (VPMSUMW): Likewise.
10253 (VPMSUMD): Likewise.
10254 (VPMSUM): New BU_P8V_OVERLOAD_2.
10255 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10256 entries for VEC_MADD and VEC_VPMSUM.
10257
10258 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
10259
10260 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10261 Multiply argument avr_n_flash by 64 to match unit of "KiB".
10262 (avr_pgm_check_var_decl): Same.
10263
10264 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
10265
10266 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10267 initialization of HFmode scalar type (float16_t) to...
10268 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10269 code.
10270
10271 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10272
10273 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10274 having an -mfp16-format.
10275
10276 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10277
10278 * config/i386/predicates.md (vector_all_ones_operand): Use
10279 CONSTM1_RTX to simplify definition.
10280
10281 2015-08-20 Richard Biener <rguenther@suse.de>
10282
10283 * toplev.c (compile_file): Remove loop calling late_global_decl
10284 on all symbols.
10285 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10286 on decls we assembled.
10287
10288 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
10289
10290 * common/config/aarch64/aarch64-common.c
10291 (AARCH64_CPU_NAME_LENGTH): Delete.
10292 (aarch64_option_extension): New.
10293 (all_extensions): Likewise.
10294 (processor_name_to_arch): Likewise.
10295 (arch_to_arch_name): Likewise.
10296 (all_cores): New.
10297 (all_architectures): Likewise.
10298 (aarch64_get_extension_string_for_isa_flags): Likewise.
10299 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10300 architecture names.
10301 * config/aarch64/aarch64-protos.h
10302 (aarch64_get_extension_string_for_isa_flags): New.
10303 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10304 (aarch64_option_print): Get the string to print from
10305 aarch64_get_extension_string_for_isa_flags.
10306 (aarch64_declare_function_name): Likewise.
10307 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10308 (MCPU_TO_MARCH_SPEC): This.
10309 (ASM_CPU_SPEC): Use it.
10310 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10311 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10312 (EXTRA_SPEC_FUNCTIONS): Use it.
10313
10314 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
10315
10316 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10317 expansion when !ISA_HAS_LWL_LWR.
10318 (mips_block_move_straight): Update the size of elements copied to
10319 account for alignment when !ISA_HAS_LWL_LWR.
10320 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10321
10322 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10323
10324 * expr.c (expand_expr_real_2): Check gimple statement during
10325 LSHIFT_EXPR expand.
10326
10327 2015-08-19 Magnus Granberg <zorry@gentoo.org>
10328
10329 * common.opt (fstack-protector): Initialize to -1.
10330 (fstack-protector-all): Likewise.
10331 (fstack-protector-strong): Likewise.
10332 (fstack-protector-explicit): Likewise.
10333 * configure.ac: Add --enable-default-ssp.
10334 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
10335 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10336 -1.
10337 * doc/install.texi: Document --enable-default-ssp.
10338 * config.in: Regenerated.
10339 * configure: Likewise.
10340
10341 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
10342
10343 PR rtl-optimization/64164
10344 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
10345 (parm_in_stack_slot_p): ... this. Disregard mode, what
10346 matters is whether the parm will live in a pseudo or a stack
10347 slot.
10348 (expand_one_ssa_partition): Deal with params without a default
10349 def. Disregard mode.
10350 * cfgexpand.h: Renamed function declaration.
10351 * tree-ssa-coalesce.c: Adjust.
10352 * function.c (split_complex_args): Allocate stack slot for
10353 unassigned parms before splitting.
10354 (parm_in_unassigned_mem_p): New. Use it instead of
10355 parm_maybe_byref_p throughout this file.
10356 (assign_parm_setup_block): Use it. Accept pseudos in the
10357 expand-assigned rtl.
10358 (assign_parm_setup_reg): Drop BLKmode requirement.
10359 (assign_parm_setup_stack): Allocate and fill in the address of
10360 unassigned MEM parms.
10361
10362 2015-08-19 David Sherwood <david.sherwood@arm.com>
10363
10364 * genmodes.c (emit_mode_unit_size_inline): New function.
10365 (emit_mode_unit_precision_inline): New function.
10366 (emit_insn_modes_h): Emit new #define. Emit new functions.
10367 (emit_mode_unit_size): New function.
10368 (emit_mode_unit_precision): New function.
10369 (emit_mode_adjustments): Add mode_unit_size adjustments.
10370 (emit_insn_modes_c): Emit new arrays.
10371 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10372 use new inline methods.
10373
10374 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10375
10376 * config/aarch64/aarch64.c (bit_count): Delete prototype
10377 and definition.
10378 (aarch64_print_operand): Use popcount_hwi instead of the above.
10379
10380 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10381
10382 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10383 comment.
10384
10385 2015-08-19 Marek Polacek <polacek@redhat.com>
10386
10387 PR middle-end/67133
10388 * gimple-ssa-isolate-paths.c
10389 (insert_trap_and_remove_trailing_statements): Rename to ...
10390 (insert_trap): ... this. Don't remove trailing statements; split
10391 block instead.
10392 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10393
10394 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
10395
10396 PR other/67042
10397 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10398 conditionalize the whole on __GNUC__. Add fallback code
10399 depending neither on undefined nor implementation-defined behaviour.
10400
10401 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10402
10403 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10404 whitespaces with tab.
10405
10406 2015-08-19 Florian Weimer <fweimer@redhat.com>
10407
10408 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10409 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10410 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10411 Move Name_Ids instantiation to the Prj.Proc package, to avoid
10412 trampolines.
10413
10414 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10415
10416 * config/arm/arm.c (bounds_check): Use %wd print format
10417 for HOST_WIDE_INT arguments.
10418
10419 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
10420
10421 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10422 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10423 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10424 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10425 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10426 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10427 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10428 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10429 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10430 typedefs.
10431
10432 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
10433
10434 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10435 function.c, graphite-scop-detection.c, haifa-sched.c,
10436 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10437 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10438 varasm.c: Remove typedefs of structs.
10439
10440 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10441
10442 * config/rs6000/altivec.h (vec_adde): New define.
10443 (vec_addec): Likewise.
10444 (vec_double): Likewise.
10445 (vec_bperm): Likewise.
10446 (vec_gb): Likewise.
10447 * config/rs6000/rs6000-builtin.def (ADDE): New
10448 BU_ALTIVEC_OVERLOAD_3.
10449 (ADDEC): Likewise.
10450 (DOUBLE): New BU_VSX_OVERLOAD_1.
10451 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10452 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10453 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10454 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10455 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10456 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10457 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10458 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10459 and P8V_BUILTIN_VEC_VBPERMQ.
10460
10461 2015-08-18 Jason Merrill <jason@redhat.com>
10462
10463 * print-tree.c (print_node): Handle TREE_BINFO.
10464
10465 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10466
10467 PR middle-end/36757
10468 * builtins.c (expand_builtin_signbit): Add asserts to make sure
10469 we can expand BUILT_IN_SIGNBIT inline.
10470 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10471 * doc/extend.texi: Document the type-generic __builtin_signbit.
10472
10473 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
10474
10475 PR rtl-optimization/67218
10476 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10477 (simplify_unary_operation_1): Use it.
10478
10479 2015-08-18 Marek Polacek <polacek@redhat.com>
10480
10481 PR middle-end/67222
10482 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10483 if the call isn't valid.
10484 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10485 gimple_call_builtin_p.
10486 (call_may_clobber_ref_p_1): Likewise.
10487 (stmt_kills_ref_p): Likewise.
10488
10489 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
10490
10491 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10492 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10493 (mips_hard_regno_scratch_ok): Likewise.
10494 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10495 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10496
10497 2015-08-18 Bin Cheng <bin.cheng@arm.com>
10498
10499 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10500 (determine_value_range): Call refine_value_range_using_guard for
10501 each loop initial condition to improve value range.
10502
10503 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
10504
10505 * config/i386/i386.c: Remove include of fibheap.h.
10506
10507 2015-08-17 Richard Biener <rguenther@suse.de>
10508
10509 PR tree-optimization/67221
10510 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10511 (sccvn_dom_walker::before_dom_children): Mark backedges of
10512 non-executable blocks as not executable.
10513
10514 2015-08-17 David Sherwood <david.sherwood@arm.com>
10515
10516 * config/arm/arm.c (neon_element_bits): Replace call to
10517 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10518 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10519 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10520 (neon_vdup_lane<mode>): Likewise.
10521 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10522 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10523 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10524 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10525 * config/spu/spu.c (arith_immediate_p): Likewise.
10526 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10527 * expr.c (expand_expr_real_2): Likewise.
10528 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10529 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10530 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10531 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10532 New variable.
10533 * fold-const.c (fold_binary_loc): Replace call to
10534 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10535 GET_MODE_UNIT_PRECISION (m).
10536
10537 2015-08-17 Mike Stump <mikestump@comcast.net>
10538
10539 * config/arm/arm.c (arm_block_move_unaligned_straight):
10540 Emit normal move instead of unaligned load when source or destination
10541 are appropriately aligned.
10542
10543 2015-08-17 Richard Biener <rguenther@suse.de>
10544 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10545
10546 PR middle-end/16107
10547 * match.pd (div (coss (op @0) : New simplifier.
10548
10549 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
10550
10551 PR rtl-optimization/64164
10552 PR bootstrap/66978
10553 PR middle-end/66983
10554 PR rtl-optimization/67000
10555 PR middle-end/67034
10556 PR middle-end/67035
10557 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10558 * tree-ssa-copyrename.c: Removed.
10559 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10560 -ftree-coalesce-vars.
10561 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10562 * common.opt (ftree-copyrename): Ignore.
10563 (ftree-coalesce-inlined-vars): Likewise.
10564 * doc/invoke.texi: Remove the ignored options above.
10565 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10566 * tree-ssa-coalesce.h: ... here.
10567 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10568 headers required by it.
10569 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10570 across variables when flag_tree_coalesce_vars. Check register
10571 use and promoted modes to allow coalescing. Do not coalesce
10572 maybe-byref parms with SSA_NAMEs of other variables, or
10573 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
10574 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10575 with its member functions to tree-ssa-coalesce.c.
10576 (var_map_base_init): Likewise. Renamed to
10577 compute_samebase_partition_bases.
10578 (partition_view_normal): Drop want_bases parameter.
10579 (partition_view_bitmap): Likewise.
10580 * tree-ssa-live.h: Adjust declarations.
10581 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10582 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10583 default defs at the entry point.
10584 (dump_part_var_map): New.
10585 (compute_optimized_partition_bases): New, called by...
10586 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10587 of compute_samebase_partition_bases. Adjust.
10588 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10589 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10590 (ssa_default_def_partition): New.
10591 (get_rtl_for_parm_ssa_default_def): New.
10592 (align_local_variable, add_stack_var): Support anonymous SSA
10593 names.
10594 (defer_stack_allocation): Likewise. Declare earlier.
10595 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10596 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10597 Do no record deferred-allocation marker in
10598 SA.partition_to_pseudo.
10599 (expand_stack_vars): Adjust check for the marker in it.
10600 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10601 redundant MEM attr setting.
10602 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10603 from...
10604 (expand_one_stack_var): ... this. New wrapper to check and
10605 skip already expanded SSA partitions.
10606 (record_alignment_for_reg_var): New, factored out of...
10607 (expand_one_var): ... this.
10608 (expand_one_ssa_partition): New.
10609 (adjust_one_expanded_partition_var): New.
10610 (expand_one_register_var): Check and skip already expanded SSA
10611 partitions.
10612 (expand_used_vars): Don't create DECLs for anonymous SSA
10613 names. Expand all SSA partitions, then adjust all SSA names.
10614 (pass::execute): Replace the loops that set
10615 SA.partition_to_pseudo from partition leaders and cleared
10616 DECL_RTL for multi-location variables, and that which used to
10617 rename vars and set attrs, with one that clears DECL_RTL and
10618 checks that PARMs and RESULTs default_defs match DECL_RTL.
10619 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10620 * emit-rtl.c: Include stor-layout.h.
10621 (set_reg_attrs_for_parm): Handle NULL decl.
10622 (set_reg_attrs_for_decl_rtl): Take mode from expression if
10623 it's not a DECL.
10624 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10625 rather than its possibly-NULL DECL.
10626 * explow.c (promote_ssa_mode): New.
10627 * explow.h (promote_ssa_mode): Declare.
10628 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10629 (read_complex_part): Export.
10630 * expr.h (read_complex_part): Declare.
10631 * cfgexpand.h (parm_maybe_byref_p): Declare.
10632 * function.c: Include cfgexpand.h.
10633 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10634 (use_register_for_parm_decl): Wrapper for the above to
10635 special-case the result_ptr.
10636 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10637 (split_complex_args): Take assign_parm_data_all argument.
10638 Pass it to rtl_for_parm. Set up rtl and context for split
10639 args. Reset complex parm before fetching its default decl
10640 rtl.
10641 (assign_parms_unsplit_complex): Use the default-def complex
10642 parm rtl if it matches the components.
10643 (assign_parms_augmented_arg_list): Adjust.
10644 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10645 multiple locations. Recognize split complex args.
10646 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10647 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10648 (assign_parm_setup_block): Prefer SSA-assigned location, and
10649 fill in its address if the memory location of a maybe-byref
10650 parm was not assigned by cfgexpand.
10651 (assign_parm_setup_reg): Likewise. Adjust its mode as
10652 needed. Use entry_parm for equiv if stack_parm is NULL. Make
10653 sure passed_pointer parms don't need conversion. Copy address
10654 or value as needed.
10655 (assign_parm_setup_stack): Prefer SSA-assigned location.
10656 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10657 rtl before testing for pointer bounds. Special-case result_ptr.
10658 (expand_function_start): Maybe reset DECL_RTL of result.
10659 Prefer SSA-assigned location for result and static chain.
10660 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
10661 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
10662 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10663 anonymous SSA names. Use promote_ssa_mode.
10664 (get_temp_reg): Likewise.
10665 (remove_ssa_form): Adjust.
10666 * stor-layout.c (layout_decl): Don't set mem attributes of
10667 non-MEMs.
10668 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10669 and get its reg_usage for reg invalidation.
10670 (compute_bb_dataflow): Pass it insn.
10671 (emit_notes_in_bb): Likewise.
10672
10673 2015-08-14 Marek Polacek <polacek@redhat.com>
10674
10675 * tree-core.h (tree_base): Fix typo.
10676
10677 2015-08-14 Marek Polacek <polacek@redhat.com>
10678
10679 PR middle-end/67133
10680 * gimple.c (infer_nonnull_range_by_attribute): Check that the
10681 nonnull argument position is not outside function arguments.
10682
10683 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
10684
10685 PR target/67143
10686 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10687 'lconst_atomic' with 'const_atomic'.
10688 (atomic_fetch_<optab><mode>): Likewise.
10689 (atomic_<optab>_fetch<mode>): Likewise.
10690 * config/aarch64/iterators.md (lconst-atomic): Move below
10691 'const_atomic'.
10692 (const_atomic): New.
10693
10694 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
10695 Bernd Schmidt <bernds@codesourcery.com>
10696
10697 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10698 debug options.
10699 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10700 (DWARF2_DEBUGGING_INFO): Don't define.
10701 * debug.h (dwarf2_lineno_debug_hooks): Declare.
10702 * toplev.c (process_options): Add a case for it.
10703 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10704 (dwarf2out_init): Skip most initializations if
10705 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10706 case.
10707 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10708 DWARF2_LINENO_DEBUGGING_INFO.
10709 * opts.c (set_debug_level): Likewise.
10710
10711 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
10712
10713 * config/arm/types.md (is_neon_type): Add missing types.
10714
10715 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10716
10717 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10718 for skylake.
10719 * config/i386/i386.c (PTA_SKYLAKE): New macros.
10720 (processor_alias_table): Add skylake description.
10721 (enum processor_model): Add skylake processor.
10722 (arch_names_table): Add skylake record.
10723 * doc/invoke.texi: Add skylake item.
10724
10725 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
10726
10727 * ira-int.h: Include recog.h.
10728 * ira-build.c: Don't include recog.h.
10729 * ira-color.c: Likewise.
10730 * ira-conflicts.c: Likewise.
10731 * ira-costs.c: Likewise.
10732 * ira-emit.c: Likewise.
10733 * ira-lives.c: Likewise.
10734 * ira.c: Likewise.
10735 * sched-deps.c: Likewise.
10736 * sel-sched.c: Likewise.
10737 * target-globals.c: Likewise.
10738
10739 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
10740
10741 PR bootstrap/55035
10742 * reload1.c (elimination_costs_in_insn): Make it obvious to the
10743 compiler that the n_dups and n_operands loop bounds are invariant.
10744
10745 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10746
10747 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10748 expressions in A and B.
10749
10750 2015-08-13 Richard Biener <rguenther@suse.de>
10751
10752 * tree.c (nonnull_arg_p): Move from ...
10753 * tree-vrp.c (nonnull_arg_p): ... here.
10754 * tree.h (nonnull_arg_p): Declare.
10755 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10756 here, register ptr != 0 for nonnull_arg_p pointer arguments.
10757 Properly initialize static chain and by-reference result pointer.
10758 (run_scc_vn): Adjust.
10759
10760 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10761
10762 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10763 TUNE_I6400.
10764
10765 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10766
10767 * config/aarch64/aarch64-protos.h
10768 (aarch64_gen_atomic_cas): Declare.
10769 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10770 Choose appropriate instruction pattern for the target.
10771 (aarch64_gen_atomic_cas): New.
10772 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10773 (atomic_compare_and_swap<mode>_1): Rename to
10774 aarch64_compare_and_swap<mode>. Fix some indentation.
10775 (aarch64_compare_and_swap<mode>_lse): New.
10776 (aarch64_atomic_cas<mode>): New.
10777
10778 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10779
10780 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10781 (TARGET_LSE): New.
10782
10783 2015-08-13 Richard Biener <rguenther@suse.de>
10784
10785 PR tree-optimization/67191
10786 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10787 assert we value-numbered last stmts operand because it can validly
10788 trigger for unreachable code.
10789
10790 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10791
10792 PR rtl-optimization/67103
10793 * ifcvt.c (noce_try_store_flag_constants): Move
10794 x = (-(test != 0) & (b - a)) + a transformation to...
10795 (noce_try_cmove): ... Here. Try it if normal conditional
10796 move fails.
10797
10798 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10799
10800 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10801 pseudo-processors.
10802 * config/mips/mips.md (processor): Remove w32 and w64.
10803
10804 2015-08-13 Richard Biener <rguenther@suse.de>
10805
10806 PR tree-optimization/66502
10807 PR tree-optimization/67167
10808 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10809 backedge arguments.
10810 (vn_phi_lookup): Adjust.
10811 (vn_phi_insert): Likewise.
10812 (visit_phi): Prefer to value-number to another PHI node
10813 over value-numbering to a PHI argument.
10814 (init_scc_vn): Mark DFS back edges.
10815
10816 2015-08-13 Richard Biener <rguenther@suse.de>
10817
10818 * gimple.h (gcall::code_): New constant static member.
10819 (gcond::code_): Likewise.
10820 * gimple.c (gcall::code_): Define.
10821 (gcond::code_): Likewise.
10822 (is_a_helper <const gcond *>): Add.
10823 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10824 and forward to a new gcall overload with less checking and a
10825 cheaper way to access the operand.
10826 (gimple_call_lhs_ptr): Likewise.
10827 (gimple_call_set_lhs): Likewise.
10828 (gimple_call_internal_p): Likewise.
10829 (gimple_call_with_bounds_p): Likewise.
10830 (gimple_call_set_with_bounds): Likewise.
10831 (gimple_call_internal_fn): Likewise.
10832 (gimple_call_set_ctrl_altering): Likewise.
10833 (gimple_call_ctrl_altering_p): Likewise.
10834 (gimple_call_fntype): Likewise.
10835 (gimple_call_fn): Likewise.
10836 (gimple_call_fn_ptr): Likewise.
10837 (gimple_call_set_fndecl): Likewise.
10838 (gimple_call_fndecl): Likewise.
10839 (gimple_call_chain): Likewise.
10840 (gimple_call_num_args): Likewise.
10841 (gimple_call_arg): Likewise.
10842 (gimple_call_arg_ptr): Likewise.
10843 (gimple_call_set_arg): Likewise.
10844 (gimple_call_noreturn_p): Likewise.
10845 (gimple_cond_code): Likewise.
10846 (gimple_cond_lhs): Likewise.
10847 (gimple_cond_rhs): Likewise.
10848 (gimple_has_lhs): Reduce checking.
10849
10850 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10851
10852 PR middle-end/25529
10853 * match.pd (div (mult @0 @1) @1) : New simplifier.
10854
10855 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10856
10857 PR target/67071
10858 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10859 predicate to allow construction of vector constants using the
10860 VSLDOI vector shift instruction.
10861
10862 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10863 declaration.
10864
10865 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10866 the number of bytes to be shifted left and filled in with either
10867 all zero or all one bits.
10868 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10869 methods exist.
10870 (output_vec_const_move): On power8, generate XXLORC to generate
10871 a vector constant with all 1's. Do a split if we need to use a
10872 VSLDOI instruction.
10873
10874 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10875 properly test for the MSB.
10876
10877 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10878 vector constants that can be created with VSLDOI.
10879
10880 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10881
10882 revert:
10883 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10884 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10885 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10886 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10887 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10888 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10889 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10890 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10891 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10892
10893 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
10894
10895 * config/xtensa/constraints.md (define_constraint "Y"): New
10896 constraint.
10897 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10898 * config/xtensa/linux.h (ASM_SPEC): Likewise.
10899 * config/xtensa/predicates.md (move_operand): Match constants
10900 and symbols in the presence of TARGET_AUTO_LITPOOLS.
10901 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10902 immediate references to TLS data.
10903 (xtensa_emit_move_sequence): Don't force constants to memory in
10904 the presence of TARGET_AUTO_LITPOOLS.
10905 (print_operand): Add 'y' format, same as default, but capable of
10906 printing SF mode constants as well.
10907 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10908 (movsf_internal): Add movi pattern that loads literal.
10909 (movsf, movdf): Don't force constants to memory in the presence
10910 of TARGET_AUTO_LITPOOLS.
10911 (movdf_internal): Add 'Y' constraint.
10912 * config/xtensa/xtensa.opt (mauto-litpools): New option.
10913 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10914
10915 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10916
10917 * config/arm/arm-fpus.def: Replace booleans with feature flags.
10918 Update comment.
10919 * config/arm/arm.c (ARM_FPU): Update macro.
10920 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10921 (TARGET_FP16): Likewise.
10922 (TARGET_CRYPTO): Likewise.
10923 (TARGET_NEON): Likewise.
10924 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
10925 field features.
10926
10927 2015-08-12 Tom de Vries <tom@codesourcery.com>
10928
10929 PR other/67092
10930 PR other/67098
10931 * doc/install.texi: Remove --with_host_libstdcxx item. Update
10932 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10933 accordingly. Mention default for --with-stage1-ldflags.
10934
10935 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10936
10937 * config/arm/arm.h (arm_fpu_feature_set): New.
10938 (ARM_FPU_FSET_HAS): New.
10939 (FPU_FL_NONE): New.
10940 (FPU_FL_NEON): New.
10941 (FPU_FL_FP16): New.
10942 (FPU_FL_CRYPTO): New.
10943
10944 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10945
10946 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10947 after -mcmodel=large -fPIC sorry.
10948
10949 2015-08-12 Richard Biener <rguenther@suse.de>
10950
10951 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10952 comparison operand order and commutative ternary op operand order.
10953 (sccvn_dom_walker::cond_stack): New state to track temporary
10954 expressions.
10955 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10956 no longer valid.
10957 (sccvn_dom_walker::record_cond): Add a single temporary conditional
10958 expression.
10959 (sccvn_dom_walker::record_conds): Add a temporary conditional
10960 expressions and all related expressions also true/false.
10961 (sccvn_dom_walker::before_dom_children): Record temporary
10962 expressions based on the controlling condition of a single
10963 predecessor. When trying to simplify a conditional statement
10964 lookup expressions we might have inserted earlier.
10965
10966 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
10967
10968 PR target/67127
10969 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10970 to ARM core registers.
10971
10972 2015-08-12 Nathan Sidwell <nathan@acm.org>
10973
10974 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
10975 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
10976
10977 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
10978
10979 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
10980 line with comments.
10981 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
10982
10983 2015-08-12 Richard Biener <rguenther@suse.de>
10984
10985 * gimple.h (remove_pointer): New trait.
10986 (GIMPLE_CHECK2): New inline template function.
10987 (gassign::code_): New constant static member.
10988 (is_a_helper<const gassign *>): Add.
10989 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
10990 and forward to a new gassign overload with less checking and a
10991 cheaper way to access the operand.
10992 (gimple_assign_lhs_ptr): Likewise.
10993 (gimple_assign_set_lhs): Likewise.
10994 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
10995 Likewise.
10996 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
10997 Likewise.
10998 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
10999 Likewise.
11000 (gimple_assign_rhs_code): Likewise.
11001 * gimple.c (gassign::code_): Define.
11002
11003 2015-08-12 Richard Biener <rguenther@suse.de>
11004
11005 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11006 Eliminate edges marked as not executable by SCCVN.
11007 * tree-ssa-sccvn.c: Include gimple-iterator.h.
11008 (cond_dom_walker): Rename to sccvn_dom_walker.
11009 (sccvn_dom_walker::before_dom_children): Value-number defs
11010 of all stmts.
11011 (run_scc_vn): Remove loop value-numbering all SSA names.
11012 Drop not visited SSA names to varying.
11013
11014 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
11015
11016 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11017 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11018 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11019 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
11020 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11021 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11022 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11023 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
11024 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
11025
11026 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
11027
11028 PR target/66954
11029 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
11030 to enum feature_priority and feature_list.
11031 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
11032 and isa_names_table.
11033
11034 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
11035
11036 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
11037 vect_induction_def.
11038
11039 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
11040
11041 PR c/66098
11042 PR c/66711
11043 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
11044 account when deciding what was the command-line status.
11045
11046 2015-08-11 Nathan Sidwell <nathan@acm.org>
11047
11048 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
11049
11050 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
11051 we're not the only contributor to target phi.
11052
11053 2015-08-11 Jiong Wang <jiong.wang@arm.com>
11054
11055 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
11056 FIXED_REG0.
11057
11058 2015-08-11 Tom de Vries <tom@codesourcery.com>
11059
11060 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
11061
11062 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
11063
11064 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
11065 with CPU_SLM.
11066 * config/i386/i386.md (cpu): Remove knl.
11067
11068 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
11069
11070 PR libgomp/65742
11071 PR middle-end/66332
11072 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
11073 open-coded sequence.
11074 * omp-low.c (oacc_process_reduction_data): Remove handline of
11075 GOMP_DEVICE_HOST_NONSHM.
11076
11077 * lto-streamer-in.c (lto_input_mode_table): Adjust to
11078 GET_MODE_INNER changes.
11079
11080 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
11081 Ilya Verbin <ilya.verbin@intel.com>
11082
11083 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
11084
11085 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11086
11087 * doc/options.texi (EnabledBy): Document that the argument must be
11088 a Common option.
11089 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
11090 Not enabled by -Wall.
11091 * optc-gen.awk: Give nicer error messages. Detect if the argument
11092 of EnabledBy is not a Common option.
11093 * common.opt (Wnull-dereference): Not enabled by -Wall.
11094 * opt-functions.awk (lang_enabled_by): Nicer error messages.
11095
11096 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
11097
11098 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
11099 model == 0x4f as Broadwell.
11100
11101 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
11102
11103 PR rtl-optimization/67028
11104 * combine.c (simplify_comparison): Fix comment. Rearrange code.
11105 Add test to see if a const_int fits in the new mode.
11106
11107 2015-08-07 DJ Delorie <dj@redhat.com>
11108
11109 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
11110
11111 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
11112
11113 PR rtl-optimization/67029
11114 * ira-color.c: Include "recog.h" before including "ira-int.h".
11115 * target-globals.c: Likewise.
11116 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
11117 adds an alternative_mask argument and use it instead of
11118 preferred_alternatives.
11119 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
11120 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
11121 * sched-deps.c: Include "ira-int.h" after including "ira.h".
11122 (sched_analyze_insn): Update call to
11123 ira_implicitly_set_insn_hard_regs.
11124 * sel-sched.c: Include "ira-int.h" after including "ira.h".
11125 (implicit_clobber_conflict_p): Update call to
11126 ira_implicitly_set_insn_hard_regs.
11127
11128 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11129
11130 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
11131
11132 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
11133
11134 PR target/67002
11135 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
11136 currently_expanding_to_rtl is set.
11137
11138 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
11139
11140 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
11141 * configure: Regenerate.
11142
11143 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11144 Jiong Wang <jiong.wang@arm.com>
11145
11146 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11147 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11148 (REG_CLASS_NAMES): Likewise.
11149 (REG_CLASS_CONTENTS): Likewise.
11150 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11151 (aarch64_register_move_cost): Likewise.
11152 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11153 possible.
11154 * config/aarch64/constraints.md (Uc0): New constraint.
11155
11156 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11157
11158 * config/aarch64/constraints.md (Usf): Add the test of
11159 aarch64_is_noplt_call_p.
11160
11161 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11162
11163 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
11164 declaration.
11165 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
11166 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
11167 (call_symbol): Likewise.
11168
11169 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11170
11171 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
11172 for vectorizing multiplication patterns.
11173 * tree-vectorizer.h: Adjust the number of patterns.
11174
11175 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11176
11177 * config/i386/sse.md (*vec_concatv2df): Declare added
11178 alternatives as sselog type.
11179
11180 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11181
11182 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
11183 all GPRs.
11184
11185 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11186
11187 * config/s390/s390.c (s390_expand_tbegin): Expand either
11188 tbegin_1_z13 or tbegin_1 depending on VX flag.
11189 * config/s390/s390.md ("tbegin_1_z13"): New expander.
11190
11191 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11192
11193 * config/s390/s390.opt: Clarify description for -mzvector
11194 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
11195 -mzvector.
11196
11197 2015-08-06 Richard Biener <rguenther@suse.de>
11198
11199 * gimple.h (gimple_call_set_fn): Access op member directly.
11200 (gimple_call_chain_ptr): Likewise.
11201 (gimple_call_set_chain): Likewise.
11202 (gimple_cond_lhs_ptr): Likewise.
11203 (gimple_cond_set_lhs): Likewise.
11204 (gimple_cond_rhs_ptr): Likewise.
11205 (gimple_cond_set_rhs): Likewise.
11206 (gimple_cond_true_label): Likewise.
11207 (gimple_cond_set_true_label): Likewise.
11208 (gimple_cond_set_false_label): Likewise.
11209 (gimple_cond_false_label): Likewise.
11210 (gimple_label_label): Likewise.
11211 (gimple_label_set_label): Likewise.
11212 (gimple_goto_set_dest): Likewise.
11213 (gimple_asm_input_op): Likewise.
11214 (gimple_asm_input_op_ptr): Likewise.
11215 (gimple_asm_set_input_op): Likewise.
11216 (gimple_asm_output_op): Likewise.
11217 (gimple_asm_output_op_ptr): Likewise.
11218 (gimple_asm_set_output_op): Likewise.
11219 (gimple_asm_clobber_op): Likewise.
11220 (gimple_asm_set_clobber_op): Likewise.
11221 (gimple_asm_label_op): Likewise.
11222 (gimple_asm_set_label_op): Likewise.
11223 (gimple_switch_index): Likewise.
11224 (gimple_switch_index_ptr): Likewise.
11225 (gimple_return_retval_ptr): Likewise.
11226 (gimple_return_retval): Likewise.
11227 (gimple_return_set_retval): Likewise.
11228 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
11229 (gimple_switch_label): Likewise.
11230 (gimple_switch_set_label): Likewise.
11231
11232 2015-08-06 Richard Biener <rguenther@suse.de>
11233
11234 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11235 bool comparison canonicalization and restrict to integers.
11236
11237 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
11238
11239 * coretypes.h (enum symbol_visibility): Relocate here.
11240 * flag-types.h (enum symbol_visibility): Remove.
11241 * tree-core.h (enum symbol_visibility): Remove.
11242
11243 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
11244
11245 PR target/66870
11246 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11247 for no_split_stack function attribute along with
11248 flag_split_stack.
11249 (rs6000_expand_split_stack_prologue): Likewise.
11250
11251 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
11252 Jeff Law <law@redhat.com>
11253
11254 PR c/16351
11255 * doc/invoke.texi (Wnull-dereference): New.
11256 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11257 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11258 Warn for potential NULL dereferences.
11259 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11260 * ubsan.c (instrument_nonnull_arg): Call
11261 infer_nonnull_range_by_attribute.
11262 (instrument_nonnull_return): Likewise.
11263 * common.opt (Wnull-dereference); New.
11264 * gimple.c (infer_nonnull_range): Remove bool arguments.
11265 (infer_nonnull_range_by_dereference): New.
11266 (infer_nonnull_range_by_attribute): New.
11267 * gimple.h: Update declarations.
11268
11269 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11270
11271 * gensupport.c (sequence_num): Replace with...
11272 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11273 ...these new variables.
11274 (init_rtx_reader_args_cb): Update accordingly.
11275 (get_num_code_insns): Likewise.
11276 (read_md_rtx): Rework to use a while loop and get_c_test.
11277 Use the new counters. Remove redundant DEFINE_SUBST case.
11278 * genoutput.c (gen_split): Delete.
11279 (main): Don't call it.
11280
11281 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11282
11283 * gensupport.h (get_c_test): Declare.
11284 * gensupport.c (get_c_test): New function.
11285 * genconditions.c (main): Use it.
11286 * genrecog.c (validate_pattern): Likewise.
11287 (match_pattern_1): Likewise. Remove c_test argument.
11288 (match_pattern): Update accordingly and remove c_test argument.
11289 (main): Update accordingly.
11290
11291 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11292
11293 * gensupport.h (get_num_insn_codes): Declare.
11294 * gensupport.c (get_num_insn_codes): New function.
11295 * genattrtab.c (optimize_attrs): Rename max_insn_code to
11296 num_insn_codes.
11297 (main): Likewise. Use get_num_insn_codes.
11298 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11299
11300 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11301
11302 PR middle-end/66311
11303 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11304 is zero- rather than sign-extended.
11305
11306 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11307
11308 * target-insns.def (can_extend): Delete.
11309
11310 2015-08-05 Richard Biener <rguenther@suse.de>
11311
11312 PR tree-optimization/67121
11313 * tree-if-conv.c (combine_blocks): Clear range-info produced
11314 by stmts no longer executed conditionally.
11315
11316 2015-08-05 Nick Clifton <nickc@redhat.com>
11317
11318 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11319 to allow identical far pointers to remain.
11320
11321 2015-08-05 Richard Biener <rguenther@suse.de>
11322
11323 PR middle-end/67120
11324 * match.pd: Compare address bases with == if they are decls
11325 or SSA names, not operand_equal_p. Otherwise fail.
11326
11327 2015-08-05 Richard Biener <rguenther@suse.de>
11328
11329 PR tree-optimization/67055
11330 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11331 NULL gimple_block.
11332
11333 * g++.dg/torture/pr67055.C: New testcase.
11334
11335 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11336
11337 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11338 noavx512vl.
11339 (define_attr "enabled"): Handle avx521vl and noavx512vl.
11340 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
11341 AVX-512 alternative out of SSE.
11342 (define_insn "*vec_concatv2df"): Ditto.
11343
11344 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11345
11346 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
11347 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
11348 CODE_FOR_avx_ptestv4di.
11349 * config/i386/sse.md (define_mode_iterator V_AVX): New.
11350 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
11351 (define_insn "avx_ptest256"): Merge this ...
11352 (define_insn "sse4_1_ptest"): And this ...
11353 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
11354
11355 2015-08-05 Richard Biener <rguenther@suse.de>
11356
11357 PR tree-optimization/67109
11358 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
11359 against too big groups. Print whether this is a load or store
11360 group. Rename from ...
11361 (vect_analyze_group_access): ... this which is now a wrapper
11362 dissolving an invalid group.
11363 (vect_analyze_data_ref_accesses): Print whether this is a load
11364 or store group.
11365
11366 2015-08-05 Richard Biener <rguenther@suse.de>
11367
11368 PR middle-end/67107
11369 * match.pd: Guard const_binop result checking against NULL_TREE
11370 result.
11371
11372 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
11373
11374 * cse.c (cse_insn): Restoring old behaviour for src_eqv
11375 when dest and value in the REG_EQUAL are same and dest
11376 is STRICT_LOW_PART.
11377
11378 2015-08-04 Anatoly Sokolov <aesok@post.ru>
11379
11380 * config/moxie/moxie.h (PRINT_OPERAND,
11381 PRINT_OPERAND_ADDRESS): Remove macros.
11382 * config/moxie/moxie-protos.h (moxie_print_operand,
11383 moxie_print_operand_address): Remove declaration.
11384 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11385 TARGET_PRINT_OPERAND_ADDRESS): Define.
11386 (moxie_print_operand, moxie_print_operand_address): Make static.
11387
11388 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11389
11390 PR target/66731
11391 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11392 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11393
11394 2015-08-04 Richard Biener <rguenther@suse.de>
11395
11396 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11397 generated code.
11398 (dt_operand::gen_gimple_expr): Adjust.
11399
11400 2015-08-04 Richard Biener <rguenther@suse.de>
11401
11402 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11403 bool compares on RHS.
11404 * match.pd: Add X ==/!= !X is false/true pattern.
11405
11406 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
11407
11408 * config/aarch64/aarch64.c: Change inner loop statement cost
11409 to be consistent with other targets.
11410
11411 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
11412
11413 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11414 targets.
11415
11416 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
11417
11418 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11419 (machine_function): Remove pseudos field.
11420
11421 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11422
11423 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11424 Exit early and use target_option_current_node if processing current
11425 pragma.
11426
11427 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11428
11429 * doc/extend.texi (AArch64 Function Attributes): New node.
11430 (AArch64 Pragmas): Likewise.
11431
11432 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11433
11434 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11435 Initialize simd builtins if TARGET_SIMD.
11436 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11437 Make sure that the builtins are initialized only once no matter how
11438 many times the function is called.
11439 (aarch64_init_builtins): Unconditionally initialize crc builtins.
11440 (aarch64_relayout_simd_param): New function.
11441 (aarch64_simd_expand_args): Use above during argument expansion.
11442 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11443 simd builtins if TARGET_SIMD.
11444 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11445 prototype.
11446 (aarch64_relayout_simd_types): Likewise.
11447
11448 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11449
11450 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11451 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11452 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11453 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11454 static keyword.
11455 (aarch64_reset_previous_fndecl): New function.
11456 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11457 the string.
11458 * config/aarch64/aarch64-c.c: New file.
11459 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11460 Push and pop options at beginning and end. Remove ifdef
11461 __ARM_FEATURE_CRC32.
11462 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11463 Add pragma +nothing+simd and +nothing+crypto where appropriate.
11464 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11465 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11466 Define prototype.
11467 (aarch64_register_pragmas): Likewise.
11468 (aarch64_reset_previous_fndecl): Likewise.
11469 (aarch64_process_target_attr): Likewise.
11470 (aarch64_override_options_internal): Likewise.
11471
11472 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11473
11474 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11475 New function.
11476 (aarch64_can_inline_p): Likewise.
11477 (TARGET_CAN_INLINE_P): Define.
11478
11479 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11480
11481 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11482 Remove static. Handle OPT_mgeneral_regs_only,
11483 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11484 OPT_momit_leaf_frame_pointer.
11485 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11486 (aarch64_attr_opt_type): New enum.
11487 (aarch64_attribute_info): New struct.
11488 (aarch64_handle_attr_arch): New function.
11489 (aarch64_handle_attr_cpu): Likewise.
11490 (aarch64_handle_attr_tune): Likewise.
11491 (aarch64_handle_attr_isa_flags): Likewise.
11492 (aarch64_attributes): New table.
11493 (aarch64_process_one_target_attr): New function.
11494 (num_occurences_in_str): Likewise.
11495 (aarch64_process_target_attr): Likewise.
11496 (aarch64_option_valid_attribute_p): Likewise.
11497 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11498 * config/aarch64/aarch64-protos.h: Include input.h
11499 (aarch64_handle_option): Declare prototype.
11500
11501 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11502
11503 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11504 * config/aarch64/aarch64.c: Include target-globals.h
11505 (aarch64_previous_fndecl): New variable.
11506 (aarch64_set_current_function): New function.
11507 (TARGET_SET_CURRENT_FUNCTION): Define.
11508
11509 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11510
11511 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11512 (explicit_arch): Likewise.
11513 (x_aarch64_isa_flags): Likewise.
11514 (mgeneral-regs-only): Mark as Save.
11515 (mfix-cortex-a53-835769): Likewise.
11516 (mcmodel=): Likewise.
11517 (mstrict-align): Likewise.
11518 (momit-leaf-frame-pointer): Likewise.
11519 (mtls-dialect): Likewise.
11520 (master=): Likewise.
11521 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11522 (aarch64_isa_flags): Remove extern declaration.
11523 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11524 to indicate success or failure.
11525 (aarch64_validate_march): Likewise.
11526 (aarch64_validate_mtune): Likewise.
11527 (aarch64_isa_flags): Delete.
11528 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11529 instead of aarch64_isa_flags.
11530 (aarch64_get_tune_cpu): New function.
11531 (aarch64_get_arch): Likewise.
11532 (aarch64_override_options): Use above and set up explicit_tune_core
11533 and explicit_arch.
11534 (aarch64_print_extension): Move earlier in file. Add isa_flags
11535 argument and use that instead of the global aarch64_isa_flags.
11536 (aarch64_option_save): New function.
11537 (aarch64_option_restore): Likewise.
11538 (aarch64_option_print): Likewise.
11539 (aarch64_declare_function_name): Likewise.
11540 (aarch64_start_file): Delete.
11541 (TARGET_ASM_FILE_START): Do not define.
11542 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11543 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11544 Declare prototype.
11545
11546 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11547
11548 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11549 flag_omit_leaf_frame_pointer to 2.
11550
11551 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11552
11553 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11554 define to 0 or 1.
11555 (TARGET_FIX_ERR_A53_835769): New macro.
11556 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11557 handling of opts->x_aarch64_fix_a53_err835769.
11558 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11559 than aarch64_fix_a53_err835769.
11560 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11561 * config/aarch64/aarch64-linux.h: Likewise.
11562
11563 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
11564
11565 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11566 ix86_expand_int_movcc as boolean.
11567
11568 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11569
11570 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11571 (aarch64_cpu_string): Likewise.
11572 (aarch64_tune_string): Likewise.
11573 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11574 (aarch64_parse_extension): Return aarch64_parse_opt_result.
11575 Add extra argument to put result into.
11576 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
11577 (aarch64_parse_cpu): Add arguments to put results into. Return
11578 aarch64_parse_opt_result.
11579 (aarch64_parse_tune): Likewise.
11580 (aarch64_override_options_after_change_1): New function.
11581 (aarch64_override_options_internal): New function.
11582 (aarch64_validate_mcpu): Likewise.
11583 (aarch64_validate_march): Likewise.
11584 (aarch64_validate_mtune): Likewise.
11585 (aarch64_override_options): Update to reflect above changes.
11586 Move some logic into aarch64_override_options_internal.
11587 Initialize target_option_default_node and target_option_current_node.
11588 (aarch64_override_options_after_change): Move logic into
11589 aarch64_override_options_after_change_1 and call it with global_options.
11590 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11591 flag values from that.
11592
11593 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11594
11595 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11596 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11597 * config/aarch64/aarch64.c (struct processor): Add arch field.
11598 (all_architectures): Handle above, move above all_cores.
11599 (all_cores): Handle above.
11600 (aarch64_parse_arch): Handle above changes.
11601 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11602 above. Update comments.
11603 (armv8.1-a): Likewise.
11604 * config/aarch64/aarch64-cores.def: Update according to above.
11605 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11606 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11607 aarch64_arch_driver_info.
11608
11609 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11610
11611 * config/aarch64/aarch64.c (struct processor): Add ident field.
11612 Rename core sched_core.
11613 (all_cores): Handle above changes.
11614 (all_architectures): Likewise.
11615 (aarch64_parse_arch): Likewise.
11616 (aarch64_override_options): Likewise.
11617
11618 2015-08-04 Richard Biener <rguenther@suse.de>
11619
11620 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11621 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11622 comparisons embedded in [VEC_]COND_EXPRs.
11623
11624 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
11625
11626 * tree-if-conv.c: Fix various typos in comments.
11627 * tree-vect-stmts.c: Likewise.
11628
11629 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11630
11631 PR tree-optimization/67043
11632 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11633 preheader after hoisting invariant in it.
11634 (find_defs): Force recomputation of all luids.
11635
11636 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
11637
11638 * config/rs6000/htm.md (tabort.): Restrict the source operand to
11639 using a base register.
11640
11641 2015-08-03 David Malcolm <dmalcolm@redhat.com>
11642
11643 * main.c (main): Pass in NULL for toplev's external_timer.
11644 * timevar.c: Include coretypes.h.
11645 (class timer::named_items): New.
11646 (timer::named_items::named_items): New.
11647 (timer::named_items::~named_items): New.
11648 (timer::named_items::push): New.
11649 (timer::named_items::pop): New.
11650 (timer::named_items::print): New.
11651 (timer::timer): Initialize field "m_jit_client_items".
11652 (timer::~timer): New.
11653 (timer::push): Move bulk of implementation to...
11654 (timer::push_internal): ...here. New function.
11655 (timer::pop): Move bulk of implementation to...
11656 (timer::pop_internal): ...here. New function.
11657 (timer::push_client_item): New.
11658 (timer::pop_client_item): New.
11659 (timer::print_row): New function, taken from timer::print.
11660 (timer::print): Print "GCC items" header if we also have client
11661 items. Move row-printing to timer::print_row. Print any client
11662 items.
11663 (timer::get_topmost_item_name): New method.
11664 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11665 (TV_JIT_CLIENT_CODE): New.
11666 * timevar.h (timer::push_client_item): New declaration.
11667 (timer::pop_client_item): New declaration.
11668 (timer::get_topmost_item_name): New method.
11669 (timer::push_internal): New declaration.
11670 (timer::pop_internal): New declaration.
11671 (timer::print_row): New declaration.
11672 (timer::named_items): New declaration.
11673 (timer::m_jit_client_items): New field.
11674 (timer): Add friend class named_items.
11675 (auto_timevar::auto_timevar): Add timer param.
11676 (auto_timevar::~auto_timevar): Use field "m_timer".
11677 (auto_timevar::m_timer): New field.
11678 * toplev.c (initialize_rtl): Add g_timer as param when
11679 constructing auto_timevar instance.
11680 (toplev::toplev): Add "external_timer" param, and use it to
11681 initialize the "g_timer" global if non-NULL.
11682 (toplev::~toplev): If this created "g_timer", delete it.
11683 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11684 with "external_timer" timer *.
11685
11686 2015-08-03 Alexander Basov <coohpt@gmail.com>
11687
11688 PR middle-end/64744
11689 PR middle-end/48470
11690 PR middle-end/43404
11691 * cfgexpand.c (expand_one_var): Add check if stack is going to
11692 be used in naked function.
11693 * expr.c (expand_expr_addr_expr_1): Remove excess checking
11694 whether expression should not reside in MEM.
11695 * function.c (use_register_for_decl): Do not use registers for
11696 non-register things (volatile, float, BLKMode) in naked functions.
11697
11698 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
11699
11700 PR target/67060
11701 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11702 Adjust splits to match new pattern.
11703
11704 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11705
11706 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11707 (VEC_M): Likewise.
11708 (VEC_N): Likewise.
11709 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11710 point in VSX registers.
11711
11712 * config/rs6000/constraints.md (wb constraint): Document unused
11713 w<x> constraint.
11714 (we constraint): Likewise.
11715 (wo constraint): Likewise.
11716 (wp constraint): New constraint for IEEE 128-bit floating point in
11717 VSX registers.
11718 (wq constraint): Likewise.
11719
11720 * config/rs6000/predicates.md (easy_fp_constant): Add support for
11721 IEEE 128-bit floating point in VSX registers.
11722 (easy_scalar_constant): Likewise.
11723
11724 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11725 constraints (wp, wq) for IEEE 128-bit floating point in VSX
11726 registers.
11727 (rs6000_init_hard_regno_mode_ok): Likewise.
11728
11729 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11730 floating point in VSX registers.
11731 (VSX_L): Likewise.
11732 (VSX_M): Likewise.
11733 (VSX_M2): Likewise.
11734 (VSm): Likewise.
11735 (VSs): Likewise.
11736 (VSr): Likewise.
11737 (VSa): Likewise.
11738 (VSv): Likewise.
11739 (vsx_le_permute_<mode>): Add support to properly swap bytes for
11740 IEEE 128-bit floating point in VSX registers on little endian.
11741 (vsx_le_undo_permute_<mode>): Likewise.
11742 (vsx_le_perm_load_<mode>): Likewise.
11743 (vsx_le_perm_store_<mode>): Likewise.
11744 (splitters for IEEE 128-bit fp moves): Likewise.
11745
11746 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11747 wq constraints.
11748
11749 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11750 floating point in VSX registers.
11751 (VM2): Likewise.
11752
11753 * doc/md.text (Machine Constraints): Document wp and wq
11754 constraints on PowerPC.
11755
11756 2015-08-03 Jeff Law <law@redhat.com>
11757
11758 PR middle-end/66314
11759 PR gcov-profile/66899
11760 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11761 iterate over the jump threading paths when an element in the
11762 jump threading paths array is eliminated.
11763
11764 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
11765
11766 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11767
11768 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
11769
11770 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11771 is_use_properly_guarded the variable def_preds. Free its
11772 contents before returning.
11773 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11774 (is_use_properly_guarded): Replace local variable def_preds with
11775 a parameter. Adjust accordingly. Only update *def_preds if it's
11776 the empty vector.
11777
11778 2015-08-03 Richard Biener <rguenther@suse.de>
11779
11780 * genmatch.c (simplify::for_subst_vec): New member.
11781 (binary_ok): New helper for for lowering.
11782 (lower_for): Delay substituting operators into result expressions
11783 if we can merge the results eventually again.
11784 (capture_info::walk_result): Adjust for user_id appearing as
11785 result expression operator.
11786 (expr::gen_transform): Likewise.
11787 (dt_simplify::gen_1): Likewise.
11788 (dt_simplify::gen): Pass not substituted operators to tail
11789 functions or initialize local variable with it.
11790 (decision_tree::gen): Adjust function signature.
11791 * match.pd: Fix tests against global code and add default
11792 cases to switch stmts.
11793
11794 2015-08-03 Richard Biener <rguenther@suse.de>
11795
11796 * genmatch.c (dt_simplify::gen): Create captures array
11797 with an initializer.
11798
11799 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11800
11801 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11802 the host compiler is affected by placement new aliasing bug.
11803 * configure: Regenerate.
11804 * Makefile.in (ALIASING_FLAGS): New variable.
11805 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11806
11807 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11808
11809 PR target/66731
11810 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11811 (negmulsf3_vfp): Likewise.
11812 (muldf3negdf_vfp): Disable for -frounding-math.
11813 (mulsf3negsf_vfp): Likewise.
11814 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11815 fix MULT cost with -frounding-math.
11816
11817 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11818
11819 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11820 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11821 explicit. Prefer to add the flag whenever possible.
11822 (noce_process_if_block): Try noce_try_store_flag_constants before
11823 noce_try_cmove.
11824
11825 2015-08-03 Richard Biener <rguenther@suse.de>
11826
11827 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11828 New hash-map to record equivalent transforms.
11829 (dt_node::analyze): Populate the equivalent transforms hash-map.
11830 (dt_simplify::info): Add reference to hash-map entry.
11831 (dt_simplify::gen): If we have split out a function for the
11832 transform, generate a call to it.
11833 (sinfo_hashmap_traits::hash): New function.
11834 (compare_op): New helper function for ...
11835 (sinfo_hashmap_traits::equal_keys): ... this new function.
11836 (decision_tree::gen): Split out common equivalent transforms
11837 into functions.
11838
11839 2015-08-03 Richard Biener <rguenther@suse.de>
11840
11841 * gimple-fold.c (fold_gimple_assign): Remove folding of
11842 the comparison in COND_EXPRs.
11843
11844 2015-08-03 Richard Biener <rguenther@suse.de>
11845
11846 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11847 on the rhs of assignments first simplify the embedded
11848 GENERIC condition.
11849
11850 2015-08-03 Richard Biener <rguenther@suse.de>
11851
11852 PR tree-optimization/66917
11853 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11854 field.
11855 (DR_VECT_AUX): New macro.
11856 (set_dr_misalignment): Adjust.
11857 (dr_misalignment): Likewise.
11858 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11859 Compute whether the base is at least element aligned.
11860 * tree-vect-stmts.c (ensure_base_align): Adjust.
11861 (vectorizable_store): If the base is not element aligned
11862 preserve alignment of the original access if misalignment is unknown.
11863 (vectorizable_load): Likewise.
11864
11865 2015-08-02 Martin Sebor <msebor@redhat.com>
11866
11867 * c-family/c.opt (-Wframe-address): New warning option.
11868 * doc/invoke.texi (Wframe-address): Document it.
11869 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11870 Clarify possible effects of calling the functions with non-zero
11871 arguments and mention -Wframe-address.
11872 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11873
11874 2015-08-01 Michael Collison <michael.collison@linaro.org
11875 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11876
11877 * config/arm/arm.md (*arm_smin_cmp): New pattern.
11878 (*arm_umin_cmp): Likewise.
11879
11880 2015-08-01 Caroline Tice <cmtice@google.com>
11881
11882 PR 66521
11883 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11884 global variables.
11885 (vtbl_find_mangled_name): New function.
11886 (vtbl_register_mangled_name): New function.
11887 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
11888 mangled name in mangled name vectors.
11889 (find_or_create_vtbl_map_node): Ditto.
11890 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
11891 update recursion_depth on function entry; pass it to every recursive
11892 call; automatically exit if depth > 25 (give up looking at that point).
11893 (verify_bb_vtables): Initialize recursion_depth and pass it to
11894 var_is_used_for_virtual_call_p.
11895 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11896 global variable decls.
11897 (vtbl_register_mangled_name): New extern function decl.
11898
11899 2015-08-01 Tom de Vries <tom@codesourcery.com>
11900
11901 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11902 function.
11903 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11904 Declare.
11905 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11906 operation_no_trapping_overflow. Allow non-overflow operations.
11907 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11908 operations.
11909
11910 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11911
11912 PR target/67049
11913 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11914
11915 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11916
11917 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11918 Enable for TARGET_32BIT.
11919 (*if_move_neg): Likewise.
11920
11921 2015-07-31 Nick Clifton <nickc@redhat.com>
11922
11923 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11924 Returns true for __model__.
11925 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11926
11927 2015-07-31 Alan Modra <amodra@gmail.com>
11928
11929 PR target/66870
11930 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11931 (rs6000_emit_prologue): Set it.
11932 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11933
11934 2015-07-31 Richard Biener <rguenther@suse.de>
11935
11936 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11937 -> X == (C1 ^ C2) which is already implemented in match.pd.
11938 Remove redundant dispatching to fold_relational_const.
11939 Move unordered self and NaN compares ...
11940 * match.pd: ... as patterns here. Remove some stray captures
11941 and add a comment.
11942
11943 2015-07-31 Petr Murzin <petr.murzin@intel.com>
11944
11945 * config/i386/i386.c
11946 (bdesc_special_args): Convert mask type from signed to unsigned for
11947 masked builtins.
11948 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11949 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11950 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11951 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11952 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11953 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11954 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11955 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11956 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11957 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11958 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11959 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11960 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11961 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11962 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11963 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11964 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11965 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11966 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11967 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11968 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11969 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11970 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11971 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
11972 * config/i386/i386-builtin-types.def
11973 (V16QI_FTYPE_V16SI): Remove.
11974 (V8DF_FTYPE_V8SI): Ditto.
11975 (V8HI_FTYPE_V8DI): Ditto.
11976 (V8SI_FTYPE_V8DI): Ditto.
11977 (V8SF_FTYPE_V8DF): Ditto.
11978 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
11979 (V16HI_FTYPE_V16SI): Ditto.
11980 (V16SF_FTYPE_V16HI): Ditto.
11981 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
11982 (V16SF_FTYPE_V16SI): Ditto.
11983 (V4DI_FTYPE_V4DI): Ditto.
11984 (V16SI_FTYPE_V16SF): Ditto.
11985 (V16SF_FTYPE_FLOAT): Ditto.
11986 (V8DF_FTYPE_DOUBLE): Ditto.
11987 (V8DI_FTYPE_INT64): Ditto.
11988 (V8DI_FTYPE_V4DI): Ditto.
11989 (V16QI_FTYPE_V8DI): Ditto.
11990 (UINT_FTYPE_V4SF): Ditto.
11991 (UINT64_FTYPE_V4SF): Ditto.
11992 (UINT_FTYPE_V2DF): Ditto.
11993 (UINT64_FTYPE_V2DF): Ditto.
11994 (V16SI_FTYPE_V16SI): Ditto.
11995 (V8DI_FTYPE_V8DI): Ditto.
11996 (V16SI_FTYPE_PV4SI): Ditto.
11997 (V16SF_FTYPE_PV4SF): Ditto.
11998 (V8DI_FTYPE_PV2DI): Ditto.
11999 (V8DF_FTYPE_PV2DF): Ditto.
12000 (V4DI_FTYPE_PV2DI): Ditto.
12001 (V4DF_FTYPE_PV2DF): Ditto.
12002 (V16SI_FTYPE_PV2SI): Ditto.
12003 (V16SF_FTYPE_PV2SF): Ditto.
12004 (V8DI_FTYPE_PV4DI): Ditto.
12005 (V8DF_FTYPE_PV4DF): Ditto.
12006 (V8SF_FTYPE_FLOAT): Ditto.
12007 (V4SF_FTYPE_FLOAT): Ditto.
12008 (V4DF_FTYPE_DOUBLE): Ditto.
12009 (V8SF_FTYPE_PV4SF): Ditto.
12010 (V8SI_FTYPE_PV4SI): Ditto.
12011 (V4SI_FTYPE_PV2SI): Ditto.
12012 (V8SF_FTYPE_PV2SF): Ditto.
12013 (V8SI_FTYPE_PV2SI): Ditto.
12014 (V16SF_FTYPE_PV8SF): Ditto.
12015 (V16SI_FTYPE_PV8SI): Ditto.
12016 (V8DI_FTYPE_V8SF): Ditto.
12017 (V4DI_FTYPE_V4SF): Ditto.
12018 (V2DI_FTYPE_V4SF): Ditto.
12019 (V64QI_FTYPE_QI): Ditto.
12020 (V32HI_FTYPE_HI): Ditto.
12021 (V8UHI_FTYPE_V8UHI): Ditto.
12022 (V16UHI_FTYPE_V16UHI): Ditto.
12023 (V32UHI_FTYPE_V32UHI): Ditto.
12024 (V2UDI_FTYPE_V2UDI): Ditto.
12025 (V4UDI_FTYPE_V4UDI): Ditto.
12026 (V8UDI_FTYPE_V8UDI): Ditto.
12027 (V4USI_FTYPE_V4USI): Ditto.
12028 (V8USI_FTYPE_V8USI): Ditto.
12029 (V16USI_FTYPE_V16USI): Ditto.
12030 (V2DF_FTYPE_V2DF_UINT64): Ditto.
12031 (V2DI_FTYPE_V2DF_V2DF): Ditto.
12032 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
12033 (V8DF_FTYPE_V8DF_V8DI): Ditto.
12034 (V4SF_FTYPE_V4SF_UINT64): Ditto.
12035 (V4SI_FTYPE_V4SF_V4SF): Ditto.
12036 (V16SF_FTYPE_V16SF_V16SI): Ditto.
12037 (V64QI_FTYPE_V32HI_V32HI): Ditto.
12038 (V32HI_FTYPE_V16SI_V16SI): Ditto.
12039 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
12040 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
12041 (V32HI_FTYPE_V64QI_V64QI): Ditto.
12042 (V32HI_FTYPE_V32HI_V32HI): Ditto.
12043 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
12044 (V16SI_FTYPE_V16SI_V4SI): Ditto.
12045 (V16SI_FTYPE_V16SI_V16SI): Ditto.
12046 (V16SI_FTYPE_V32HI_V32HI): Ditto.
12047 (V16SI_FTYPE_V16SI_SI): Ditto.
12048 (V8DI_FTYPE_V8DI_V8DI): Ditto.
12049 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
12050 (V8DI_FTYPE_V16SI_V16SI): Ditto.
12051 (V8DI_FTYPE_V8DI_V2DI): Ditto.
12052 (QI_FTYPE_QI): Ditto.
12053 (SI_FTYPE_SI): Ditto.
12054 (DI_FTYPE_DI): Ditto.
12055 (QI_FTYPE_QI_QI): Ditto.
12056 (QI_FTYPE_QI_INT): Ditto.
12057 (HI_FTYPE_HI_INT): Ditto.
12058 (SI_FTYPE_SI_INT): Ditto.
12059 (DI_FTYPE_DI_INT): Ditto.
12060 (HI_FTYPE_V16QI_V16QI): Ditto.
12061 (SI_FTYPE_V32QI_V32QI): Ditto.
12062 (DI_FTYPE_V64QI_V64QI): Ditto.
12063 (QI_FTYPE_V8HI_V8HI): Ditto.
12064 (HI_FTYPE_V16HI_V16HI): Ditto.
12065 (SI_FTYPE_V32HI_V32HI): Ditto.
12066 (QI_FTYPE_V4SI_V4SI): Ditto.
12067 (QI_FTYPE_V8SI_V8SI): Ditto.
12068 (QI_FTYPE_V2DI_V2DI): Ditto.
12069 (QI_FTYPE_V4DI_V4DI): Ditto.
12070 (QI_FTYPE_V8DI_V8DI): Ditto.
12071 (HI_FTYPE_V16SI_V16SI): Ditto.
12072 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
12073 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
12074 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
12075 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
12076 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
12077 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
12078 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
12079 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
12080 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
12081 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
12082 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
12083 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
12084 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
12085 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
12086 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
12087 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
12088 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
12089 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
12090 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
12091 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
12092 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
12093 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
12094 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
12095 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
12096 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
12097 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
12098 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
12099 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
12100 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
12101 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
12102 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
12103 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
12104 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
12105 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
12106 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
12107 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
12108 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
12109 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
12110 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
12111 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
12112 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
12113 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
12114 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
12115 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
12116 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
12117 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
12118 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
12119 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
12120 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
12121 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
12122 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
12123 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
12124 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
12125 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
12126 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
12127 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
12128 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
12129 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
12130 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
12131 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
12132 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
12133 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
12134 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
12135 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
12136 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
12137 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
12138 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
12139 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
12140 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
12141 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
12142 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
12143 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
12144 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
12145 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
12146 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
12147 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
12148 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
12149 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
12150 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
12151 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
12152 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
12153 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
12154 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
12155 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
12156 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
12157 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
12158 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
12159 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
12160 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
12161 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
12162 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
12163 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
12164 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
12165 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
12166 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
12167 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
12168 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
12169 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
12170 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
12171 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
12172 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
12173 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
12174 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
12175 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
12176 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
12177 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
12178 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
12179 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
12180 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
12181 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
12182 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
12183 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
12184 (HI_FTYPE_HI): Ditto.
12185 (HI_FTYPE_V16QI): Ditto.
12186 (SI_FTYPE_V32QI): Ditto.
12187 (DI_FTYPE_V64QI): Ditto.
12188 (QI_FTYPE_V8HI): Ditto.
12189 (HI_FTYPE_V16HI): Ditto.
12190 (SI_FTYPE_V32HI): Ditto.
12191 (QI_FTYPE_V4SI): Ditto.
12192 (QI_FTYPE_V8SI): Ditto.
12193 (HI_FTYPE_V16SI): Ditto.
12194 (QI_FTYPE_V2DI): Ditto.
12195 (QI_FTYPE_V4DI): Ditto.
12196 (QI_FTYPE_V8DI): Ditto.
12197 (V16QI_FTYPE_HI): Ditto.
12198 (V32QI_FTYPE_SI): Ditto.
12199 (V64QI_FTYPE_DI): Ditto.
12200 (V8HI_FTYPE_QI): Ditto.
12201 (V16HI_FTYPE_HI): Ditto.
12202 (V32HI_FTYPE_SI): Ditto.
12203 (V4SI_FTYPE_QI): Ditto.
12204 (V4SI_FTYPE_HI): Ditto.
12205 (V8SI_FTYPE_QI): Ditto.
12206 (V8SI_FTYPE_HI): Ditto.
12207 (V2DI_FTYPE_QI): Ditto.
12208 (V4DI_FTYPE_QI): Ditto.
12209 (HI_FTYPE_HI_HI): Ditto.
12210 (SI_FTYPE_SI_SI): Ditto.
12211 (DI_FTYPE_DI_DI): Ditto.
12212 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12213 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12214 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12215 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12216 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12217 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12218 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12219 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12220 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12221 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12222 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12223 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12224 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12225 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12226 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12227 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12228 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12229 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12230 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12231 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12232 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12233 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12234 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12235 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12236 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12237 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12238 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12239 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12240 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12241 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12242 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12243 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12244 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12245 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12246 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12247 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12248 (V16SI_FTYPE_HI): Ditto.
12249 (V8DI_FTYPE_QI): Ditto.
12250 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12251 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12252 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12253 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12254 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12255 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12256 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12257 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12258 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12259 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12260 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12261 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12262 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12263 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12264 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12265 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12266 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12267 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12268 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12269 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12270 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12271 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12272 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12273 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12274 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12275 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12276 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12277 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12278 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12279 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12280 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12281 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12282 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12283 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12284 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12285 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12286 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12287 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12288 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12289 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12290 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12291 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12292 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12293 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12294 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12295 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12296 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12297 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12298 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12299 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12300 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12301 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12302 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12303 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12304 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12305 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12306 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12307 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12308 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12309 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12310 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12311 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12312 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12313 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12314 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12315 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12316 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12317 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12318 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12319 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12320 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12321 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12322 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12323 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12324 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12325 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12326 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12327 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12328 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12329 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12330 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12331 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12332 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12333 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12334 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12335 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12336 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12337 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12338 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12339 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
12340 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
12341 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
12342 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
12343 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
12344 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
12345 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
12346 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
12347 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
12348 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
12349 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
12350 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
12351 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
12352 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
12353 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
12354 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
12355 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
12356 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
12357 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
12358 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
12359 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
12360 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
12361 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
12362 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
12363 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
12364 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
12365 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
12366 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12367 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12368 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12369 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12370 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12371 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12372 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12373 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12374 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12375 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12376 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12377 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12378 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12379 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12380 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12381 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12382 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12383 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12384 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12385 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12386 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12387 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12388 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12389 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12390 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12391 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12392 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12393 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12394 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12395 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12396 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12397 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12398 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12399 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12400 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12401 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12402 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12403 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12404 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12405 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12406 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12407 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12408 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12409 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12410 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12411 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12412 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12413 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12414 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12415 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12416 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12417 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12418 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12419 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12420 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12421 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12422 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12423 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12424 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12425 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12426 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12427 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12428 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12429 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12430 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12431 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12432 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12433 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12434 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12435 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12436 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12437 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12438 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12439 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12440 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12441 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12442 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12443 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12444 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12445 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12446 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12447 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12448 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12449 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12450 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12451 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12452 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12453 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12454 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12455 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12456 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12457 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12458 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12459 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12460 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12461 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12462 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12463 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12464 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12465 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12466 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12467 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12468 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12469 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12470 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12471 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12472 (QI_FTYPE_V8DF_INT_QI): Ditto.
12473 (QI_FTYPE_V4DF_INT_QI): Ditto.
12474 (QI_FTYPE_V2DF_INT_QI): Ditto.
12475 (HI_FTYPE_V16SF_INT_HI): Ditto.
12476 (QI_FTYPE_V8SF_INT_QI): Ditto.
12477 (QI_FTYPE_V4SF_INT_QI): Ditto.
12478 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12479
12480 2015-07-31 Richard Biener <rguenther@suse.de>
12481
12482 * gimple-fold.c (fold_gimple_assign): Remove folding of
12483 GIMPLE_BINARY_RHS.
12484
12485 2015-07-31 Tom de Vries <tom@codesourcery.com>
12486
12487 PR tree-optimization/66846
12488 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12489 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12490 (expand_omp_target) [ENABLE_CHECKING]: Same.
12491 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12492 cfun if !LOOPS_NEED_FIXUP.
12493 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
12494 that omp_for already has its own loop struct.
12495 * tree-parloops.c (create_phi_for_local_result)
12496 (create_call_for_reduction): Handle simple latch bb.
12497 (create_parallel_loop): Add simple latch bb to preserve
12498 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
12499 (gen_parallel_loop): Remove call to cancel_loop_tree.
12500 (parallelize_loops): Skip loops that are inner loops of parallelized
12501 loops.
12502 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12503 verify_loop_structure.
12504
12505 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12506
12507 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12508 * config/v850/v850.md (RV_REGNUM): New constants.
12509 * config/v850/v850.c (v850_libcall_value): New functions.
12510 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12511 (TARGET_LIBCALL_VALUE): Define.
12512
12513 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12514
12515 * rtl.h (lowpart_subreg): Move in file.
12516 * loop-iv.c (lowpart_subreg): Move to...
12517 * simplify-rtx.c (lowpart_subreg): ...here.
12518 (simplify_binary_operation_1): Use lowpart_subreg instead of
12519 simplify_gen_subreg.
12520 * expr.c (expand_expr_real_2): Ditto.
12521 * emit-rtl.c (gen_lowpart_common): Ditto.
12522 * combine.c (gen_lowpart_for_combine): Ditto.
12523 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12524 expand_debug_source_expr): Ditto.
12525
12526 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
12527
12528 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12529 (expand_builtin_atomic_clear): Remove support for atomic_clear
12530 pattern.
12531
12532 2015-07-30 Richard Biener <rguenther@suse.de>
12533
12534 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12535 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12536 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
12537 redundant operand canonicalization.
12538
12539 2015-07-30 David Sherwood <david.sherwood@arm.com>
12540
12541 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12542 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12543 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12544 * config/arm/arm.c (neon_valid_immediate): Likewise.
12545 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12546 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12547 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12548 (expand_vec_perm_vpshufb2_vpermq): Likewise.
12549 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12550 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12551 * config/i386/sse.md
12552 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12553 (*ssse3_palignr<mode>_perm): Likewise.
12554 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12555 * config/spu/spu.c (arith_immediate_p): Likewise.
12556 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12557 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12558
12559 2015-07-30 Richard Biener <rguenther@suse.de>
12560
12561 * genmatch.c (decision_tree::gen_gimple): Merge with ...
12562 (decision_tree::gen_generic): ... this into ...
12563 (decision_tree::gen): ... this.
12564 (main): Adjust callers.
12565
12566 2015-07-30 Richard Biener <rguenther@suse.de>
12567
12568 * genmatch.c (verbose): New global.
12569 (warning_at): Add overload with source_location.
12570 (capture_info::capture_info): Add bool whether generating gimple
12571 or generic. Add gimple member.
12572 (capture_info::cinfo): Add capture member.
12573 (capture_info::walk_match): Record capture. Warn on
12574 non-captured leafs.
12575 (capture_info::walk_c_expr): Add more fragments captures cannot
12576 escape through. Warn on escaped captures.
12577 (dt_simplify::gen_1): Warn on operands we force to have no
12578 side-effects.
12579 (main): Initialize verbose.
12580 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12581
12582 2015-07-30 Richard Biener <rguenther@suse.de>
12583
12584 PR middle-end/67053
12585 * match.pd: Allow both operands to independently have conversion
12586 when simplifying compares of addresses.
12587
12588 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12589
12590 PR target/66217
12591 PR target/67045
12592 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12593 around those cases that need one.
12594
12595 2015-07-29 Aditya Kumar <hiraditya@msn.com>
12596
12597 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12598
12599 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
12600
12601 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12602 New. Copied from config/i386/gnu-user.h.
12603 (ASM_COMMENT_START): Likewise.
12604 (DBX_REGISTER_NUMBER): Likewise.
12605
12606 2015-07-29 Richard Biener <rguenther@suse.de>
12607
12608 * gimple-fold.c (fold_gimple_cond): Remove.
12609 (fold_stmt_1): Do not call it.
12610
12611 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
12612
12613 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12614 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12615
12616 * config/aarch64/aarch64-modes.def: Add HFmode.
12617
12618 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12619 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12620
12621 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12622 aarch64_promoted_type): New.
12623
12624 (aarch64_float_const_representable_p): Disable HFmode.
12625 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12626 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12627 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12628
12629 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12630 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12631
12632 * config/aarch64/iterators.md (GPF_F16): New.
12633
12634 2015-07-29 Richard Biener <rguenther@suse.de>
12635
12636 * match.pd: Merge address comparison patterns and make them
12637 handle some more cases.
12638
12639 2015-07-29 Richard Biener <rguenther@suse.de>
12640
12641 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12642 (parser::parse_capture): Add bool argument on whether to reject
12643 unknown captures.
12644 (parser::parse_expr): Adjust.
12645 (parser::parse_op): Likewise.
12646 (parser::parse_pattern): Likewise.
12647
12648 2015-07-29 Richard Biener <rguenther@suse.de>
12649
12650 * gimple-fold.c (has_use_on_stmt): New function.
12651 (replace_stmt_with_simplification): Use it to allow
12652 abnormals originally referenced in the stmt.
12653 (fold_stmt_1): Canonicalize operand order.
12654
12655 2015-07-28 David Sherwood <david.sherwood@arm.com>
12656
12657 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12658 GET_MODE_INNER unconditionally.
12659 * config/spu/spu.c (arith_immediate_p): Likewise.
12660 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12661 * expmed.c (synth_mult): Remove check for VOIDmode result from
12662 GET_MODE_INNER.
12663 (expand_mult_const): Likewise.
12664 * fold-const.c (fold_binary_loc): Replace call to element_precision
12665 with call to GET_MODE_PRECISION.
12666 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12667 m->name.
12668 (emit_mode_inner): Likewise.
12669 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12670 result check.
12671 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12672 (GET_MODE_UNIT_PRECISION): Likewise.
12673 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12674 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12675 * stor-layout.c (bitwise_type_for_mode): Update assert.
12676 (element_precision): Remove.
12677
12678 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12679
12680 * target-insns.def (reload_load_address): New targetm instruction
12681 pattern.
12682 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12683
12684 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12685
12686 * target-insns.def (atomic_test_and_set): New targetm instruction
12687 pattern.
12688 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12689 HAVE_*/gen_* interface.
12690
12691 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12692
12693 * target-insns.def (can_extend, ptr_extend): New targetm instruction
12694 patterns.
12695 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12696 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12697 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12698 * rtlanal.c (nonzero_bits1): Likewise.
12699 (num_sign_bit_copies1): Likewise.
12700
12701 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12702
12703 * target-insns.def (eh_return): New targetm instruction pattern.
12704 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12705 interface.
12706 * function.c (thread_prologue_and_epilogue_insns): Remove
12707 preprocessor condition.
12708
12709 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12710
12711 * target-insns.def (indirect_jump): New targetm instruction pattern.
12712 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12713 interface.
12714
12715 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12716
12717 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12718 instead of nonimmediate_operand. Remove C condiition.
12719
12720 2015-07-28 Richard Biener <rguenther@suse.de>
12721
12722 * match.pd: Add more simplification of address comparisons.
12723
12724 2015-07-28 Richard Biener <rguenther@suse.de>
12725
12726 * match.pd: Re-order two cases in comparison with max/min
12727 value simplification to make it apply for bools.
12728
12729 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12730
12731 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12732 Handle simple SIGN_EXTEND or ZERO_EXTEND.
12733 (aarch64_rtx_costs): Properly strip extend or extract before
12734 passing down to rtx costs again.
12735
12736 2015-07-28 Nick Clifton <nickc@redhat.com>
12737
12738 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12739 Optimizes the case where -mes0 is active and a constant symbolic
12740 address is used.
12741 * config/rl78/rl78-protos.h: Prototype the new function.
12742 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12743
12744 2015-07-28 Tom de Vries <tom@codesourcery.com>
12745
12746 * tree-parloops.c (reduc_stmt_res): New function.
12747 (initialize_reductions, add_field_for_reduction)
12748 (create_phi_for_local_result, create_loads_for_reductions)
12749 (create_stores_for_reduction, build_new_reduction): Handle case that
12750 reduc_stmt is a phi.
12751 (gather_scalar_reductions): Allow double_reduc reductions.
12752
12753 2015-07-28 Richard Biener <rguenther@suse.de>
12754
12755 * fold-const.c (fold_comparison): Remove equality folding
12756 of decl addresses ...
12757 * match.pd: ... here and merge with existing pattern.
12758
12759 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12760
12761 PR tree-optimization/66828
12762 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12763 from int64_t to uint64_t.
12764
12765 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
12766
12767 * opts-common.c (read_cmdline_option): List DriverOnly enum values
12768 as valid only in the error message of the driver, not in the
12769 messages of the language compilers.
12770
12771 2015-07-27 Tom de Vries <tom@codesourcery.com>
12772
12773 * tree-parloops.c (gather_scalar_reductions): Simplify function
12774 structure.
12775
12776 2015-07-27 Marek Polacek <polacek@redhat.com>
12777
12778 * ipa-devirt.c (types_same_for_odr): Fix typo.
12779
12780 2015-07-27 Jason Merrill <jason@redhat.com>
12781
12782 PR debug/66468
12783 * dwarf2out.c (gen_inlined_subroutine_die): Check
12784 cgraph_function_possibly_inlined_p.
12785
12786 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12787
12788 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12789 Place integer variant first.
12790 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12791
12792 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12793
12794 PR/63870
12795 * config/arm/arm-builtins.c (enum arm_builtins):
12796 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12797 (ARM_BUILTIN_NEON_BASE): Rename macro to....
12798 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12799 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12800 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12801
12802 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12803
12804 PR/63870
12805 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12806 Add qualifier_lane_index.
12807 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12808 (arm_getlane_qualifiers): Use qualifier_lane_index.
12809 (arm_lanemac_qualifiers): Rename to...
12810 (arm_mac_n_qualifiers): ...this.
12811 (LANEMAC_QUALIFIERS): Rename to...
12812 (MAC_N_QUALIFIERS): ...this.
12813 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12814 (arm_setlane_qualifiers): Use qualifier_lane_index.
12815 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12816 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12817 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12818 (arm_expand_neon_builtin): Handle qualifier_lane_index.
12819
12820 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12821 * config/arm/arm.c (bounds_check): Likewise, improve error message.
12822 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12823 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12824 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12825 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12826 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12827 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12828 qualifiers to TERNOP_IMM.
12829 (vdup_lane): Change qualifiers to GETLANE.
12830 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12831 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12832 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12833 vqdmlsl_n): Change qualifiers to MAC_N.
12834
12835 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12836 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12837 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12838 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12839 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12840 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12841 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12842 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12843 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12844 Remove call to neon_lane_bounds.
12845
12846 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12847
12848 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12849 Place integer variant first.
12850
12851 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
12852
12853 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12854 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12855 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12856 for armv6kz targets.
12857 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12858 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12859 (FL_FOR_ARCH6ZK): Remove.
12860 (FL_FOR_ARCH6KZ): New.
12861 (arm_arch6zk): New declaration.
12862 * config/arm/arm-tables.opt: Regenerate.
12863 * config/arm/arm.c (arm_arch6kz): New.
12864 (arm_option_override): Set arm_arch6kz.
12865 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12866 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12867 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12868
12869 2015-07-27 Marek Polacek <polacek@redhat.com>
12870
12871 PR c++/66555
12872 PR c/54979
12873 * doc/invoke.texi: Document -Wtautological-compare.
12874
12875 2015-07-27 Richard Biener <rguenther@suse.de>
12876
12877 * genmatch.c (decision_tree::gen_gimple): Split out large
12878 subtrees into separate functions.
12879 (decision_tree::gen_generic): Likewise.
12880
12881 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
12882
12883 * config/alpha/alpha.c: Use SUBREG_P predicate.
12884 * config/alpha/predicates.md: Ditto.
12885
12886 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12887
12888 * config.host (s390*-*-*): Include driver-native.c only when
12889 building with s390* as host *and* target.
12890
12891 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12892
12893 PR target/66930
12894 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12895 T bit register modified_between_p check.
12896
12897 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12898
12899 * config/i386/i386.c: Use SUBREG_P predicate.
12900 * config/i386/i386.md: Ditto.
12901 * config/i386/sse.md: Ditto.
12902 * config/i386/predicates.md: Ditto.
12903
12904 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12905
12906 PR target/67004
12907 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12908 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12909
12910 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12911
12912 * Makefile.in: Remove use of TREEBROWSER.
12913 * config.in: Regenerated.
12914 * configure: Regenerated.
12915 * configure.ac: Remove definition of TREEBROWSER.
12916 * tree-browser.c: Removed.
12917 * tree-browser.def: Removed.
12918
12919 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12920
12921 * graphite-scop-detection.c: Include gimple-pretty-print.h.
12922 (stmt_simple_for_scop_p): Print when a stmt is not handled in
12923 Graphite.
12924 (scopdet_basic_block_info): Print when a loop or bb cannot be
12925 represented in Graphite.
12926
12927 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12928
12929 PR target/66648
12930 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12931 execution guard when min_size is less than size_needed.
12932
12933 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12934
12935 * doc/install.texi: Document supported versions of ISL.
12936
12937 2015-07-25 Jeff Law <law@redhat.com>
12938
12939 Revert:
12940 PR lto/66752
12941 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12942 unable to find X NE 0 in the tables, return X as the simplified
12943 condition.
12944 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12945 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12946 to VISISTED_BBS. */
12947 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12948 after removing the control flow statement and unnecessary edges.
12949
12950 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
12951
12952 Revert:
12953 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12954
12955 PR rtl-optimization/64164
12956 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12957 * tree-ssa-copyrename.c: Removed.
12958 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12959 -ftree-coalesce-vars.
12960 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12961 * common.opt (ftree-copyrename): Ignore.
12962 (ftree-coalesce-inlined-vars): Likewise.
12963 * doc/invoke.texi: Remove the ignored options above.
12964 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12965 * tree-ssa-coalesce.h: ... here.
12966 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12967 headers required by it.
12968 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12969 across variables when flag_tree_coalesce_vars. Check register
12970 use and promoted modes to allow coalescing. Moved to
12971 tree-ssa-coalesce.c.
12972 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
12973 with its member functions to tree-ssa-coalesce.c.
12974 (var_map_base_init): Likewise. Renamed to
12975 compute_samebase_partition_bases.
12976 (partition_view_normal): Drop want_bases parameter.
12977 (partition_view_bitmap): Likewise.
12978 * tree-ssa-live.h: Adjust declarations.
12979 * tree-ssa-coalesce.c: Include explow.h.
12980 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
12981 default defs at the entry point.
12982 (dump_part_var_map): New.
12983 (compute_optimized_partition_bases): New, called by...
12984 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
12985 of compute_samebase_partition_bases. Adjust.
12986 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
12987 * cfgexpand.c (leader_merge): New.
12988 (get_rtl_for_parm_ssa_default_def): New.
12989 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
12990 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
12991 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
12992 redundant MEM attr setting.
12993 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
12994 from...
12995 (expand_one_stack_var): ... this. New wrapper to check and
12996 skip already expanded SSA partitions.
12997 (record_alignment_for_reg_var): New, factored out of...
12998 (expand_one_var): ... this.
12999 (expand_one_ssa_partition): New.
13000 (adjust_one_expanded_partition_var): New.
13001 (expand_one_register_var): Check and skip already expanded SSA
13002 partitions.
13003 (expand_used_vars): Don't create DECLs for anonymous SSA
13004 names. Expand all SSA partitions, then adjust all SSA names.
13005 (pass::execute): Replace the loops that set
13006 SA.partition_to_pseudo from partition leaders and cleared
13007 DECL_RTL for multi-location variables, and that which used to
13008 rename vars and set attrs, with one that clears DECL_RTL and
13009 checks that PARMs and RESULTs default_defs match DECL_RTL.
13010 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13011 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13012 * explow.c (promote_ssa_mode): New.
13013 * explow.h (promote_ssa_mode): Declare.
13014 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13015 * function.c: Include cfgexpand.h.
13016 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13017 (use_register_for_parm_decl): Wrapper for the above to
13018 special-case the result_ptr.
13019 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13020 (split_complex_args): Take assign_parm_data_all argument.
13021 Pass it to rtl_for_parm. Set up rtl and context for split
13022 args.
13023 (assign_parms_augmented_arg_list): Adjust.
13024 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13025 multiple locations. Recognize split complex args.
13026 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13027 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13028 (assign_parm_setup_block): Prefer SSA-assigned location.
13029 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13030 if stack_parm is NULL.
13031 (assign_parm_setup_stack): Prefer SSA-assigned location.
13032 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13033 rtl before testing for pointer bounds. Special-case result_ptr.
13034 (expand_function_start): Maybe reset DECL_RTL of result.
13035 Prefer SSA-assigned location for result and static chain.
13036 Factor out DECL_RESULT and SET_DECL_RTL.
13037 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13038 anonymous SSA names. Use promote_ssa_mode.
13039 (get_temp_reg): Likewise.
13040 (remove_ssa_form): Adjust.
13041 * stor-layout.c (layout_decl): Don't set mem attributes of
13042 non-MEMs.
13043 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13044 and get its reg_usage for reg invalidation.
13045 (compute_bb_dataflow): Pass it insn.
13046 (emit_notes_in_bb): Likewise.
13047
13048 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13049
13050 * config/i386/i386.c (ix86_va_start): Remove
13051 unneeded !TARGET_64BIT check.
13052 (ix86_gimplify_va_arg): Ditto.
13053
13054 2015-07-24 Tom de Vries <tom@codesourcery.com>
13055
13056 * graphite-sese-to-poly.c (build_poly_scop): Always call
13057 rewrite_commutative_reductions_out_of_ssa.
13058
13059 2015-07-24 Tom de Vries <tom@codesourcery.com>
13060
13061 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
13062 flag_associative_math to FLOAT_TYPE_P. Honour
13063 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
13064
13065 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13066
13067 PR c++/64079
13068 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
13069 and "%qD" in warning_at instead of "%q+D" in warning.
13070
13071 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
13072
13073 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
13074 (ix86_function_abi): Cleanup.
13075
13076 2015-07-24 Michael Darling <darlingm@gmail.com>
13077
13078 PR other/66259
13079 * acinclude.m4: Reflects renaming of configure.in to configure.ac
13080 * configure: Likewise
13081 * configure.ac: Likewise
13082 * doc/install.texi: Likewise
13083 * doc/tm.texi: Likewise
13084 * doc/tm.texi.in: Likewise
13085
13086 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13087
13088 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
13089 manually swapping values.
13090 * cse.c (fold_rtx): Likewise.
13091 * lra-eliminations.c (form_sum): Likewise.
13092
13093 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
13094
13095 PR target/64003
13096 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
13097 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
13098 (*jcc_1, *jcc_2, jump, simple_return_internal)
13099 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
13100 Set length_nobnd attribute instead of length attribute.
13101 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
13102 (length_nobnd): Remove attribute.
13103 (length): Remove length_nobnd processing.
13104
13105 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
13106
13107 * gimplify.c (omp_default_clause): New function. Reorganize flow
13108 for clarity. Broken out of ...
13109 (omp_notice_variable): ... here.
13110
13111 2015-07-24 Gary Funck <gary@intrepid.com>
13112
13113 PR middle-end/66984
13114 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
13115 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
13116
13117 2015-07-24 Tom de Vries <tom@codesourcery.com>
13118
13119 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
13120 exit-first loop transform.
13121
13122 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13123
13124 PR 66714
13125 * tree-cfg.c (struct replace_decls_d): New struct.
13126 (replace_block_vars_by_duplicates_1): New function.
13127 (replace_block_vars_by_duplicates): Use it to replace the decls
13128 in the value exprs by duplicates.
13129
13130 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13131
13132 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
13133 -shared, -symbolic, -rdynamic.
13134
13135 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13136
13137 PR target/65711
13138 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
13139 -dynamic-linker within %{!static %{!shared, and -rdynamic within
13140 %{!static.
13141
13142 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
13143
13144 PR ipa/66566
13145 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
13146 edge summary is available.
13147
13148 2015-07-24 Richard Biener <rguenther@suse.de>
13149
13150 * genmatch.c (struct dt_node): Add statistic fields.
13151 (dt_node::analyze): New method.
13152 (decision_tree::gen_gimple): Call analyze on the root node
13153 and print statistics to stderr.
13154 (decision_tree::gen_generic): Likewise.
13155
13156 2015-07-24 Richard Biener <rguenther@suse.de>
13157
13158 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
13159 against the highest or lowest possible integer ...
13160 * match.pd: ... as patterns here.
13161
13162 2015-07-24 Richard Biener <rguenther@suse.de>
13163
13164 * genmatch.c (struct capture_info): Add same_as field.
13165 (capture_info::capture_info): Initialize same_as.
13166 (capture_info::walk_match): Compute same_as.
13167 (capture_info::walk_result): Compute stuff for the leader.
13168 (capture_info::walk_c_expr): Likewise.
13169 (dt_simplify::gen_1): Only look at leaders when deciding
13170 to force no side-effects or emit side-effects of omitted operands.
13171
13172 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13173
13174 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
13175 reg note to the GPR -> FPR save instructions.
13176
13177 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13178
13179 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
13180 cheaper.
13181 (s390_expand_insv): Don't generate risbg pattern for constant zero
13182 sources.
13183 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
13184 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
13185 splitters.
13186
13187 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13188
13189 * config/s390/s390.c (s390_reorg): Clean up handling of processors
13190 with
13191 -mtune=
13192 (s390_issue_rate): Likewise.
13193 (s390_sched_reorder): Likewise.
13194 (s390_sched_variable_issue): Likewise.
13195 (s390_loop_unroll_adjust): Likewise.
13196 (s390_option_override): Likewise.
13197
13198 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13199
13200 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13201 processor capabilities with -march=native.
13202 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13203 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
13204 (S390_TARGET_BITS_STRING): Macro to simplify specs.
13205
13206 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13207
13208 * config/s390/s390.c (s390_issue_rate): Handle
13209 PROCESSOR_2094_Z9_EC.
13210 (s390_option_override): Likewise.
13211 (s390_adjust_priority): Likewise.
13212
13213 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13214
13215 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13216 when cross compiling.
13217
13218 2015-07-24 Richard Biener <rguenther@suse.de>
13219
13220 * fold-const.c (maybe_canonicalize_comparison_1): Move
13221 A code CST canonicalization ...
13222 * match.pd: ... to a pattern here.
13223
13224 2015-07-24 Jiong Wang <jiong.wang@arm.com>
13225
13226 Revert:
13227 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13228 PR target/63521
13229 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13230 (HONOR_REG_ALLOC_ORDER): Define.
13231
13232 2015-07-24 Richard Biener <rguenther@suse.de>
13233
13234 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13235 * fold-const.c (fold_comparison): Move parameter does not
13236 alias &local simplification ...
13237 * match.pd: ... as a pattern here.
13238
13239 2015-07-24 Richard Biener <rguenther@suse.de>
13240
13241 * gimple-fold.c (replace_stmt_with_simplification): Special-case
13242 valueizing call operands.
13243 * gimple-match-head.c (maybe_push_res_to_seq): Take
13244 number of call arguments from ops array.
13245 (do_valueize): New function.
13246 (gimple_simplify): Return true if valueization changed
13247 any operand even if the result didn't simplify further.
13248
13249 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13250
13251 PR middle-end/25530
13252 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13253
13254 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13255
13256 PR middle-end/25529
13257 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13258
13259 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13260
13261 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13262 instruction.
13263
13264 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13265
13266 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13267 clean up.
13268
13269 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
13270
13271 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13272 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
13273 targets here.
13274 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13275 ms_va_list_type_node initialization.
13276
13277 2015-07-23 Jeff Law <law@redhat.com>
13278
13279 PR lto/66752
13280 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13281 unable to find X NE 0 in the tables, return X as the simplified
13282 condition.
13283 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13284 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13285 to VISISTED_BBS. */
13286 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13287 after removing the control flow statement and unnecessary edges.
13288
13289 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
13290
13291 * tree-pass.h (get_current_pass_name): Removed.
13292
13293 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13294
13295 PR rtl-optimization/64164
13296 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13297 * tree-ssa-copyrename.c: Removed.
13298 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13299 -ftree-coalesce-vars.
13300 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13301 * common.opt (ftree-copyrename): Ignore.
13302 (ftree-coalesce-inlined-vars): Likewise.
13303 * doc/invoke.texi: Remove the ignored options above.
13304 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13305 * tree-ssa-coalesce.h: ... here.
13306 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13307 headers required by it.
13308 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13309 across variables when flag_tree_coalesce_vars. Check register
13310 use and promoted modes to allow coalescing. Moved to
13311 tree-ssa-coalesce.c.
13312 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13313 with its member functions to tree-ssa-coalesce.c.
13314 (var_map_base_init): Likewise. Renamed to
13315 compute_samebase_partition_bases.
13316 (partition_view_normal): Drop want_bases parameter.
13317 (partition_view_bitmap): Likewise.
13318 * tree-ssa-live.h: Adjust declarations.
13319 * tree-ssa-coalesce.c: Include explow.h.
13320 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13321 default defs at the entry point.
13322 (dump_part_var_map): New.
13323 (compute_optimized_partition_bases): New, called by...
13324 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13325 of compute_samebase_partition_bases. Adjust.
13326 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13327 * cfgexpand.c (leader_merge): New.
13328 (get_rtl_for_parm_ssa_default_def): New.
13329 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13330 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13331 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13332 redundant MEM attr setting.
13333 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13334 from...
13335 (expand_one_stack_var): ... this. New wrapper to check and
13336 skip already expanded SSA partitions.
13337 (record_alignment_for_reg_var): New, factored out of...
13338 (expand_one_var): ... this.
13339 (expand_one_ssa_partition): New.
13340 (adjust_one_expanded_partition_var): New.
13341 (expand_one_register_var): Check and skip already expanded SSA
13342 partitions.
13343 (expand_used_vars): Don't create DECLs for anonymous SSA
13344 names. Expand all SSA partitions, then adjust all SSA names.
13345 (pass::execute): Replace the loops that set
13346 SA.partition_to_pseudo from partition leaders and cleared
13347 DECL_RTL for multi-location variables, and that which used to
13348 rename vars and set attrs, with one that clears DECL_RTL and
13349 checks that PARMs and RESULTs default_defs match DECL_RTL.
13350 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13351 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13352 * explow.c (promote_ssa_mode): New.
13353 * explow.h (promote_ssa_mode): Declare.
13354 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13355 * function.c: Include cfgexpand.h.
13356 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13357 (use_register_for_parm_decl): Wrapper for the above to
13358 special-case the result_ptr.
13359 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13360 (split_complex_args): Take assign_parm_data_all argument.
13361 Pass it to rtl_for_parm. Set up rtl and context for split
13362 args.
13363 (assign_parms_augmented_arg_list): Adjust.
13364 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13365 multiple locations. Recognize split complex args.
13366 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13367 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13368 (assign_parm_setup_block): Prefer SSA-assigned location.
13369 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13370 if stack_parm is NULL.
13371 (assign_parm_setup_stack): Prefer SSA-assigned location.
13372 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13373 rtl before testing for pointer bounds. Special-case result_ptr.
13374 (expand_function_start): Maybe reset DECL_RTL of result.
13375 Prefer SSA-assigned location for result and static chain.
13376 Factor out DECL_RESULT and SET_DECL_RTL.
13377 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13378 anonymous SSA names. Use promote_ssa_mode.
13379 (get_temp_reg): Likewise.
13380 (remove_ssa_form): Adjust.
13381 * stor-layout.c (layout_decl): Don't set mem attributes of
13382 non-MEMs.
13383 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13384 and get its reg_usage for reg invalidation.
13385 (compute_bb_dataflow): Pass it insn.
13386 (emit_notes_in_bb): Likewise.
13387
13388 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13389
13390 PR target/66217
13391 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13392 prototype.
13393 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13394 (rs6000_emit_2insn_and): Handle dot forms.
13395 * config/rs6000/rs6000.md (and<mode>3): Adjust.
13396 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
13397 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13398
13399 2015-07-23 Richard Biener <rguenther@suse.de>
13400
13401 * generic-match-head.c: Include cgraph.h.
13402 * gimple-match-head.c: Likewise.
13403 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13404 SSA names.
13405 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13406 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
13407 pattern.
13408
13409 2015-07-23 Richard Biener <rguenther@suse.de>
13410
13411 * gimple-fold.c (fold_gimple_cond): Do not require folding
13412 results to pass valid_gimple_rhs_p.
13413 * tree-cfg.h (fold_cond_expr_cond): Remove.
13414 * tree-cfg.c (fold_cond_expr_cond): Likewise.
13415 (make_edges): Do not call it.
13416 * tree-inline.c (tree_function_versioning): Likewise.
13417
13418 2015-07-23 Tom de Vries <tom@codesourcery.com>
13419
13420 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13421 vect_force_simple_reduction.
13422 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13423 (vect_is_simple_reduction_1): Add and handle
13424 need_wrapping_integral_overflow parameter.
13425 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13426 need_wrapping_integral_overflow parameter.
13427 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13428 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13429 decl.
13430
13431 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
13432
13433 PR tree-optimization/66926,66951
13434 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13435 INNER_LOOP and fix up condition for renaming virtual operands.
13436
13437 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13438
13439 * combine.c (try_combine): Use std::swap instead of manually
13440 swapping.
13441
13442 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
13443
13444 * config/mips/i6400.md: New file.
13445 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13446 (mips64r6): Likewise.
13447 (i6400): Define.
13448 * config/mips/mips-tables.opt: Regenerate.
13449 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13450 (mips_issue_rate): Add support for i6400.
13451 (mips_multipass_dfa_lookahead): Likewise.
13452 * config/mips/mips.h (TUNE_I6400): Define.
13453 * config/mips/mips.md: Include i6400.md.
13454 (processor): Add i6400.
13455 * doc/invoke.texi (-march=@var{arch}): Add i6400.
13456
13457 2015-07-23 Richard Biener <rguenther@suse.de>
13458
13459 PR middle-end/66916
13460 * match.pd: Guard widen and sign-change comparison simplification
13461 with single_use.
13462
13463 2015-07-23 Richard Biener <rguenther@suse.de>
13464
13465 PR tree-optimization/66945
13466 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13467 ::before_dom_children): Force the propagators idea of
13468 non-executable edges to materialize, not what the folder
13469 chooses.
13470
13471 2015-07-23 Richard Biener <rguenther@suse.de>
13472
13473 * gimple.h (gimple_cond_make_false): Use 0 != 0.
13474 (gimple_cond_make_true): Use 1 != 0.
13475
13476 2015-07-22 DJ Delorie <dj@redhat.com>
13477
13478 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13479 slashes.
13480
13481 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13482 (ashrhi3): Likewise.
13483 (lshrhi3): Likewise.
13484 (movhi): Take advantage of zero-extend to load small constants.
13485 (movpsi): Likewise.
13486 (and<mode>3): Likewise.
13487 (zero_extendqihi2): Likewise.
13488 (zero_extendqisi2): New.
13489 * config/msp430/constraints.md (N,O): New.
13490 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13491
13492 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
13493
13494 PR target/66954
13495 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13496 to enum feature_priority and feature_list.
13497 (fold_builtin_cpu): Add F_AES to enum processor_features
13498 and isa_names_table.
13499
13500 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13501
13502 PR driver/66737
13503 * config/i386/linux-common.h (MPX_SPEC): Use linker option
13504 for 64bit target only.
13505
13506 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
13507
13508 * config/nvptx/nvptx.c: Expand some comments.
13509
13510 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
13511
13512 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13513 (cortex_a53_advsimd): ...This.
13514
13515 2015-07-22 Richard Biener <rguenther@suse.de>
13516
13517 * genmatch.c (expr::gen_transform): Clarify error message
13518 and display location.
13519
13520 2015-07-22 Richard Biener <rguenther@suse.de>
13521
13522 * genmatch.c (struct operand): Add location member.
13523 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13524 constructors.
13525 (struct simplify): Remove match_location and result_location
13526 members.
13527 (elsehwere): Adjust.
13528
13529 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
13530
13531 * config/mips/m5100.md: New file.
13532 * config/mips/mips-cpus.def (m5100, m5101): Define.
13533 * config/mips/mips-tables.opt: Regenerate.
13534 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13535 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13536 -march=m5101 to -mips32r5.
13537 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13538 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13539 !-msoft-float.
13540 * config/mips/mips.md: Include m5100.md.
13541 (processor): Add m5100.
13542 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13543
13544 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
13545
13546 * config/mips/mips-cpus.def (interaptiv): Define.
13547 * config/mips/mips-tables.opt: Regenerate.
13548 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13549 -mips32r2.
13550 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13551 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13552
13553 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13554
13555 PR target/63521
13556 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13557 (HONOR_REG_ALLOC_ORDER): Define.
13558
13559 2015-07-22 Richard Biener <rguenther@suse.de>
13560
13561 PR tree-optimization/66952
13562 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13563 blocks we end up executing unconditionally reset all SSA
13564 info such as range and alignment.
13565 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13566 * tree-ssanames.c (reset_flow_sensitive_info): New function.
13567
13568 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13569
13570 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13571 typo in attribute.
13572
13573 2015-07-22 Richard Biener <rguenther@suse.de>
13574
13575 * genmatch.c (parser::parse_result): Properly handle
13576 match with result operands and conditions.
13577
13578 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13579
13580 PR target/63870
13581 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13582 Add qualifier_struct_load_store_lane_index.
13583 (aarch64_types_loadstruct_lane_qualifiers): Use
13584 qualifier_struct_load_store_lane_index for lane index argument for
13585 last argument.
13586 (aarch64_types_storestruct_lane_qualifiers): Ditto.
13587 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13588 (aarch64_simd_expand_args): Add new argument describing mode of
13589 builtin. Check lane bounds for arguments with
13590 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13591 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13592 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13593 (aarch64_simd_expand_builtin): Handle arguments with
13594 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13595 aarch64_simd_expand_args.
13596 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13597 vst[234]_lane with BUILTIN_VALLDIF.
13598 * config/aarch64/aarch64-simd.md:
13599 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13600 endianness reversal on lane index.
13601 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13602 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13603 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13604 (vec_store_lanesci_lane<mode>): Ditto.
13605 (vec_store_lanesxi_lane<mode>): Ditto.
13606 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13607 reversal of lane index.
13608 (aarch64_ld3_lane<mode>): Ditto.
13609 (aarch64_ld4_lane<mode>): Ditto.
13610 (aarch64_st2_lane<mode>): Ditto.
13611 (aarch64_st3_lane<mode>): Ditto.
13612 (aarch64_st4_lane<mode>): Ditto.
13613 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13614 to qmode. Add new mode parameter. Update uses.
13615 (__LD3_LANE_FUNC): Ditto.
13616 (__LD4_LANE_FUNC): Ditto.
13617 (__ST2_LANE_FUNC): Ditto.
13618 (__ST3_LANE_FUNC): Ditto.
13619 (__ST4_LANE_FUNC): Ditto.
13620
13621 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
13622
13623 * doc/invoke.texi (Language Independent Options): Rename node to
13624 Diagnostic Message Formatting Options.
13625
13626 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
13627
13628 PR ipa/66424.
13629 * lra-remat.c (operand_to_remat): Prevent using insns with input
13630 subregs processed separately by IRA.
13631
13632 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
13633
13634 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13635 straight loops.
13636 (single_imm_use): Check for iterator node.
13637 (num_imm_uses): Likewise.
13638 * tree-ssa-operands.c (has_zero_uses_1): Delete.
13639 (single_imm_use_1): Check for iterator node.
13640
13641 2015-07-21 Mike Frysinger <vapier@gentoo.org>
13642 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13643
13644 * configure.ac: Add check for new options in isl-0.15.
13645 * config.in, configure: Rebuilt.
13646 * graphite-blocking.c: Include <isl/constraint.h>
13647 * graphite-interchange.c, graphite-poly.c: Likewise.
13648 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13649 * graphite.c: Likewise.
13650 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13651 <isl/union_set.h>.
13652 * graphite-dependences.c: Include <isl/constraint.h>.
13653 (max_number_of_out_dimensions): Returns isl_stat.
13654 (extend_schedule_1): Likewise
13655 (extend_schedule): Corresponding changes.
13656 * graphite-optimize-isl.c: Include <isl/constraint.h> and
13657 <isl/union_set.h>.
13658 (getSingleMap): Change return type of isl_stat.
13659 (optimize_isl): Conditionally use
13660 isl_options_set_schedule_serialize_sccs.
13661 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13662 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13663
13664 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
13665
13666 PR target/66956
13667 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13668 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13669
13670 2015-07-21 Richard Biener <rguenther@suse.de>
13671
13672 PR tree-optimization/66948
13673 * genmatch.c (capture_info::walk_match): Also recurse to
13674 captures. Properly compute expr state from captures of
13675 captures.
13676 * match.pd: Add single-use guards to
13677 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13678
13679 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13680
13681 * config/nvptx/mkoffload.c (process): Add static destructor call.
13682
13683 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13684
13685 PR middle-end/66915
13686 * match.pd (A - B -> A + (-B)): Don't allow folding
13687 when type if a fixed-point type.
13688
13689 2015-07-20 DJ Delorie <dj@redhat.com>
13690
13691 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13692 (iorqi3_real): Likewise for set1.
13693
13694 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
13695
13696 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13697 for !TARGET_64BIT.
13698
13699 2015-07-20 Aditya Kumar <hiraditya@msn.com>
13700
13701 * graphite-isl-ast-to-gimple.c:
13702 Refactor so that each function can access 'region'. This will help
13703 maintain a parameter rename_map within a region.
13704
13705 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13706
13707 * config/rs6000/rs6000.md (*lt0_disi): New.
13708
13709 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13710
13711 PR target/66217
13712 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
13713 "available letters" comment.
13714 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13715 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13716 and_2rld_operand): Delete.
13717 (and_operand): Adjust.
13718 (rotate_mask_operator): New.
13719 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13720 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13721 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13722 extract_ME): Delete.
13723 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13724 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13725 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13726 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13727 rs6000_emit_2insn_and): New.
13728 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13729 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13730 includes_rldic_lshift_p, includes_rldicr_lshift_p,
13731 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13732 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13733 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13734 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13735 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13736 rs6000_emit_2insn_and): New.
13737 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13738 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13739 handling.
13740 <NOT>: Don't fall through to next case.
13741 <AND>: Handle the various rotate-and-mask cases directly.
13742 <IOR>: Always cost as one insn.
13743 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13744 (and<mode>3): Adjust expander for the new patterns.
13745 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13746 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13747 (*and<mode>3_imm_dot_shifted): New.
13748 (*and<mode>3_mask): Delete, rewrite as ...
13749 (and<mode>3_mask): ... New.
13750 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13751 (andsi3_internal0_nomc): Delete.
13752 (*andsi3_internal6): Delete.
13753 (*and<mode>3_2insn): New.
13754 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13755 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13756 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13757 *insvdi_internal3): Delete.
13758 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13759 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13760 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13761 *ior<mode>_mask): New.
13762 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13763 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13764 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13765 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13766 Delete.
13767 (ashr<mode>3): Delete expander.
13768 (*ashr<mode>3): Rename to ...
13769 (ashr<mode>3): ... This.
13770 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13771 (*rotldi3_internal4, *rotldi3_internal5 and split,
13772 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13773 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13774 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13775 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13776 (splitter for loading a mask): Adjust.
13777 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13778
13779 2015-07-20 Marek Polacek <polacek@redhat.com>
13780
13781 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13782 output_add_clobbers, output_added_clobbers_hard_reg_p,
13783 gen_rtx_scratch): Remove declarations.
13784
13785 2015-07-20 Marek Polacek <polacek@redhat.com>
13786
13787 PR c++/55095
13788 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13789
13790 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13791
13792 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13793 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13794
13795 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13796
13797 * combine.c (combine_simplify_rtx): Move simplification step
13798 before various transformations/substitutions.
13799
13800 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
13801
13802 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13803 (struct int_traits): Likewise.
13804
13805 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13806
13807 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13808 function to vmsdbgout_function_decl.
13809
13810 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13811
13812 PR target/66922
13813 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13814 from misaligned positions.
13815 (ix86_expand_pinsr): Reject insertions to misaligned positions.
13816
13817 2015-07-18 Sebastian Pop <s.pop@samsung.com>
13818
13819 PR middle-end/46851
13820 PR middle-end/60340
13821 * Makefile.in: Removed omega.o.
13822 * common.opt: Document flag fcheck-data-deps as deprecated.
13823 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13824 its associated params: omega-max-vars, omega-max-geqs,
13825 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13826 omega-max-keys, omega-eliminate-redundant-constraints.
13827 * doc/loop.texi: Remove all the section on Omega.
13828 * graphite-blocking.c: Include missing params.h: it used to be
13829 included through tree-data-ref.h and omega.h.
13830 * graphite-isl-ast-to-gimple.c: Same.
13831 * graphite-optimize-isl.c: Same.
13832 * graphite-sese-to-poly.c: Same.
13833 * graphite.c: Same.
13834 * omega.c: Remove.
13835 * omega.h: Remove.
13836 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13837 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13838 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13839 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13840 * passes.def: Remove pass_check_data_deps.
13841 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13842 (dump_conflict_function): Same.
13843 (dump_subscript): Same.
13844 (print_direction_vector): Same.
13845 (print_dir_vectors): Same.
13846 (print_lambda_vector): Same.
13847 (print_dist_vectors): Same.
13848 (dump_data_dependence_relation): Same.
13849 (dump_data_dependence_relations): Same.
13850 (dump_dist_dir_vectors): Same.
13851 (dump_ddrs): Same.
13852 (init_omega_eq_with_af): Removed.
13853 (omega_extract_distance_vectors): Removed.
13854 (omega_setup_subscript): Removed.
13855 (init_omega_for_ddr_1): Removed.
13856 (init_omega_for_ddr): Removed.
13857 (ddr_consistent_p): Removed.
13858 (compute_affine_dependence): Do not use omega to check data
13859 dependences.
13860 (compute_data_dependences_for_bb): Removed.
13861 (analyze_all_data_dependences): Removed.
13862 (tree_check_data_deps): Removed.
13863 * tree-data-ref.h: Do not include omega.h.
13864 (compute_data_dependences_for_bb): Removed.
13865 (tree_check_data_deps): Removed.
13866 * tree-ssa-loop.c (pass_check_data_deps): Removed.
13867 (make_pass_check_data_deps): Removed.
13868 * tree-ssa-phiopt.c: Include params.h.
13869 * tree-vect-data-refs.c: Same.
13870 * tree-vect-slp.c: Same.
13871
13872 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13873
13874 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13875 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
13876 (mem->fpreg splitters): Ditto.
13877 (general_operand->nonimmediate_operand splitter): Use explicit modes.
13878 Disable DFmode for TARGET_64BIT.
13879
13880 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
13881
13882 PR target/66906
13883 * config/i386/i386.c (ix86_expand_prologue): Replicate static
13884 chain on the stack.
13885
13886 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13887
13888 * config/nvptx/mkoffload.c (process): Constify host data.
13889 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13890 Constify host data.
13891 (generate_host_descr_file): Likewise.
13892
13893 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
13894 Sebastian Pop <s.pop@samsung.com>
13895
13896 PR middle-end/61929
13897 * graphite-dependences.c (add_pdr_constraints): Renamed
13898 pdr->extent to pdr->subscript_sizes.
13899 * graphite-interchange.c (build_linearized_memory_access): Add
13900 back all gcc_assert's that the "isl_int to isl_val conversion"
13901 patch has removed. Refactored.
13902 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13903 * graphite-poly.c (new_poly_dr): Same.
13904 (free_poly_dr): Same.
13905 * graphite-poly.h (struct poly_dr): Same.
13906 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13907 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13908 * graphite-scop-detection.h: Fix space.
13909 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13910 back all gcc_assert's removed by a previous patch.
13911 (wrap): Remove the_isl_ctx global variable that the same patch has
13912 added.
13913 (build_loop_iteration_domains): Same.
13914 (add_param_constraints): Same.
13915 (pdr_add_data_dimensions): Same. Refactored.
13916 (build_poly_dr): Renamed extent to subscript_sizes.
13917
13918 2015-07-17 Marek Polacek <polacek@redhat.com>
13919
13920 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13921 * match.pd: ... here.
13922
13923 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13924
13925 * config/nvptx/mkoffload.c (process): Constify target data.
13926 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13927 Constify target data.
13928 (generate_target_offloadend_file): Likewise.
13929
13930 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13931
13932 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13933 to allow renaming of PHI arguments on edges incoming from outer
13934 loop header, add corresponding check before start PHI iterator.
13935 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13936 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13937 with true force_vectorize. Set-up dominator for outer loop too.
13938 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13939 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13940 was marked with force_vectorize and has restricted cfg.
13941 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13942 inner loop.
13943 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13944 do peeling for outer loops.
13945
13946 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
13947 Matthias Klose <doko@ubuntu.com>
13948
13949 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13950 build-sysroot, sysroot from the `Miscenalleous configure options' to
13951 the `Directories' section and strip trailing `/' from with_sysroot.
13952 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13953 * configure: Regenerated.
13954
13955 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13956
13957 PR target/66824
13958 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13959 (TARGET_HARD_DF_REGS): Ditto.
13960 (TARGET_HARD_XF_REGS): Ditto.
13961 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13962 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13963 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13964 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13965 (*movsf_internal): Add alternatives 16 and 17. Enable
13966 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13967
13968 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13969
13970 PR rtl-optimization/66891
13971 * calls.c (expand_call): Wrap precompute_register_parameters with
13972 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
13973
13974 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
13975
13976 * config/nvptx/mkoffload.c (process): Constify mapping variables.
13977 Define target data struct and initialize it.
13978
13979 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
13980
13981 PR rtl-optimization/66626
13982 * ira.h (emit-rtl.h): Include.
13983 (non_spilled_static_chain_regno_p): New.
13984 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
13985 unless it is non spilled static chain pseudo.
13986 (assign_hard_rego): Spill memory profitable allocno unless it is
13987 non spilled static chain pseudo.
13988 (allocno_spill_priority_compare): Put non spilled static chain
13989 pseudo at the end of sorted array.
13990 (improve_allocation): Do nothing if we have static chain and
13991 non-local goto.
13992 (allocno__priority_compare_func): Put non spilled static chain
13993 pseudo at the beginning of sorted array.
13994 (move_spill_restore): Ignore non spilled static chain pseudo.
13995 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
13996 to non spilled static chain pseudo.
13997 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
13998 pseudo at the beginning of sorted array.
13999 (spill_for): Spill non spilled static chain pseudo last.
14000 * lra-constraints.c (lra_constraints): Remove static chain pseudo
14001 check for equivalence.
14002
14003 2015-07-16 Martin Liska <mliska@suse.cz>
14004
14005 PR ipa/66896.
14006 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
14007 dst_ctx if it does not exist.
14008
14009 2015-07-16 Martin Liska <mliska@suse.cz>
14010
14011 * hash-set.h (remove): New function.
14012 (iterator): New iteration class for hash_set.
14013
14014 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14015
14016 * genattrtab.c (make_canonical): Add a file_location parameter.
14017 Use fatal_at rather than fatal.
14018 (get_attr_value): Likewise. Update call to make_canonical.
14019 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
14020 (make_internal_attr): Update calls accordingly.
14021
14022 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14023
14024 * read-md.h (message_with_line, error_with_line): Delete.
14025 * read-md.c (message_with_line, error_with_line): Delete.
14026 * gensupport.h: Include read-md.h.
14027 (md_rtx_info): New structure.
14028 (read_md_rtx): Use it. Return a bool success value.
14029 * gensupport.c (read_md_rtx): Likewise.
14030 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
14031 (main): Update after interface changes.
14032 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
14033 (main): Update after interface changes.
14034 * genattrtab.c (insn_code_number): Delete.
14035 (optimize_attrs): Add a max_insn_code parameter and use it instead
14036 of insn_code_number.
14037 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
14038 Use *_at rather than *_with_line functions.
14039 (gen_insn): Likewise.
14040 (gen_delay): Likewise.
14041 (gen_insn_reserv): Likewise.
14042 (gen_bypass): Take an md_rtx_info rather than an rtx.
14043 (main): Update after interface changes. Use a local max_insn_code
14044 variable instead of insn_code_number.
14045 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
14046 an rtx. Use fatal_at rather than fatal.
14047 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
14048 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
14049 (gen_absence_set, gen_final_absence_set, gen_automaton)
14050 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
14051 (main): Update after interface changes.
14052 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
14053 and code number.
14054 (main): Update after interface changes.
14055 * genconditions.c (main): Use new read_md_rtx interface.
14056 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
14057 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
14058 (main): Update after interface changes.
14059 * genemit.c (insn_code_number, insn_index_number): Delete.
14060 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14061 Use fatal_at rather than fatal.
14062 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
14063 rather than fatal.
14064 (gen_split): Likewise.
14065 (main): Update after interface changes.
14066 * genextract.c (line_no): Delete.
14067 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14068 Update call to walk_rtx.
14069 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
14070 rather than message_with_line.
14071 (walk_rtx): Add an md_rtx_info argument. Update call to
14072 VEC_safe_set_locstr.
14073 (main): Update after interface changes.
14074 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
14075 and lineno. Use error_at rather than separate message_with_line
14076 calls and have_error assignments.
14077 (main): Update after interface changes.
14078 * genmddump.c (main): Use new read_md_rtx interface.
14079 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
14080 (main): Update after interface changes.
14081 * genoutput.c (next_code_number): Delete.
14082 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14083 (gen_peephole, gen_expand, gen_split): Likewise.
14084 (note_constraint): Likewise. Use *_at rather than *_with_line
14085 functions.
14086 (main): Update after interface changes.
14087 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
14088 rtx and lineno.
14089 (main): Update after interface changes.
14090 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
14091 than an rtx and lineno.
14092 (process_define_constraint): Likewise.
14093 (process_define_register_constraint): Likewise.
14094 (main): Update after interface changes.
14095 * genrecog.c (next_insn_code, pattern_lineno): Delete.
14096 (validate_pattern): Replace top-level rtx with an md_rtx_info.
14097 Use *_at rather than *_with_line functions.
14098 (match_pattern_2): Likewise.
14099 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
14100 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
14101 Use *_at rather than *_with_line functions.
14102 * gentarget-def.c (add_insn): New function.
14103 (main): Use it. Use new read_md_rtx interface.
14104
14105 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14106
14107 * gensupport.h (compute_test_codes): Take a file_location rather
14108 than a line number.
14109 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
14110 rather than *_with_line functions.
14111 (process_define_predicate): Update call to compute_test_codes.
14112 * genpreds.c (validate_exp): Take a file_location rather than a
14113 line number. Use *_at functions rather than *_with_line functions.
14114 (process_define_predicate): Update call to validate_exp.
14115 (constraint_data): Replace lineno field with a file_location.
14116 (add_constraint): Take a file_location rather than a line number.
14117 Use *_at functions rather than *_with_line functions. Fix error
14118 message for address constraints. Update after changes to
14119 validate_exp, constraint_data and compute_test_codes.
14120 (process_define_constraint): Update accordingly.
14121 (process_define_register_constraint): Likewise.
14122
14123 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14124
14125 * genoutput.c (data): Use a file_location to record the source
14126 position.
14127 (nothing): Delete.
14128 (idata, idata_end): Remove initialization.
14129 (constraint_data): Replace lineno with a file_location.
14130 (output_insn_data): Update after changes to data.
14131 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
14132 (scan_operands): Likewise, using *_at rather than *_with_line
14133 functions.
14134 (process_template): Likewise.
14135 (validate_insn_alternatives): Likewise.
14136 (validate_insn_operands): Likewise.
14137 (validate_optab_operands): Likewise.
14138 (init_insn_for_nothing): Initialize idata and idata_end.
14139 (note_constraint): Update after changes to constraint_data,
14140 using at rather than with_line functions.
14141 (mdep_constraint_len): Take a file_location rather than a
14142 line number. Use at rather than with_line functions.
14143
14144 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14145
14146 * read-md.h (fatal_at): Declare.
14147 * read-md.c (fatal_at): New function.
14148 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
14149 to record the source position.
14150 (check_attr_test): Take a file_location instead of a line number.
14151 Use fatal_at instead of fatal.
14152 (check_attr_value): Update after above changes, using "at"
14153 rather than "with_line" reporting functions.
14154 (convert_set_attr_alternative): Likewise.
14155 (gen_attr): Likewise.
14156 (check_defs): Likewise. Don't assign to read_md_filename.
14157 (gen_insn): Update initialization after above changes.
14158 (gen_delay): Likewise.
14159 (write_insn_cases): Print the filename for a define_peephole.
14160 (gen_insn_reserv): Take a line number as argument and update
14161 the call to check_attr_test.
14162 (main): Pass a line number to gen_insn_reserv.
14163
14164 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14165
14166 * read-md.h (file_location): New structure.
14167 (directive_handler_t): Take a file_location rather than a line number.
14168 (message_at, error_at): Declare.
14169 (read_skip_construct): Delete.
14170 * read-md.c (message_with_line_1): Replace with...
14171 (message_at_1): ...this new function.
14172 (message_at, error_at): New functions.
14173 (message_with_line, error_with_line): Update to use message_at_1.
14174 (handle_enum): Take a file_location rather than a line number
14175 and use error_at for error reporting.
14176 (handle_include): Likewise.
14177 (read_skip_construct): Likewise. Make static.
14178 (handle_file): Update after above changes. Pass a file_location
14179 rather than a line number to handle_directive.
14180 * gensupport.c (queue_elem): Replace separate filename and lineno
14181 with a file_location.
14182 (queue_pattern): Replace filename and lineno arguments with a
14183 file_location. Update after change to queue_elem.
14184 (process_define_predicate): Replace lineno argument with a
14185 file_location and use error_at for error reporting. Update
14186 after above changes.
14187 (process_rtx): Likewise.
14188 (subst_pattern_match): Likewise.
14189 (get_alternatives_number): Likewise.
14190 (alter_predicate_for_insn): Likewise.
14191 (rtx_handle_directive): Likewise.
14192 (is_predicable): Update after above changes, using error_at rather
14193 than error_with_line.
14194 (has_subst_attribute): Likewise.
14195 (identify_predicable_attribute): Likewise.
14196 (alter_attrs_for_subst_insn): Likewise.
14197 (process_one_cond_exec): Likewise.
14198 (process_substs_on_one_elem): Likewise.
14199 (process_define_subst): Likewise.
14200 (check_define_attr_duplicates): Likewise.
14201 (read_md_rtx): Update after change to queue_elem.
14202
14203 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14204
14205 * genoutput.c (next_index_number): Delete.
14206 (data): Remove index_number.
14207 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14208 (main): Remove manipulation of next_index_number.
14209
14210 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14211
14212 * genattrtab.c (check_attr_value): Remove handling of null attrs.
14213 (make_canonical): Likewise.
14214
14215 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
14216
14217 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14218 instead of adjust_address_nv.
14219 (restore_stack_nonlocal): Likewise.
14220 (nonlocal_goto): Likewise.
14221
14222 2015-07-16 Tom de Vries <tom@codesourcery.com>
14223
14224 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14225 not have a corresponding loop header phi.
14226
14227 2015-07-16 Tom de Vries <tom@codesourcery.com>
14228
14229 * tree-parloops.c (create_loads_for_reductions): Handle case that
14230 reduction is unused.
14231
14232 2015-07-16 Richard Biener <rguenther@suse.de>
14233
14234 PR tree-optimization/66894
14235 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14236 about deriving NE_EXPR from truncated values.
14237
14238 2015-07-16 Martin Liska <mliska@suse.cz>
14239
14240 * alloc-pool.h
14241 (object_allocator): Add new class.
14242 (pool_allocator::initialize): Use the underlying class.
14243 (pool_allocator::allocate): Likewise.
14244 (pool_allocator::remove): Likewise.
14245 (operator new): A new generic allocator.
14246 * asan.c (struct asan_mem_ref): Remove unused members.
14247 (asan_mem_ref_new): Replace new operator with
14248 object_allocator::allocate.
14249 (free_mem_ref_resources): Change deallocation.
14250 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14251 with object_allocator.
14252 * config/sh/sh.c (add_constant): Replace new operator with
14253 object_allocator::allocate.
14254 (sh_reorg): Change call to a release method.
14255 * cselib.c (struct elt_list): Remove unused members.
14256 (new_elt_list): Replace new operator with
14257 object_allocator::allocate.
14258 (new_elt_loc_list): Likewise.
14259 (new_cselib_val): Likewise.
14260 (unchain_one_elt_list): Change delete operator with remove method.
14261 (unchain_one_elt_loc_list): Likewise.
14262 (unchain_one_value): Likewise.
14263 (cselib_finish): Release newly added static allocators.
14264 * cselib.h (struct cselib_val): Remove unused members.
14265 (struct elt_loc_list): Likewise.
14266 * df-problems.c (df_chain_alloc): Replace pool_allocator with
14267 object_allocator.
14268 * df-scan.c (struct df_scan_problem_data): Likewise.
14269 (df_scan_alloc): Likewise.
14270 * df.h (struct dataflow): Likewise.
14271 * dse.c (struct read_info_type): Likewise.
14272 (struct insn_info_type): Likewise.
14273 (struct dse_bb_info_type): Likewise.
14274 (struct group_info): Likewise.
14275 (struct deferred_change): Likewise.
14276 (get_group_info): Likewise.
14277 (delete_dead_store_insn): Likewise.
14278 (free_read_records): Likewise.
14279 (replace_read): Likewise.
14280 (check_mem_read_rtx): Likewise.
14281 (scan_insn): Likewise.
14282 (dse_step1): Likewise.
14283 (dse_step7): Likewise.
14284 * et-forest.c (struct et_occ): Remove unused members.
14285 (et_new_occ): Use allocate instead of new operator.
14286 (et_new_tree): Likewise.
14287 (et_free_tree): Call release method explicitly.
14288 (et_free_tree_force): Likewise.
14289 (et_free_pools): Likewise.
14290 (et_split): Use remove instead of delete operator.
14291 * et-forest.h (struct et_node): Remove unused members.
14292 * ipa-cp.c: Change pool_allocator to object_allocator.
14293 * ipa-inline-analysis.c: Likewise.
14294 * ipa-profile.c: Likewise.
14295 * ipa-prop.c: Likewise.
14296 * ipa-prop.h: Likewise.
14297 * ira-build.c (initiate_cost_vectors): Cast return value.
14298 (ira_allocate_cost_vector): Likewise.
14299 * ira-color.c (struct update_cost_record): Remove unused members.
14300 * lra-int.h (struct lra_live_range): Likewise.
14301 (struct lra_copy): Likewise.
14302 (struct lra_insn_reg): Likewise.
14303 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14304 * lra.c (new_insn_reg): Replace new operator with allocate method.
14305 (free_insn_regs): Same for operator delete.
14306 (finish_insn_regs): Release new static allocator.
14307 (finish_insn_recog_data): Likewise.
14308 (lra_free_copies): Replace delete operator with remove method.
14309 (lra_create_copy): Replace operator new with allocate method.
14310 (invalidate_insn_data_regno_info): Same for remove method.
14311 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14312 (free_debug_insn_changes): Replace delete operator with remove method.
14313 (replace_oldest_value_reg): Replace operator new with allocate method.
14314 (pass_cprop_hardreg::execute): Release new static variable.
14315 * sched-deps.c (sched_deps_init): Change pool_allocator to
14316 object_allocator.
14317 * sel-sched-ir.c: Likewise.
14318 * sel-sched-ir.h: Likewise.
14319 * stmt.c (expand_case): Likewise.
14320 (expand_sjlj_dispatch_table): Likewise.
14321 * tree-sra.c (struct access): Remove unused members.
14322 (struct assign_link): Likewise.
14323 (sra_deinitialize): Release newly added static pools.
14324 (create_access_1):Replace operator new with allocate method.
14325 (build_accesses_from_assign): Likewise.
14326 (create_artificial_child_access): Likewise.
14327 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14328 pool_allocator to object_allocator.
14329 * tree-ssa-pre.c: Likewise.
14330 * tree-ssa-reassoc.c: Likewise.
14331 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14332 * tree-ssa-strlen.c: Likewise.
14333 * tree-ssa-structalias.c: Likewise.
14334 * var-tracking.c (onepart_pool_allocate): New function.
14335 (unshare_variable): Use the newly added function.
14336 (variable_merge_over_cur): Likewise.
14337 (variable_from_dropped): Likewise.
14338 (variable_was_changed): Likewise.
14339 (set_slot_part): Likewise.
14340 (emit_notes_for_differences_1): Likewise.
14341 (vt_finalize): Release newly added static pools.
14342
14343 2015-07-16 Martin Jambor <mjambor@suse.cz>
14344
14345 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
14346 all uses. Fix two typos in its general comment.
14347 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
14348
14349 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
14350
14351 * config/i386/linux-common.h (LINK_MPX): New.
14352 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
14353 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
14354 indicating '-z bndplt' support by linker.
14355 * configure: Regenerate.
14356 * config.in: Regenerate.
14357
14358 2015-07-16 Richard Biener <rguenther@suse.de>
14359
14360 * fold-const.c (fold_widened_comparison): Remove.
14361 (fold_sign_changed_comparison): Likewise.
14362 (fold_comparison): Move widened and sign-changed comparison
14363 simplification ...
14364 * match.pd: ... to patterns here.
14365 * generic-match-head.c: Include target.h.
14366 * gimple-match-head.c: Likewise.
14367
14368 2015-07-16 Richard Biener <rguenther@suse.de>
14369
14370 * tree-ssa-dom.c (dom_valueize): New function.
14371 (record_temporary_equivalences): Also record equivalences
14372 for dominating stmts that have uses of equivalences we are
14373 about to record.
14374
14375 2015-07-16 Bin Cheng <bin.cheng@arm.com>
14376
14377 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14378 add_autoinc_candidates.
14379 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14380 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14381 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14382 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14383 Call new function.
14384 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14385 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14386 Remove parameter struct iv*. Call add_autoinc_candidates here.
14387 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14388 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14389 Call new function.
14390 (find_iv_candidates): Call new functions.
14391
14392 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
14393
14394 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14395 uninitialized-variable warning.
14396
14397 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
14398
14399 PR target/65249
14400 * config/sh/sh.md (movdi): Split simple reg move to two movsi
14401 when the destination is R0.
14402
14403 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
14404
14405 PR target/66866
14406 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14407 * config/i386/i386.c (ix86_expand_pextr): New function.
14408 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
14409 for non-lowpart subregs.
14410 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14411 (insv<mode>): Use SWI248 mode iterator.
14412 (insv<mode>_1): Ditto.
14413
14414 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14415 Sebastian Pop <s.pop@samsung.com>
14416
14417 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14418 iterator to use_stmt.
14419
14420 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14421 Sebastian Pop <s.pop@samsung.com>
14422
14423 * graphite-scop-detection.c (build_scops_1): Discard scops for
14424 which entry==exit.
14425
14426 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14427 Sebastian Pop <s.pop@samsung.com>
14428
14429 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14430 case of a return statement in scop.
14431
14432 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14433 Sebastian Pop <s.pop@samsung.com>
14434
14435 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14436 INTEGER_TYPE parameters.
14437 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14438 VECTOR_CST in scan_tree_for_params.
14439 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14440
14441 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14442
14443 * gimple-pretty-print.h: Don't include pretty-print.h.
14444 * tree-streamer.h: Don't include lto-streamer.h.
14445 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14446 * gimple-streamer-in.c: Remove redundant includes.
14447 * gimple-streamer-out.c: Likewise.
14448 * ipa-devirt.c: Likewise.
14449 * ipa-icf.c: Likewise.
14450 * ipa-inline-analysis.c: Likewise.
14451 * ipa-polymorphic-call.c: Likewise.
14452 * ipa-profile.c: Likewise.
14453 * ipa-prop.c: Likewise.
14454 * ipa-pure-const.c: Likewise.
14455 * lto-cgraph.c: Likewise.
14456 * lto-streamer-in.c: Likewise.
14457 * lto-streamer-out.c: Likewise.
14458 * lto-streamer.c: Likewise.
14459 * tree-streamer-in.c: Likewise.
14460 * tree-streamer-out.c: Likewise.
14461 * tree-streamer.c: Likewise.
14462
14463 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14464
14465 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14466 include input.h.
14467 * opts.c: Remove multiline #include comment.
14468
14469 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
14470
14471 * config/nvptx/mkoffload.c (process): Add C++ protection to
14472 emitted code.
14473
14474 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14475
14476 PR target/66854
14477 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14478 null before IEEE 128-bit floating point support patch.
14479
14480 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14481
14482 * simplify-rtx.c (simplify_ternary_operation): Add simplification
14483 for (!c) != {0,...,0} ? a : b for vector modes.
14484
14485 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
14486 Martin Jambor <mjambor@suse.cz>
14487
14488 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14489 struct func_body_info* instead of struct ipa_node_params*, expecting
14490 fbi->info to be filled in. Replace throughout. Adjust call to
14491 ipa_load_from_parm_agg.
14492 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14493 instead of struct ipa_node_params*. Adjust calls to other functions
14494 so that they pass either fbi or fbi->info.
14495 (set_switch_stmt_execution_predicate): Likewise.
14496 (will_be_nonconstant_predicate): Likewise.
14497 (compute_bb_predicates): Likewise.
14498 (estimate_function_body_sizes): Move asserts earlier. Fill in
14499 struct func_body_info, replace parms_info with fbi.info. Adjust
14500 calls to functions that now accept struct func_body_info.
14501 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14502 (struct func_body_info): Likewise.
14503 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14504 remove static. Adjust callers.
14505 (ipa_load_from_parm_agg): Remove.
14506 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14507 (func_body_info): Likewise.
14508 (ipa_load_from_parm_agg): Adjust prototype.
14509
14510 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14511
14512 * gensupport.c (rtx_handle_directive): Adjust.
14513 * read-rtl.c (apply_iterators): Take vector to add rtxs to
14514 instead of expr list rtx.
14515 (add_define_attr_for_define_subst): Likewise.
14516 (add_define_subst_attr): Likewise.
14517 (read_subst_mapping): Likewise.
14518 (read_rtx): Likewise.
14519 * rtl.h (read_rtx): Adjust.
14520
14521 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14522
14523 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14524
14525 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14526
14527 PR target/58066
14528 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14529 (*tls_local_dynamic_base_64_<mode>): Ditto.
14530 (*tls_local_dynamic_base_64_largepic): Ditto.
14531 (tls_global_dynamic_64_<mode>): Update expander pattern.
14532 (tls_local_dynamic_base_64_<mode>): Ditto.
14533
14534 2015-07-15 Richard Biener <rguenther@suse.de>
14535
14536 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14537 and bool_var == 1 -> bool_var simplifications ...
14538 * match.pd: ... to patterns here. Factor out negate_expr_p
14539 cases from the A - B -> A + (-B) patterns as negate_expr_p
14540 predicate and add a -(A + B) -> (-B) - A pattern.
14541
14542 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14543
14544 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14545
14546 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
14547 Robert Suchanek <robert.suchanek@imgtec.com>
14548
14549 * config/mips/mips.c (mips_int_mask): New enum.
14550 (mips_shadow_set): Likewise.
14551 (int_mask): New variable.
14552 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14553 (machine_function): Add int_mask and use_shadow_register_set.
14554 (mips_attribute_table): Add attribute handlers for interrupt and
14555 use_shadow_register_set.
14556 (mips_interrupt_mask): New static function.
14557 (mips_handle_interrupt_attr): Likewise.
14558 (mips_handle_use_shadow_register_set_attr): Likewise.
14559 (mips_use_shadow_register_set): Change return type to enum
14560 mips_shadow_set. Add argument handling for use_shadow_register_set
14561 attribute.
14562 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14563 compare with mips_shadow_set enum.
14564 (mips_compute_frame_info): Add interrupt mask and
14565 use_shadow_register_set to per-function information structure.
14566 Add a stack slot for EPC unconditionally.
14567 (mips_expand_prologue): Compare use_shadow_register_set value
14568 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
14569 masked interrupt register but in EIC mode use K0 and save Cause in K0.
14570 EPC saved and restored unconditionally. Use PMODE_INSN macro when
14571 copying the stack pointer from the shadow register set.
14572 * config/mips/mips.h (SR_IM0): New define.
14573 * config/mips/mips.md (mips_rdpgpr): Rename to...
14574 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
14575 * doc/extend.texi (Declaring Attributes of Functions): Document
14576 optional arguments for interrupt and use_shadow_register_set
14577 attributes.
14578
14579 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14580
14581 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14582 interrupt attribute.
14583 (mips_expand_prologue): Disable the floating point unit in an ISR.
14584 * config/mips/mips.h (SR_COP1): New define.
14585
14586 2015-07-15 Richard Biener <rguenther@suse.de>
14587
14588 * genmatch.c (parser::peek, parser::peek_ident): Add argument
14589 to tell how many tokens to peek ahead (default 1).
14590 (parser::eat_token, parser::eat_ident): Return token consumed.
14591 (parser::parse_result): Parse new switch statement.
14592 * match.pd: Use case statements where appropriate.
14593
14594 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14595
14596 PR rtl-optimization/58066
14597 * calls.c (expand_call): Precompute register parameters before stack
14598 alignment is performed.
14599
14600 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14601
14602 PR rtl-optimization/66838
14603 * postreload.c (reload_cse_move2add): Also process
14604 CALL_INSN_FUNCTION_USAGE when resetting information of
14605 call-clobbered registers.
14606
14607 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14608 Cesar Philippidis <cesar@codesourcery.com>
14609 Chung-Lin Tang <cltang@codesourcery.com>
14610
14611 * config/nios2/constraints.md (U, v): New constraints.
14612 * config/nios2/predicates.md (rdprs_dcache_operand): New.
14613 (ldstex_memory_operand): New.
14614 * config/nios2/sync.md: New file.
14615 * config/nios2/nios2.md (unspecv): Add new builtin function
14616 UNSPECV codes.
14617 (rdprs, flushd, flushda, wrpie, eni): New patterns.
14618 (top-level): Include sync.md.
14619 * config/nios2/nios2.c (N2_FTYPES): Add function types for
14620 new builtins.
14621 (N2_BUILTINS): Add arch field setting, add new builtins.
14622 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14623 for arch field.
14624 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14625 Also handle ldex/stex/ldsex/stsex builtins.
14626 (nios2_expand_rdprs_builtin): New function.
14627 (nios2_expand_cache_builtin): New function.
14628 (nios2_expand_wrpie_builtin): New function.
14629 (nios2_expand_eni_builtin): New function.
14630 (nios2_expand_builtin): Add arch field handling and new builtin
14631 cases.
14632 * doc/extend.texi (Altera Nios II Built-in Functions): Document
14633 new builtins.
14634 * doc/md.texi (Machine Constraints): Document U and v constraints.
14635
14636 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14637 Cesar Philippidis <cesar@codesourcery.com>
14638 Chung-Lin Tang <cltang@codesourcery.com>
14639
14640 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14641 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14642 callee_save_reg_size and uses_anonymous_args fields.
14643 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14644 (nios2_create_cfa_notes): New function.
14645 (nios2_adjust_stack): New function for adjusting stack.
14646 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14647 Use nios2_adjust_stack.
14648 (nios2_expand_epilogue): Likewise.
14649 (nios2_expand_return): New function.
14650 (nios2_can_use_return_insn): Update for CDX pop.n usage.
14651 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14652 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14653 * config/nios2/nios2.md (return): Use nios2_expand_return.
14654
14655 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14656 Cesar Philippidis <cesar@codesourcery.com>
14657 Chung-Lin Tang <cltang@codesourcery.com>
14658
14659 * config/nios2/predicates.md (pop_operation): New.
14660 (ldwm_operation, stwm_operation): New.
14661 (nios2_hard_register_operand): New.
14662 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14663 (ldstwm_operation_p): Declare.
14664 (gen_ldstwm_peep): Declare.
14665 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14666 (base_reg_adjustment_p): New.
14667 (pop_operation_p): New.
14668 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14669 (nios2_ldstwm_regset_p): New.
14670 (ldstwm_operation_p): New.
14671 (gen_ldst): New.
14672 (nios2_ldst_parallel): New.
14673 (struct ldswm_operand): Declare.
14674 (compare_ldstwm_operands): New.
14675 (can_use_cdx_ldstw): New.
14676 (gen_ldstwm_peep): New.
14677 * config/nios2/nios2-ldstwm.sml: New.
14678 * config/nios2/nios2.md: Include ldstwm.md.
14679 * config/nios2/ldstwm.md: Generated.
14680
14681 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14682 Cesar Philippidis <cesar@codesourcery.com>
14683 Chung-Lin Tang <cltang@codesourcery.com>
14684
14685 * config/nios2/nios2.h (LABEL_ALIGN): Define.
14686 (REG_ALLOC_ORDER): Define.
14687 (ADJUST_REG_ALLOC_ORDER): Define.
14688 (HONOR_REG_ALLOC_ORDER): Define.
14689 (CDX_REG_P): Define.
14690 (ANDCLEAR_INT): Define.
14691 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14692 (nios2_label_align): Declare.
14693 (nios2_cdx_narrow_form_p): Declare.
14694 (nios2_adjust_reg_alloc_order): Declare.
14695 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14696 operation.
14697 (nios2_large_unspec_reloc_p): New function, split from...
14698 (nios2_legitimate_pic_operand_p): ...here.
14699 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14700 (nios2_print_operand_punct_valid_p): New.
14701 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
14702 (split_mem_address): New.
14703 (split_alu_insn): New.
14704 (cdxreg): New.
14705 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14706 (enum nios2_add_insn_kind): New.
14707 (nios2_add_insn_names, nios2_add_insn_narrow): New.
14708 (nios2_add_insn_classify): New.
14709 (nios2_add_insn_asm): New.
14710 (nios2_cdx_narrow_form_p): New.
14711 (label_align, min_labelno, max_labelno): New.
14712 (nios2_reorg): New.
14713 (nios2_label_align): New.
14714 (nios2_adjust_reg_alloc_order): New.
14715 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14716 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14717 * config/nios2/constraints.md (P): New constraint.
14718 * config/nios2/predicates.md (const_and_operand): New.
14719 (and_operand): New.
14720 (stack_memory_operand): New.
14721 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14722 (length): Update to use nios2_cdx_narrow_form_p().
14723 (type): Add new insn type values.
14724 (control, alu, st, ld, shift): Update insn reservations with
14725 new insn type values.
14726 (*high, *lo_sum): Define new insn patterns for constant generation.
14727 (movqi_internal, movhi_internal, movsi_internal): Reduce
14728 alternatives, update asm template to handle CDX variants, update
14729 type attributes.
14730 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14731 template, update type attributes.
14732 (extendhisi2, extendqi<mode>2): Likewise.
14733 (addsi3): Change to use function for asm string.
14734 (subsi3): Add CDX notation to asm template, update type attributes.
14735 (negsi3, one_cmplsi3): Likewise.
14736 (andsi3): New pattern, specialized from logical patterns.
14737 (<code>si3): Remove and case, combine alternatives, update asm
14738 template.
14739 (<shift_op>si3): Add CDX notation, update type attributes.
14740 (rotrsi3): Update type attribute.
14741 (*merge, extzv, insv): New insn patterns.
14742 (return): Change to define_expand.
14743 (simple_return): Add CDX notation, update type attributes.
14744 (indirect_jump): Add CDX notation.
14745 (jump): Update asm cases, update length attribute expression.
14746 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14747 (nios2_cbranch): Update asm cases and length attribute expression
14748 to handle CDX variants.
14749 (nios2_cmp<code>): Update asm template.
14750 (nop): Add CDX notation, update type attributes.
14751 (trap): Add CDX notation.
14752 (ctrapsi4): Update asm cases and length attribute expression to
14753 handle CDX variant.
14754 * doc/md.texi (Machine Constraints): Document P constraint.
14755
14756 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14757 Cesar Philippidis <cesar@codesourcery.com>
14758 Chung-Lin Tang <cltang@codesourcery.com>
14759
14760 * config/nios2/nios2.h (SMALL_INT12): New macro.
14761 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14762 (nios2_valid_addr_expr_p): Use it.
14763 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14764 with implicit "io" instructions on R2.
14765 * config/nios2/constraints.md (w): New constraint.
14766 * config/nios2/predicates.md (ldstio_memory_operand): New.
14767 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14768 operand predicate and constraint.
14769 (ld<bh>io_signed, st<bhw>io>): Likewise.
14770 * doc/md.texi (Machine Constraints): Document w constraint.
14771
14772 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14773 Cesar Philippidis <cesar@codesourcery.com>
14774 Chung-Lin Tang <cltang@codesourcery.com>
14775
14776 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14777 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14778 Nios II architecture level.
14779 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14780 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14781 (OPTION_DEFAULT_SPECS): Define.
14782 (ASM_SPEC): Add -march= spec strings.
14783 * config/nios2/nios2.c (nios2_option_override): Check for
14784 conflicts involving new options.
14785 * config.gcc (nios2*-*-*): Support --with-arch=.
14786 * doc/invoke.texi (Option Summary, Nios II Options): Document
14787 -march=, -mbmx, and -mcdx.
14788
14789 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
14790
14791 PR rtl-optimization/66626
14792 * lra-constraints.c (lra_constraints): Prevent equivalence
14793 substitution for static chain pseudo in functions with nonlocal
14794 goto.
14795
14796 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14797
14798 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14799 (nios2_emit_stack_limit_check): Add size parameter. Handle
14800 -fstack-limit-symbol as well as -fstack-limit-register.
14801 (nios2_expand_prologue): Emit only a single stack limit check,
14802 even if multiple stack adjustments are required.
14803 (nios2_option_override): Diagnose unsupported combination of -fpic
14804 and -stack-limit-symbol.
14805
14806 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14807
14808 * Makefile.in (top_srcdir): New.
14809 * configure.ac: Use AM_ZLIB.
14810 * configure: Regeneated.
14811
14812 2015-07-14 Matthias Klose <doko@ubuntu.com>
14813
14814 PR target/66840
14815 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14816
14817 2015-07-14 Richard Biener <rguenther@suse.de>
14818
14819 PR tree-optimization/66863
14820 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14821 what we record for conversion use stmt lhs inequalities.
14822
14823 2015-07-14 Richard Biener <rguenther@suse.de>
14824
14825 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14826 (decision_tree::gen_gimple): Likewise.
14827
14828 2015-07-14 Tom de Vries <tom@codesourcery.com>
14829
14830 * gcc.c (greater_than_spec_func): Declare forward.
14831 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14832 -ftree-parallelize-loops={0,1}.
14833 (static_spec_functions): Add greater_than_spec_func function with name
14834 "gt".
14835 (greater_than_spec_func): New function.
14836
14837 2015-07-14 Richard Biener <rguenther@suse.de>
14838
14839 * tree-ssa-dom.c (record_temporary_equivalences): Merge
14840 wideing type conversion case from record_equivalences_from_incoming_edge
14841 and use record_equality to record equivalences.
14842 (record_equivalences_from_incoming_edge): Call
14843 record_temporary_equivalences.
14844
14845 2015-07-14 Richard Biener <rguenther@suse.de>
14846
14847 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14848 (struct if_expr): New.
14849 (struct with_expr): Likewise.
14850 (is_a_helper): Add helpers for if_expr and with_expr.
14851 (struct simplify): Add simplify_kind enum and member. Remove
14852 ifexpr_vec member.
14853 (simplify::simplify): Adjust.
14854 (lower_commutative): Adjust.
14855 (lower_opt_convert): Likewise.
14856 (lower_cond): Likewise.
14857 (replace_id): Handle with_expr and if_expr.
14858 (lower_for): Adjust.
14859 (dt_simplify::gen_1): New recursive worker, split out from ...
14860 (dt_simplify::gen): ... here. Deal with if and with expansion
14861 recursively.
14862 (capture_info::capture_info): Take context argument
14863 (capture_info::walk_result): Only analyze specific result.
14864 (parser::parse_result): New function.
14865 (parser::parse_simplify): Adjust to parse ifs with then end
14866 else case.
14867 (parser::parse_if): Simplify.
14868 (parser::parse_pattern): Pass down simplify kind.
14869 * match.pd: Convert if structure to new syntax.
14870
14871 2015-07-13 Marek Polacek <polacek@redhat.com>
14872
14873 * rtl.c (rtx_equal_p_cb): Fix typo.
14874
14875 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
14876
14877 * omega.h: Don't include config.h, don't include params.h again if
14878 omega.h has already been included.
14879 * graphite-poly.h: Include sese.h.
14880 * graphite.c: Don't include sese.h, remove needless includes and
14881 minimize includes outside #ifdef HAVE_isl block.
14882 * graphite-blocking.c: Don't include sese.h, remove needless includes,
14883 and wrap entire file in #ifdef HAVE_isl
14884 * graphite-dependences.c: Likewise.
14885 * graphite-interchange.c: Likewise.
14886 * graphite-isl-ast-to-gimple.c: Likewise.
14887 * graphite-optimize-isl.c: Likewise.
14888 * graphite-poly.c: Likewise.
14889 * graphite-scop-detection.c: Likewise.
14890 * graphite-sese-to-poly.c: Likewise.
14891
14892 2015-07-13 Tom de Vries <tom@codesourcery.com>
14893
14894 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14895
14896 2015-07-13 Renlin Li <renlin.li@arm.com>
14897
14898 PR rtl/66556
14899 * simplify-rtx.c (simplify_const_relational_operation): Add
14900 side_effects_p checks.
14901
14902 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
14903
14904 * bitmap.h: Fix double word typos.
14905 * builtins.c: Same.
14906 * calls.c: Same.
14907 * cfgloopmanip.c: Same.
14908 * cgraph.c: Same.
14909 * cgraph.h: Same.
14910 * cgraphclones.c: Same.
14911 * combine.c: Same.
14912 * config/aarch64/aarch64-protos.h: Same.
14913 * config/aarch64/aarch64.c: Same.
14914 * config/aarch64/aarch64.md: Same.
14915 * config/arm/arm.md: Same.
14916 * config/arm/arm1020e.md: Same.
14917 * config/arm/arm1026ejs.md: Same.
14918 * config/arm/arm926ejs.md: Same.
14919 * config/arm/fa526.md: Same.
14920 * config/arm/fa606te.md: Same.
14921 * config/arm/fa626te.md: Same.
14922 * config/arm/fa726te.md: Same.
14923 * config/arm/fmp626.md: Same.
14924 * config/darwin.c: Same.
14925 * config/epiphany/epiphany.c: Same.
14926 * config/frv/frv.c: Same.
14927 * config/ft32/ft32.c: Same.
14928 * config/gnu-user.h: Same.
14929 * config/h8300/constraints.md: Same.
14930 * config/i386/i386.c: Same.
14931 * config/i386/i386.md: Same.
14932 * config/iq2000/iq2000.md: Same.
14933 * config/mips/mips.c: Same.
14934 * config/mmix/mmix.md: Same.
14935 * config/moxie/moxie.c: Same.
14936 * config/nds32/nds32.md: Same.
14937 * config/pa/pa.h: Same.
14938 * config/rs6000/aix.h: Same.
14939 * config/rs6000/rs6000.h: Same.
14940 * config/sh/sh.c: Same.
14941 * config/tilegx/tilegx.md: Same.
14942 * config/tilepro/gen-mul-tables.cc: Same.
14943 * cse.c: Same.
14944 * dbxout.c: Same.
14945 * doc/invoke.texi: Same.
14946 * dse.c: Same.
14947 * dwarf2out.c: Same.
14948 * final.c: Same.
14949 * gcc.c: Same.
14950 * genmatch.c: Same.
14951 * gimplify.c: Same.
14952 * hash-table.h: Same.
14953 * internal-fn.c: Same.
14954 * ipa-cp.c: Same.
14955 * ipa-devirt.c: Same.
14956 * ipa-icf.c: Same.
14957 * ipa-icf.h: Same.
14958 * ipa-profile.c: Same.
14959 * ipa-prop.c: Same.
14960 * ipa-prop.h: Same.
14961 * ira.c: Same.
14962 * omp-low.c: Same.
14963 * reg-stack.c: Same.
14964 * regcprop.c: Same.
14965 * reorg.c: Same.
14966 * rtl.h: Same.
14967 * sbitmap.h: Same.
14968 * tree-eh.c: Same.
14969 * tree-inline.c: Same.
14970 * tree-sra.c: Same.
14971 * tree-ssa-dom.c: Same.
14972 * tree-ssa-loop-ivopts.c: Same.
14973 * tree-ssa-structalias.c: Same.
14974 * tree-ssa-tail-merge.c: Same.
14975 * tree-ssa-ter.c: Same.
14976 * tree-ssa-threadupdate.c: Same.
14977 * tree-ssa-uninit.c: Same.
14978 * tree-ssanames.c: Same.
14979 * tree-vect-loop-manip.c: Same.
14980 * tree-vrp.c: Same.
14981 * tree.c: Same.
14982 * valtrack.c: Same.
14983 * vec.h: Same.
14984
14985 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14986
14987 PR middle-end/66726
14988 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
14989 tree_ssa_phiopt_worker): Call it.
14990
14991 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
14992
14993 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
14994 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
14995 REG_EQUAL note.
14996
14997 2015-07-11 Marek Polacek <polacek@redhat.com>
14998
14999 PR middle-end/66353
15000 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
15001 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
15002 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
15003 rather than bb_has_abnormal_call_pred.
15004 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
15005 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
15006 rather than bb_has_abnormal_call_pred.
15007
15008 2015-07-10 Anatoly Sokolov <aesok@post.ru>
15009
15010 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15011 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
15012 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15013 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
15014 v850_legitimate_address_p): New functions.
15015 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15016
15017 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
15018
15019 PR target/66819
15020 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
15021 indirect sibcall with register arguments if register available
15022 for argument passing.
15023 (init_cumulative_args): Set cfun->machine->arg_reg_available
15024 to (cum->nregs > 0) or to true if function has a variable
15025 argument list.
15026 (function_arg_advance_32): Set cfun->machine->arg_reg_available
15027 to false if cum->nregs <= 0.
15028 * config/i386/i386.h (machine_function): Add arg_reg_available.
15029
15030 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15031
15032 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
15033 and gen_higpart instead of gen_rtx_SUBREG.
15034 * config/i386/i386.md
15035 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
15036 (read-modify peephole2): Use gen_lowpart instead of
15037 gen_rtx_SUBREG for operand 5.
15038
15039 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
15040
15041 * config/tilepro/gen-mul-tables.cc (main): Change include list for
15042 generated files.
15043 * config/tilepro/mul-tables.c: Regenerate.
15044 * config/tilegx/mul-tables.c: Regenerate.
15045
15046 2015-07-10 Richard Biener <rguenther@suse.de>
15047
15048 * fold-const.c (distribute_bit_expr): Remove.
15049 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
15050 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
15051 to A & (B | C) and simplifying A << C1 << C2 to ...
15052 * match.pd: ... patterns here.
15053
15054 2015-07-10 Jiong Wang <jiong.wang@arm.com>
15055
15056 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15057 Mark mem as READONLY and NOTRAP for PIC symbol.
15058
15059 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
15060
15061 * gimple-predict.h: New file.
15062 (gimple_predict_predictor, gimple_predict_set_predictor,
15063 gimple_predict_outcome, gimple_predict_set_outcome,
15064 gimple_build_predict): Relocate here.
15065 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
15066 gimple_predict_outcome, gimple_predict_set_outcome): Move to
15067 gimple-predict.h.
15068 * gimple.c (gimple_build_predict): Move to gimple-predict.h
15069 * basic-block.h: Don't include cfghooks.h.
15070 * backend.h: Don't include predict.h.
15071 * cfghooks.h: Include predict.h.
15072 * gimple-pretty-print.c: Include gimple-predict.h.
15073 * gimplify.c: Likwise.
15074 * predict.c: Adjust includes.
15075 * tree-inline.c: Likewise.
15076 * asan.c: Likewise.
15077 * auto-inc-dec.c: Likewise.
15078 * auto-profile.c: Likewise.
15079 * bb-reorder.c: Likewise.
15080 * builtins.c: Likewise.
15081 * caller-save.c: Likewise.
15082 * calls.c: Likewise.
15083 * cfganal.c: Likewise.
15084 * cfgbuild.c: Likewise.
15085 * cfg.c: Likewise.
15086 * cfgcleanup.c: Likewise.
15087 * cfgexpand.c: Likewise.
15088 * cfghooks.c: Likewise.
15089 * cfgloopanal.c: Likewise.
15090 * cfgloop.c: Likewise.
15091 * cfgloopmanip.c: Likewise.
15092 * cfgrtl.c: Likewise.
15093 * cgraph.c: Likewise.
15094 * cgraphunit.c: Likewise.
15095 * combine.c: Likewise.
15096 * cprop.c: Likewise.
15097 * cse.c: Likewise.
15098 * dce.c: Likewise.
15099 * dojump.c: Likewise.
15100 * dse.c: Likewise.
15101 * except.c: Likewise.
15102 * expmed.c: Likewise.
15103 * expr.c: Likewise.
15104 * final.c: Likewise.
15105 * fold-const.c: Likewise.
15106 * function.c: Likewise.
15107 * fwprop.c: Likewise.
15108 * gcc-plugin.h: Likewise.
15109 * gcse.c: Likewise.
15110 * genattrtab.c: Likewise.
15111 * genemit.c: Likewise.
15112 * gengtype.c: Likewise.
15113 * genopinit.c: Likewise.
15114 * genoutput.c: Likewise.
15115 * genpreds.c: Likewise.
15116 * genrecog.c: Likewise.
15117 * gimple-fold.c: Likewise.
15118 * gimple-iterator.c: Likewise.
15119 * gimple-ssa-isolate-paths.c: Likewise.
15120 * gimple-ssa-strength-reduction.c: Likewise.
15121 * graph.c: Likewise.
15122 * graphite-blocking.c: Likewise.
15123 * graphite.c: Likewise.
15124 * graphite-dependences.c: Likewise.
15125 * graphite-interchange.c: Likewise.
15126 * graphite-isl-ast-to-gimple.c: Likewise.
15127 * graphite-optimize-isl.c: Likewise.
15128 * graphite-poly.c: Likewise.
15129 * graphite-scop-detection.c: Likewise.
15130 * graphite-sese-to-poly.c: Likewise.
15131 * haifa-sched.c: Likewise.
15132 * ifcvt.c: Likewise.
15133 * internal-fn.c: Likewise.
15134 * ipa-cp.c: Likewise.
15135 * ipa-profile.c: Likewise.
15136 * ipa-split.c: Likewise.
15137 * ipa-utils.c: Likewise.
15138 * ira-build.c: Likewise.
15139 * ira-color.c: Likewise.
15140 * ira-conflicts.c: Likewise.
15141 * ira-costs.c: Likewise.
15142 * ira-emit.c: Likewise.
15143 * ira-lives.c: Likewise.
15144 * jump.c: Likewise.
15145 * loop-doloop.c: Likewise.
15146 * loop-init.c: Likewise.
15147 * loop-invariant.c: Likewise.
15148 * loop-unroll.c: Likewise.
15149 * lower-subreg.c: Likewise.
15150 * lra-assigns.c: Likewise.
15151 * lra.c: Likewise.
15152 * lra-coalesce.c: Likewise.
15153 * lra-constraints.c: Likewise.
15154 * lra-lives.c: Likewise.
15155 * lto-cgraph.c: Likewise.
15156 * lto-streamer-in.c: Likewise.
15157 * mode-switching.c: Likewise.
15158 * modulo-sched.c: Likewise.
15159 * omp-low.c: Likewise.
15160 * optabs.c: Likewise.
15161 * passes.c: Likewise.
15162 * postreload.c: Likewise.
15163 * postreload-gcse.c: Likewise.
15164 * profile.c: Likewise.
15165 * recog.c: Likewise.
15166 * regstat.c: Likewise.
15167 * reload1.c: Likewise.
15168 * reorg.c: Likewise.
15169 * rtlanal.c: Likewise.
15170 * sched-ebb.c: Likewise.
15171 * sel-sched-ir.c: Likewise.
15172 * sese.c: Likewise.
15173 * shrink-wrap.c: Likewise.
15174 * simplify-rtx.c: Likewise.
15175 * stmt.c: Likewise.
15176 * store-motion.c: Likewise.
15177 * tracer.c: Likewise.
15178 * trans-mem.c: Likewise.
15179 * tree-call-cdce.c: Likewise.
15180 * tree-cfg.c: Likewise.
15181 * tree-cfgcleanup.c: Likewise.
15182 * tree-chkp.c: Likewise.
15183 * tree-complex.c: Likewise.
15184 * tree-eh.c: Likewise.
15185 * tree-if-conv.c: Likewise.
15186 * tree-loop-distribution.c: Likewise.
15187 * tree-outof-ssa.c: Likewise.
15188 * tree-parloops.c: Likewise.
15189 * tree-predcom.c: Likewise.
15190 * tree-pretty-print.c: Likewise.
15191 * tree-profile.c: Likewise.
15192 * tree-sra.c: Likewise.
15193 * tree-ssa.c: Likewise.
15194 * tree-ssa-coalesce.c: Likewise.
15195 * tree-ssa-dce.c: Likewise.
15196 * tree-ssa-dom.c: Likewise.
15197 * tree-ssa-forwprop.c: Likewise.
15198 * tree-ssa-ifcombine.c: Likewise.
15199 * tree-ssa-loop-ch.c: Likewise.
15200 * tree-ssa-loop-im.c: Likewise.
15201 * tree-ssa-loop-ivcanon.c: Likewise.
15202 * tree-ssa-loop-ivopts.c: Likewise.
15203 * tree-ssa-loop-manip.c: Likewise.
15204 * tree-ssa-loop-prefetch.c: Likewise.
15205 * tree-ssa-loop-unswitch.c: Likewise.
15206 * tree-ssa-math-opts.c: Likewise.
15207 * tree-ssa-phiopt.c: Likewise.
15208 * tree-ssa-pre.c: Likewise.
15209 * tree-ssa-reassoc.c: Likewise.
15210 * tree-ssa-sink.c: Likewise.
15211 * tree-ssa-tail-merge.c: Likewise.
15212 * tree-ssa-threadedge.c: Likewise.
15213 * tree-ssa-threadupdate.c: Likewise.
15214 * tree-switch-conversion.c: Likewise.
15215 * tree-tailcall.c: Likewise.
15216 * tree-vect-data-refs.c: Likewise.
15217 * tree-vect-loop.c: Likewise.
15218 * tree-vect-loop-manip.c: Likewise.
15219 * tree-vectorizer.c: Likewise.
15220 * tree-vrp.c: Likewise.
15221 * ubsan.c: Likewise.
15222 * value-prof.c: Likewise.
15223 * varasm.c: Likewise.
15224 * var-tracking.c: Likewise.
15225 * config/aarch64/aarch64-builtins.c: Likewise.
15226 * config/aarch64/aarch64.c: Likewise.
15227 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15228 * config/alpha/alpha.c: Likewise.
15229 * config/arc/arc.c: Likewise.
15230 * config/arm/arm.c: Likewise.
15231 * config/avr/avr.c: Likewise.
15232 * config/bfin/bfin.c: Likewise.
15233 * config/c6x/c6x.c: Likewise.
15234 * config/cr16/cr16.c: Likewise.
15235 * config/cris/cris.c: Likewise.
15236 * config/darwin.c: Likewise.
15237 * config/darwin-c.c: Likewise.
15238 * config/epiphany/epiphany.c: Likewise.
15239 * config/epiphany/mode-switch-use.c: Likewise.
15240 * config/epiphany/resolve-sw-modes.c: Likewise.
15241 * config/fr30/fr30.c: Likewise.
15242 * config/frv/frv.c: Likewise.
15243 * config/ft32/ft32.c: Likewise.
15244 * config/h8300/h8300.c: Likewise.
15245 * config/i386/i386.c: Likewise.
15246 * config/i386/winnt.c: Likewise.
15247 * config/ia64/ia64.c: Likewise.
15248 * config/iq2000/iq2000.c: Likewise.
15249 * config/lm32/lm32.c: Likewise.
15250 * config/m32c/m32c.c: Likewise.
15251 * config/m32r/m32r.c: Likewise.
15252 * config/m68k/m68k.c: Likewise.
15253 * config/mcore/mcore.c: Likewise.
15254 * config/mep/mep.c: Likewise.
15255 * config/microblaze/microblaze.c: Likewise.
15256 * config/mips/mips.c: Likewise.
15257 * config/mmix/mmix.c: Likewise.
15258 * config/mn10300/mn10300.c: Likewise.
15259 * config/moxie/moxie.c: Likewise.
15260 * config/msp430/msp430.c: Likewise.
15261 * config/nds32/nds32.c: Likewise.
15262 * config/nds32/nds32-cost.c: Likewise.
15263 * config/nds32/nds32-fp-as-gp.c: Likewise.
15264 * config/nds32/nds32-intrinsic.c: Likewise.
15265 * config/nds32/nds32-isr.c: Likewise.
15266 * config/nds32/nds32-md-auxiliary.c: Likewise.
15267 * config/nds32/nds32-memory-manipulation.c: Likewise.
15268 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15269 * config/nds32/nds32-predicates.c: Likewise.
15270 * config/nios2/nios2.c: Likewise.
15271 * config/nvptx/nvptx.c: Likewise.
15272 * config/pa/pa.c: Likewise.
15273 * config/pdp11/pdp11.c: Likewise.
15274 * config/rl78/rl78.c: Likewise.
15275 * config/rs6000/rs6000.c: Likewise.
15276 * config/rx/rx.c: Likewise.
15277 * config/s390/s390.c: Likewise.
15278 * config/sh/sh.c: Likewise.
15279 * config/sh/sh-mem.cc: Likewise.
15280 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15281 * config/sh/sh_treg_combine.cc: Likewise.
15282 * config/sparc/sparc.c: Likewise.
15283 * config/spu/spu.c: Likewise.
15284 * config/stormy16/stormy16.c: Likewise.
15285 * config/tilegx/tilegx.c: Likewise.
15286 * config/tilepro/tilepro.c: Likewise.
15287 * config/v850/v850.c: Likewise.
15288 * config/vax/vax.c: Likewise.
15289 * config/visium/visium.c: Likewise.
15290 * config/xtensa/xtensa.c: Likewise.
15291
15292 2015-07-10 Richard Biener <rguenther@suse.de>
15293
15294 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15295 (decision_tree::gen_gimple): Likewise.
15296 (decision_tree::gen_generic): Likewise.
15297
15298 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15299
15300 PR target/66813
15301 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15302 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15303
15304 2015-07-10 Jakub Jelinek <jakub@redhat.com>
15305
15306 PR middle-end/66820
15307 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15308 or ORT_TASK contexts.
15309 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15310 is non-zero.
15311
15312 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15313
15314 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15315 above function.
15316
15317 2015-07-10 Tom de Vries <tom@codesourcery.com>
15318
15319 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15320 insert nit + 1 bound.
15321
15322 2015-07-10 Richard Biener <rguenther@suse.de>
15323
15324 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15325 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15326 (if_convertible_loop_p_1): For this always compute bb predicates.
15327 (if_convertible_loop_p): And free them.
15328
15329 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15330
15331 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15332 in dump message.
15333
15334 2015-07-10 Richard Biener <rguenther@suse.de>
15335
15336 PR tree-optimization/66823
15337 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15338 inverted predicate.
15339
15340 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
15341
15342 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15343 to handle mips[32|64]r3 and mips[32|64]r5.
15344
15345 2015-07-09 Jakub Jelinek <jakub@redhat.com>
15346
15347 PR middle-end/66633
15348 * tree-nested.c (get_static_chain): Or in a flag into
15349 info->static_chain_added.
15350 (get_frame_field, get_nonlocal_debug_decl): Likewise.
15351 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
15352 2015-07-01 changes.
15353 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
15354 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
15355 add it to clauses.
15356
15357 PR tree-optimization/66718
15358 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
15359 field.
15360 (vect_simd_lane_linear): New function.
15361 (vectorizable_simd_clone_call): Support using linear arguments for
15362 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
15363
15364 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15365
15366 PR target/66821
15367 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15368
15369 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15370
15371 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15372 Use machine mode, not enum machine_mode in the prototype.
15373
15374 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15375 classify 128-bit floating point support.
15376 (FLOAT128_IBM_P): Likewise.
15377 (FLOAT128_VECTOR_P): Likewise.
15378 (FLOAT128_2REG_P): Likewise.
15379 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15380 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15381 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15382 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15383
15384 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15385 tests against TFmode/TDmode, since those modes do not use VSX
15386 addresses.
15387 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15388 support.
15389 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15390 tests against TFmode, etc.
15391 (invalid_e500_subreg): Add tests against IFmode/KFmode.
15392 (reg_offset_addressing_ok_p): Likewise.
15393 (rs6000_legitimate_offset_address_p): Likewise.
15394 (rs6000_legitimize_address): Likewise.
15395 (rs6000_legitimize_reload_address): Likewise.
15396 (rs6000_legitimate_address_p): Clean up tests against TFmode and
15397 TDmode to use the new helper macros, which will include IFmode and
15398 KFmode.
15399 (rs6000_emit_move): Likewise.
15400 (rs6000_darwin64_record_arg_recurse): Likewise.
15401 (print_operand): Likewise.
15402 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15403 that uses a single vector register as a vector and not as a
15404 floating point register in terms of the calling sequence.
15405 (rs6000_discover_homogeneous_aggregate): Likewise.
15406 (rs6000_return_in_memory): Likewise.
15407 (init_cumulative_args): Likewise.
15408 (rs6000_function_arg_boundary): Likewise.
15409 (rs6000_function_arg_advance_1): Likewise.
15410 (rs6000_function_arg): Likewise.
15411 (rs6000_pass_by_reference): Likewise.
15412 (rs6000_gimplify_va_arg): Likewise.
15413 (rs6000_secondary_reload_memory): Use machine_mode not enum
15414 machine mode.
15415 (rs6000_split_multireg_move): Use new helper macros.
15416 (spe_func_has_64bit_regs_p): Likewise.
15417 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15418 (output_toc): Use new helper macros.
15419 (rs6000_register_move_cost): Likewise.
15420 (rs6000_function_value): Add IEEE 128-bit floating point calling
15421 sequence support.
15422 (rs6000_libcall_value): Likewise.
15423 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15424 floating point support.
15425 (rs6000_vector_mode_supported_p): Likewise.
15426
15427 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
15428
15429 PR rtl-optimization/66782
15430 * lra-int.h (struct lra_insn_recog_data): Add comment about
15431 clobbered hard regs for arg_hard_regs.
15432 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15433 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15434 Add condition for processing used hard regs.
15435 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15436 Process clobbered hard regs.
15437
15438 2015-07-09 Michael Matz <matz@suse.de>
15439
15440 * genmatch.c (fprintf_indent): New function.
15441 (operand::gen_transform): Add indent parameter.
15442 (expr::gen_transform, c_expr::gen_transform,
15443 capture::gen_transform): Ditto and use fprintf_indent.
15444 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15445 (dt_operand::gen, dt_operand::gen_predicate,
15446 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15447 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15448 (decision_tree::gen_gimple): Adjust calls and indent generated
15449 code.
15450 (decision_tree::gen_generic): Ditto.
15451 (write_predicate): Ditto.
15452
15453 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15454
15455 PR target/66814
15456 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15457 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15458 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15459 {GENERAL,SSE,MMX}_REG_P where appropriate.
15460
15461 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15462
15463 * lto-streamer.h: Don't include target.h and alloc-pool.h.
15464 * builtins.c: Adjust includes.
15465 * gimple.c: Likewise.
15466 * ipa-icf.c: Likewise.
15467 * lto-opts.c: Likewise.
15468 * ipa-reference.c: Likewise.
15469 * lto-section-out.c: Likewise.
15470 * lto-streamer-in.c: Likewise.
15471 * lto-streamer-out.c: Likewise.
15472 * opts-global.c: Likewise.
15473 * symtab.c: Likewise.
15474 * tree-chkp.c: Likewise.
15475 * tree-ssa-live.c: Likewise.
15476 * tree-streamer-in.c: Likewise.
15477 * tree-streamer-out.c: Likewise.
15478 * config/darwin.c: Likewise.
15479 * config/i386/winnt.c: Likewise.
15480
15481 2015-07-09 Richard Biener <rguenther@suse.de>
15482
15483 * genmatch.c (struct expr): Add force_single_use flag.
15484 (expr::expr): Add copy constructor.
15485 (capture_info::walk_match): Gather force_single_use captures.
15486 (expr::gen_transform): Use possibly NULLified sequence.
15487 (dt_simplify::gen): Apply single-use restrictions by NULLifying
15488 seq if any constrained expr is not single-use.
15489 (parser::parse_expr): Refactor to allow multiple flags. Handle
15490 's' flag to force an expression have a single-use if the pattern
15491 simplifies to more than one statement.
15492 * match.pd: Convert most single_use conditionals to :s flags.
15493
15494 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15495
15496 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15497 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15498 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15499
15500 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15501
15502 * flags.h: Don't include flag-types.h or options.h.
15503 * opts-common.c: Adjust includes.
15504 * opts-global.c: Likewise.
15505 * common/config/epiphany/epiphany-common.c: Likewise.
15506
15507 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15508
15509 PR target/66818
15510 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15511 for IA MCU.
15512
15513 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15514
15515 PR target/66817
15516 * config/i386/i386.c (ix86_return_in_memory): Return true
15517 if int_size_in_bytes returns negative for IA MCU.
15518
15519 2015-07-09 Marek Polacek <polacek@redhat.com>
15520
15521 PR tree-optimization/66718
15522 * Makefile.in (OBJS): Add gimple-laddress.o.
15523 * passes.def: Schedule pass_laddress.
15524 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15525 * tree-pass.h (make_pass_laddress): Declare.
15526 * gimple-laddress.c: New file.
15527
15528 2015-07-09 Richard Biener <rguenther@suse.de>
15529
15530 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15531
15532 2015-07-09 Richard Biener <rguenther@suse.de>
15533
15534 PR tree-optimization/66807
15535 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15536
15537 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
15538
15539 * function.c (stack_protect_epilogue): Use if rather than switch for
15540 check targetm.have_stack_protect_test.
15541
15542 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15543
15544 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15545 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15546 * config/arc/arc.h: Likewise.
15547 * config/arm/arm.h: Likewise.
15548 * config/bfin/bfin.h: Likewise.
15549 * config/epiphany/epiphany.h: Likewise.
15550 * config/frv/frv.h: Likewise.
15551 * config/ia64/ia64.h: Likewise.
15552 * config/iq2000/iq2000.h: Likewise.
15553 * config/lm32/lm32.h: Likewise.
15554 * config/m32r/m32r.h: Likewise.
15555 * config/mcore/mcore.h: Likewise.
15556 * config/mep/mep.h: Likewise.
15557 * config/microblaze/microblaze.h: Likewise.
15558 * config/mips/mips.h: Likewise.
15559 * config/mmix/mmix.h: Likewise.
15560 * config/mn10300/mn10300.h: Likewise.
15561 * config/nds32/nds32.h: Likewise.
15562 * config/nios2/nios2.h: Likewise.
15563 * config/pa/pa.h: Likewise.
15564 * config/rl78/rl78.h: Likewise.
15565 * config/sh/sh.h: Likewise.
15566 * config/sparc/sparc.h: Likewise.
15567 * config/stormy16/stormy16.h: Likewise.
15568 * config/tilegx/tilegx.h: Likewise.
15569 * config/tilepro/tilepro.h: Likewise.
15570 * config/v850/v850.h: Likewise.
15571 * config/xtensa/xtensa.h: Likewise.
15572 * doc/tm.texi: Regenerate.
15573 * doc/tm.texi.in: Adjust.
15574 * combine.c (simplify_set): Likewise.
15575 (simplify_comparison): Likewise.
15576 * expr.c (store_constructor): Likewise.
15577 * internal-fn.c (expand_arith_overflow): Likewise.
15578 * reload.c (push_reload): Likewise.
15579 (find_reloads): Likewise.
15580 (find_reloads_subreg_address): Likewise.
15581 * reload1.c (eliminate_regs_1): Likewise.
15582 * rtlanal.c (nonzero_bits1): Likewise.
15583 (num_sign_bit_copies1): Likewise.
15584 * simplify-rtx.c (simplify_truncation): Likewise.
15585
15586 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15587
15588 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15589 of AUTO_INC_DEC with the preprocessor.
15590 * combine.c (combine_instructions): Likewise.
15591 (can_combine_p): Likewise.
15592 (try_combine): Likewise.
15593 * emit-rtl.c (try_split): Likewise.
15594 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15595 * lower-subreg.c (resolve_simple_move): Likewise.
15596 * lra.c (update_inc_notes): Likewise.
15597 * recog.c (asm_operand_ok): Likewise.
15598 (constrain_operands): Likewise.
15599 * regrename.c (scan_rtx_address): Likewise.
15600 * reload.c (update_auto_inc_notes): Likewise.
15601 (reg_inc_found_and_valid_p): Likewise.
15602 * reload1.c (reload): Likewise.
15603 (emit_input_reload_insns): Likewise.
15604 (delete_output_reload): Likewise.
15605 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15606 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15607
15608 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15609
15610 * rtl.h: Always define AUTO_INC_DEC.
15611 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15612 * combine.c (combine_instructions): Likewise.
15613 (can_combine_p): Likewise.
15614 (try_combine): Likewise.
15615 * emit-rtl.c (try_split): Likewise.
15616 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15617 * lower-subreg.c (resolve_simple_move): Likewise.
15618 * lra.c (update_inc_notes): Likewise.
15619 * recog.c (asm_operand_ok): Likewise.
15620 (constrain_operands): Likewise.
15621 * regrename.c (scan_rtx_address): Likewise.
15622 * reload.c (update_auto_inc_notes): Likewise.
15623 (find_equiv_reg): Likewise.
15624 * reload1.c (reload): Likewise.
15625 (reload_as_needed): Likewise.
15626 (choose_reload_regs): Likewise.
15627 (emit_input_reload_insns): Likewise.
15628 (delete_output_reload): Likewise.
15629 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15630 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15631
15632 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15633
15634 * combine.c (can_combine_def_p): Don't check the value of
15635 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15636 (combinable_i3pat): Likewise.
15637 (mark_used_regs_combine): Likewise.
15638 * regrename.c (rename_chains): Likewise.
15639 * reload.c (find_reloads_address): Likewise.
15640 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15641
15642 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15643
15644 * combine.c (update_rsp_from_reg_equal): Don't check if
15645 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15646 (reg_nonzero_bits_for_combine): Likewise.
15647 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15648 1.
15649 * config/frv/frv.h: Likewise.
15650 * config/lm32/lm32.h: Likewise.
15651 * config/mep/mep.h: Likewise.
15652 * config/mips/mips.h: Likewise.
15653 * config/rs6000/rs6000.h: Likewise.
15654 * config/sh/sh.h: Likewise.
15655 * config/tilegx/tilegx.h (enum reg_class): Likewise.
15656 * config/tilepro/tilepro.h: Likewise.
15657 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15658 * doc/tm.texi: Regenerate.
15659 * doc/tm.texi.in: Adjust.
15660 * rtlanal.c (nonzero_bits1): Likewise.
15661
15662 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15663
15664 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15665 with the preprocessor.
15666 (combine_instructions): Likewise.
15667 (try_combine): Likewise.
15668 (subst): Likewise.
15669 (distribute_notes): Likewise.
15670
15671 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15672
15673 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15674 defined.
15675 (simplify_set): Likewise.
15676 * cse.c (cse_insn): Likewise.
15677 * fold-const.c (fold_single_bit_test): Likewise.
15678 (fold_unary_loc): Likewise.
15679 * postreload.c (reload_cse_simplify_set): Likewise.
15680 (reload_cse_simplify_operands): Likewise.
15681
15682 2015-07-08 Jiong Wang <jiong.wang@arm.com>
15683
15684 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15685 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15686
15687 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15688
15689 PR target/66746
15690 * config/i386/x86intrin.h: Include <adxintrin.h> even if
15691 __iamcu__ is defined.
15692
15693 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15694
15695 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15696
15697 2015-07-08 Iain Sandoe <iain@codesourcery.com>
15698
15699 PR target/66523
15700 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15701 names from preservation.
15702
15703 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15704
15705 PR target/66806
15706 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15707 change for IAMCU.
15708 (function_arg_advance_32): Don't pass vectors in registers for
15709 IAMCU.
15710 (function_arg_32): Likewise.
15711 (ix86_return_in_memory): Don't return vectors in registers for
15712 IAMCU.
15713
15714 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
15715
15716 PR middle-end/66334
15717 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15718 hard regno live at the start of BB with incoming abnormal edges.
15719 * lra-lives.c (process_bb_lives): Ditto.
15720
15721 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15722
15723 PR libgomp/65099
15724 * config/nvptx/mkoffload.c (main): Create an offload image only in
15725 64-bit configurations.
15726
15727 2015-07-08 Martin Liska <mliska@suse.cz>
15728
15729 PR bootstrap/66744
15730 * tree-sra.c (create_access_1): Call ctor without brackets.
15731 (create_artificial_child_access): Likewise.
15732
15733 2015-07-08 Richard Biener <rguenther@suse.de>
15734
15735 PR tree-optimization/66793
15736 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15737 Properly split the block after stmts ending it.
15738
15739 2015-07-08 Richard Biener <rguenther@suse.de>
15740
15741 PR tree-optimization/66794
15742 * passes.c (execute_function_todo): Assert that post-dominators
15743 are not computed.
15744 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15745 Free post-dominators.
15746
15747 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15748
15749 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15750 with early exit.
15751
15752 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15753
15754 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15755 more than or equal 8 and less than 32 when optimizing for size.
15756
15757 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15758
15759 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15760 COSTS_N_INSNS (1) and increment it appropriately throughout the
15761 function.
15762
15763 2015-07-08 Richard Biener <rguenther@suse.de>
15764
15765 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15766
15767 2015-07-08 Alan Modra <amodra@gmail.com>
15768
15769 * target.def (rtx_costs): Remove "code" param, add "mode".
15770 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15771 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
15772 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15773 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
15774 call. Track mode when given in rtx.
15775 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
15776 (default_address_cost): Pass Pmode to rtx_cost.
15777 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15778 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15779 with NULL set.
15780 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
15781 (notreg_cost): Add mode param. Use it.
15782 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
15783 mode param and pass to set_src_cost. Update all calls.
15784 (hash_scan_set): Formatting.
15785 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15786 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15787 * hooks.h: Ditto.
15788 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15789 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15790 emit_store_flag): Update set_src_cost and rtx_cost calls.
15791 * auto-inc-dec.c (attempt_change): Likewise.
15792 * calls.c (precompute_register_parameters): Likewise.
15793 * combine.c (expand_compound_operation, make_extraction,
15794 force_to_mode, distribute_and_simplify_rtx): Likewise.
15795 * dojump.c (prefer_and_bit_test): Likewise.
15796 * dse.c (find_shift_sequence): Likewise.
15797 * expr.c (compress_float_constant): Likewise.
15798 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15799 * ifcvt.c (noce_try_sign_mask): Likewise.
15800 * loop-doloop.c (doloop_optimize): Likewise.
15801 * loop-invariant.c (create_new_invariant): Likewise.
15802 * lower-subreg.c (shift_cost, compute_costs): Likewise.
15803 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15804 lshift_cheap_p): Likewise.
15805 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15806 try_replace_in_use, reload_cse_move2add): Likewise.
15807 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15808 Likewise.
15809 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15810 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15811 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15812 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15813 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15814 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
15815 to rtx_cost calls.
15816 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15817 * config/arc/arc.c (arc_rtx_costs): Likewise.
15818 * config/arm/arm.c (arm_rtx_costs): Likewise.
15819 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15820 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15821 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15822 * config/cris/cris.c (cris_rtx_costs): Likewise.
15823 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15824 * config/frv/frv.c (frv_rtx_costs): Likewise.
15825 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15826 * config/i386/i386.c (ix86_rtx_costs): Likewise.
15827 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15828 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15829 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15830 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15831 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15832 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15833 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15834 * config/mep/mep.c (mep_rtx_cost): Likewise.
15835 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15836 * config/mips/mips.c (mips_rtx_costs): Likewise.
15837 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15838 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15839 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15840 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15841 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15842 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15843 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15844 * config/pa/pa.c (hppa_rtx_costs): Likewise.
15845 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15846 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15847 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15848 * config/s390/s390.c (s390_rtx_costs): Likewise.
15849 * config/sh/sh.c (sh_rtx_costs): Likewise.
15850 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15851 * config/spu/spu.c (spu_rtx_costs): Likewise.
15852 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15853 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15854 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15855 * config/v850/v850.c (v850_rtx_costs): Likewise.
15856 * config/vax/vax.c (vax_rtx_costs): Likewise.
15857 * config/visium/visium.c (visium_rtx_costs): Likewise.
15858 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15859 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15860 "code" param, and pass as outer_code to first rtx_cost call. Pass
15861 mode to rtx_cost calls.
15862 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15863 calls.
15864 (aarch64_rtx_costs_wrapper): Update.
15865 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15866 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15867 rtx_cost calls.
15868 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15869 and rtx_cost calls.
15870 (avr_operand_rtx_cost): Similarly.
15871 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15872 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15873 * config/mips/mips.c (mips_stack_address_p): Comment typo.
15874 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15875 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15876 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15877 rtx_cost.
15878 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15879 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15880 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15881 * doc/tm.texi: Regenerate.
15882
15883 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
15884
15885 * tree-core.h: Include symtab.h.
15886 * rtl.h: Include hard-reg-set.h but not flags.h.
15887 (HARD_CONST): Remove condition compilation involving HARD_CONST since
15888 hard-reg-set.h is always included.
15889 * regs.h: Don't include hard-reg-set.h or rtl.h.
15890 * cfg.h: Include dominance.h.
15891 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15892 * backend.h: New. Aggregate commonly used backend header files.
15893 * gimple-ssa.h: Don't include tree-hasher.h.
15894 * ssa.h: New. Aggregate commonly used SSA header files.
15895 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15896 * sel-sched-ir.h: Flatten includes.
15897 * lra-int.h: Flatten completely.
15898 * sel-sched-dump.h: Flatten includes.
15899 * ira-int.h: Flatten includes.
15900 * gimple-streamer.h: Remove all includes.
15901 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15902 * resource.h: Flatten hard-reg-set.h and df.h.
15903 * sched-int.h: Flatten insn-arrt.h and df.h.
15904 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15905 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15906 * genattrtab.c (write_header): Adjust generated includes.
15907 * genautomata.c (main): Likewise.
15908 * genconditions.c (write-header): Likewise.
15909 * genemit.c (main): Likewise.
15910 * gengtype.c (open_base_files): Likewise.
15911 * genopinit.c (main): Likewise.
15912 * genoutput.c (output_prologue): Likewise.
15913 * genpeep.c (main): Likewise.
15914 * genpreds.c (write_insn_preds_c): Likewise.
15915 * genrecog.c (write_header): Likewise.
15916 * alias.c: Adjust includes.
15917 * asan.c: Likewise.
15918 * attribs.c: Likewise.
15919 * auto-inc-dec.c: Likewise.
15920 * auto-profile.c: Likewise.
15921 * bb-reorder.c: Likewise.
15922 * bt-load.c: Likewise.
15923 * builtins.c: Likewise.
15924 * caller-save.c: Likewise.
15925 * calls.c: Likewise.
15926 * ccmp.c: Likewise.
15927 * cfg.c: Likewise.
15928 * cfganal.c: Likewise.
15929 * cfgbuild.c: Likewise.
15930 * cfgcleanup.c: Likewise.
15931 * cfgexpand.c: Likewise.
15932 * cfghooks.c: Likewise.
15933 * cfgloop.c: Likewise.
15934 * cfgloopanal.c: Likewise.
15935 * cfgloopmanip.c: Likewise.
15936 * cfgrtl.c: Likewise.
15937 * cgraph.c: Likewise.
15938 * cgraphbuild.c: Likewise.
15939 * cgraphclones.c: Likewise.
15940 * cgraphunit.c: Likewise.
15941 * cilk-common.c: Likewise.
15942 * combine-stack-adj.c: Likewise.
15943 * combine.c: Likewise.
15944 * compare-elim.c: Likewise.
15945 * convert.c: Likewise.
15946 * coverage.c: Likewise.
15947 * cppbuiltin.c: Likewise.
15948 * cprop.c: Likewise.
15949 * cse.c: Likewise.
15950 * cselib.c: Likewise.
15951 * data-streamer-in.c: Likewise.
15952 * data-streamer-out.c: Likewise.
15953 * data-streamer.c: Likewise.
15954 * dbxout.c: Likewise.
15955 * dce.c: Likewise.
15956 * ddg.c: Likewise.
15957 * debug.c: Likewise.
15958 * df-core.c: Likewise.
15959 * df-problems.c: Likewise.
15960 * df-scan.c: Likewise.
15961 * dfp.c: Likewise.
15962 * dojump.c: Likewise.
15963 * dominance.c: Likewise.
15964 * domwalk.c: Likewise.
15965 * double-int.c: Likewise.
15966 * dse.c: Likewise.
15967 * dumpfile.c: Likewise.
15968 * dwarf2asm.c: Likewise.
15969 * dwarf2cfi.c: Likewise.
15970 * dwarf2out.c: Likewise.
15971 * emit-rtl.c: Likewise.
15972 * et-forest.c: Likewise.
15973 * except.c: Likewise.
15974 * explow.c: Likewise.
15975 * expmed.c: Likewise.
15976 * expr.c: Likewise.
15977 * final.c: Likewise.
15978 * fixed-value.c: Likewise.
15979 * fold-const.c: Likewise.
15980 * function.c: Likewise.
15981 * fwprop.c: Likewise.
15982 * gcc-plugin.h: Likewise.
15983 * gcse-common.c: Likewise.
15984 * gcse.c: Likewise.
15985 * generic-match-head.c: Likewise.
15986 * ggc-page.c: Likewise.
15987 * gimple-builder.c: Likewise.
15988 * gimple-expr.c: Likewise.
15989 * gimple-fold.c: Likewise.
15990 * gimple-iterator.c: Likewise.
15991 * gimple-low.c: Likewise.
15992 * gimple-match-head.c: Likewise.
15993 * gimple-pretty-print.c: Likewise.
15994 * gimple-ssa-isolate-paths.c: Likewise.
15995 * gimple-ssa-strength-reduction.c: Likewise.
15996 * gimple-streamer-in.c: Likewise.
15997 * gimple-streamer-out.c: Likewise.
15998 * gimple-walk.c: Likewise.
15999 * gimple.c: Likewise.
16000 * gimplify-me.c: Likewise.
16001 * gimplify.c: Likewise.
16002 * godump.c: Likewise.
16003 * graph.c: Likewise.
16004 * graphite-blocking.c: Likewise.
16005 * graphite-dependences.c: Likewise.
16006 * graphite-interchange.c: Likewise.
16007 * graphite-isl-ast-to-gimple.c: Likewise.
16008 * graphite-optimize-isl.c: Likewise.
16009 * graphite-poly.c: Likewise.
16010 * graphite-scop-detection.c: Likewise.
16011 * graphite-sese-to-poly.c: Likewise.
16012 * graphite.c: Likewise.
16013 * haifa-sched.c: Likewise.
16014 * hw-doloop.c: Likewise.
16015 * ifcvt.c: Likewise.
16016 * init-regs.c: Likewise.
16017 * internal-fn.c: Likewise.
16018 * ipa-chkp.c: Likewise.
16019 * ipa-comdats.c: Likewise.
16020 * ipa-cp.c: Likewise.
16021 * ipa-devirt.c: Likewise.
16022 * ipa-icf-gimple.c: Likewise.
16023 * ipa-icf.c: Likewise.
16024 * ipa-inline-analysis.c: Likewise.
16025 * ipa-inline-transform.c: Likewise.
16026 * ipa-inline.c: Likewise.
16027 * ipa-polymorphic-call.c: Likewise.
16028 * ipa-profile.c: Likewise.
16029 * ipa-prop.c: Likewise.
16030 * ipa-pure-const.c: Likewise.
16031 * ipa-ref.c: Likewise.
16032 * ipa-reference.c: Likewise.
16033 * ipa-split.c: Likewise.
16034 * ipa-utils.c: Likewise.
16035 * ipa-visibility.c: Likewise.
16036 * ipa.c: Likewise.
16037 * ira-build.c: Likewise.
16038 * ira-color.c: Likewise.
16039 * ira-conflicts.c: Likewise.
16040 * ira-costs.c: Likewise.
16041 * ira-emit.c: Likewise.
16042 * ira-lives.c: Likewise.
16043 * ira.c: Likewise.
16044 * jump.c: Likewise.
16045 * langhooks.c: Likewise.
16046 * lcm.c: Likewise.
16047 * loop-doloop.c: Likewise.
16048 * loop-init.c: Likewise.
16049 * loop-invariant.c: Likewise.
16050 * loop-iv.c: Likewise.
16051 * loop-unroll.c: Likewise.
16052 * lower-subreg.c: Likewise.
16053 * lra-assigns.c: Likewise.
16054 * lra-coalesce.c: Likewise.
16055 * lra-constraints.c: Likewise.
16056 * lra-eliminations.c: Likewise.
16057 * lra-lives.c: Likewise.
16058 * lra-remat.c: Likewise.
16059 * lra-spills.c: Likewise.
16060 * lra.c: Likewise.
16061 * lto-cgraph.c: Likewise.
16062 * lto-compress.c: Likewise.
16063 * lto-opts.c: Likewise.
16064 * lto-section-in.c: Likewise.
16065 * lto-section-out.c: Likewise.
16066 * lto-streamer-in.c: Likewise.
16067 * lto-streamer-out.c: Likewise.
16068 * lto-streamer.c: Likewise.
16069 * mcf.c: Likewise.
16070 * mode-switching.c: Likewise.
16071 * modulo-sched.c: Likewise.
16072 * omega.c: Likewise.
16073 * omp-low.c: Likewise.
16074 * optabs.c: Likewise.
16075 * opts-global.c: Likewise.
16076 * passes.c: Likewise.
16077 * plugin.c: Likewise.
16078 * postreload-gcse.c: Likewise.
16079 * postreload.c: Likewise.
16080 * predict.c: Likewise.
16081 * print-rtl.c: Likewise.
16082 * print-tree.c: Likewise.
16083 * profile.c: Likewise.
16084 * real.c: Likewise.
16085 * realmpfr.c: Likewise.
16086 * recog.c: Likewise.
16087 * ree.c: Likewise.
16088 * reg-stack.c: Likewise.
16089 * regcprop.c: Likewise.
16090 * reginfo.c: Likewise.
16091 * regrename.c: Likewise.
16092 * regstat.c: Likewise.
16093 * reload.c: Likewise.
16094 * reload1.c: Likewise.
16095 * reorg.c: Likewise.
16096 * resource.c: Likewise.
16097 * rtl-chkp.c: Likewise.
16098 * rtlanal.c: Likewise.
16099 * rtlhooks.c: Likewise.
16100 * sanopt.c: Likewise.
16101 * sched-deps.c: Likewise.
16102 * sched-ebb.c: Likewise.
16103 * sched-rgn.c: Likewise.
16104 * sched-vis.c: Likewise.
16105 * sdbout.c: Likewise.
16106 * sel-sched-dump.c: Likewise.
16107 * sel-sched-ir.c: Likewise.
16108 * sel-sched.c: Likewise.
16109 * sese.c: Likewise.
16110 * shrink-wrap.c: Likewise.
16111 * simplify-rtx.c: Likewise.
16112 * stack-ptr-mod.c: Likewise.
16113 * stmt.c: Likewise.
16114 * stor-layout.c: Likewise.
16115 * store-motion.c: Likewise.
16116 * stringpool.c: Likewise.
16117 * symtab.c: Likewise.
16118 * target-globals.c: Likewise.
16119 * targhooks.c: Likewise.
16120 * toplev.c: Likewise.
16121 * tracer.c: Likewise.
16122 * trans-mem.c: Likewise.
16123 * tree-affine.c: Likewise.
16124 * tree-browser.c: Likewise.
16125 * tree-call-cdce.c: Likewise.
16126 * tree-cfg.c: Likewise.
16127 * tree-cfgcleanup.c: Likewise.
16128 * tree-chkp-opt.c: Likewise.
16129 * tree-chkp.c: Likewise.
16130 * tree-chrec.c: Likewise.
16131 * tree-complex.c: Likewise.
16132 * tree-data-ref.c: Likewise.
16133 * tree-dfa.c: Likewise.
16134 * tree-diagnostic.c: Likewise.
16135 * tree-dump.c: Likewise.
16136 * tree-eh.c: Likewise.
16137 * tree-emutls.c: Likewise.
16138 * tree-if-conv.c: Likewise.
16139 * tree-inline.c: Likewise.
16140 * tree-into-ssa.c: Likewise.
16141 * tree-iterator.c: Likewise.
16142 * tree-loop-distribution.c: Likewise.
16143 * tree-nested.c: Likewise.
16144 * tree-nrv.c: Likewise.
16145 * tree-object-size.c: Likewise.
16146 * tree-outof-ssa.c: Likewise.
16147 * tree-parloops.c: Likewise.
16148 * tree-phinodes.c: Likewise.
16149 * tree-predcom.c: Likewise.
16150 * tree-pretty-print.c: Likewise.
16151 * tree-profile.c: Likewise.
16152 * tree-scalar-evolution.c: Likewise.
16153 * tree-sra.c: Likewise.
16154 * tree-ssa-address.c: Likewise.
16155 * tree-ssa-alias.c: Likewise.
16156 * tree-ssa-ccp.c: Likewise.
16157 * tree-ssa-coalesce.c: Likewise.
16158 * tree-ssa-copy.c: Likewise.
16159 * tree-ssa-copyrename.c: Likewise.
16160 * tree-ssa-dce.c: Likewise.
16161 * tree-ssa-dom.c: Likewise.
16162 * tree-ssa-dse.c: Likewise.
16163 * tree-ssa-forwprop.c: Likewise.
16164 * tree-ssa-ifcombine.c: Likewise.
16165 * tree-ssa-live.c: Likewise.
16166 * tree-ssa-loop-ch.c: Likewise.
16167 * tree-ssa-loop-im.c: Likewise.
16168 * tree-ssa-loop-ivcanon.c: Likewise.
16169 * tree-ssa-loop-ivopts.c: Likewise.
16170 * tree-ssa-loop-manip.c: Likewise.
16171 * tree-ssa-loop-niter.c: Likewise.
16172 * tree-ssa-loop-prefetch.c: Likewise.
16173 * tree-ssa-loop-unswitch.c: Likewise.
16174 * tree-ssa-loop.c: Likewise.
16175 * tree-ssa-math-opts.c: Likewise.
16176 * tree-ssa-operands.c: Likewise.
16177 * tree-ssa-phiopt.c: Likewise.
16178 * tree-ssa-phiprop.c: Likewise.
16179 * tree-ssa-pre.c: Likewise.
16180 * tree-ssa-propagate.c: Likewise.
16181 * tree-ssa-reassoc.c: Likewise.
16182 * tree-ssa-sccvn.c: Likewise.
16183 * tree-ssa-scopedtables.c: Likewise.
16184 * tree-ssa-sink.c: Likewise.
16185 * tree-ssa-strlen.c: Likewise.
16186 * tree-ssa-structalias.c: Likewise.
16187 * tree-ssa-tail-merge.c: Likewise.
16188 * tree-ssa-ter.c: Likewise.
16189 * tree-ssa-threadedge.c: Likewise.
16190 * tree-ssa-threadupdate.c: Likewise.
16191 * tree-ssa-uncprop.c: Likewise.
16192 * tree-ssa-uninit.c: Likewise.
16193 * tree-ssa.c: Likewise.
16194 * tree-ssanames.c: Likewise.
16195 * tree-stdarg.c: Likewise.
16196 * tree-streamer-in.c: Likewise.
16197 * tree-streamer-out.c: Likewise.
16198 * tree-streamer.c: Likewise.
16199 * tree-switch-conversion.c: Likewise.
16200 * tree-tailcall.c: Likewise.
16201 * tree-vect-data-refs.c: Likewise.
16202 * tree-vect-generic.c: Likewise.
16203 * tree-vect-loop-manip.c: Likewise.
16204 * tree-vect-loop.c: Likewise.
16205 * tree-vect-patterns.c: Likewise.
16206 * tree-vect-slp.c: Likewise.
16207 * tree-vect-stmts.c: Likewise.
16208 * tree-vectorizer.c: Likewise.
16209 * tree-vrp.c: Likewise.
16210 * tree.c: Likewise.
16211 * tsan.c: Likewise.
16212 * ubsan.c: Likewise.
16213 * valtrack.c: Likewise.
16214 * value-prof.c: Likewise.
16215 * var-tracking.c: Likewise.
16216 * varasm.c: Likewise.
16217 * varpool.c: Likewise.
16218 * vmsdbgout.c: Likewise.
16219 * vtable-verify.c: Likewise.
16220 * web.c: Likewise.
16221 * wide-int.cc: Likewise.
16222 * xcoffout.c: Likewise.
16223 * config/aarch64/aarch64-builtins.c: Likewise.
16224 * config/aarch64/aarch64.c: Likewise.
16225 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16226 * config/alpha/alpha.c: Likewise.
16227 * config/arc/arc.c: Likewise.
16228 * config/arm/aarch-common.c: Likewise.
16229 * config/arm/arm-builtins.c: Likewise.
16230 * config/arm/arm-c.c: Likewise.
16231 * config/arm/arm.c: Likewise.
16232 * config/avr/avr-c.c: Likewise.
16233 * config/avr/avr-log.c: Likewise.
16234 * config/avr/avr.c: Likewise.
16235 * config/bfin/bfin.c: Likewise.
16236 * config/c6x/c6x.c: Likewise.
16237 * config/cr16/cr16.c: Likewise.
16238 * config/cris/cris.c: Likewise.
16239 * config/darwin-c.c: Likewise.
16240 * config/darwin.c: Likewise.
16241 * config/epiphany/epiphany.c: Likewise.
16242 * config/epiphany/mode-switch-use.c: Likewise.
16243 * config/epiphany/resolve-sw-modes.c: Likewise.
16244 * config/fr30/fr30.c: Likewise.
16245 * config/frv/frv.c: Likewise.
16246 * config/ft32/ft32.c: Likewise.
16247 * config/h8300/h8300.c: Likewise.
16248 * config/i386/i386-c.c: Likewise.
16249 * config/i386/i386.c: Likewise.
16250 * config/i386/msformat-c.c: Likewise.
16251 * config/i386/winnt-cxx.c: Likewise.
16252 * config/i386/winnt-stubs.c: Likewise.
16253 * config/i386/winnt.c: Likewise.
16254 * config/ia64/ia64-c.c: Likewise.
16255 * config/ia64/ia64.c: Likewise.
16256 * config/iq2000/iq2000.c: Likewise.
16257 * config/lm32/lm32.c: Likewise.
16258 * config/m32c/m32c-pragma.c: Likewise.
16259 * config/m32c/m32c.c: Likewise.
16260 * config/m32r/m32r.c: Likewise.
16261 * config/m68k/m68k.c: Likewise.
16262 * config/mcore/mcore.c: Likewise.
16263 * config/mep/mep-pragma.c: Likewise.
16264 * config/mep/mep.c: Likewise.
16265 * config/microblaze/microblaze-c.c: Likewise.
16266 * config/microblaze/microblaze.c: Likewise.
16267 * config/mips/mips.c: Likewise.
16268 * config/mmix/mmix.c: Likewise.
16269 * config/mn10300/mn10300.c: Likewise.
16270 * config/moxie/moxie.c: Likewise.
16271 * config/msp430/msp430-c.c: Likewise.
16272 * config/msp430/msp430.c: Likewise.
16273 * config/nds32/nds32-cost.c: Likewise.
16274 * config/nds32/nds32-fp-as-gp.c: Likewise.
16275 * config/nds32/nds32-intrinsic.c: Likewise.
16276 * config/nds32/nds32-isr.c: Likewise.
16277 * config/nds32/nds32-md-auxiliary.c: Likewise.
16278 * config/nds32/nds32-memory-manipulation.c: Likewise.
16279 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16280 * config/nds32/nds32-predicates.c: Likewise.
16281 * config/nds32/nds32.c: Likewise.
16282 * config/nios2/nios2.c: Likewise.
16283 * config/nvptx/nvptx.c: Likewise.
16284 * config/pa/pa.c: Likewise.
16285 * config/pdp11/pdp11.c: Likewise.
16286 * config/rl78/rl78-c.c: Likewise.
16287 * config/rl78/rl78.c: Likewise.
16288 * config/rs6000/rs6000-c.c: Likewise.
16289 * config/rs6000/rs6000.c: Likewise.
16290 * config/rx/rx.c: Likewise.
16291 * config/s390/s390-c.c: Likewise.
16292 * config/s390/s390.c: Likewise.
16293 * config/sh/sh-c.c: Likewise.
16294 * config/sh/sh-mem.cc: Likewise.
16295 * config/sh/sh.c: Likewise.
16296 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16297 * config/sh/sh_treg_combine.cc: Likewise.
16298 * config/sol2-c.c: Likewise.
16299 * config/sol2-cxx.c: Likewise.
16300 * config/sol2-stubs.c: Likewise.
16301 * config/sol2.c: Likewise.
16302 * config/sparc/sparc-c.c: Likewise.
16303 * config/sparc/sparc.c: Likewise.
16304 * config/spu/spu-c.c: Likewise.
16305 * config/spu/spu.c: Likewise.
16306 * config/stormy16/stormy16.c: Likewise.
16307 * config/tilegx/mul-tables.c: Likewise.
16308 * config/tilegx/tilegx-c.c: Likewise.
16309 * config/tilegx/tilegx.c: Likewise.
16310 * config/tilepro/mul-tables.c: Likewise.
16311 * config/tilepro/tilepro-c.c: Likewise.
16312 * config/tilepro/tilepro.c: Likewise.
16313 * config/v850/v850-c.c: Likewise.
16314 * config/v850/v850.c: Likewise.
16315 * config/vax/vax.c: Likewise.
16316 * config/visium/visium.c: Likewise.
16317 * config/vms/vms-c.c: Likewise.
16318 * config/vms/vms.c: Likewise.
16319 * config/vxworks.c: Likewise.
16320 * config/xtensa/xtensa.c: Likewise.
16321
16322 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
16323
16324 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16325 Remove operand constraints. Change operand 2 predicate to
16326 nonmemory operand. Limit const_int values to mode bitsize. Only
16327 allow const_int values less than 32 when optimizing for size.
16328 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16329 Remove operand constraints.
16330 (*bt<mode>): Use SImode for const_int values less than 32.
16331 (regmode): Remove mode attribute.
16332
16333 2015-07-07 Anatoly Sokolov <aesok@post.ru>
16334
16335 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16336 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16337 moxie_legitimate_address_p): New functions.
16338 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16339
16340 2015-07-07 Tom de Vries <tom@codesourcery.com>
16341
16342 PR tree-optimization/66642
16343 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
16344 header comment. Rename split_edge variable to edge_at_split. Split
16345 exit edge to create new loop exit bb. Insert loop exit phis in new
16346 loop exit bb.
16347
16348 2015-07-07 Tom de Vries <tom@codesourcery.com>
16349
16350 * tree-cfg.c (get_virtual_phi): New function.
16351 * tree-cfg.h (get_virtual_phi): Declare.
16352 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
16353 (rewrite_virtuals_into_loop_closed_ssa): New function.
16354 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
16355 Declare.
16356 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
16357 (transform_to_exit_first_loop_alt): Use
16358 rewrite_virtuals_into_loop_closed_ssa.
16359
16360 2015-07-07 Richard Biener <rguenther@suse.de>
16361
16362 * fold-const.c (fold_binary_loc): Move
16363 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
16364 * match.pd: ... here.
16365 Add (X * C1) % C2 -> 0 simplification pattern derived from
16366 extract_muldiv_1.
16367
16368 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
16369
16370 PR target/66780
16371 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16372 change for target/65249.
16373
16374 2015-07-07 Paulo Matos <pmatos@broadcom.com>
16375
16376 * symtab.c (address_matters_1): Fix typo in comment above.
16377 (can_increase_alignment_p): Likewise.
16378
16379 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16380
16381 * function.c (free_after_compilation): Clear PROP_cfg in
16382 f->curr_properties.
16383
16384 2015-07-07 Richard Biener <rguenther@suse.de>
16385
16386 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16387 add which use to.
16388 (add_control_edge): Remove excessive vertical space in dumping.
16389 (process_ssa_edge_worklist): Simulate at most one statement and
16390 return whether we did. Do not simulate PHIs if they are in a
16391 BB not yet simulated.
16392 (ssa_propagate): Adjust to always drain the BB worklist whenever
16393 a BB is available there, likewise the VARYING edges list before
16394 the interesting edge list.
16395
16396 2015-07-07 Christian Bruel <christian.bruel@st.com>
16397
16398 PR target/52144
16399 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16400
16401 2015-07-07 Richard Biener <rguenther@suse.de>
16402
16403 PR middle-end/66739
16404 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16405 A - B.
16406
16407 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16408
16409 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
16410 modes for operands 0 and 3. Use SImode for operands 2 and 3.
16411 Copy operand 0 to a temporary if !ext_register_operand. Remove
16412 ancient extract_bit_field workaround.
16413 (insv<mode>_1): Rename from mov<mode>_insv_1.
16414 (*insvqi): Rename from *movqi_insv_2.
16415 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16416 for renamed insvsi_1.
16417 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16418
16419 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
16420
16421 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
16422 call to nvptx_reorg_subreg.
16423
16424 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
16425
16426 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16427 * graphite-dependencies.c, graphite-interchange.c,
16428 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16429 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16430 Likewise.
16431
16432 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
16433
16434 * match.pd: Remove element_mode inside HONOR_*.
16435 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16436 (~X | X -> -1, ~X ^ X -> -1): Merge.
16437 * tree.c (build_each_one_cst): New function.
16438 * tree.h (build_each_one_cst): Likewise.
16439
16440 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16441
16442 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16443 PROCESSOR_IAMCU.
16444
16445 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
16446
16447 * config.gcc <mips*-*-*>: Add fused-madd.opt.
16448 * config/mips/mips.opt (mfused-madd): Remove.
16449 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16450 * config/mips/mips.h (TARGET_MIPS8000): New.
16451 (ISA_HAS_FP_MADD4_MSUB4): Remove.
16452 (ISA_HAS_FP_MADDF_MSUBF): Remove.
16453 (ISA_HAS_FP_MADD3_MSUB3): Remove.
16454 (ISA_HAS_NMADD4_NMSUB4): Remove.
16455 (ISA_HAS_NMADD3_NMSUB3): Remove.
16456 (ISA_HAS_FUSED_MADD4): New.
16457 (ISA_HAS_UNFUSED_MADD4): New.
16458 (ISA_HAS_FUSED_MADDF): New.
16459 (ISA_HAS_FUSED_MADD3): New.
16460 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16461 (*fma<mode>4_madd3) New.
16462 (*fma<mode>4_madd4) New.
16463 (*fma<mode>4_maddf) New.
16464 (fms<mode>4) New.
16465 (*fms<mode>4_msub3) New.
16466 (*fms<mode>4_msub4) New.
16467 (fnma<mode>4) New.
16468 (*fnma<mode>4_nmadd3) New.
16469 (*fnma<mode>4_nmadd4) New.
16470 (fnms<mode>4) New.
16471 (*fnms<mode>4_nmsub3) New.
16472 (*fnms<mode>4_nmsub4) New.
16473 (*madd4<mode>) Modify to be unfused only.
16474 (*msub4<mode>) Modify to be unfused only.
16475 (*nmadd4<mode>) Modify to be unfused only.
16476 (*nmsub4<mode>) Modify to be unfused only.
16477 (*madd3<mode>) Remove.
16478 (*msub3<mode>) Remove.
16479 (*nmadd3<mode>) Remove.
16480 (*nmsub3<mode>) Remove.
16481 (*nmadd3<mode>_fastmath) Remove.
16482 (*nmsub3<mode>_fastmath) Remove.
16483 (*nmadd4<mode>_fastmath) Update condition.
16484 (*nmsub4<mode>_fastmath) Update condition.
16485
16486 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16487
16488 PR target/65956
16489 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16490 alignment attribute, exploring one level down for records and arrays.
16491
16492 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16493
16494 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
16495 modes for operands 0 and 1. Use SImode for operands 2 and 3.
16496 Copy operand 1 to a temporary if !ext_register_operand. Remove
16497 ancient extract_bit_field workaround.
16498 (*extv<mode>): Rename from *mov<mode>_extv_1.
16499 (*extvqi): Rename from *movqi_extv_1.
16500 (extzv<mode>): Rename from extzv. Use SWI248 modes for
16501 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
16502 to a temporary if !ext_register_operand. Remove ancient
16503 extract_bit_field workaround.
16504 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16505 (*extzvqi): Rename from *movqi_extzv_2.
16506 (*testqi_ext_3): Remove modes from const_int_operand predicated
16507 operands. Add "n" constraint.
16508 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16509 operand. Add "J" constraint.
16510 (*btsq, *btrq, *btcq peephole2s): Remove mode from
16511 const_0_to_63 predicated operand.
16512 (regmode): New insn attribute.
16513 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
16514 to nonmemory_operand. Use regmode insn attribute.
16515 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16516 (*jcc_bt<mode>_mask): Remove mode from operand 3.
16517 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16518 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16519 operands. Use "N" constraint instead of "n".
16520
16521 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16522
16523 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16524
16525 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16526
16527 PR target/66749
16528 * config/i386/i386.c (iamcu_cost): New.
16529 (m_IAMCU): Likewise.
16530 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16531 (processor_target_table): Add an entry for "iamcu".
16532 (processor_alias_table): Likewise.
16533 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16534 (ix86_adjust_cost): Likewise.
16535 (ia32_multipass_dfa_lookahead): Likewise.
16536 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16537 * config/i386/x86-tune.def: Updated for m_IAMCU.
16538
16539 2015-07-06 Richard Biener <rguenther@suse.de>
16540
16541 PR tree-optimization/66772
16542 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16543 values are available in the PHI node BB when there are
16544 still unexecutable edges.
16545
16546 2015-07-06 Richard Biener <rguenther@suse.de>
16547
16548 PR tree-optimization/66767
16549 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16550 Make sure to build the alignment test on a SSA name without
16551 final alignment info valid only if the alignment test
16552 evaluates to true.
16553
16554 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
16555
16556 PR target/66620
16557 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16558 loop start when inserting LSETUP.
16559
16560 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16561
16562 PR target/53383
16563 * config/i386/i386.c (ix86_option_override_internal): Allow
16564 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16565
16566 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16567
16568 * read-md.c (decimal_string): Rename to ...
16569 (md_decimal_string): ... this.
16570 (handle_enum): Reflect this.
16571
16572 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16573
16574 PR target/66731
16575 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16576
16577 2015-07-06 Richard Biener <rguenther@suse.de>
16578
16579 PR middle-end/66759
16580 * match.pd: Add missing constraint of y to REAL_CST in
16581 REAL_CST - x CMP y to y - CST CMP x simplification.
16582
16583 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
16584
16585 PR tree-optimization/66757
16586 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16587
16588 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
16589 Sandra Loosemore <sandra@codesourcery.com>
16590
16591 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16592 Delete extern declaration.
16593 (gprel_constant_p): Add extern declaration.
16594 * config/nios2/constraints.md ("S"): Use gprel_constant_p
16595 instead of nios2_symbol_ref_in_small_data_p.
16596 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16597 (nios2_symbol_ref_in_small_data_p): Make static.
16598 (gprel_constant_p): Make non-static.
16599
16600 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16601
16602 * doc/fragments.texi (Target Fragment): Convert debian.org
16603 link to use https.
16604 * doc/install.texi (Configuration): Ditto.
16605
16606 2015-07-05 Jakub Jelinek <jakub@redhat.com>
16607
16608 PR tree-optimization/66718
16609 * tree-vect-stmts.c (vectorizable_call): Replace uses of
16610 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16611
16612 PR tree-optimization/66718
16613 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16614 vectorizable_load, vectorizable_condition): Move vectype,
16615 nunits, ncopies computation after checking what kind of statement
16616 stmt is.
16617
16618 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16619
16620 * target-insns.def (extv, extzv, insv): New targetm instruction
16621 patterns.
16622 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16623 interface.
16624 * recog.c (simplify_while_replacing): Likewise.
16625
16626 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16627
16628 * target-insns.def (doloop_begin, doloop_end): New targetm
16629 instruction patterns.
16630 * loop-init.c: Include target.h.
16631 (pass_loop2::gate): Use the new targetm patterns instead of
16632 HAVE_*/gen_* interface.
16633 (pass_rtl_doloop::gate): Likewise.
16634 (pass_rtl_doloop::execute): Remove preprocessor condition.
16635 * hw-doloop.c: Build unconditionally.
16636 * loop-doloop.c: Likewise.
16637 (doloop_optimize): Use the new targetm patterns instead of
16638 HAVE_*/gen_* interface.
16639 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16640 * modulo-sched.c (doloop_register_get): Likewise.
16641
16642 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16643
16644 * target-insns.def (clear_cache): New targetm instruction pattern.
16645 * builtins.c (expand_builtin___clear_cache): Use it instead of
16646 HAVE_*/gen_* interface.
16647
16648 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16649
16650 * target-insns.def (allocate_stack, check_stack, probe_stack)
16651 (probe_stack_address, split_stack_prologue, split_stack_space_check):
16652 New targetm instruction patterns.
16653 * explow.c (allocate_dynamic_stack_space): Use them instead of
16654 HAVE_*/gen_* interface.
16655 (emit_stack_probe): Likewise.
16656 (probe_stack_range): Likewise.
16657 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16658
16659 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16660
16661 * target-insns.def (stack_protect_set, stack_protect_test): New
16662 targetm instruction patterns.
16663 * cfgexpand.c (stack_protect_prologue): Use them instead of
16664 HAVE_*/gen_* interface.
16665 * function.c (stack_protect_epilogue): Likewise.
16666
16667 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16668
16669 * expr.h (gen_move_insn_uncast): Delete.
16670 * expr.c (gen_move_insn_uncast): Delete.
16671
16672 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16673
16674 * target-insns.def (restore_stack_block, restore_stack_function)
16675 (restore_stack_nonlocal, save_stack_block, save_stack_function)
16676 (save_stack_nonlocal): New targetm instruction patterns.
16677 * builtins.c (expand_builtin_apply): Use them instead of
16678 HAVE_*/gen_* interface.
16679 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16680
16681 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16682
16683 * target-insns.def (trap): New targetm instruction pattern.
16684 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16685 interface.
16686 * explow.c (allocate_dynamic_stack_space): Likewise.
16687 * ifcvt.c (find_if_header): Likewise.
16688
16689 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16690
16691 * target-insns.def (prefetch): New targetm instruction pattern.
16692 * tree-ssa-loop-prefetch.c: Include targeth.
16693 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16694 of HAVE_*/gen_* interface.
16695 * builtins.c (expand_builtin_prefetch): Likewise.
16696 * toplev.c (process_options): Likewise.
16697
16698 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16699
16700 * target-insns.def (untyped_call, untyped_return): New targetm
16701 instruction patterns.
16702 * builtins.c (expand_builtin_apply): Use them instead of
16703 HAVE_*/gen_* interface.
16704 (result_vector): Define unconditionally.
16705
16706 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16707
16708 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16709 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16710 (nonlocal_goto_receiver): New targetm instruction patterns.
16711 * builtins.c (expand_builtin_setjmp_setup): Use them instead
16712 of HAVE_*/gen_* interface.
16713 (expand_builtin_setjmp_receiver): Likewise.
16714 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16715 * except.c (expand_dw2_landing_pad_for_region): Likewise.
16716
16717 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16718
16719 * target.def: Add code_for_* hooks.
16720 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16721 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16722 * target-insns.def (casesi, tablejump): New targetm instruction
16723 patterns.
16724 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16725 (do_tablejump): Likewise.
16726 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16727 (expand_sjlj_dispatch_table): Likewise.
16728 * targhooks.c (default_case_values_threshold): Likewise.
16729
16730 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
16731
16732 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16733 Use rtx_insn * instead of rtx.
16734 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16735 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16736 (nios2_call_tls_get_addr): Likewise.
16737 (nios2_emit_expensive_div): Likewise.
16738 (nios2_emit_move_sequence): Change return type to bool.
16739 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16740 Change return type to bool.
16741
16742 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16743
16744 PR target/66747
16745 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16746
16747 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
16748
16749 PR target/66114
16750 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16751 of register_operand. Remove constraint.
16752
16753 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
16754
16755 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16756 the first argument.
16757
16758 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
16759
16760 * attribs.c (decl_attributes): Guard inform with the return value
16761 of the preceding warning.
16762
16763 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16764
16765 * doc/invoke.texi (moverride): Move to correct section.
16766
16767 2015-07-03 Richard Biener <rguenther@suse.de>
16768
16769 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16770 Copy from tree.c
16771 (dt_operand::gen_gimple_expr): After valueizing operands
16772 re-canonicalize operand order for commutative tree codes.
16773
16774 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
16775
16776 PR target/66746.
16777 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16778 is defined.
16779 (__crc32w): Likewise.
16780 (__crc32d): Likewise.
16781 (__rdpmc): Likewise.
16782 (__rdtscp): Likewise.
16783 (_rdpmc): Likewise.
16784 (_rdtscp): Likewise.
16785 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16786 is defined.
16787
16788 2015-07-03 Richard Biener <rguenther@suse.de>
16789
16790 * fold-const.c (fold_mathfn_compare): Remove.
16791 (fold_inf_compare): Likewise.
16792 (fold_comparison): Move floating point comparison simplifications...
16793 * match.pd: ... to patterns here. Introduce simple_comparisons
16794 operator list and use it for patterns formerly in fold_comparison.
16795
16796 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16797
16798 PR tree-optimization/66119
16799 * toplev.c (process_options): Don't set up default values for
16800 the sra_max_scalarization_size_{speed,size} parameters.
16801 * tree-sra (analyze_all_variable_accesses): If no values
16802 have been set for the sra_max_scalarization_size_{speed,size}
16803 parameters, call get_move_ratio to get target defaults.
16804
16805 2015-07-03 Richard Biener <rguenther@suse.de>
16806
16807 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16808 * match.pd: ... here.
16809
16810 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
16811
16812 PR target/37072
16813 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16814 is not actually the default on FreeBSD.
16815
16816 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16817
16818 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16819 definition.
16820 (CMPGE_8HI): Likewise.
16821 (CMPGE_4SI): Likewise.
16822 (CMPGE_2DI): Likewise.
16823 (CMPGE_U16QI): Likewise.
16824 (CMPGE_U8HI): Likewise.
16825 (CMPGE_U4SI): Likewise.
16826 (CMPGE_U2DI): Likewise.
16827 (CMPLE_16QI): Likewise.
16828 (CMPLE_8HI): Likewise.
16829 (CMPLE_4SI): Likewise.
16830 (CMPLE_2DI): Likewise.
16831 (CMPLE_U16QI): Likewise.
16832 (CMPLE_U8HI): Likewise.
16833 (CMPLE_U4SI): Likewise.
16834 (CMPLE_U2DI): Likewise.
16835 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16836 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16837 ALTIVEC_BUILTIN_VEC_CMPLE.
16838 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16839 floating-point vector modes.
16840 (vector_nlt<mode>): New define_expand.
16841 (vector_nltu<mode>): Likewise.
16842 (vector_ngt<mode>): Likewise.
16843 (vector_ngtu<mode>): Likewise.
16844
16845 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16846
16847 PR rtl-optimization/66706
16848 * combine.c (make_compound_operation): If an AND of SUBREG of
16849 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16850
16851 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
16852
16853 * tree-pass.h (make_pass_ch_vect): New.
16854 * passes.def: Add pass_ch_vect just before pass_if_conversion.
16855
16856 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16857 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16858 make_pass_ch_vect): New.
16859 (pass_ch): Extend ch_base.
16860
16861 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16862 (ch_base::copy_headers): ...here.
16863
16864 2015-07-02 Richard Biener <rguenther@suse.de>
16865
16866 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16867 * fold-const.c (get_pointer_modulus_and_residue): Remove.
16868 (fold_binary_loc): Implement (T)ptr & CST in terms of
16869 get_pointer_alignment_1.
16870 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16871 Make sure to build the alignment test on a SSA name without
16872 final alignment info valid only after the prologue.
16873
16874 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
16875
16876 * config/cris/cris.md ("epilogue"): Remove condition.
16877 ("prologue"): Ditto.
16878
16879 2015-07-02 Richard Biener <rguenther@suse.de>
16880
16881 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16882 parameter to record a condition that is false.
16883 (record_conditions): When recording an extra NE_EXPR that is
16884 true also record a EQ_EXPR that is false.
16885
16886 2015-07-02 Bin Cheng <bin.cheng@arm.com>
16887
16888 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16889 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16890 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
16891 (set_iv, find_interesting_uses_address, add_candidate_1): New
16892 argument to alloc_iv.
16893 (find_interesting_uses_op, find_interesting_uses_cond): Don't
16894 duplicate struct iv.
16895 (free_loop_data): Don't free struct iv explicitly.
16896 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16897
16898 2015-07-01 DJ Delorie <dj@redhat.com>
16899
16900 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16901 (LIB_SPEC): Add.
16902 (SUPPORTS_DISCRIMINATOR): Define.
16903
16904 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16905
16906 PR bootstrap/66685
16907 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16908 there are no CALLs in the same pattern.
16909
16910 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16911
16912 PR rtl-optimization/61047
16913 * rtlanal.c (get_initial_register_offset): New function.
16914 (rtx_addr_can_trap_p_1): Check offsets of stack references.
16915
16916 2015-07-01 Richard Biener <rguenther@suse.de>
16917
16918 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16919 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16920 ~X CMP C -> X CMP' ~C to ...
16921 * match.pd: ... patterns here.
16922
16923 2015-07-01 Nick Clifton <nickc@redhat.com>
16924
16925 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16926 a 16-bit value into a 20-bit memory slot.
16927
16928 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16929
16930 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16931 "aarch64_tiny", "aarch64_small", "aarch64_large",
16932 "aarch64_little_endian", "aarch64_big_endian".
16933
16934 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16935
16936 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16937 Document "aarch64_small_fpic".
16938
16939 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16940
16941 * configure.ac: Add check for aarch64 assembler -fpic relocation
16942 modifier support.
16943 * configure: Regenerate.
16944 * config.in: Regenerate.
16945 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16946 to -fPIC if not support of -fpic relocation modifier in assembler.
16947
16948 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16949
16950 PR bootstrap/66685
16951 * rtl.c (classify_insn): Handle returns in PARALLELs.
16952
16953 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
16954
16955 PR middle-end/66633
16956 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16957 to true if the function is nested and if not optimizing.
16958 (convert_local_omp_clauses): Initialize need_frame to true if the
16959 function contains nested functions and if not optimizing.
16960
16961 2015-07-01 Richard Biener <rguenther@suse.de>
16962
16963 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16964 (X & Y) ^ Y -> ~X & Y transforms to ...
16965 * match.pd: ... here.
16966
16967 2015-07-01 Richard Biener <rguenther@suse.de>
16968
16969 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16970 of converts to avoid uninteresting noise from the conversion
16971 simplifying patterns.
16972
16973 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
16974
16975 * config/c6x/c6x.c (try_rename_operands): Do not depend on
16976 gcc_assert evaluating its argument for side-effect.
16977
16978 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
16979
16980 PR target/64833
16981 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
16982 flag_pic is set.
16983
16984 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
16985
16986 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
16987 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
16988 (hash_scc): Add this_ref_p and ref_p parameters and pass them
16989 to the inner DFS walk.
16990
16991 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
16992
16993 * target-insns.def (jump): New targetm instruction pattern.
16994 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
16995 instead of gen_jump.
16996 (fix_up_crossing_landing_pad): Likewise.
16997 (add_labels_and_missing_jumps): Likewise.
16998 (fix_crossing_conditional_branches): Likewise.
16999 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
17000 (force_nonfallthru_and_redirect): Likewise.
17001 * cse.c (cse_insn): Likewise.
17002 * expmed.c (expand_divmod): Likewise.
17003 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
17004 * haifa-sched.c (init_before_recovery): Likewise.
17005 (sched_create_recovery_edges): Likewise.
17006 * ifcvt.c (find_cond_trap): Likewise.
17007 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
17008 (expand_float, expand_fix): Likewise.
17009 * stmt.c (emit_jump): Likewise.
17010
17011 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17012
17013 * defaults.h (HAVE_load_multiple, gen_load_multiple)
17014 (HAVE_store_multiple, gen_store_multiple): Delete.
17015 * target-insns.def (load_multiple, store_multiple): New targetm
17016 instruction patterns.
17017 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
17018 of HAVE_*/gen_* interface.
17019
17020 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17021
17022 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
17023 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
17024 (gen_mem_signal_fence): Delete.
17025 * target-insns.def (mem_signal_fence, mem_thread_fence)
17026 (memory_barrier): New targetm instruction patterns.
17027 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
17028 interface.
17029 (expand_mem_signal_fence): Likewise.
17030
17031 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17032
17033 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
17034 * target-insns.def (epilogue, prologue, sibcall_prologue): New
17035 targetm instruction patterns.
17036 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
17037 interface.
17038 * calls.c (expand_call): Likewise.
17039 * cfgrtl.c (cfg_layout_finalize): Likewise.
17040 * df-scan.c (df_get_entry_block_def_set): Likewise.
17041 (df_get_exit_block_use_set): Likewise.
17042 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
17043 * final.c (final_start_function): Likewise.
17044 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17045 (reposition_prologue_and_epilogue_notes): Likewise.
17046 * reorg.c (find_end_label): Likewise.
17047 * toplev.c (process_options): Likewise.
17048
17049 2015-06-30 David Malcolm <dmalcolm@redhat.com>
17050
17051 * typed-splay-tree.h: New file.
17052
17053 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
17054
17055 PR debug/66691
17056 * lra-int.h (lra_substitute_pseudo): Add a parameter.
17057 (lra_substitute_pseudo_within_insn): Ditto.
17058 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
17059 of constant.
17060 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
17061 to lra_substitute_pseudo.
17062 * lra-lives.c (process_bb_lives): Add an argument to
17063 lra_substitute_pseudo_within_insn call.
17064 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
17065 argument to lra_substitute_pseudo and
17066 lra_substitute_pseudo_within_insn calls.
17067 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
17068
17069 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
17070
17071 * configure: Regenerated.
17072
17073 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
17074
17075 * config.gcc: Support i[34567]86-*-elfiamcu target.
17076 * config/i386/iamcu.h: New.
17077 * config/i386/i386.opt: Add -miamcu.
17078 * doc/invoke.texi: Document -miamcu.
17079 * common/config/i386/i386-common.c (ix86_handle_option): Turn
17080 off x87/MMX/SSE/AVX codegen for -miamcu.
17081 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17082 __iamcu/__iamcu__ for -miamcu.
17083 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
17084 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
17085 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
17086 * config/i386/i386.c (ix86_option_override_internal): Ignore and
17087 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
17088 MCU by default. Default long double to 64-bit for Intel MCU.
17089 Turn on -freg-struct-return for Intel MCU. Issue an error when
17090 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
17091 AVX is turned on.
17092 (function_arg_advance_32): Pass value whose size is no larger
17093 than 8 bytes in registers for Intel MCU.
17094 (function_arg_32): Likewise.
17095 (ix86_return_in_memory): Return value whose size is no larger
17096 than 8 bytes in registers for Intel MCU.
17097 (iamcu_alignment): New function.
17098 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
17099 true.
17100 (ix86_local_alignment): Don't increase alignment for Intel MCU.
17101 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
17102 true.
17103
17104 2015-06-30 Marek Polacek <polacek@redhat.com>
17105
17106 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
17107 both operands of the resulting expression.
17108
17109 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
17110 the final expression with the operand's type and then convert
17111 it to the type of the expression.
17112
17113 2015-06-30 Richard Biener <rguenther@suse.de>
17114
17115 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
17116 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
17117 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
17118 * match.pd: ... to patterns here.
17119
17120 2015-06-30 Richard Biener <rguenther@suse.de>
17121
17122 PR tree-optimization/66704
17123 * tree-vect-data-refs.c (vect_setup_realignment): Use
17124 make_ssa_name for non-SSA name source.
17125
17126 2015-06-30 Jakub Jelinek <jakub@redhat.com>
17127
17128 PR middle-end/66702
17129 * omp-low.c (simd_clone_adjust): Handle addressable linear
17130 or uniform parameters or non-gimple type uniform parameters.
17131
17132 2015-06-30 Richard Biener <rguenther@suse.de>
17133
17134 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
17135 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
17136 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
17137 * match.pd: ... here.
17138 Add a few cases of A - B -> A + (-B) when B "easily" negates.
17139 Move (x & y) | x -> x and friends before
17140 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
17141
17142 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
17143
17144 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
17145 -mfix-ut699 is not specified.
17146 (leon3_load): Rename into...
17147 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
17148 is specified.
17149
17150 2015-06-30 Marek Polacek <polacek@redhat.com>
17151
17152 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
17153 * match.pd: ... here.
17154
17155 2015-06-30 Richard Biener <rguenther@suse.de>
17156
17157 * target-insns.def (canonicalize_funcptr_for_compare): Add.
17158 * fold-const.c (build_range_check): Replace uses of
17159 HAVE_canonicalize_funcptr_for_compare.
17160 (fold_widened_comparison): Likewise.
17161 (fold_sign_changed_comparison): Likewise.
17162 * dojump.c: Include "target.h".
17163 (do_compare_and_jump): Replace uses of
17164 HAVE_canonicalize_funcptr_for_compare and
17165 gen_canonicalize_funcptr_for_compare.
17166 * expr.c (do_store_flag): Likewise.
17167
17168 2015-06-30 Tom de Vries <tom@codesourcery.com>
17169
17170 PR tree-optimization/66652
17171 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
17172 max_loop_iterations to determine if nit + 1 overflows.
17173
17174 2015-06-30 Richard Biener <rguenther@suse.de>
17175
17176 * tree-vrp.c (register_edge_assert_for_2): Also register
17177 asserts for dominating conversion results.
17178
17179 2015-06-30 Bin Cheng <bin.cheng@arm.com>
17180
17181 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
17182 field in struct iv.
17183
17184 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
17185
17186 PR target/66509
17187 * configure.ac: Fix filds and fildq test for 64-bit.
17188 * configure: Regenerated.
17189
17190 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
17191
17192 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
17193 (nvptx_reorg): Here. Keep the non-subreg pieces.
17194
17195 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
17196
17197 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
17198 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17199
17200 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
17201
17202 * config/i386/i386.md (*jcc_1): Use %! in asm template.
17203 Set attribute "length_nobnd" instead of "length".
17204 (*jcc_2): Ditto.
17205 (jump): Ditto.
17206 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17207
17208 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
17209
17210 * config/nios2/nios2.c (nios2_delegitimize_address): Make
17211 assert less restrictive.
17212
17213 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
17214
17215 PR fortran/66605
17216 * cgraphunit.c (cgraph_node::finalize_function): Do not call
17217 do_warn_unused_parameter.
17218 * function.c (do_warn_unused_parameter): Move from here.
17219 * function.h (do_warn_unused_parameter): Do not declare.
17220
17221 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17222
17223 PR target/65697
17224 * gcc.target/arm/armv-sync-comp-swap.c: New.
17225 * gcc.target/arm/armv-sync-op-acquire.c: New.
17226 * gcc.target/arm/armv-sync-op-full.c: New.
17227 * gcc.target/arm/armv-sync-op-release.c: New.
17228
17229 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17230
17231 PR target/65697
17232 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17233 initial acquire barrier with final barrier.
17234
17235 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17236
17237 PR target/65697
17238 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17239 initial acquire barrier with final barrier.
17240
17241 2015-06-29 Richard Henderson <rth@redhat.com>
17242
17243 * config/i386/constraints.md (Bf): New constraint.
17244 * config/i386/i386-c.c (ix86_target_macros): Define
17245 __GCC_ASM_FLAG_OUTPUTS__.
17246 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17247 as flags outputs.
17248 * doc/extend.texi (FlagOutputOperands): Document them.
17249
17250 2015-06-29 Jiong Wang <jiong.wang@arm.com>
17251
17252 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17253 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17254 unspec name.
17255 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17256 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17257 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17258 (aarch64_symbol_context): Ditto.
17259 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17260 and use new pattern name.
17261 (aarch64_expand_mov_immediate): Ditto.
17262 (aarch64_print_operand): Ditto.
17263 (aarch64_classify_tls_symbol): Ditto.
17264
17265 2015-06-29 Marek Polacek <polacek@redhat.com>
17266 Marc Glisse <marc.glisse@inria.fr>
17267
17268 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17269 * match.pd: ... pattern here.
17270
17271 2015-06-29 Tom de Vries <tom@codesourcery.com>
17272
17273 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17274 function structure.
17275
17276 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17277
17278 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17279 feature description, split out the native option, add a link to
17280 the feature documentation, rearrange and slightly rewrite text.
17281 (Aarch64 options, -mcpu): Likewise.
17282 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
17283 +rdma implies Adv. SIMD.
17284
17285 2015-06-29 Marek Polacek <polacek@redhat.com>
17286
17287 PR c/66322
17288 * function.c (stack_protect_epilogue): Remove a cast to int.
17289 * doc/invoke.texi: Update -Wswitch-bool description.
17290
17291 2015-06-29 Richard Biener <rguenther@suse.de>
17292
17293 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17294 * fold-const.c (fold_binary_loc): Move &A - &B simplification
17295 via ptr_difference_const ...
17296 * match.pd: ... here.
17297 When matching (X ^ Y) == Y also match with swapped operands.
17298
17299 2015-06-29 Richard Biener <rguenther@suse.de>
17300
17301 * lto-streamer.h (LTO_major_version): Bump to 5.
17302
17303 2015-06-29 Richard Biener <rguenther@suse.de>
17304
17305 PR tree-optimization/66677
17306 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17307 STMT_VINFO_VEC_STMT clobbering less strict.
17308
17309 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
17310
17311 PR middle-end/64130
17312 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17313 division, compute max and min when value ranges for dividend and
17314 divisor are available.
17315
17316 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
17317 Sandra Loosemore <sandra@codesourcery.com>
17318
17319 * regrename.h (regrename_do_replace): Change to return bool.
17320 * regrename.c (rename_chains): Check return value of
17321 regname_do_replace.
17322 (regrename_do_replace): Re-validate the modified insns and
17323 return bool status.
17324 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17325 Update to match rename_chains changes.
17326 * config/c6x/c6x.c (try_rename_operands): Assert that
17327 regrename_do_replace returns true.
17328
17329 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
17330
17331 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17332 operand 2 here. Use copy_addr_to_reg to copy non-index
17333 register operand 2 to a temporary.
17334 (<mode>_stx): Ditto for operand 1.
17335 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17336 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17337 (ix86_store_bounds): Ditto.
17338
17339 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
17340
17341 * print-tree.c (print_node) [TREE_VEC]: Print its length.
17342
17343 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
17344
17345 * gimple.c (gimple_call_set_fndecl): Remove.
17346 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
17347 build1_loc directly instead of build_fold_addr_expr_loc.
17348
17349 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17350
17351 * hash-map.h (hash_map::traverse): Use the definition of the
17352 Key typedef rather than the typedef itself.
17353
17354 2015-06-26 Martin Jambor <mjambor@suse.cz>
17355
17356 PR debug/66301
17357 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
17358 NULL instead of calling dump_enabled_p.
17359
17360 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17361
17362 * config/aarch64/aarch64.opt: (override): New.
17363 * doc/invoke.texi (override): Document.
17364 * config/aarch64/aarch64.c (aarch64_flag_desc): New
17365 (aarch64_fusible_pairs): Likewise.
17366 (aarch64_tuning_flags): Likewise.
17367 (aarch64_tuning_override_function): Likewise.
17368 (aarch64_tuning_override_functions): Likewise.
17369 (aarch64_parse_one_option_token): Likewise.
17370 (aarch64_parse_boolean_options): Likewise.
17371 (aarch64_parse_fuse_string): Likewise.
17372 (aarch64_parse_tune_string): Likewise.
17373 (aarch64_parse_one_override_token): Likewise.
17374 (aarch64_parse_override_string): Likewise.
17375 (aarch64_override_options): Parse the -override string if it
17376 is present.
17377
17378 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17379
17380 * config/aarch64/aarch64-protos.h (tune_params): Remove
17381 const from members.
17382 (aarch64_tune_params): Remove const, change to no longer be
17383 a pointer.
17384 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17385 change to no longer be a pointer, initialize to generic_tunings.
17386 (aarch64_min_divisions_for_recip_mul): Change dereference of
17387 aarch64_tune_params to member access.
17388 (aarch64_reassociation_width): Likewise.
17389 (aarch64_rtx_mult_cost): Likewise.
17390 (aarch64_address_cost): Likewise.
17391 (aarch64_branch_cost): Likewise.
17392 (aarch64_rtx_costs): Likewise.
17393 (aarch64_register_move_cost): Likewise.
17394 (aarch64_memory_move_cost): Likewise.
17395 (aarch64_sched_issue_rate): Likewise.
17396 (aarch64_builtin_vectorization_cost): Likewise.
17397 (aarch64_override_options): Take a copy of the selected tuning
17398 struct in to aarch64_tune_params, rather than just setting
17399 a pointer, change dereferences of aarch64_tune_params to member
17400 accesses.
17401 (aarch64_override_options_after_change): Change dereferences of
17402 aarch64_tune_params to member access.
17403 (aarch64_macro_fusion_p): Likewise.
17404 (aarch_macro_fusion_pair_p): Likewise.
17405 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17406
17407 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17408
17409 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17410 (aarch64_tune_flags): Likewise.
17411 (AARCH64_TUNE_FMA_STEERING): Likewise.
17412 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17413 to AARCH64_FL_USE_FMA_STEERING_PASS.
17414 (cortex-a57.cortex-a53): Likewise.
17415 (cortex-a72): Use cortexa72_tunings.
17416 (cortex-a72.cortex-a53): Likewise.
17417 (exynos-m1): Likewise.
17418 * config/aarch64/aarch64-protos.h (tune_params): Add
17419 a field: extra_tuning_flags.
17420 * config/aarch64/aarch64-tuning-flags.def: New.
17421 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17422 (aarch64_extra_tuning_flags): Likewise.
17423 (aarch64_tune_params): Declare here.
17424 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17425 (cortexa53_tunings): Likewise.
17426 (cortexa57_tunings): Likewise.
17427 (thunderx_tunings): Likewise.
17428 (xgene1_tunings): Likewise.
17429 (cortexa72_tunings): New.
17430 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17431 (gate): Check against aarch64_tune_params.
17432 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17433 aarch64-protos.h.
17434
17435 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17436
17437 * config/aarch64/aarch64-fusion-pairs.def: New.
17438 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17439 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17440 aarch64_fusion_pairs.
17441 (AARCH64_FUSE_MOV_MOVK): Likewise.
17442 (AARCH64_FUSE_ADRP_ADD): Likewise.
17443 (AARCH64_FUSE_MOVK_MOVK): Likewise.
17444 (AARCH64_FUSE_ADRP_LDR): Likewise.
17445 (AARCH64_FUSE_CMP_BRANCH): Likewise.
17446
17447 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17448
17449 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17450 SYMBOL_SMALL_GOT_28K.
17451 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17452 relocation modifiers.
17453 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17454 (ldr_got_small_28k_<mode>): New.
17455 (ldr_got_small_28k_sidi): New.
17456 * config/aarch64/iterators.md (got_modifier): New mode iterator.
17457 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17458 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17459 SYMBOL_SMALL_GOT_28K.
17460 (aarch64_rtx_costs): Add costs for new instruction sequences.
17461 (initialize_aarch64_code_model): Initialize new model.
17462 (aarch64_classify_symbol): Recognize new model and new symbol classification.
17463 (aarch64_asm_preferred_eh_data_format): Support new model.
17464 (aarch64_load_symref_appropriately): Generate new instruction
17465 sequences for -fpic.
17466 (TARGET_USE_PSEUDO_PIC_REG): New definition.
17467 (aarch64_use_pseudo_pic_reg): New function.
17468
17469 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17470
17471 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17472 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17473 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17474 (aarch64_expand_mov_immediate): Ditto.
17475 (aarch64_print_operand): Ditto.
17476 (aarch64_classify_symbol): Ditto.
17477
17478 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
17479
17480 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17481
17482 2015-06-26 Bin Cheng <bin.cheng@arm.com>
17483
17484 PR bootstrap/66638
17485 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17486 assertion failed. Remove assertion itself.
17487
17488 2015-06-26 Richard Biener <rguenther@suse.de>
17489
17490 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17491 and -A CMP CST -> A CMP -CST which is redundant with a pattern
17492 in match.pd.
17493 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17494 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17495 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17496 * match.pd: ... patterns here.
17497
17498 2015-06-26 Marek Polacek <polacek@redhat.com>
17499
17500 * match.pd ((x | y) & ~(x & y) -> x ^ y,
17501 (x | y) & (~x ^ y) -> x & y): New patterns.
17502
17503 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17504
17505 * rtl.h (emit): Add an optional boolean parameter to control
17506 whether barriers are emitted.
17507 * emit-rtl.c (emit): Likewise.
17508 * gensupport.c (get_emit_function): Return null rather than "emit".
17509 * genemit.c (gen_emit_seq): Handle the null return value.
17510 Don't emit barriers after the final instruction in the sequence.
17511 * gentarget-def.c (main): Don't emit barriers after the instruction.
17512
17513 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17514
17515 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17516 TARGET_UNIFIED_ASM.
17517
17518 2015-06-26 Richard Biener <rguenther@suse.de>
17519
17520 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17521
17522 2015-06-26 Richard Biener <rguenther@suse.de>
17523
17524 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17525 irrespective on whether the inner operation has a single use
17526 of both off are constant.
17527
17528 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
17529 Segher Boessenkool <segher@kernel.crashing.org>
17530
17531 PR target/66412
17532 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17533 before doing PUT_MODE or PUT_CODE on operands to avoid
17534 in-place RTX modification.
17535
17536 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17537
17538 * gentarget-def.c (def_target_insn): Cast return of strtol to
17539 unsigned int.
17540
17541 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17542
17543 * gimple.h (gimple_call_set_fn): Move inline function.
17544 * gimple.c (gimple_call_set_fn): Relocate here.
17545
17546 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
17547
17548 PR target/65979
17549 PR target/66611
17550 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17551 the replacement insn will work.
17552
17553 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17554
17555 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17556 by default.
17557
17558 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17559
17560 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17561 * cgraph.h: Include ipa-ref.h and plugin-api.h.
17562 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17563 (symtab_node::address_can_be_compared_p): Move function.
17564 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17565 definition here.
17566 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17567 * auto-profile.c: Likewise.
17568 * bb-reorder.c: Likewise.
17569 * builtins.c: Likewise.
17570 * calls.c: Likewise.
17571 * cfgexpand.c: Likewise.
17572 * cgraphbuild.c: Likewise.
17573 * cgraphclones.c: Likewise.
17574 * cgraphunit.c: Likewise.
17575 * combine.c: Likewise.
17576 * coverage.c: Likewise.
17577 * data-streamer-in.c: Likewise.
17578 * data-streamer-out.c: Likewise.
17579 * data-streamer.c: Likewise.
17580 * dbxout.c: Likewise.
17581 * dwarf2out.c: Likewise.
17582 * except.c: Likewise.
17583 * expr.c: Likewise.
17584 * final.c: Likewise.
17585 * fold-const.c: Likewise.
17586 * ggc-page.c: Likewise.
17587 * gimple-fold.c: Likewise.
17588 * gimple-iterator.c: Likewise.
17589 * gimple-pretty-print.c: Likewise.
17590 * gimple-streamer-in.c: Likewise.
17591 * gimple-streamer-out.c: Likewise.
17592 * gimple.c: Likewise.
17593 * gimplify.c: Likewise.
17594 * ipa-chkp.c: Likewise.
17595 * ipa-comdats.c: Likewise.
17596 * ipa-cp.c: Likewise.
17597 * ipa-devirt.c: Likewise.
17598 * ipa-icf-gimple.c: Likewise.
17599 * ipa-icf.c: Likewise.
17600 * ipa-inline-analysis.c: Likewise.
17601 * ipa-inline-transform.c: Likewise.
17602 * ipa-inline.c: Likewise.
17603 * ipa-polymorphic-call.c: Likewise.
17604 * ipa-profile.c: Likewise.
17605 * ipa-prop.c: Likewise.
17606 * ipa-pure-const.c: Likewise.
17607 * ipa-ref.c: Likewise.
17608 * ipa-reference.c: Likewise.
17609 * ipa-split.c: Likewise.
17610 * ipa-utils.c: Likewise.
17611 * ipa-visibility.c: Likewise.
17612 * ipa.c: Likewise.
17613 * langhooks.c: Likewise.
17614 * lto-cgraph.c: Likewise.
17615 * lto-compress.c: Likewise.
17616 * lto-opts.c: Likewise.
17617 * lto-section-in.c: Likewise.
17618 * lto-section-out.c: Likewise.
17619 * lto-streamer-in.c: Likewise.
17620 * lto-streamer-out.c: Likewise.
17621 * lto-streamer.c: Likewise.
17622 * omp-low.c: Likewise.
17623 * opts-global.c: Likewise.
17624 * passes.c: Likewise.
17625 * predict.c: Likewise.
17626 * print-tree.c: Likewise.
17627 * profile.c: Likewise.
17628 * ree.c: Likewise.
17629 * sanopt.c: Likewise.
17630 * stor-layout.c: Likewise.
17631 * symtab.c: Likewise.
17632 * toplev.c: Likewise.
17633 * trans-mem.c: Likewise.
17634 * tree-cfg.c: Likewise.
17635 * tree-chkp.c: Likewise.
17636 * tree-eh.c: Likewise.
17637 * tree-emutls.c: Likewise.
17638 * tree-inline.c: Likewise.
17639 * tree-nested.c: Likewise.
17640 * tree-parloops.c: Likewise.
17641 * tree-pretty-print.c: Likewise.
17642 * tree-profile.c: Likewise.
17643 * tree-sra.c: Likewise.
17644 * tree-ssa-alias.c: Likewise.
17645 * tree-ssa-live.c: Likewise.
17646 * tree-ssa-loop-ivcanon.c: Likewise.
17647 * tree-ssa-loop-ivopts.c: Likewise.
17648 * tree-ssa-pre.c: Likewise.
17649 * tree-ssa-sccvn.c: Likewise.
17650 * tree-ssa-strlen.c: Likewise.
17651 * tree-ssa-structalias.c: Likewise.
17652 * tree-streamer-in.c: Likewise.
17653 * tree-streamer-out.c: Likewise.
17654 * tree-streamer.c: Likewise.
17655 * tree-switch-conversion.c: Likewise.
17656 * tree-tailcall.c: Likewise.
17657 * tree-vect-data-refs.c: Likewise.
17658 * tree-vect-stmts.c: Likewise.
17659 * tree-vectorizer.c: Likewise.
17660 * tree.c: Likewise.
17661 * tsan.c: Likewise.
17662 * ubsan.c: Likewise.
17663 * value-prof.c: Likewise.
17664 * varasm.c: Likewise.
17665 * varpool.c: Likewise.
17666 * config/arm/arm.c: Likewise.
17667 * config/bfin/bfin.c: Likewise.
17668 * config/c6x/c6x.c: Likewise.
17669 * config/cris/cris.c: Likewise.
17670 * config/darwin-c.c: Likewise.
17671 * config/darwin.c: Likewise.
17672 * config/i386/i386.c: Likewise.
17673 * config/i386/winnt.c: Likewise.
17674 * config/microblaze/microblaze.c: Likewise.
17675 * config/mips/mips.c: Likewise.
17676 * config/rs6000/rs6000.c: Likewise.
17677 * config/rx/rx.c: Likewise.
17678 * config/s390/s390.c: Likewise.
17679 * config/tilegx/mul-tables.c: Likewise.
17680
17681 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17682
17683 * config/aarch64/aarch64.c, config/alpha/alpha.c,
17684 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17685 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17686 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17687 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17688 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17689 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17690 config/microblaze/microblaze.c, config/mips/mips.c,
17691 config/mmix/mmix.c, config/mn10300/mn10300.c,
17692 config/moxie/moxie.c, config/msp430/msp430.c,
17693 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17694 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17695 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17696 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17697 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17698 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17699 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17700 target-def.h include.
17701 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
17702
17703 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17704
17705 * Makefile.in (TARGET_DEF): Add target-insns.def.
17706 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17707 (build/gentarget-def.o): New rule.
17708 (genprogrtl): Add target-def.
17709 * target-insns.def, gentarget-def.c: New files.
17710 * target.def: Add targetm.have_* and targetm.gen_* hooks,
17711 based on the contents of target-insns.def.
17712 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17713 (HAVE_return, gen_return): Delete.
17714 * target-def.h: Include insn-target-def.h.
17715 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17716 instead of direct calls. Rely on them to do the appropriate assertions.
17717 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
17718 (convert_jumps_to_returns): Use targetm interface instead of
17719 direct calls.
17720 (thread_prologue_and_epilogue_insns): Likewise.
17721 * reorg.c (find_end_label, dbr_schedule): Likewise.
17722 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17723 * shrink-wrap.c (convert_to_simple_return): Likewise.
17724 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17725
17726 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17727
17728 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17729 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17730 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17731 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17732 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17733 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17734 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17735 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17736 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17737 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17738 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17739 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17740 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17741 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17742 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17743 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17744 includes to end.
17745
17746 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17747
17748 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17749 (unbounded_int_hashmap_traits::key_type): Likewise.
17750 * hash-map.h (hash_map): Get the key type from the traits.
17751 * hash-traits.h (default_hash_traits): By default, inherit from the
17752 template parameter.
17753 * alias.c (alias_set_traits): Delete.
17754 (alias_set_entry_d::children): Use alias_set_hash as the first
17755 template parameter.
17756 (record_alias_subset): Update accordingly.
17757 * except.c (tree_hash_traits): Delete.
17758 (type_to_runtime_map): Use tree_hash as the first template parameter.
17759 (init_eh): Update accordingly.
17760 * genmatch.c (capture_id_map_hasher): Delete.
17761 (cid_map_t): Use nofree_string_hash as first template parameter.
17762 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17763 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17764 Use symbol_compare_hash as the first template parameter in
17765 subdivide_hash_map.
17766 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17767 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17768 template parameter.
17769 * passes.c (pass_registry_hasher): Delete.
17770 (name_to_pass_map): Use nofree_string_hash as the first template
17771 parameter.
17772 (register_pass_name): Update accordingly.
17773 * sanopt.c (sanopt_tree_map_traits): Delete.
17774 (sanopt_tree_triplet_map_traits): Delete.
17775 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17776 template parameter.
17777 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17778 the first template parameter.
17779 * sese.c (rename_map_hasher): Delete.
17780 (rename_map_type): Use tree_ssa_name_hash as the first template
17781 parameter.
17782 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17783 (function_summary::m_map): Use map_hash as the first template
17784 parameter.
17785 (function_summary::release): Update accordingly.
17786 * tree-if-conv.c (phi_args_hash_traits): Delete.
17787 (predicate_scalar_phi): Use tree_operand_hash as the first template
17788 parameter to phi_arg_map.
17789 * tree-inline.h (dependence_hasher): Delete.
17790 (copy_body_data::dependence_map): Use dependence_hash as the first
17791 template parameter.
17792 * tree-inline.c (remap_dependence_clique): Update accordingly.
17793 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17794 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17795 parameter.
17796 (addr_stridxptr): Update accordingly.
17797 * value-prof.c (profile_id_traits): Delete.
17798 (cgraph_node_map): Use profile_id_hash as the first template
17799 parameter.
17800 (init_node_map): Update accordingly.
17801 * config/alpha/alpha.c (string_traits): Delete.
17802 (machine_function::links): Use nofree_string_hash as the first
17803 template parameter.
17804 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17805 * config/m32c/m32c.c (pragma_traits): Delete.
17806 (pragma_htab): Use nofree_string_hash as the first template parameter.
17807 (m32c_note_pragma_address): Update accordingly.
17808 * config/mep/mep.c (pragma_traits): Delete.
17809 (pragma_htab): Use nofree_string_hash as the first template parameter.
17810 (mep_note_pragma_flag): Update accordingly.
17811 * config/mips/mips.c (mips16_flip_traits): Delete.
17812 (mflip_mips16_htab): Use nofree_string_hash as the first template
17813 parameter.
17814 (mflip_mips16_use_mips16_p): Update accordingly.
17815 (local_alias_traits): Delete.
17816 (mips16_local_aliases): Use nofree_string_hash as the first template
17817 parameter.
17818 (mips16_local_alias): Update accordingly.
17819
17820 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17821
17822 * hash-map-traits.h (default_hashmap_traits): Delete.
17823
17824 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17825
17826 * hash-map-traits.h (unbounded_hashmap_traits): New class.
17827 (unbounded_int_hashmap_traits): Likewise.
17828 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17829
17830 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17831
17832 * ipa-icf.h (symbol_compare_hash): New class.
17833 (symbol_compare_hashmap_traits): Use it.
17834 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17835 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17836 (mem_alloc_description::reverse_mem_map_t): Remove redundant
17837 default_hashmap_traits.
17838 * sanopt.c (sanopt_tree_triplet_hash): New class.
17839 (sanopt_tree_triplet_map_traits): Use it.
17840
17841 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17842
17843 * gengtype-parse.c (require_template_declaration): Allow '+' in
17844 template parameters. Consolidate cases.
17845 * hash-traits.h (int_hash): New class.
17846 * alias.c (alias_set_hash): New structure.
17847 (alias_set_traits): Use it.
17848 * symbol-summary.h (function_summary::map_hash): New class.
17849 (function_summary::summary_hashmap_traits): Use it.
17850 * tree-inline.h (dependence_hash): New class.
17851 (dependence_hasher): Use it.
17852 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17853 * value-prof.c (profile_id_hash): New class.
17854 (profile_id_traits): Use it.
17855
17856 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17857
17858 * config/mips/mips.c (mips16_flip_traits): Use it.
17859 (local_alias_traits, mips16_local_aliases): Convert from a map of
17860 rtxes to a map of symbol names.
17861 (mips16_local_alias): Update accordingly.
17862
17863 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17864
17865 * hash-traits.h (string_hash, nofree_string_hash): New classes.
17866 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17867 * passes.c (pass_registry_hasher): Likewise.
17868 * config/alpha/alpha.c (string_traits): Likewise.
17869 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17870 * config/m32c/m32c.c (pragma_traits): Likewise.
17871 * config/mep/mep.c (pragma_traits): Likewise.
17872
17873 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17874
17875 * tree-hash-traits.h (tree_hash): New class.
17876 * except.c: Include tree-hash-traits.h.
17877 (tree_hash_traits): Use tree_hash.
17878
17879 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17880
17881 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17882 * sese.c: Include tree-hash-traits.h.
17883 (rename_map_hasher): Use tree_ssa_name_hasher.
17884
17885 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17886
17887 * tree-hash-traits.h (tree_decl_hash): New class.
17888 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17889 (stridxlist_hash_traits): Use tree_decl_hash.
17890
17891 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17892
17893 * tree-hash-traits.h: New file.
17894 (tree_operand_hash): New class.
17895 * sanopt.c: Include tree-hash-traits.h.
17896 (sanopt_tree_map_traits): Use tree_operand_hash.
17897 * tree-if-conv.c: Include tree-hash-traits.h.
17898 (phi_args_hash_traits): Use tree_operand_hash.
17899 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17900 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17901
17902 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17903
17904 * hash-map-traits.h: Include hash-traits.h.
17905 (simple_hashmap_traits): New class.
17906 * mem-stats.h (hash_map): Change the default traits to
17907 simple_hashmap_traits<default_hash_traits<Key> >.
17908
17909 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17910
17911 * hash-table.h: Update comments.
17912
17913 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17914
17915 * hash-traits.h (default_hash_traits): New structure.
17916 * hash-set.h (default_hashset_traits): Delete.
17917 (hash_set): Use default_hash_traits<Key> instead of
17918 default_hashset_traits. Delete hash_entry type and use Key directly.
17919 * ipa-devirt.c (pair_traits): Delete.
17920 (default_hash_traits <type_pair>): Override.
17921 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17922 (odr_types_equivalent_p, add_type_duplicate): Likewise.
17923
17924 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17925
17926 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17927
17928 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17929
17930 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17931 (has_is_empty, is_empty_helper): Delete.
17932 (has_mark_deleted, mark_deleted_helper): Delete.
17933 (has_mark_empty, mark_empty_helper): Delete.
17934 (hash_table::is_deleted): Call the Descriptor unconditionally.
17935 (hash_table::is_empty): Likewise.
17936 (hash_table::mark_deleted): Likewise.
17937 (hash_table::mark_empty): Likewise.
17938
17939 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17940
17941 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
17942 redundant typedefs and members.
17943 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
17944 redundant typedefs.
17945 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17946 * ipa-devirt.c (odr_name_hasher): Likewise.
17947 (polymorphic_call_target_hasher): Likewise.
17948 * ira-costs.c (cost_classes_hasher): Likewise.
17949 * statistics.c (stats_counter_hasher): Likewise.
17950 * trans-mem.c (log_entry_hasher): Likewise.
17951 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17952 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17953 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17954 * var-tracking.c (variable_hasher): Likewise.
17955 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17956 Remove redundant typedefs and members.
17957
17958 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17959
17960 * hash-traits.h (ggc_cache_hasher): Rename to...
17961 (ggc_cache_remove): ...this and remove typedefs.
17962 (ggc_cache_ptr_hash): New class.
17963 * hash-table.h: Update commentary.
17964 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17965 rather than ggc_cache_hasher.
17966 (const_wide_int_hasher, reg_attr_hasher): Likewise.
17967 (const_double_hasher, const_fixed_hasher): Likewise.
17968 * function.c (insn_cache_hasher): Likewise.
17969 * trans-mem.c (tm_wrapper_hasher): Likewise.
17970 * tree.h (tree_decl_map_cache_hasher): Likewise.
17971 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
17972 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
17973 * ubsan.c (tree_type_map_cache_hasher): Likewise.
17974 * varasm.c (tm_clone_hasher): Likewise.
17975 * config/i386/i386.c (dllimport_hasher): Likewise.
17976 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
17977 (tree_hasher): Likewise.
17978
17979 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17980
17981 * hash-traits.h (ggc_hasher): Rename to...
17982 (ggc_remover): ...this and remove typedefs.
17983 (ggc_cache_hasher): Update accordingly. Add typedefs.
17984 (ggc_ptr_hash): New class.
17985 * hash-table.h: Update comment.
17986 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
17987 ggc_hasher.
17988 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
17989 (tree_descriptor_hasher): Likewise.
17990 * cgraph.c (function_version_hasher): Likewise.
17991 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
17992 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
17993 (dw_loc_list_hasher, addr_hasher): Likewise.
17994 * function.h (used_type_hasher): Likewise.
17995 * function.c (temp_address_hasher): Likewise.
17996 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
17997 * libfuncs.h (libfunc_hasher): Likewise.
17998 * lto-streamer.h (decl_state_hasher): Likewise.
17999 * optabs.c (libfunc_decl_hasher): Likewise.
18000 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
18001 * varasm.c (section_hasher, object_block_hasher): Likewise.
18002 (const_rtx_desc_hasher): Likewise.
18003 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
18004 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
18005
18006 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18007
18008 * hash-traits.h (free_ptr_hash): New class.
18009 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
18010 rather than typed_free_remove. Remove redudant typedefs.
18011 (external_ref_hasher): Likewise.
18012 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
18013 (ehspec_hasher): Likewise.
18014 * ggc-common.c (saving_hasher): Likewise.
18015 * gimplify.c (gimplify_hasher): Likewise.
18016 * haifa-sched.c (delay_i2_hasher): Likewise.
18017 * loop-invariant.c (invariant_expr_hasher): Likewise.
18018 * loop-iv.c (biv_entry_hasher): Likewise.
18019 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
18020 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
18021 * tree-cfg.c (locus_discrim_hasher): Likewise.
18022 * tree-eh.c (finally_tree_hasher): Likewise.
18023 * tree-into-ssa.c (var_info_hasher): Likewise.
18024 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
18025 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
18026 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
18027 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
18028 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
18029 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
18030 (shared_bitmap_hasher): Likewise.
18031 * tree-ssa-threadupdate.c (redirection_data): Likewise.
18032 * tree-vectorizer.h (peel_info_hasher): Likewise.
18033 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
18034 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
18035
18036 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18037
18038 * hash-table.h: Update comments.
18039 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
18040 (nofree_ptr_hash): New class.
18041 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
18042 than typed_noop_remove. Remove redudant typedefs.
18043 * attribs.c (attribute_hasher): Likewise.
18044 * cfg.c (bb_copy_hasher): Likewise.
18045 * cselib.c (cselib_hasher): Likewise.
18046 * dse.c (invariant_group_base_hasher): Likewise.
18047 * dwarf2cfi.c (trace_info_hasher): Likewise.
18048 * dwarf2out.c (macinfo_entry_hasher): Likewise.
18049 (comdat_type_hasher, loc_list_hasher): Likewise.
18050 * gcse.c (pre_ldst_expr_hasher): Likewise.
18051 * genmatch.c (id_base): Likewise.
18052 * genrecog.c (test_pattern_hasher): Likewise.
18053 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
18054 * haifa-sched.c (delay_i1_hasher): Likewise.
18055 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
18056 * ipa-icf.h (congruence_class_group_hash): Likewise.
18057 * ipa-profile.c (histogram_hash): Likewise.
18058 * ira-color.c (allocno_hard_regs_hasher): Likewise.
18059 * lto-streamer.h (string_slot_hasher): Likewise.
18060 * lto-streamer.c (tree_entry_hasher): Likewise.
18061 * plugin.c (event_hasher): Likewise.
18062 * postreload-gcse.c (expr_hasher): Likewise.
18063 * store-motion.c (st_expr_hasher): Likewise.
18064 * tree-sra.c (uid_decl_hasher): Likewise.
18065 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
18066 (ssa_name_var_hash): Likewise.
18067 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
18068 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
18069 * tree-ssa-pre.c (pre_expr_d): Likewise.
18070 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
18071 * vtable-verify.h (registration_hasher): Likewise.
18072 * vtable-verify.c (vtbl_map_hasher): Likewise.
18073 * config/arm/arm.c (libcall_hasher): Likewise.
18074 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
18075 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
18076 * config/sol2.c (comdat_entry_hasher): Likewise.
18077 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
18078 (print_fold_checksum, fold_checksum_tree): Likewise.
18079 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
18080 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
18081 (fold_build_call_array_loc): Likewise.
18082 * tree-ssa-ccp.c (gimple_htab): Likewise.
18083 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
18084 rather than pointer_type.
18085
18086 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18087
18088 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
18089 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
18090
18091 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18092
18093 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
18094 (ggc_hasher::ggc_mx): Likewise.
18095 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
18096 that duplicate ggc_hasher ones.
18097
18098 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18099
18100 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
18101 (gt_cleare_cache): Check here for deleted and empty entries.
18102 Replace handle_cache_entry with a call to keep_cache_entry.
18103 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
18104 (ggc_cache_hasher::keep_cache_entry): New function.
18105 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
18106 (tm_wrapper_hasher::keep_cache_entry): New function.
18107 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
18108 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18109 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
18110 (type_cache_hasher::keep_cache_entry): New function.
18111 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
18112 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18113 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
18114 (tree_type_map_cache_hasher::keep_cache_entry): New function.
18115 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
18116 (tm_clone_hasher::keep_cache_entry): New function.
18117 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
18118 (dllimport_hasher::keep_cache_entry): New function.
18119
18120 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18121
18122 * hash-table.h: Include hash-traits.h.
18123 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
18124 (ggc_cache_hasher): Move to...
18125 * hash-traits.h: ...this new file.
18126
18127 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18128
18129 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
18130 struct cl_optimization.
18131 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
18132 * tree.c (make_node_stat): Allocate cl_optimization struct.
18133 (copy_node_stat): Allocate and copy cl_optimization struct.
18134
18135 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18136
18137 * function.h (struct incoming_args): Move struct.
18138 (pass_by_reference, reference_callee_copied): Remove prototypes.
18139 * emit-rtl.h (struct incoming_args): Relocate struct here.
18140 * calls.h (pass_by_reference, reference_callee_copied): Relocate
18141 prototypes here.
18142 * function.c (pass_by_reference, reference_callee_copied): Move.
18143 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
18144 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
18145 * ipa-chkp.c: Include calls.h.
18146
18147 2015-06-25 Andrew Macleod <amacleod@redhat.com>
18148
18149 * alias.h (alias_set_type): Move typedef.
18150 * coretypes.h (alias_set_type): Relocate typedef here.
18151 * rtl.h: Don't include alias.h.
18152
18153 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18154
18155 * cgraph.h (cgraph_rtl_info): Move to rtl.h
18156 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
18157 and instance.
18158 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
18159 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
18160 doesn't exist.
18161 * calls.c: Include hard-reg-set.h before rtl.h.
18162 * ira.c: Likewise.
18163
18164 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18165 Vladimir Makarov <vmakarov@redhat.com>
18166
18167 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
18168 Add assert.
18169
18170 2015-06-25 Richard Biener <rguenther@suse.de>
18171
18172 * fold-const.c (fold_binary_loc): Move simplification of
18173 (X <<>> C1) & C2 ...
18174 * match.pd: ... here.
18175
18176 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
18177
18178 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
18179
18180 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18181
18182 * match.pd: Add patterns for vec_conds between 1 and 0.
18183
18184 2015-06-25 Richard Biener <rguenther@suse.de>
18185
18186 * tree-vect-stmts.c (vectorizable_conversion): Do not set
18187 STMT_VINFO_VEC_STMT for SLP.
18188 (vectorizable_store): Likewise.
18189 (vectorizable_load): Likewise.
18190 (vect_transform_stmt): Catch SLP vectorization clobbering
18191 STMT_VINFO_VEC_STMT.
18192
18193 2015-06-25 Richard Biener <rguenther@suse.de>
18194
18195 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
18196 dumping.
18197 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
18198 cleanup resulting dead code and parameters.
18199 (vect_transform_slp_perm_load): Adjust.
18200
18201 2015-06-25 Nick Clifton <nickc@redhat.com>
18202
18203 * config/bfin/bfin.c (bfin_expand_prologue): Set
18204 current_function_static_stack_size if flag_stack_usage_info is set.
18205 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18206 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18207 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18208 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18209
18210 2015-06-25 Tom de Vries <tom@codesourcery.com>
18211
18212 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18213 comment that the generated IV is unsigned.
18214
18215 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18216
18217 PR target/29693
18218 * config/arm/arm.c (arm_dbx_register_number): Return
18219 DWARF_FRAME_REGISTERS by default.
18220
18221 2015-06-25 Tom de Vries <tom@codesourcery.com>
18222
18223 * dominance.c (calculate_dominance_info): Fix verify_dominators call
18224 argument. Call verify_dominator when reusing dominator info.
18225
18226 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
18227
18228 PR target/66563
18229 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18230 an additional element of the unspec vector. Modify indices
18231 of operands.
18232 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18233 * config/sh/sh.c (prepare_move_operands): Pass incremented
18234 const_int to gen_GOTaddr2picreg.
18235 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18236
18237 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18238
18239 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18240 Condition on TARGET_FLOAT.
18241
18242 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18243
18244 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18245 and (no)crypto.
18246
18247 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18248
18249 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18250
18251 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18252 aarch64_err_no_fpadvsimd.
18253
18254 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18255 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18256 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18257 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18258 Turn error into assert, test TARGET_FLOAT.
18259 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18260 TARGET_FLOAT.
18261
18262 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
18263
18264 PR debug/66482
18265 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18266
18267 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18268
18269 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18270
18271 2015-06-24 Renlin Li <renlin.li@arm.com>
18272
18273 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18274 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18275
18276 2015-06-24 Richard Biener <rguenther@suse.de>
18277
18278 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18279 (main): Likewise.
18280 (lower_opt_convert): Support lowering of conditional view_convert.
18281 (parser::parse_operation): Likewise.
18282 (parser::parse_for): Likewise.
18283
18284 2015-06-24 Renlin Li <renlin.li@arm.com>
18285
18286 * varasm.c (emit_local): Use unsigned int for align variable.
18287
18288 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18289
18290 PR target/63408
18291 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18292 for negative numbers.
18293
18294 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18295
18296 PR rtl-optimization/66306
18297 * reload.c (find_reloads): Swap the match_dup info for
18298 commutative operands.
18299
18300 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18301
18302 * config/s390/vx-builtins.md
18303 ("vec_scatter_element<mode>_<non_vec_int>")
18304 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18305 attribute with bhfgq.
18306
18307 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18308
18309 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18310
18311 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18312
18313 * config/s390/s390-builtin-types.def: Add flag to indicate the
18314 options under which the function type is needed.
18315 * config/s390/s390-builtins.def: Add flag to indicate the options
18316 under which the builtin is enabled.
18317 * config/s390/s390-builtins.h: Add flags parameter to macro
18318 definitions.
18319 (bflags_for_builtin): New function.
18320 (flags_for_builtin): Renamed to ...
18321 (opflags_for_builtin): ... this.
18322 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18323 flags_for_builtin to bflags_for_builtin and
18324 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18325 * config/s390/s390.c: Add initialization of bflags_builtin and
18326 opflags_builtin arrays.
18327 Remove code for flags_builtin.
18328 (s390_init_builtins): Only create builtin function types if one of
18329 their flags is active.
18330 Only create builtins if all of their flags are active.
18331 (s390_expand_builtin): Rename flags_for_builtin to
18332 opflags_for_builtin.
18333
18334 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18335
18336 * config/s390/vecintrin.h: Remove internal builtins.
18337
18338 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18339
18340 * config/s390/s390.c (s390_secondary_reload): Fix check for
18341 GENERAL_REGS register class.
18342
18343 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18344
18345 * config/s390/s390.c (s390_support_vector_misalignment): Call
18346 default implementation for !TARGET_VX.
18347
18348 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18349
18350 * config/s390/s390.c (s390_legitimate_constant_p): Add
18351 TARGET_VX check.
18352
18353 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18354
18355 * config/s390/s390.c (s390_vector_abi): New variable definition.
18356 (s390_check_type_for_vector_abi): New function.
18357 (TARGET_ASM_FILE_END): New macro definition.
18358 (s390_asm_file_end): New function.
18359 (s390_function_arg): Call s390_check_type_for_vector_abi.
18360 (s390_gimplify_va_arg): Likewise.
18361 * configure: Regenerate.
18362 * configure.ac: Check for .gnu_attribute Binutils feature.
18363
18364 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
18365
18366 PR target/65803
18367 * config/bfin/bfin.c (hwloop_optimize): Initialize
18368 JUMP_LABEL for newly created jump.
18369
18370 2015-06-23 Tristan Gingold <gingold@adacore.com>
18371
18372 * collect-utils.c (collect_wait): Unlink the response file here
18373 instead of...
18374 (do_wait): ...here.
18375 (utils_cleanup): ...and here.
18376
18377 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
18378
18379 * df-scan.c: Don't include target-def.h.
18380 * targhooks.c: Likewise.
18381 * config/arm/arm-c.c: Likewise.
18382 * config/i386/i386-c.c: Likewise.
18383 * config/nds32/nds32-cost.c: Likewise.
18384 * config/nds32/nds32-fp-as-gp.c: Likewise.
18385 * config/nds32/nds32-intrinsic.c: Likewise.
18386 * config/nds32/nds32-isr.c: Likewise.
18387 * config/nds32/nds32-md-auxiliary.c: Likewise.
18388 * config/nds32/nds32-memory-manipulation.c: Likewise.
18389 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18390 * config/nds32/nds32-predicates.c: Likewise.
18391
18392 2015-06-23 Richard Biener <rguenther@suse.de>
18393
18394 PR tree-optimization/66636
18395 * tree-vect-stmts.c (vectorizable_store): Properly compute the
18396 def type for further defs for strided stores.
18397
18398 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
18399
18400 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18401 conditional selects.
18402 (setcc_int<mode>, setcc_float<mode>): Reformat.
18403
18404 2015-06-23 Marek Polacek <polacek@redhat.com>
18405
18406 * match.pd ((x + y) - (x | y) -> x & y,
18407 (x + y) - (x & y) -> x | y): New patterns.
18408
18409 2015-06-23 Ludovic Courtès <ludo@gnu.org>
18410
18411 PR 65711
18412 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18413 '-dynamic-linker' within %{!shared: ...}.
18414
18415 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
18416
18417 PR target/66560
18418 * config/i386/predicates.md (addsub_vm_operator): New predicate.
18419 (addsub_vs_operator): Ditto.
18420 (addsub_vs_parallel): Ditto.
18421 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18422 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18423 Put minus RTX before plus and adjust vec_merge selector.
18424 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18425 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18426 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18427 (addsub vec_merge splitters): New combiner splitters.
18428 (addsub vec_select/vec_concat splitters): Ditto.
18429
18430 2015-06-23 Bin Cheng <bin.cheng@arm.com>
18431
18432 PR tree-optimization/66449
18433 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18434 POINTER_PLUS_EXPR for pointers.
18435
18436 2015-06-23 Alan Modra <amodra@gmail.com>
18437
18438 * rtlanal.c (commutative_operand_precedence): Correct comments.
18439 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18440 declaration. Return an int. Distinguish REG,REG return from
18441 others.
18442 (struct simplify_plus_minus_op_data): Make local to function.
18443 (simplify_plus_minus): Don't set canonicalized if merely sorting
18444 registers. Avoid packing ops if nothing changes. White space fixes.
18445
18446 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
18447
18448 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18449 -fdump-ada-spec is passed but not if -fsyntax-only is.
18450
18451 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
18452
18453 PR bootstrap/63740
18454 * lra-lives.c (process_bb_lives): Check insn copying the same
18455 reload pseudo and don't create a copy for it.
18456
18457 2015-06-22 Tom de Vries <tom@codesourcery.com>
18458
18459 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18460 for cond_stmt.
18461
18462 2015-06-22 Tom de Vries <tom@codesourcery.com>
18463
18464 * builtins.def (DEF_GOMP_BUILTIN): Test
18465 'flag_tree_parallelize_loops > 1' instead of
18466 'flag_tree_parallelize_loops'. Test flag_cilkplus.
18467
18468 2015-06-22 Tom de Vries <tom@codesourcery.com>
18469
18470 * dominance.c (calculate_dominance_info): Verify dominators if
18471 early-out.
18472
18473 2015-06-22 Marek Polacek <polacek@redhat.com>
18474
18475 * match.pd ((x ^ y) ^ (x | y) -> x & y,
18476 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18477 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18478 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18479
18480 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
18481
18482 PR target/65871
18483 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18484 cost of embedded comparison.
18485
18486 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18487
18488 PR target/65914
18489 * config/rs6000/predicates.md (altivec_register_operand): Permit
18490 virtual stack registers.
18491 (vsx_register_operand): Likewise.
18492 (vfloat_operand): Likewise.
18493 (vint_operand): Likewise.
18494 (vlogical_operand): Likewise.
18495
18496 2015-06-22 Richard Biener <rguenther@suse.de>
18497
18498 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18499 and single_scalar_iteration_cost members.
18500 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18501 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18502 (vect_get_single_scalar_iteration_cost): Remove.
18503 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18504 Use LOOP_VINFO_SCALAR_ITERATION_COST.
18505 * tree-vect-loop.c (destroy_loop_vec_info): Free
18506 scalar_cost_vec.
18507 (vect_get_single_scalar_iteration_cost): Compute result into
18508 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18509 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
18510 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18511 (vect_estimate_min_profitable_iters): Use them.
18512
18513 2015-06-22 Christian Bruel <christian.bruel@st.com>
18514
18515 PR target/52144
18516 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18517 (TARGET_INSERT_ATTRIBUTES): Define.
18518 (thumb_flipper): New var.
18519 * config/arm/arm.opt (-mflip-thumb): New switch.
18520
18521 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18522 Martin Liska <mliska@suse.cz>
18523
18524 PR ipa/65908
18525 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18526 construction of arg_types.
18527 (sem_function::sem_function): Likewise.
18528 (sem_function::~sem_function): Remove destruction of arg_types.
18529 (sem_function::compatible_parm_types_p): New function.
18530 (sem_function::equals_wpa): Reorg matching of return values
18531 and parameter types.
18532 (sem_function::equals_private): Reorg mathcing of argument types.
18533 (sem_function::parse_tree_args): Remove.
18534 * ipa-icf.h (init_wpa): Do not call it.
18535 (parse_tree_args): Remove.
18536 (compatible_parm_types_p): Declare.
18537 (result_type): Remove.
18538 (arg_types): Remove.
18539
18540 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18541
18542 PR ipa/66351
18543 * ipa-polymorphic-call.c
18544 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18545 initializing alias oracle; fix formating; set base_alias_set if it
18546 is known.
18547
18548 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
18549
18550 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18551 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18552 (find_inc): Likewise.
18553 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18554 swapping.
18555 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18556 * df-scan.c (df_swap_refs): Remove.
18557 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18558 * dominance.c (link_roots): Use std::swap instead of manually swapping.
18559 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18560 * fold-const.c (fold_relational_const): Likewise.
18561 * genattrtab.c (simplify_test_exp): Likewise.
18562 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18563 gimple_simplify): Likewise.
18564 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18565 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18566 * ipa-devirt.c (add_type_duplicate): Likewise.
18567 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18568 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18569 * lra.c (lra_create_copy): Likewise.
18570 * lto-streamer-out.c (DFS::DFS): Likewise.
18571 * modulo-sched.c (get_sched_window): Likewise.
18572 * omega.c (omega_pretty_print_problem): Likewise.
18573 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18574 * reload1.c (reloads_unique_chain_p): Likewise.
18575 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18576 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18577 use std::swap.
18578 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18579 manually swapping.
18580 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18581 predicate_mem_writes): Likewise.
18582 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18583 * tree-predcom.c (combine_chains): Likewise.
18584 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18585 refs_may_alias_p_1): Likewise.
18586 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18587 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18588 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18589 number_of_iterations_cond): Likewise.
18590 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18591 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18592 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18593 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18594 * tree-vrp.c (extract_range_from_binary_expr_1,
18595 extract_range_from_unary_expr_1): Likewise.
18596
18597 2015-06-20 Marek Polacek <polacek@redhat.com>
18598
18599 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18600
18601 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
18602
18603 PR target/66591
18604 * config/sh/sh.c (prepare_move_operands): Replace subreg
18605 index term with R0 for base and index addressing.
18606
18607 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
18608
18609 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18610 op1 is an fp zero.
18611 (movsf_aarch64): Change condition from register_operand to
18612 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
18613 load1. Change type for alternative 7 to store1.
18614 (movdf_aarch64): Likewise.
18615
18616 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
18617
18618 * config/vax/vax.md: Adjust sign/zero extend patterns to
18619 handle SUBREGs in operands[1].
18620
18621 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18622
18623 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18624 of manually swapping.
18625 (expand_vec_perm_interleave2): Likewise.
18626
18627 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
18628
18629 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18630 reuse bounds created for abnormal ssa names.
18631
18632 2015-06-19 Jakub Jelinek <jakub@redhat.com>
18633
18634 * config/nvptx/nvptx.md (allocate_stack): Rename to...
18635 (allocate_stack_<mode>): ... this, and add :P on both
18636 match_operand and unspec.
18637 (allocate_stack): New expander.
18638
18639 2015-06-19 Christian Bruel <christian.bruel@st.com>
18640
18641 PR target/66541
18642 PR target/52144
18643 * config/arm/arm.c (arm_set_current_function): Handle
18644 explicit default options.
18645
18646 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18647
18648 * config/i386/i386.md (*movsicc_noc_zext): New insn.
18649 (zero-extended cmove with mem peephole2): New pattern.
18650 (cmove with mem peephole2): Merge patterns.
18651
18652 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
18653
18654 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18655
18656 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
18657
18658 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18659 * config/mips/mips.md (*madd4<mode>): Ditto.
18660 (*nmadd3<mode>) Ditto.
18661 (*nmadd4<mode>_fastmath): Ditto.
18662 (*nmadd3<mode>_fastmath): Ditto.
18663 (*nmsub4<mode>): Ditto.
18664 (*nmsub3<mode>): Ditto.
18665 (*nmsub4<mode>_fastmath): Ditto.
18666 (*nmsub3<mode>_fastmath): Ditto.
18667
18668 2015-06-18 Michael Matz <matz@suse.de>
18669
18670 PR middle-end/66253
18671 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18672 grouped strided stores.
18673 (vectorizable_load): Don't use the DR from first_stmt in
18674 the non-SLP grouped strided case.
18675
18676 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18677
18678 PR target/66569
18679 * function.c (assign_bounds): Add arguments assign_regs,
18680 assign_special, assign_bt.
18681 (assign_parms): For vararg functions handle bounds in BT
18682 and special slots after incoming vararg bounds.
18683
18684 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18685
18686 PR middle-end/66568
18687 * cfgexpand.c (expand_return): Handle missing bounds.
18688 (expand_gimple_stmt_1): Likewise.
18689 * tree-chkp.c (chkp_expand_zero_bounds): New.
18690 * tree-chkp.h (chkp_expand_zero_bounds): New.
18691
18692 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18693
18694 PR middle-end/66567
18695 * ipa-chkp.c (chkp_maybe_create_clone): Require
18696 functions to be instrumentable.
18697 * tree-chkp.c (chkp_replace_function_pointer): Use
18698 chkp_instrumentable_p instead of attribute check.
18699
18700 2015-06-18 Richard Biener <rguenther@suse.de>
18701
18702 PR tree-optimization/66510
18703 * tree-vect-stmts.c (vectorizable_load): Properly compute the
18704 number of vector loads for SLP permuted loads.
18705 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18706 check the stride for loop vectorization.
18707 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18708 vectorization factor.
18709 (vect_analyze_group_access): If the group size is not a power
18710 of two require a epilogue loop.
18711 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18712 compute and optimizing and alias test pruning after final
18713 vectorization factor computation.
18714 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18715 vector alignment.
18716 (vect_transform_slp_perm_load): Properly compute the original
18717 number of vector load stmts.
18718
18719 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18720
18721 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18722 "unlikely character , in @var" warning.
18723
18724 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
18725
18726 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18727 (ix86_function_arg_advance): Ditto.
18728 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
18729
18730 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18731
18732 * function.h (struct rtl_data): Remove struct and accessor macros.
18733 * emit-rtl.h (struct rtl_data): Relocate to here.
18734 * Makefile.in (GTFILES): Add emit-rtl.h.
18735 * df-core.c: Include emit-rtl.h.
18736 * genattrtab.c: Likewise.
18737 * genconditions.c: Likewise.
18738 * genpreds.c: Likewise.
18739 * genrecog.c: Likewise.
18740 * regcprop.c: Likewise.
18741 * resource.c: Likewise.
18742 * sched-rgn.c: Likewise.
18743 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18744 * config/i386/winnt.c: Likewise.
18745
18746 2015-06-17 Jakub Jelinek <jakub@redhat.com>
18747
18748 PR middle-end/66429
18749 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18750 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
18751 and has_force_vectorize_loops flags from cfun into
18752 child_cfun.
18753 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18754 if simduid is non-NULL.
18755 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18756 * passes.def (pass_simduid_cleanup): Add new pass after loop
18757 passes.
18758 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18759 indirection from htab argument's type.
18760 (shrink_simd_arrays): New function.
18761 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
18762 Don't call adjust_simduid_builtins if there are no loops.
18763 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18764 (pass_simduid_cleanup::execute): New method.
18765 (make_pass_simduid_cleanup): New function.
18766
18767 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
18768
18769 * tree-core.h (tree_target_option): Make opts field a pointer to a
18770 cl_target_option instead of an instance of the struct.
18771 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18772 the structure.
18773 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18774 TARGET_OPTION_NODE.
18775 (copy_node_stat): Allocate and copy struct cl_target_option.
18776
18777 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18778
18779 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18780 Remove conditional exposure of prototypes.
18781 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18782 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
18783 definitions in tree.h with functions.
18784 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18785 anon_aggrname_p.
18786 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18787
18788 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
18789
18790 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18791 (*cmp<mode>_signed): ... this.
18792 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18793 (*cmp<mode>_unsigned): ... this. Remove %b.
18794
18795 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18796
18797 * coretypes.h: Include input.h and as-a.h.
18798 * rtl.h: Include input.h and as-a.h for generator files.
18799 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18800 * vec.c: Don't include diagnostic-core.h.
18801 * alias.c: Do not include input.h, line-map.h or is-a.h.
18802 * asan.c: Likewise.
18803 * attribs.c: Likewise.
18804 * auto-inc-dec.c: Likewise.
18805 * auto-profile.c: Likewise.
18806 * bb-reorder.c: Likewise.
18807 * bt-load.c: Likewise.
18808 * builtins.c: Likewise.
18809 * caller-save.c: Likewise.
18810 * calls.c: Likewise.
18811 * ccmp.c: Likewise.
18812 * cfg.c: Likewise.
18813 * cfganal.c: Likewise.
18814 * cfgbuild.c: Likewise.
18815 * cfgcleanup.c: Likewise.
18816 * cfgexpand.c: Likewise.
18817 * cfghooks.c: Likewise.
18818 * cfgloop.c: Likewise.
18819 * cfgloop.h: Likewise.
18820 * cfgloopanal.c: Likewise.
18821 * cfgloopmanip.c: Likewise.
18822 * cfgrtl.c: Likewise.
18823 * cgraph.c: Likewise.
18824 * cgraphbuild.c: Likewise.
18825 * cgraphclones.c: Likewise.
18826 * cgraphunit.c: Likewise.
18827 * cilk-common.c: Likewise.
18828 * combine-stack-adj.c: Likewise.
18829 * combine.c: Likewise.
18830 * compare-elim.c: Likewise.
18831 * convert.c: Likewise.
18832 * coverage.c: Likewise.
18833 * cppbuiltin.c: Likewise.
18834 * cprop.c: Likewise.
18835 * cse.c: Likewise.
18836 * cselib.c: Likewise.
18837 * data-streamer-in.c: Likewise.
18838 * data-streamer-out.c: Likewise.
18839 * data-streamer.c: Likewise.
18840 * dbxout.c: Likewise.
18841 * dce.c: Likewise.
18842 * ddg.c: Likewise.
18843 * debug.c: Likewise.
18844 * df-core.c: Likewise.
18845 * df-problems.c: Likewise.
18846 * df-scan.c: Likewise.
18847 * df.h: Likewise.
18848 * dfp.c: Likewise.
18849 * diagnostic-core.h: Likewise.
18850 * diagnostic.c: Likewise.
18851 * dojump.c: Likewise.
18852 * dominance.c: Likewise.
18853 * domwalk.c: Likewise.
18854 * double-int.c: Likewise.
18855 * dse.c: Likewise.
18856 * dumpfile.c: Likewise.
18857 * dumpfile.h: Likewise.
18858 * dwarf2asm.c: Likewise.
18859 * dwarf2cfi.c: Likewise.
18860 * dwarf2out.c: Likewise.
18861 * emit-rtl.c: Likewise.
18862 * et-forest.c: Likewise.
18863 * except.c: Likewise.
18864 * explow.c: Likewise.
18865 * expmed.c: Likewise.
18866 * expr.c: Likewise.
18867 * final.c: Likewise.
18868 * fixed-value.c: Likewise.
18869 * fold-const.c: Likewise.
18870 * function.c: Likewise.
18871 * fwprop.c: Likewise.
18872 * gcc-plugin.h: Likewise.
18873 * gcse.c: Likewise.
18874 * generic-match-head.c: Likewise.
18875 * ggc-page.c: Likewise.
18876 * gimple-builder.c: Likewise.
18877 * gimple-expr.c: Likewise.
18878 * gimple-fold.c: Likewise.
18879 * gimple-iterator.c: Likewise.
18880 * gimple-low.c: Likewise.
18881 * gimple-match-head.c: Likewise.
18882 * gimple-pretty-print.c: Likewise.
18883 * gimple-ssa-isolate-paths.c: Likewise.
18884 * gimple-ssa-strength-reduction.c: Likewise.
18885 * gimple-streamer-in.c: Likewise.
18886 * gimple-streamer-out.c: Likewise.
18887 * gimple-streamer.h: Likewise.
18888 * gimple-walk.c: Likewise.
18889 * gimple.c: Likewise.
18890 * gimplify-me.c: Likewise.
18891 * gimplify.c: Likewise.
18892 * godump.c: Likewise.
18893 * graph.c: Likewise.
18894 * graphite-blocking.c: Likewise.
18895 * graphite-dependences.c: Likewise.
18896 * graphite-interchange.c: Likewise.
18897 * graphite-isl-ast-to-gimple.c: Likewise.
18898 * graphite-optimize-isl.c: Likewise.
18899 * graphite-poly.c: Likewise.
18900 * graphite-scop-detection.c: Likewise.
18901 * graphite-sese-to-poly.c: Likewise.
18902 * graphite.c: Likewise.
18903 * haifa-sched.c: Likewise.
18904 * hw-doloop.c: Likewise.
18905 * ifcvt.c: Likewise.
18906 * init-regs.c: Likewise.
18907 * input.c: Likewise.
18908 * internal-fn.c: Likewise.
18909 * ipa-chkp.c: Likewise.
18910 * ipa-comdats.c: Likewise.
18911 * ipa-cp.c: Likewise.
18912 * ipa-devirt.c: Likewise.
18913 * ipa-icf-gimple.c: Likewise.
18914 * ipa-icf.c: Likewise.
18915 * ipa-inline-analysis.c: Likewise.
18916 * ipa-inline-transform.c: Likewise.
18917 * ipa-inline.c: Likewise.
18918 * ipa-polymorphic-call.c: Likewise.
18919 * ipa-profile.c: Likewise.
18920 * ipa-prop.c: Likewise.
18921 * ipa-pure-const.c: Likewise.
18922 * ipa-ref.c: Likewise.
18923 * ipa-reference.c: Likewise.
18924 * ipa-split.c: Likewise.
18925 * ipa-utils.c: Likewise.
18926 * ipa-visibility.c: Likewise.
18927 * ipa.c: Likewise.
18928 * ira-build.c: Likewise.
18929 * ira-color.c: Likewise.
18930 * ira-conflicts.c: Likewise.
18931 * ira-costs.c: Likewise.
18932 * ira-emit.c: Likewise.
18933 * ira-lives.c: Likewise.
18934 * ira.c: Likewise.
18935 * jump.c: Likewise.
18936 * langhooks.c: Likewise.
18937 * lcm.c: Likewise.
18938 * loop-doloop.c: Likewise.
18939 * loop-init.c: Likewise.
18940 * loop-invariant.c: Likewise.
18941 * loop-iv.c: Likewise.
18942 * loop-unroll.c: Likewise.
18943 * lower-subreg.c: Likewise.
18944 * lra-assigns.c: Likewise.
18945 * lra-coalesce.c: Likewise.
18946 * lra-constraints.c: Likewise.
18947 * lra-eliminations.c: Likewise.
18948 * lra-lives.c: Likewise.
18949 * lra-remat.c: Likewise.
18950 * lra-spills.c: Likewise.
18951 * lra.c: Likewise.
18952 * lto-cgraph.c: Likewise.
18953 * lto-compress.c: Likewise.
18954 * lto-opts.c: Likewise.
18955 * lto-section-in.c: Likewise.
18956 * lto-section-out.c: Likewise.
18957 * lto-streamer-in.c: Likewise.
18958 * lto-streamer-out.c: Likewise.
18959 * lto-streamer.c: Likewise.
18960 * mcf.c: Likewise.
18961 * mode-switching.c: Likewise.
18962 * modulo-sched.c: Likewise.
18963 * omega.c: Likewise.
18964 * omp-low.c: Likewise.
18965 * optabs.c: Likewise.
18966 * opts-global.c: Likewise.
18967 * opts.h: Likewise.
18968 * passes.c: Likewise.
18969 * plugin.c: Likewise.
18970 * postreload-gcse.c: Likewise.
18971 * postreload.c: Likewise.
18972 * predict.c: Likewise.
18973 * pretty-print.h: Likewise.
18974 * print-rtl.c: Likewise.
18975 * print-tree.c: Likewise.
18976 * profile.c: Likewise.
18977 * real.c: Likewise.
18978 * realmpfr.c: Likewise.
18979 * recog.c: Likewise.
18980 * ree.c: Likewise.
18981 * reg-stack.c: Likewise.
18982 * regcprop.c: Likewise.
18983 * reginfo.c: Likewise.
18984 * regrename.c: Likewise.
18985 * regstat.c: Likewise.
18986 * reload.c: Likewise.
18987 * reload1.c: Likewise.
18988 * reorg.c: Likewise.
18989 * resource.c: Likewise.
18990 * rtl-chkp.c: Likewise.
18991 * rtl-error.c: Likewise.
18992 * rtlanal.c: Likewise.
18993 * rtlhooks.c: Likewise.
18994 * sanopt.c: Likewise.
18995 * sched-deps.c: Likewise.
18996 * sched-ebb.c: Likewise.
18997 * sched-rgn.c: Likewise.
18998 * sched-vis.c: Likewise.
18999 * sdbout.c: Likewise.
19000 * sel-sched-dump.c: Likewise.
19001 * sel-sched-ir.c: Likewise.
19002 * sel-sched.c: Likewise.
19003 * sese.c: Likewise.
19004 * shrink-wrap.c: Likewise.
19005 * simplify-rtx.c: Likewise.
19006 * stack-ptr-mod.c: Likewise.
19007 * statistics.c: Likewise.
19008 * stmt.c: Likewise.
19009 * stor-layout.c: Likewise.
19010 * store-motion.c: Likewise.
19011 * streamer-hooks.c: Likewise.
19012 * stringpool.c: Likewise.
19013 * symtab.c: Likewise.
19014 * target-globals.c: Likewise.
19015 * targhooks.c: Likewise.
19016 * toplev.c: Likewise.
19017 * tracer.c: Likewise.
19018 * trans-mem.c: Likewise.
19019 * tree-affine.c: Likewise.
19020 * tree-browser.c: Likewise.
19021 * tree-call-cdce.c: Likewise.
19022 * tree-cfg.c: Likewise.
19023 * tree-cfgcleanup.c: Likewise.
19024 * tree-chkp-opt.c: Likewise.
19025 * tree-chkp.c: Likewise.
19026 * tree-chrec.c: Likewise.
19027 * tree-complex.c: Likewise.
19028 * tree-data-ref.c: Likewise.
19029 * tree-dfa.c: Likewise.
19030 * tree-diagnostic.c: Likewise.
19031 * tree-dump.c: Likewise.
19032 * tree-eh.c: Likewise.
19033 * tree-emutls.c: Likewise.
19034 * tree-if-conv.c: Likewise.
19035 * tree-inline.c: Likewise.
19036 * tree-into-ssa.c: Likewise.
19037 * tree-iterator.c: Likewise.
19038 * tree-loop-distribution.c: Likewise.
19039 * tree-nested.c: Likewise.
19040 * tree-nrv.c: Likewise.
19041 * tree-object-size.c: Likewise.
19042 * tree-outof-ssa.c: Likewise.
19043 * tree-parloops.c: Likewise.
19044 * tree-phinodes.c: Likewise.
19045 * tree-predcom.c: Likewise.
19046 * tree-pretty-print.c: Likewise.
19047 * tree-profile.c: Likewise.
19048 * tree-scalar-evolution.c: Likewise.
19049 * tree-sra.c: Likewise.
19050 * tree-ssa-address.c: Likewise.
19051 * tree-ssa-alias.c: Likewise.
19052 * tree-ssa-ccp.c: Likewise.
19053 * tree-ssa-coalesce.c: Likewise.
19054 * tree-ssa-copy.c: Likewise.
19055 * tree-ssa-copyrename.c: Likewise.
19056 * tree-ssa-dce.c: Likewise.
19057 * tree-ssa-dom.c: Likewise.
19058 * tree-ssa-dse.c: Likewise.
19059 * tree-ssa-forwprop.c: Likewise.
19060 * tree-ssa-ifcombine.c: Likewise.
19061 * tree-ssa-live.c: Likewise.
19062 * tree-ssa-loop-ch.c: Likewise.
19063 * tree-ssa-loop-im.c: Likewise.
19064 * tree-ssa-loop-ivcanon.c: Likewise.
19065 * tree-ssa-loop-ivopts.c: Likewise.
19066 * tree-ssa-loop-manip.c: Likewise.
19067 * tree-ssa-loop-niter.c: Likewise.
19068 * tree-ssa-loop-prefetch.c: Likewise.
19069 * tree-ssa-loop-unswitch.c: Likewise.
19070 * tree-ssa-loop.c: Likewise.
19071 * tree-ssa-math-opts.c: Likewise.
19072 * tree-ssa-operands.c: Likewise.
19073 * tree-ssa-phiopt.c: Likewise.
19074 * tree-ssa-phiprop.c: Likewise.
19075 * tree-ssa-pre.c: Likewise.
19076 * tree-ssa-propagate.c: Likewise.
19077 * tree-ssa-reassoc.c: Likewise.
19078 * tree-ssa-sccvn.c: Likewise.
19079 * tree-ssa-scopedtables.c: Likewise.
19080 * tree-ssa-sink.c: Likewise.
19081 * tree-ssa-strlen.c: Likewise.
19082 * tree-ssa-structalias.c: Likewise.
19083 * tree-ssa-tail-merge.c: Likewise.
19084 * tree-ssa-ter.c: Likewise.
19085 * tree-ssa-threadedge.c: Likewise.
19086 * tree-ssa-threadupdate.c: Likewise.
19087 * tree-ssa-uncprop.c: Likewise.
19088 * tree-ssa-uninit.c: Likewise.
19089 * tree-ssa.c: Likewise.
19090 * tree-ssanames.c: Likewise.
19091 * tree-stdarg.c: Likewise.
19092 * tree-streamer-in.c: Likewise.
19093 * tree-streamer-out.c: Likewise.
19094 * tree-streamer.c: Likewise.
19095 * tree-switch-conversion.c: Likewise.
19096 * tree-tailcall.c: Likewise.
19097 * tree-vect-data-refs.c: Likewise.
19098 * tree-vect-generic.c: Likewise.
19099 * tree-vect-loop-manip.c: Likewise.
19100 * tree-vect-loop.c: Likewise.
19101 * tree-vect-patterns.c: Likewise.
19102 * tree-vect-slp.c: Likewise.
19103 * tree-vect-stmts.c: Likewise.
19104 * tree-vectorizer.c: Likewise.
19105 * tree-vrp.c: Likewise.
19106 * tree.c: Likewise.
19107 * tsan.c: Likewise.
19108 * ubsan.c: Likewise.
19109 * valtrack.c: Likewise.
19110 * value-prof.c: Likewise.
19111 * var-tracking.c: Likewise.
19112 * varasm.c: Likewise.
19113 * varpool.c: Likewise.
19114 * vmsdbgout.c: Likewise.
19115 * vtable-verify.c: Likewise.
19116 * web.c: Likewise.
19117 * wide-int.cc: Likewise.
19118 * xcoffout.c: Likewise.
19119 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
19120 * common/common-targhooks.c: Likewise.
19121 * config/aarch64/aarch64-builtins.c: Likewise.
19122 * config/aarch64/aarch64.c: Likewise.
19123 * config/alpha/alpha.c: Likewise.
19124 * config/arc/arc.c: Likewise.
19125 * config/arm/aarch-common.c: Likewise.
19126 * config/arm/arm-builtins.c: Likewise.
19127 * config/arm/arm-c.c: Likewise.
19128 * config/arm/arm.c: Likewise.
19129 * config/avr/avr-c.c: Likewise.
19130 * config/avr/avr-log.c: Likewise.
19131 * config/avr/avr.c: Likewise.
19132 * config/bfin/bfin.c: Likewise.
19133 * config/c6x/c6x.c: Likewise.
19134 * config/cr16/cr16.c: Likewise.
19135 * config/cris/cris.c: Likewise.
19136 * config/darwin-c.c: Likewise.
19137 * config/darwin.c: Likewise.
19138 * config/default-c.c: Likewise.
19139 * config/epiphany/epiphany.c: Likewise.
19140 * config/epiphany/mode-switch-use.c: Likewise.
19141 * config/epiphany/resolve-sw-modes.c: Likewise.
19142 * config/fr30/fr30.c: Likewise.
19143 * config/frv/frv.c: Likewise.
19144 * config/ft32/ft32.c: Likewise.
19145 * config/glibc-c.c: Likewise.
19146 * config/h8300/h8300.c: Likewise.
19147 * config/i386/i386-c.c: Likewise.
19148 * config/i386/i386.c: Likewise.
19149 * config/i386/msformat-c.c: Likewise.
19150 * config/i386/winnt-cxx.c: Likewise.
19151 * config/i386/winnt-stubs.c: Likewise.
19152 * config/i386/winnt.c: Likewise.
19153 * config/ia64/ia64-c.c: Likewise.
19154 * config/ia64/ia64.c: Likewise.
19155 * config/iq2000/iq2000.c: Likewise.
19156 * config/lm32/lm32.c: Likewise.
19157 * config/m32c/m32c-pragma.c: Likewise.
19158 * config/m32c/m32c.c: Likewise.
19159 * config/m32r/m32r.c: Likewise.
19160 * config/m68k/m68k.c: Likewise.
19161 * config/mcore/mcore.c: Likewise.
19162 * config/mep/mep-pragma.c: Likewise.
19163 * config/mep/mep.c: Likewise.
19164 * config/microblaze/microblaze-c.c: Likewise.
19165 * config/microblaze/microblaze.c: Likewise.
19166 * config/mips/mips.c: Likewise.
19167 * config/mmix/mmix.c: Likewise.
19168 * config/mn10300/mn10300.c: Likewise.
19169 * config/moxie/moxie.c: Likewise.
19170 * config/msp430/msp430-c.c: Likewise.
19171 * config/msp430/msp430.c: Likewise.
19172 * config/nds32/nds32-cost.c: Likewise.
19173 * config/nds32/nds32-fp-as-gp.c: Likewise.
19174 * config/nds32/nds32-intrinsic.c: Likewise.
19175 * config/nds32/nds32-isr.c: Likewise.
19176 * config/nds32/nds32-md-auxiliary.c: Likewise.
19177 * config/nds32/nds32-memory-manipulation.c: Likewise.
19178 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19179 * config/nds32/nds32-predicates.c: Likewise.
19180 * config/nds32/nds32.c: Likewise.
19181 * config/nios2/nios2.c: Likewise.
19182 * config/nvptx/nvptx.c: Likewise.
19183 * config/pa/pa.c: Likewise.
19184 * config/pdp11/pdp11.c: Likewise.
19185 * config/rl78/rl78-c.c: Likewise.
19186 * config/rl78/rl78.c: Likewise.
19187 * config/rs6000/rs6000-c.c: Likewise.
19188 * config/rs6000/rs6000.c: Likewise.
19189 * config/rx/rx.c: Likewise.
19190 * config/s390/s390-c.c: Likewise.
19191 * config/s390/s390.c: Likewise.
19192 * config/sh/sh-c.c: Likewise.
19193 * config/sh/sh-mem.cc: Likewise.
19194 * config/sh/sh.c: Likewise.
19195 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19196 * config/sh/sh_treg_combine.cc: Likewise.
19197 * config/sol2-c.c: Likewise.
19198 * config/sol2-cxx.c: Likewise.
19199 * config/sol2-stubs.c: Likewise.
19200 * config/sol2.c: Likewise.
19201 * config/sparc/sparc-c.c: Likewise.
19202 * config/sparc/sparc.c: Likewise.
19203 * config/spu/spu-c.c: Likewise.
19204 * config/spu/spu.c: Likewise.
19205 * config/stormy16/stormy16.c: Likewise.
19206 * config/tilegx/mul-tables.c: Likewise.
19207 * config/tilegx/tilegx-c.c: Likewise.
19208 * config/tilegx/tilegx.c: Likewise.
19209 * config/tilepro/mul-tables.c: Likewise.
19210 * config/tilepro/tilepro-c.c: Likewise.
19211 * config/tilepro/tilepro.c: Likewise.
19212 * config/v850/v850-c.c: Likewise.
19213 * config/v850/v850.c: Likewise.
19214 * config/vax/vax.c: Likewise.
19215 * config/visium/visium.c: Likewise.
19216 * config/vms/vms-c.c: Likewise.
19217 * config/vms/vms.c: Likewise.
19218 * config/vxworks.c: Likewise.
19219 * config/winnt-c.c: Likewise.
19220 * config/xtensa/xtensa.c: Likewise.
19221
19222 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
19223
19224 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19225 function.
19226 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19227
19228 2015-06-17 Richard Biener <rguenther@suse.de>
19229
19230 PR tree-optimization/66251
19231 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19232 stmts for SLP strided stores.
19233
19234 Revert
19235 2015-05-22 Richard Biener <rguenther@suse.de>
19236
19237 PR tree-optimization/66251
19238 * tree-vect-stmts.c (vectorizable_conversion): Properly
19239 set STMT_VINFO_VEC_STMT even for the SLP case.
19240
19241 2015-05-26 Michael Matz <matz@suse.de>
19242
19243 PR middle-end/66251
19244 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19245 STMT_VINFO_VEC_STMT, also with SLP.
19246
19247 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
19248
19249 PR target/56766
19250 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19251 (*avx_addsubv4df3_1s): Ditto.
19252 (*sse3_addsubv2df3_1): Ditto.
19253 (*sse3_addsubv2df3_1s): Ditto.
19254 (*avx_addsubv8sf3_1): Ditto.
19255 (*avx_addsubv8sf3_1s): Ditto.
19256 (*sse3_addsubv4sf3_1): Ditto.
19257 (*sse3_addsubv4sf3_1s): Ditto.
19258
19259 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
19260
19261 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19262 (SYSROOT_SUFFIX_SPEC): Update.
19263 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19264 (STARTFILE_PREFIX_SPEC): Update.
19265 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19266 (MULTILIB_REQUIRED): New.
19267 (MULTILIB_OSDIRNAMES): New.
19268 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19269 (MULTILIB_REQUIRED): New.
19270 (MULTILIB_OSDIRNAMES): New.
19271
19272 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
19273
19274 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19275 * config/aarch64/aarch64-options-extensions.def: Update "fP",
19276 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
19277 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19278 (AARCH64_FL_PAN): New.
19279 (AARCH64_FL_LOR): New.
19280 (AARCH64_FL_RDMA): New.
19281 (AARCH64_FL_FOR_ARCH8_1): New.
19282 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19283 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19284
19285 2015-06-16 Martin Liska <mliska@suse.cz>
19286
19287 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19288 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19289 guard.
19290
19291 2015-06-16 Richard Biener <rguenther@suse.de>
19292
19293 * tree-vect-stmts.c (vectorizable_store): Adjust.
19294 (vectorizable_load): Likewise.
19295 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19296 Simplify.
19297 (vect_create_data_ref_ptr): Likewise.
19298 (bump_vector_ptr): Adjust.
19299
19300 2015-06-16 Richard Biener <rguenther@suse.de>
19301
19302 * tree-vect-stmts.c (vectorizable_load): Properly start loads
19303 with the first element if this is grouped loads.
19304
19305 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
19306
19307 * config/arm/arm-protos.h (struct tune_params): Rename
19308 log_op_non_sc to log_op_non_short_circuit, and rename enum
19309 values to expand SC to SHORT_CIRCUIT.
19310 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19311 to LOG_OP_NON_SHORT_CIRCUIT.
19312 (arm_fastmul_tune):Likewise
19313 (arm_strongarm_tune): Likewise.
19314 (arm_xscale_tune): Likewise.
19315 (arm_9e_tune): Likewise.
19316 (arm_marvell_pj4_tune): Likewise.
19317 (arm_v6t2_tune): Likewise.
19318 (arm_cortex_tune): Likewise.
19319 (arm_cortex_a8_tune): Likewise.
19320 (arm_cortex_a7_tune): Likewise.
19321 (arm_cortex_a15_tune): Likewise.
19322 (arm_cortex_a53_tune): Likewise.
19323 (arm_cortex_a57_tune): Likewise.
19324 (arm_xgene1_tune): Likewise.
19325 (arm_cortex_a5_tune): Likewise.
19326 (arm_cortex_a9_tune): Likewise.
19327 (arm_cortex_a12_tune): Likewise.
19328 (arm_v7m_tune): Likewise.
19329 (arm_cortex_m7_tune): Likewise.
19330 (arm_v6m_tune): Likewise.
19331 (arm_fa726te_tune): Likewise.
19332
19333 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
19334
19335 * altivec.md: Delete UNSPEC_VMLADDUHM.
19336 (mulv4si3_p8): New pattern.
19337 (mulv4si3): Use it for POWER8.
19338 (mulv8hi3): Use vmladduhm with zero addend.
19339 (altivec_vmladduhm): Descriptive RTL.
19340
19341 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
19342
19343 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
19344 to use neon_move instead of mov_imm.
19345 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
19346 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
19347
19348 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
19349 aarch64_float_const_zero_rtx_p check before TFmode check.
19350 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
19351 an fp zero.
19352 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
19353 code and attributes to match. Change condition from register_operand
19354 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
19355 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
19356 to store2.
19357
19358 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
19359
19360 PR debug/66535
19361 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
19362 there is no parent.
19363
19364 2015-06-14 Shiva Chen <shiva0217@gmail.com>
19365
19366 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19367 HOST_WIDE_INT parameter.
19368
19369 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
19370
19371 PR ipa/66181
19372 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19373 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19374 TYPE_NO_FORCE_BLK.
19375 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19376
19377 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
19378
19379 * rtl.h (classify_insn): Declare.
19380 * emit-rtl.c (classify_insn): Move to...
19381 * rtl.c: ...here and add generator support.
19382 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19383 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19384 * genemit.c (gen_emit_seq): New function.
19385 (gen_expand, gen_split): Use it.
19386
19387 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
19388
19389 * tree.c (make_vector_stat): Fix comment to state that the
19390 function returns a VECTOR_CST.
19391
19392 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
19393
19394 * gensupport.h (add_implicit_parallel): Declare.
19395 * genrecog.c (add_implicit_parallel): Move to...
19396 * gensupport.c (add_implicit_parallel): ...here.
19397 (process_one_cond_exec): Use it.
19398 * genemit.c (gen_insn): Likewise.
19399
19400 2015-06-13 Iain Sandoe <iain@codesourcery.com>
19401
19402 PR bootstrap/66448
19403 * passes.c (rest_of_decl_compilation): Do not register globals for
19404 early debug if they are declared in built-ins.
19405
19406 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
19407
19408 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19409
19410 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19411
19412 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19413 manually swapping.
19414 (noce_try_cmove_arith): Likewise.
19415 (noce_get_alt_condition): Likewise.
19416
19417 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19418
19419 * common/config/i386/i386-common.c
19420 (OPTION_MASK_ISA_MWAITX_SET): New.
19421 (ix86_handle_option): Handle mwaitx.
19422 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19423 (x86_64-*-*): Likewise.
19424 * config/i386/mwaitxintrin.h: New header.
19425 * config/i386/cpuid.h (bit_MWAITX): Define.
19426 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19427 MWAITX support.
19428 * config/i386/i386.opt (mwaitx): New.
19429 * config/i386/i386-builtin-types.def
19430 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19431 * config/i386/i386-c.c: Define __MWAITX__ if needed.
19432 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19433 (PTA_MWAITX): New.
19434 (ix86_option_override_internal): Handle new option.
19435 (processor_alias_table): Added PTA_MWAITX.
19436 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19437 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19438 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19439 IX86_BUILTIN_MONITORX built-ins.
19440 * config/i386/i386.h (TARGET_MWAITX): New.
19441 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19442 UNSPEC_MONITORX.
19443 (mwaitx): New pattern.
19444 (monitorx_<mode>): New pattern.
19445 * config/i386/x86intrin.h: Include mwaitxintrin.h.
19446 * doc/extend.texi: Document monitorx and mwaitx builtins.
19447 * doc/invoke.texi: Document -mmwaitx option.
19448
19449 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
19450
19451 * emit-rtl.c (need_atomic_barrier_p): Mask model with
19452 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
19453
19454 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19455
19456 * dbxout.c (xcoff_debug_hooks): Provide a function for
19457 register_main_translation_unit hook.
19458
19459 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19460
19461 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19462 variants cases from switch.
19463 (rs6000_post_atomic_barrier): Same.
19464 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19465 (rs6000_expand_atomic_exchange): Same.
19466 (rs6000_expand_atomic_op): Same.
19467 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19468 SYNC variants cases from switch.
19469 (atomic_load): Same.
19470 (atomic_store): Same.
19471
19472 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
19473
19474 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19475 CONST_INT for goto.
19476
19477 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
19478
19479 PR bootstrap/66448
19480 * dwarf2out.c (check_die): Check for common duplicate attributes.
19481 (add_location_or_const_value_attribute): Do not add duplicate
19482 attributes.
19483 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19484 time around.
19485 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19486 (gen_type_die_with_usage): Call check_die.
19487 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19488
19489 2015-06-11 Jason Merrill <jason@redhat.com>
19490
19491 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19492 dies.
19493
19494 2015-06-11 Marek Polacek <polacek@redhat.com>
19495
19496 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19497
19498 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
19499
19500 PR bootstrap/66252
19501 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19502 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19503 (*addx_extend_sp32): Fix pasto.
19504 (*subx_extend): Rename into...
19505 (*subx_extend_sp32): ...this.
19506 (*adddi3_extend_sp32): Add earlyclobber.
19507 (*subdi3_insn_sp32): Likewise.
19508 (*subdi3_extend_sp32): Likewise.
19509 (*and_not_di_sp32): Likewise.
19510 (*or_not_di_sp32): Likewise.
19511 (*xor_not_di_sp32): Likewise.
19512 (*negdi2_sp32): Likewise.
19513 (*one_cmpldi2_sp32): Likewise.
19514
19515 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
19516
19517 * debug.h (struct gcc_debug_hooks): Add a
19518 register_main_translation_unit hook.
19519 * debug.c (do_nothing_debug_hooks): Provide a function for this
19520 new hook.
19521 * dbxout.c (dbx_debug_hooks): Likewise.
19522 * sdbout.c (sdb_debug_hooks): Likewise.
19523 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19524 * dwarf2out.c (main_translation_unit): New global variable.
19525 (dwarf2out_register_main_translation_unit): New function
19526 implementing the new hook.
19527 (dwarf2_debug_hooks): Assign
19528 dwarf2out_register_main_translation_unit to this new hook.
19529 (dwarf2out_init): Associate any main translation unit to
19530 comp_unit_die ().
19531
19532 2015-06-11 Marek Polacek <polacek@redhat.com>
19533
19534 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19535
19536 2015-06-11 Marek Polacek <polacek@redhat.com>
19537
19538 * match.pd: Use single_use throughout.
19539
19540 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19541
19542 * config/arm/arm.c (arm_option_params_internal): When optimising
19543 for speed set max_insns_skipped when arm_restrict_it.
19544
19545 2015-06-11 Christian Bruel <christian.bruel@st.com>
19546
19547 PR target/52144
19548 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19549 macros in ...
19550 (arm_cpu_builtins): New function.
19551 (arm_pragma_target_parse): Call arm_cpu_builtins.
19552 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19553 (arm_register_target_pragmas): Likewise.
19554 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19555 Call arm_register_target_pragmas.
19556 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19557 (arm_pragma_target_parse): Likewise.
19558
19559 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
19560
19561 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19562 of the second operand.
19563
19564 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
19565
19566 PR target/66473
19567 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19568 to prepare mask operand for AVX512 modes.
19569
19570 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19571
19572 PR target/66474
19573 * doc/md.texi (Machine Constraints): Document that on the PowerPC
19574 if you use a constraint that targets a VSX register, you must use
19575 %x<n> in the template.
19576
19577 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
19578
19579 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19580 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19581 (define_insn "trap"): New definition.
19582
19583 2015-06-10 Richard Biener <rguenther@suse.de>
19584
19585 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19586 out from ...
19587 (vect_supported_load_permutation_p): ... here. Handle
19588 supportable permutations in reductions.
19589 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19590 for vectorizing strided group loads.
19591
19592 2015-06-10 Jakub Jelinek <jakub@redhat.com>
19593
19594 PR target/66470
19595 * config/i386/i386.c (ix86_split_long_move): For collisions
19596 involving direct tls segment refs, move the UNSPEC_TP possibly
19597 wrapped in ZERO_EXTEND out of the address for lea, to each of
19598 the memory loads.
19599
19600 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19601
19602 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19603 dmb sy. Adjust tabs.
19604
19605 2015-06-10 Tom de Vries <tom@codesourcery.com>
19606
19607 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19608
19609 2015-06-10 Martin Liska <mliska@suse.cz>
19610
19611 PR bootstrap/66471
19612 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19613 all enum values in mem_alloc_origin.
19614 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19615 name.
19616 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19617 * bitmap.c (bitmap_register): Likewise.
19618 (dump_bitmap_statistics): Likewise.
19619 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19620 (ggc_record_overhead): Likewise.
19621 * hash-map.h: Likewise.
19622 * hash-set.h: Likewise.
19623 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19624 * hash-table.h: Likewise.
19625 * vec.c (vec_prefix::register_overhead): Likewise.
19626 (vec_prefix::release_overhead): Likewise.
19627 (dump_vec_loc_statistics): Likewise.
19628
19629 2015-06-09 Christian Bruel <christian.bruel@st.com>
19630
19631 PR target/52144
19632 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19633 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19634 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19635 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19636 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19637 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19638 (arm_valid_target_attribute_p): Likewise.
19639 (arm_set_current_function, arm_can_inline_p): Likewise.
19640 (arm_valid_target_attribute_rec): Likewise.
19641 (arm_previous_fndecl): New variable.
19642 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19643 (TARGET_CAN_INLINE_P): Define.
19644 (arm_asm_trampoline_template): Emit mode.
19645 (arm_file_start): Don't set unified syntax.
19646 (arm_declare_function_name): Set unified syntax and mode.
19647 (arm_option_override): Init target_option_default_node.
19648 and target_option_current_node.
19649 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19650 (*call_symbol): Likewise.
19651 * doc/extend.texi: Document ARM/Thumb target attribute.
19652 * doc/invoke.texi: Likewise.
19653
19654 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19655
19656 Revert:
19657 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19658 PR rtl-optimization/64164
19659 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19660 * tree-ssa-copyrename.c: Removed.
19661 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19662 -ftree-coalesce-vars.
19663 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19664 * common.opt (ftree-copyrename): Ignore.
19665 (ftree-coalesce-inlined-vars): Likewise.
19666 * doc/invoke.texi: Remove the ignored options above.
19667 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19668 * tree-ssa-coalesce.h: ... here.
19669 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19670 headers required by it.
19671 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19672 across variables when flag_tree_coalesce_vars. Check register
19673 use and promoted modes to allow coalescing. Moved to
19674 tree-ssa-coalesce.c.
19675 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19676 with its member functions to tree-ssa-coalesce.c.
19677 (var_map_base_init): Likewise. Renamed to
19678 compute_samebase_partition_bases.
19679 (partition_view_normal): Drop want_bases parameter.
19680 (partition_view_bitmap): Likewise.
19681 * tree-ssa-live.h: Adjust declarations.
19682 * tree-ssa-coalesce.c: Include explow.h.
19683 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19684 default defs at the entry point.
19685 (dump_part_var_map): New.
19686 (compute_optimized_partition_bases): New, called by...
19687 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19688 of compute_samebase_partition_bases. Adjust.
19689 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19690 * cfgexpand.c (leader_merge): New.
19691 (get_rtl_for_parm_ssa_default_def): New.
19692 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19693 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19694 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19695 redundant MEM attr setting.
19696 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19697 from...
19698 (expand_one_stack_var): ... this. New wrapper to check and
19699 skip already expanded SSA partitions.
19700 (record_alignment_for_reg_var): New, factored out of...
19701 (expand_one_var): ... this.
19702 (expand_one_ssa_partition): New.
19703 (adjust_one_expanded_partition_var): New.
19704 (expand_one_register_var): Check and skip already expanded SSA
19705 partitions.
19706 (expand_used_vars): Don't create DECLs for anonymous SSA
19707 names. Expand all SSA partitions, then adjust all SSA names.
19708 (pass::execute): Replace the loops that set
19709 SA.partition_to_pseudo from partition leaders and cleared
19710 DECL_RTL for multi-location variables, and that which used to
19711 rename vars and set attrs, with one that clears DECL_RTL and
19712 checks that PARMs and RESULTs default_defs match DECL_RTL.
19713 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19714 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19715 * explow.c (promote_ssa_mode): New.
19716 * explow.h (promote_ssa_mode): Declare.
19717 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19718 * function.c: Include cfgexpand.h.
19719 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19720 (use_register_for_parm_decl): Wrapper for the above to
19721 special-case the result_ptr.
19722 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19723 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19724 multiple locations.
19725 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19726 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19727 (assign_parm_setup_block): Prefer SSA-assigned location.
19728 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19729 if stack_parm is NULL.
19730 (assign_parm_setup_stack): Prefer SSA-assigned location.
19731 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19732 rtl before testing for pointer bounds. Special-case result_ptr.
19733 (expand_function_start): Maybe reset DECL_RTL of result.
19734 Prefer SSA-assigned location for result and static chain.
19735 Factor out DECL_RESULT and SET_DECL_RTL.
19736 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19737 anonymous SSA names. Use promote_ssa_mode.
19738 (get_temp_reg): Likewise.
19739 (remove_ssa_form): Adjust.
19740 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19741 and get its reg_usage for reg invalidation.
19742 (compute_bb_dataflow): Pass it insn.
19743 (emit_notes_in_bb): Likewise.
19744 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19745 fail assert on conversion between unsigned types.
19746
19747 2015-06-09 Tom de Vries <tom@codesourcery.com>
19748
19749 PR tree-optimization/65460
19750 * omp-low.c (expand_omp_target): Set parallelized_function on
19751 cgraph_node for child_fn.
19752
19753 2015-06-09 Tom de Vries <tom@codesourcery.com>
19754
19755 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19756 parallelized_function before add_new_function.
19757
19758 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
19759
19760 * gcc-plugin.h: Move decls to plugin.h and include it.
19761 * plugin.h: Relocate decls from gcc-plugin.h
19762 * ggc-page.c: Include required header files.
19763 * passes.c: Likewise.
19764 * cgraphunit.c: Likewise.
19765
19766 2015-06-09 Tom de Vries <tom@codesourcery.com>
19767
19768 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19769
19770 2015-06-09 Jason Merrill <jason@redhat.com>
19771
19772 PR bootstrap/66448
19773 * toplev.c (check_global_declaration): Don't warn about a clone.
19774
19775 2015-06-09 Marek Polacek <polacek@redhat.com>
19776
19777 PR tree-optimization/66299
19778 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19779 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19780 patterns.
19781
19782 2015-06-09 Richard Biener <rguenther@suse.de>
19783
19784 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19785 (vect_analyze_slp_instance): Instead do not falsely drop
19786 load permutations.
19787
19788 2015-06-09 Richard Biener <rguenther@suse.de>
19789
19790 PR middle-end/66423
19791 * match.pd: Handle A % (unsigned)(1 << B).
19792
19793 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
19794
19795 * varasm.c (output_object_block_htab): Remove.
19796 (output_object_block_compare): New.
19797 (output_object_blocks): Sort named object_blocks before outputting
19798 them.
19799
19800 2015-06-09 Richard Biener <rguenther@suse.de>
19801
19802 PR tree-optimization/66419
19803 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19804 consider GROUP_GAP when detecting a perfect subchain.
19805
19806 2015-06-09 Nick Clifton <nickc@redhat.com>
19807
19808 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19809 place read only data in the .frodata section.
19810
19811 2015-06-09 Shiva Chen <shiva0217@gmail.com>
19812
19813 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19814 (atomic_store<mode>): Likewise.
19815
19816 2015-06-09 Richard Biener <rguenther@suse.de>
19817
19818 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19819
19820 2015-06-09 Richard Biener <rguenther@suse.de>
19821
19822 PR middle-end/66413
19823 * tree-inline.c (insert_init_debug_bind): Unshare value.
19824
19825 2015-06-09 Richard Biener <rguenther@suse.de>
19826
19827 PR tree-optimization/66396
19828 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19829 Rename virtual operands.
19830
19831 2015-06-09 Tom de Vries <tom@codesourcery.com>
19832
19833 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19834 always return false.
19835
19836 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19837
19838 PR rtl-optimization/64164
19839 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19840 * tree-ssa-copyrename.c: Removed.
19841 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19842 -ftree-coalesce-vars.
19843 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19844 * common.opt (ftree-copyrename): Ignore.
19845 (ftree-coalesce-inlined-vars): Likewise.
19846 * doc/invoke.texi: Remove the ignored options above.
19847 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19848 * tree-ssa-coalesce.h: ... here.
19849 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19850 headers required by it.
19851 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19852 across variables when flag_tree_coalesce_vars. Check register
19853 use and promoted modes to allow coalescing. Moved to
19854 tree-ssa-coalesce.c.
19855 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19856 with its member functions to tree-ssa-coalesce.c.
19857 (var_map_base_init): Likewise. Renamed to
19858 compute_samebase_partition_bases.
19859 (partition_view_normal): Drop want_bases parameter.
19860 (partition_view_bitmap): Likewise.
19861 * tree-ssa-live.h: Adjust declarations.
19862 * tree-ssa-coalesce.c: Include explow.h.
19863 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19864 default defs at the entry point.
19865 (dump_part_var_map): New.
19866 (compute_optimized_partition_bases): New, called by...
19867 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19868 of compute_samebase_partition_bases. Adjust.
19869 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19870 * cfgexpand.c (leader_merge): New.
19871 (get_rtl_for_parm_ssa_default_def): New.
19872 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19873 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19874 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19875 redundant MEM attr setting.
19876 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19877 from...
19878 (expand_one_stack_var): ... this. New wrapper to check and
19879 skip already expanded SSA partitions.
19880 (record_alignment_for_reg_var): New, factored out of...
19881 (expand_one_var): ... this.
19882 (expand_one_ssa_partition): New.
19883 (adjust_one_expanded_partition_var): New.
19884 (expand_one_register_var): Check and skip already expanded SSA
19885 partitions.
19886 (expand_used_vars): Don't create DECLs for anonymous SSA
19887 names. Expand all SSA partitions, then adjust all SSA names.
19888 (pass::execute): Replace the loops that set
19889 SA.partition_to_pseudo from partition leaders and cleared
19890 DECL_RTL for multi-location variables, and that which used to
19891 rename vars and set attrs, with one that clears DECL_RTL and
19892 checks that PARMs and RESULTs default_defs match DECL_RTL.
19893 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19894 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19895 * explow.c (promote_ssa_mode): New.
19896 * explow.h (promote_ssa_mode): Declare.
19897 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19898 * function.c: Include cfgexpand.h.
19899 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19900 (use_register_for_parm_decl): Wrapper for the above to
19901 special-case the result_ptr.
19902 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19903 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19904 multiple locations.
19905 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19906 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19907 (assign_parm_setup_block): Prefer SSA-assigned location.
19908 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19909 if stack_parm is NULL.
19910 (assign_parm_setup_stack): Prefer SSA-assigned location.
19911 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19912 rtl before testing for pointer bounds. Special-case result_ptr.
19913 (expand_function_start): Maybe reset DECL_RTL of result.
19914 Prefer SSA-assigned location for result and static chain.
19915 Factor out DECL_RESULT and SET_DECL_RTL.
19916 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19917 anonymous SSA names. Use promote_ssa_mode.
19918 (get_temp_reg): Likewise.
19919 (remove_ssa_form): Adjust.
19920 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19921 and get its reg_usage for reg invalidation.
19922 (compute_bb_dataflow): Pass it insn.
19923 (emit_notes_in_bb): Likewise.
19924 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19925 fail assert on conversion between unsigned types.
19926
19927 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19928
19929 PR debug/58315
19930 * tree-inline.c (reset_debug_binding): New.
19931 (reset_debug_bindings): Likewise.
19932 (expand_call_inline): Call it.
19933
19934 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19935
19936 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19937 TYPE_STRING_FLAG.
19938
19939 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19940
19941 * lto-streamer-out.c (lto_output_location): Stream
19942 reserved locations correctly.
19943 * lto-streamer-in.c (lto_output_location): Likewise.
19944
19945 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
19946
19947 * coretypes.h: Include hash-table.h and hash-set.h for host files.
19948 * ggc.h: Don't include statistics.h>
19949 * hash-map.h: Remove all includes.
19950 * hash-set.h: Likewise.
19951 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19952 the include list. Remove <new>.
19953 * inchash.h: Remove all includes.
19954 * mem-stats.h: Likewise.
19955 * vec.h: No special processing for generators or ggc.
19956 * alias.c : Adjust include files.
19957 * alloc-pool.c : Likewise.
19958 * alloc-pool.h : Likewise.
19959 * asan.c : Likewise.
19960 * attribs.c : Likewise.
19961 * auto-inc-dec.c : Likewise.
19962 * auto-profile.c : Likewise.
19963 * bb-reorder.c : Likewise.
19964 * bitmap.c : Likewise.
19965 * bitmap.h : Likewise.
19966 * bt-load.c : Likewise.
19967 * builtins.c : Likewise.
19968 * caller-save.c : Likewise.
19969 * calls.c : Likewise.
19970 * ccmp.c : Likewise.
19971 * cfg.c : Likewise.
19972 * cfganal.c : Likewise.
19973 * cfgbuild.c : Likewise.
19974 * cfgcleanup.c : Likewise.
19975 * cfgexpand.c : Likewise.
19976 * cfghooks.c : Likewise.
19977 * cfgloop.c : Likewise.
19978 * cfgloop.h : Likewise.
19979 * cfgloopanal.c : Likewise.
19980 * cfgloopmanip.c : Likewise.
19981 * cfgrtl.c : Likewise.
19982 * cgraph.c : Likewise.
19983 * cgraphbuild.c : Likewise.
19984 * cgraphclones.c : Likewise.
19985 * cgraphunit.c : Likewise.
19986 * cilk-common.c : Likewise.
19987 * combine-stack-adj.c : Likewise.
19988 * combine.c : Likewise.
19989 * compare-elim.c : Likewise.
19990 * context.c : Likewise.
19991 * convert.c : Likewise.
19992 * coverage.c : Likewise.
19993 * cppbuiltin.c : Likewise.
19994 * cprop.c : Likewise.
19995 * cse.c : Likewise.
19996 * cselib.c : Likewise.
19997 * data-streamer-in.c : Likewise.
19998 * data-streamer-out.c : Likewise.
19999 * data-streamer.c : Likewise.
20000 * data-streamer.h : Likewise.
20001 * dbxout.c : Likewise.
20002 * dce.c : Likewise.
20003 * ddg.c : Likewise.
20004 * debug.c : Likewise.
20005 * df-core.c : Likewise.
20006 * df-problems.c : Likewise.
20007 * df-scan.c : Likewise.
20008 * df.h : Likewise.
20009 * dfp.c : Likewise.
20010 * dojump.c : Likewise.
20011 * dominance.c : Likewise.
20012 * domwalk.c : Likewise.
20013 * double-int.c : Likewise.
20014 * dse.c : Likewise.
20015 * dumpfile.c : Likewise.
20016 * dwarf2asm.c : Likewise.
20017 * dwarf2cfi.c : Likewise.
20018 * dwarf2out.c : Likewise.
20019 * emit-rtl.c : Likewise.
20020 * et-forest.c : Likewise.
20021 * except.c : Likewise.
20022 * except.h : Likewise.
20023 * explow.c : Likewise.
20024 * expmed.c : Likewise.
20025 * expr.c : Likewise.
20026 * final.c : Likewise.
20027 * fixed-value.c : Likewise.
20028 * fold-const.c : Likewise.
20029 * function.c : Likewise.
20030 * fwprop.c : Likewise.
20031 * gcc-plugin.h : Likewise.
20032 * gcc.c : Likewise.
20033 * gcse-common.c : Likewise.
20034 * gcse.c : Likewise.
20035 * genattrtab.c : Likewise.
20036 * genautomata.c : Likewise.
20037 * genconditions.c : Likewise.
20038 * genemit.c : Likewise.
20039 * generic-match-head.c : Likewise.
20040 * genextract.c : Likewise.
20041 * gengtype-state.c : Likewise.
20042 * gengtype.c : Likewise.
20043 * genhooks.c : Likewise.
20044 * genmatch.c : Likewise.
20045 * genmodes.c : Likewise.
20046 * genrecog.c : Likewise.
20047 * gensupport.c : Likewise.
20048 * ggc-common.c : Likewise.
20049 * ggc-internal.h : Likewise.
20050 * ggc-none.c : Likewise.
20051 * ggc-page.c : Likewise.
20052 * gimple-builder.c : Likewise.
20053 * gimple-expr.c : Likewise.
20054 * gimple-fold.c : Likewise.
20055 * gimple-iterator.c : Likewise.
20056 * gimple-low.c : Likewise.
20057 * gimple-match-head.c : Likewise.
20058 * gimple-pretty-print.c : Likewise.
20059 * gimple-ssa-isolate-paths.c : Likewise.
20060 * gimple-ssa-strength-reduction.c : Likewise.
20061 * gimple-ssa.h : Likewise.
20062 * gimple-streamer-in.c : Likewise.
20063 * gimple-streamer-out.c : Likewise.
20064 * gimple-streamer.h : Likewise.
20065 * gimple-walk.c : Likewise.
20066 * gimple.c : Likewise.
20067 * gimplify-me.c : Likewise.
20068 * gimplify.c : Likewise.
20069 * godump.c : Likewise.
20070 * graph.c : Likewise.
20071 * graphds.c : Likewise.
20072 * graphite-blocking.c : Likewise.
20073 * graphite-dependences.c : Likewise.
20074 * graphite-interchange.c : Likewise.
20075 * graphite-isl-ast-to-gimple.c : Likewise.
20076 * graphite-optimize-isl.c : Likewise.
20077 * graphite-poly.c : Likewise.
20078 * graphite-scop-detection.c : Likewise.
20079 * graphite-sese-to-poly.c : Likewise.
20080 * graphite.c : Likewise.
20081 * haifa-sched.c : Likewise.
20082 * hard-reg-set.h : Likewise.
20083 * hw-doloop.c : Likewise.
20084 * ifcvt.c : Likewise.
20085 * inchash.c : Likewise.
20086 * incpath.c : Likewise.
20087 * init-regs.c : Likewise.
20088 * input.c : Likewise.
20089 * internal-fn.c : Likewise.
20090 * ipa-chkp.c : Likewise.
20091 * ipa-comdats.c : Likewise.
20092 * ipa-cp.c : Likewise.
20093 * ipa-devirt.c : Likewise.
20094 * ipa-icf-gimple.c : Likewise.
20095 * ipa-icf.c : Likewise.
20096 * ipa-inline-analysis.c : Likewise.
20097 * ipa-inline-transform.c : Likewise.
20098 * ipa-inline.c : Likewise.
20099 * ipa-polymorphic-call.c : Likewise.
20100 * ipa-profile.c : Likewise.
20101 * ipa-prop.c : Likewise.
20102 * ipa-pure-const.c : Likewise.
20103 * ipa-ref.c : Likewise.
20104 * ipa-reference.c : Likewise.
20105 * ipa-split.c : Likewise.
20106 * ipa-utils.c : Likewise.
20107 * ipa-visibility.c : Likewise.
20108 * ipa.c : Likewise.
20109 * ira-build.c : Likewise.
20110 * ira-color.c : Likewise.
20111 * ira-conflicts.c : Likewise.
20112 * ira-costs.c : Likewise.
20113 * ira-emit.c : Likewise.
20114 * ira-lives.c : Likewise.
20115 * ira.c : Likewise.
20116 * jump.c : Likewise.
20117 * langhooks.c : Likewise.
20118 * lcm.c : Likewise.
20119 * libfuncs.h : Likewise.
20120 * lists.c : Likewise.
20121 * loop-doloop.c : Likewise.
20122 * loop-init.c : Likewise.
20123 * loop-invariant.c : Likewise.
20124 * loop-iv.c : Likewise.
20125 * loop-unroll.c : Likewise.
20126 * lower-subreg.c : Likewise.
20127 * lra-assigns.c : Likewise.
20128 * lra-coalesce.c : Likewise.
20129 * lra-constraints.c : Likewise.
20130 * lra-eliminations.c : Likewise.
20131 * lra-lives.c : Likewise.
20132 * lra-remat.c : Likewise.
20133 * lra-spills.c : Likewise.
20134 * lra.c : Likewise.
20135 * lto-cgraph.c : Likewise.
20136 * lto-compress.c : Likewise.
20137 * lto-opts.c : Likewise.
20138 * lto-section-in.c : Likewise.
20139 * lto-section-out.c : Likewise.
20140 * lto-streamer-in.c : Likewise.
20141 * lto-streamer-out.c : Likewise.
20142 * lto-streamer.c : Likewise.
20143 * lto-streamer.h : Likewise.
20144 * mcf.c : Likewise.
20145 * mode-switching.c : Likewise.
20146 * modulo-sched.c : Likewise.
20147 * omega.c : Likewise.
20148 * omp-low.c : Likewise.
20149 * optabs.c : Likewise.
20150 * opts-global.c : Likewise.
20151 * opts.h : Likewise.
20152 * passes.c : Likewise.
20153 * plugin.c : Likewise.
20154 * postreload-gcse.c : Likewise.
20155 * postreload.c : Likewise.
20156 * predict.c : Likewise.
20157 * print-rtl.c : Likewise.
20158 * print-tree.c : Likewise.
20159 * profile.c : Likewise.
20160 * read-md.c : Likewise.
20161 * read-md.h : Likewise.
20162 * read-rtl.c : Likewise.
20163 * real.c : Likewise.
20164 * realmpfr.c : Likewise.
20165 * recog.c : Likewise.
20166 * ree.c : Likewise.
20167 * reg-stack.c : Likewise.
20168 * regcprop.c : Likewise.
20169 * reginfo.c : Likewise.
20170 * regrename.c : Likewise.
20171 * regstat.c : Likewise.
20172 * reload.c : Likewise.
20173 * reload1.c : Likewise.
20174 * reorg.c : Likewise.
20175 * resource.c : Likewise.
20176 * rtl-chkp.c : Likewise.
20177 * rtl.c : Likewise.
20178 * rtl.h : Likewise.
20179 * rtlanal.c : Likewise.
20180 * rtlhash.c : Likewise.
20181 * rtlhash.h : Likewise.
20182 * rtlhooks.c : Likewise.
20183 * sanopt.c : Likewise.
20184 * sched-deps.c : Likewise.
20185 * sched-ebb.c : Likewise.
20186 * sched-rgn.c : Likewise.
20187 * sched-vis.c : Likewise.
20188 * sdbout.c : Likewise.
20189 * sel-sched-dump.c : Likewise.
20190 * sel-sched-ir.c : Likewise.
20191 * sel-sched-ir.h : Likewise.
20192 * sel-sched.c : Likewise.
20193 * sese.c : Likewise.
20194 * shrink-wrap.c : Likewise.
20195 * shrink-wrap.h : Likewise.
20196 * simplify-rtx.c : Likewise.
20197 * stack-ptr-mod.c : Likewise.
20198 * statistics.c : Likewise.
20199 * stmt.c : Likewise.
20200 * stor-layout.c : Likewise.
20201 * store-motion.c : Likewise.
20202 * stringpool.c : Likewise.
20203 * symtab.c : Likewise.
20204 * target-globals.c : Likewise.
20205 * targhooks.c : Likewise.
20206 * tlink.c : Likewise.
20207 * toplev.c : Likewise.
20208 * tracer.c : Likewise.
20209 * trans-mem.c : Likewise.
20210 * tree-affine.c : Likewise.
20211 * tree-affine.h : Likewise.
20212 * tree-browser.c : Likewise.
20213 * tree-call-cdce.c : Likewise.
20214 * tree-cfg.c : Likewise.
20215 * tree-cfgcleanup.c : Likewise.
20216 * tree-chkp-opt.c : Likewise.
20217 * tree-chkp.c : Likewise.
20218 * tree-chrec.c : Likewise.
20219 * tree-complex.c : Likewise.
20220 * tree-data-ref.c : Likewise.
20221 * tree-dfa.c : Likewise.
20222 * tree-diagnostic.c : Likewise.
20223 * tree-dump.c : Likewise.
20224 * tree-eh.c : Likewise.
20225 * tree-eh.h : Likewise.
20226 * tree-emutls.c : Likewise.
20227 * tree-hasher.h : Likewise.
20228 * tree-if-conv.c : Likewise.
20229 * tree-inline.c : Likewise.
20230 * tree-inline.h : Likewise.
20231 * tree-into-ssa.c : Likewise.
20232 * tree-iterator.c : Likewise.
20233 * tree-loop-distribution.c : Likewise.
20234 * tree-nested.c : Likewise.
20235 * tree-nrv.c : Likewise.
20236 * tree-object-size.c : Likewise.
20237 * tree-outof-ssa.c : Likewise.
20238 * tree-parloops.c : Likewise.
20239 * tree-phinodes.c : Likewise.
20240 * tree-predcom.c : Likewise.
20241 * tree-pretty-print.c : Likewise.
20242 * tree-profile.c : Likewise.
20243 * tree-scalar-evolution.c : Likewise.
20244 * tree-sra.c : Likewise.
20245 * tree-ssa-address.c : Likewise.
20246 * tree-ssa-alias.c : Likewise.
20247 * tree-ssa-ccp.c : Likewise.
20248 * tree-ssa-coalesce.c : Likewise.
20249 * tree-ssa-copy.c : Likewise.
20250 * tree-ssa-copyrename.c : Likewise.
20251 * tree-ssa-dce.c : Likewise.
20252 * tree-ssa-dom.c : Likewise.
20253 * tree-ssa-dse.c : Likewise.
20254 * tree-ssa-forwprop.c : Likewise.
20255 * tree-ssa-ifcombine.c : Likewise.
20256 * tree-ssa-live.c : Likewise.
20257 * tree-ssa-loop-ch.c : Likewise.
20258 * tree-ssa-loop-im.c : Likewise.
20259 * tree-ssa-loop-ivcanon.c : Likewise.
20260 * tree-ssa-loop-ivopts.c : Likewise.
20261 * tree-ssa-loop-manip.c : Likewise.
20262 * tree-ssa-loop-niter.c : Likewise.
20263 * tree-ssa-loop-prefetch.c : Likewise.
20264 * tree-ssa-loop-unswitch.c : Likewise.
20265 * tree-ssa-loop.c : Likewise.
20266 * tree-ssa-math-opts.c : Likewise.
20267 * tree-ssa-operands.c : Likewise.
20268 * tree-ssa-phiopt.c : Likewise.
20269 * tree-ssa-phiprop.c : Likewise.
20270 * tree-ssa-pre.c : Likewise.
20271 * tree-ssa-propagate.c : Likewise.
20272 * tree-ssa-reassoc.c : Likewise.
20273 * tree-ssa-sccvn.c : Likewise.
20274 * tree-ssa-scopedtables.c : Likewise.
20275 * tree-ssa-sink.c : Likewise.
20276 * tree-ssa-strlen.c : Likewise.
20277 * tree-ssa-structalias.c : Likewise.
20278 * tree-ssa-tail-merge.c : Likewise.
20279 * tree-ssa-ter.c : Likewise.
20280 * tree-ssa-threadedge.c : Likewise.
20281 * tree-ssa-threadupdate.c : Likewise.
20282 * tree-ssa-uncprop.c : Likewise.
20283 * tree-ssa-uninit.c : Likewise.
20284 * tree-ssa.c : Likewise.
20285 * tree-ssanames.c : Likewise.
20286 * tree-stdarg.c : Likewise.
20287 * tree-streamer-in.c : Likewise.
20288 * tree-streamer-out.c : Likewise.
20289 * tree-streamer.c : Likewise.
20290 * tree-streamer.h : Likewise.
20291 * tree-switch-conversion.c : Likewise.
20292 * tree-tailcall.c : Likewise.
20293 * tree-vect-data-refs.c : Likewise.
20294 * tree-vect-generic.c : Likewise.
20295 * tree-vect-loop-manip.c : Likewise.
20296 * tree-vect-loop.c : Likewise.
20297 * tree-vect-patterns.c : Likewise.
20298 * tree-vect-slp.c : Likewise.
20299 * tree-vect-stmts.c : Likewise.
20300 * tree-vectorizer.c : Likewise.
20301 * tree-vectorizer.h : Likewise.
20302 * tree-vrp.c : Likewise.
20303 * tree.c : Likewise.
20304 * tsan.c : Likewise.
20305 * ubsan.c : Likewise.
20306 * valtrack.c : Likewise.
20307 * valtrack.h : Likewise.
20308 * value-prof.c : Likewise.
20309 * var-tracking.c : Likewise.
20310 * varasm.c : Likewise.
20311 * varpool.c : Likewise.
20312 * vec.c: Likewise.
20313 * vmsdbgout.c : Likewise.
20314 * vtable-verify.c : Likewise.
20315 * vtable-verify.h : Likewise.
20316 * web.c : Likewise.
20317 * wide-int.cc : Likewise.
20318 * xcoffout.c : Likewise.
20319 * config/aarch64/aarch64-builtins.c : Likewise.
20320 * config/aarch64/aarch64.c : Likewise.
20321 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20322 * config/alpha/alpha.c : Likewise.
20323 * config/arc/arc.c : Likewise.
20324 * config/arm/aarch-common.c : Likewise.
20325 * config/arm/arm-builtins.c : Likewise.
20326 * config/arm/arm-c.c : Likewise.
20327 * config/arm/arm.c : Likewise.
20328 * config/avr/avr-c.c : Likewise.
20329 * config/avr/avr-log.c : Likewise.
20330 * config/avr/avr.c : Likewise.
20331 * config/bfin/bfin.c : Likewise.
20332 * config/c6x/c6x.c : Likewise.
20333 * config/cr16/cr16.c : Likewise.
20334 * config/cris/cris.c : Likewise.
20335 * config/darwin-c.c : Likewise.
20336 * config/darwin.c : Likewise.
20337 * config/default-c.c : Likewise.
20338 * config/epiphany/epiphany.c : Likewise.
20339 * config/epiphany/mode-switch-use.c : Likewise.
20340 * config/epiphany/resolve-sw-modes.c : Likewise.
20341 * config/fr30/fr30.c : Likewise.
20342 * config/frv/frv.c : Likewise.
20343 * config/ft32/ft32.c : Likewise.
20344 * config/glibc-c.c : Likewise.
20345 * config/h8300/h8300.c : Likewise.
20346 * config/i386/i386-c.c : Likewise.
20347 * config/i386/i386.c : Likewise.
20348 * config/i386/msformat-c.c : Likewise.
20349 * config/i386/winnt-cxx.c : Likewise.
20350 * config/i386/winnt-stubs.c : Likewise.
20351 * config/i386/winnt.c : Likewise.
20352 * config/ia64/ia64-c.c : Likewise.
20353 * config/ia64/ia64.c : Likewise.
20354 * config/iq2000/iq2000.c : Likewise.
20355 * config/lm32/lm32.c : Likewise.
20356 * config/m32c/m32c-pragma.c : Likewise.
20357 * config/m32c/m32c.c : Likewise.
20358 * config/m32r/m32r.c : Likewise.
20359 * config/m68k/m68k.c : Likewise.
20360 * config/mcore/mcore.c : Likewise.
20361 * config/mep/mep-pragma.c : Likewise.
20362 * config/mep/mep.c : Likewise.
20363 * config/microblaze/microblaze-c.c : Likewise.
20364 * config/microblaze/microblaze.c : Likewise.
20365 * config/mips/mips.c : Likewise.
20366 * config/mmix/mmix.c : Likewise.
20367 * config/mn10300/mn10300.c : Likewise.
20368 * config/moxie/moxie.c : Likewise.
20369 * config/msp430/msp430-c.c : Likewise.
20370 * config/msp430/msp430.c : Likewise.
20371 * config/nds32/nds32-cost.c : Likewise.
20372 * config/nds32/nds32-fp-as-gp.c : Likewise.
20373 * config/nds32/nds32-intrinsic.c : Likewise.
20374 * config/nds32/nds32-isr.c : Likewise.
20375 * config/nds32/nds32-md-auxiliary.c : Likewise.
20376 * config/nds32/nds32-memory-manipulation.c : Likewise.
20377 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20378 * config/nds32/nds32-predicates.c : Likewise.
20379 * config/nds32/nds32.c : Likewise.
20380 * config/nios2/nios2.c : Likewise.
20381 * config/nvptx/nvptx.c : Likewise.
20382 * config/pa/pa.c : Likewise.
20383 * config/pdp11/pdp11.c : Likewise.
20384 * config/rl78/rl78-c.c : Likewise.
20385 * config/rl78/rl78.c : Likewise.
20386 * config/rs6000/rs6000-c.c : Likewise.
20387 * config/rs6000/rs6000.c : Likewise.
20388 * config/rx/rx.c : Likewise.
20389 * config/s390/s390-c.c : Likewise.
20390 * config/s390/s390.c : Likewise.
20391 * config/sh/sh-c.c : Likewise.
20392 * config/sh/sh-mem.cc : Likewise.
20393 * config/sh/sh.c : Likewise.
20394 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20395 * config/sh/sh_treg_combine.cc : Likewise.
20396 * config/sol2-c.c : Likewise.
20397 * config/sol2-cxx.c : Likewise.
20398 * config/sol2-stubs.c : Likewise.
20399 * config/sol2.c : Likewise.
20400 * config/sparc/sparc-c.c : Likewise.
20401 * config/sparc/sparc.c : Likewise.
20402 * config/spu/spu-c.c : Likewise.
20403 * config/spu/spu.c : Likewise.
20404 * config/stormy16/stormy16.c : Likewise.
20405 * config/tilegx/mul-tables.c : Likewise.
20406 * config/tilegx/tilegx-c.c : Likewise.
20407 * config/tilegx/tilegx.c : Likewise.
20408 * config/tilepro/mul-tables.c : Likewise.
20409 * config/tilepro/tilepro-c.c : Likewise.
20410 * config/tilepro/tilepro.c : Likewise.
20411 * config/v850/v850-c.c : Likewise.
20412 * config/v850/v850.c : Likewise.
20413 * config/vax/vax.c : Likewise.
20414 * config/visium/visium.c : Likewise.
20415 * config/vms/vms-c.c : Likewise.
20416 * config/vms/vms.c : Likewise.
20417 * config/vxworks.c : Likewise.
20418 * config/winnt-c.c : Likewise.
20419 * config/xtensa/xtensa.c : Likewise.
20420
20421 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20422
20423 PR lto/65378
20424 * ipa-utils.h (warn_types_mismatch): Update prototype.
20425 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20426 parameters.
20427 (type_mismatch_p): New function.
20428 (warn_types_mismatch): Reorg to work better on non-C++ types.
20429 (odr_types_equivalent_p): Add loc1/loc2 parameters.
20430 (add_type_duplicate): Update.
20431
20432 2015-06-08 Tom de Vries <tom@codesourcery.com>
20433
20434 PR rtl-optimization/66444
20435 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20436 call_used_regs.
20437
20438 2015-06-08 Richard Biener <rguenther@suse.de>
20439
20440 PR tree-optimization/66422
20441 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20442 block after inserted gcc_unreachable.
20443
20444 2015-06-08 Nick Clifton <nickc@redhat.com>
20445
20446 * config/rx/rx.c (rx_function_value): Do not promote vector types.
20447 (rx_promote_function_mode): Likewise.
20448 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20449
20450 2015-06-08 Jakub Jelinek <jakub@redhat.com>
20451
20452 * genattrtab.c (insn_alternatives): Change type from int *
20453 to uint64_t *.
20454 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20455 (get_attr_value): Change type of num_alt to uint64_t.
20456 (compute_alternative_mask): Change return type from
20457 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20458 (make_alternative_compare, mk_attr_alt): Change argument type
20459 from int to uint64_t.
20460 (simplify_test_exp): Change type of i from int to uint64_t.
20461 Shift ((uint64_t) 1) instead of 1 up.
20462 (main): Adjust oballocvec first argument from int to uint64_t.
20463 Shift ((uint64_t) 1) instead of 1 up.
20464
20465 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
20466
20467 PR other/65366
20468 * gdbhooks.py: Import sys.
20469 (intptr): New function. Replace int(...) by intptr(...).
20470
20471 2015-06-08 Richard Biener <rguenther@suse.de>
20472
20473 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20474 adjustment for gaps at the end of a SLP load group properly.
20475 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20476 all permutations we can generate.
20477 (vect_transform_slp_perm_load): Use the correct group-size.
20478
20479 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
20480
20481 * genmatch.c (expr::gen_transform): For conditions, guess the type
20482 from the second operand.
20483
20484 2015-06-08 Tom de Vries <tom@codesourcery.com>
20485
20486 PR tree-optimization/66442
20487 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20488 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20489 if the loop latch is not a singleton. Use
20490 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20491
20492 2015-06-08 Marek Polacek <polacek@redhat.com>
20493
20494 PR sanitizer/66452
20495 * toplev.c (check_global_declaration): Don't warn about artificial
20496 decls.
20497
20498 2015-06-08 Tom de Vries <tom@codesourcery.com>
20499
20500 PR tree-optimization/66436
20501 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20502 dump file.
20503 * gimplify.c: Add tree-dump.h include.
20504 (gimplify_function_tree): Dump function to gimple dump file.
20505 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20506 dump file.
20507
20508 2015-06-08 Tom de Vries <tom@codesourcery.com>
20509
20510 PR tree-optimization/66435
20511 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20512 function.
20513
20514 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
20515
20516 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20517 of ptr_type_node to not be ptr_to_node.
20518 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20519 TREE_TYPE of pointers.
20520 * gimple-expr.c (useless_type_conversion): Reorder the check for
20521 function pointers and TYPE_CANONICAL.
20522
20523 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
20524
20525 PR bootstrap/66319
20526 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20527 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20528 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20529 later.
20530 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20531 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20532 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20533 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20534 and non iso if unix2003.
20535
20536 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
20537
20538 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20539
20540 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
20541
20542 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20543 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20544 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20545 except.c, final.c, function.c, gcse-common.c, genemit.c,
20546 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20547 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20548 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20549 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20550 more derived ones.
20551
20552 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
20553
20554 * combine.c (combine_split_insns): Remove cast.
20555 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20556 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20557 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20558 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20559 * genemit.c (gen_split): Change return type of generated functions to
20560 rtx_insn.
20561 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20562 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20563 gen_peephole2_* functions.
20564 (print_subroutine, main): Likewise.
20565 * recog.c (peephole2_optimize): Remove cast.
20566 (peep2_next_insn): Promote return type to rtx_insn.
20567 * recog.h (peep2_next_insn): Fix prototype.
20568 * rtl.h (try_split, split_insns): Likewise.
20569
20570 2015-06-06 DJ Delorie <dj@redhat.com>
20571
20572 * config/msp430/msp430.c (msp430_asm_integer): Support addition
20573 and subtraction too.
20574
20575 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
20576
20577 PR target/66410
20578 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20579 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20580 instead of Snd. Disparage Sid/z alternative with '^'.
20581
20582 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
20583
20584 * dwarf2out.c: Remove deferred_locations*.
20585 (dwarf2_debug_hooks): Add early_finish hook.
20586 Remove global_decl hook.
20587 Add early_global_decl and late_global_decl hook.
20588 New global early_dwarf.
20589 New structure set_early_dwarf.
20590 (output_die): Indicate whether a DIE was generated early
20591 when generating assembly with -dA.
20592 (struct limbo_die_struct): Document created_for field.
20593 Remove file_table_last_lookup.
20594 (remove_AT): Return TRUE if successful.
20595 (remove_child_TAG): Clear die_parent.
20596 (reparent_child): New function abstracted from...
20597 (splice_child_die): ...here.
20598 (new_die): ICE if a DIE ends up in limbo too late.
20599 (check_die): New.
20600 (defer_location): Remove.
20601 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20602 (fill_variable_array_bounds): New.
20603 (decl_start_label): Call fill_variable_array_bounds.
20604 (gen_formal_parameter_die): Rewrite to reuse previously generated
20605 DIEs.
20606 (gen_subprogram_die): Same.
20607 (gen_variable_die): Same.
20608 (gen_const_die): Same.
20609 (gen_label_die): Same.
20610 (gen_lexical_block_die): Same.
20611 (decl_will_get_specification_p): New.
20612 (local_function_static): New.
20613 (gen_struct_or_union_type_die): Fill in variable-length fields.
20614 (gen_typedef_die): Fill in variable-length typedefs.
20615 (gen_tagged_type_die): Gracefully return on error_mark_node.
20616 Handle re-entrancy.
20617 (gen_type_die_with_usage): Handle variable-length types.
20618 Remove duplicate code for ARRAY_TYPE case.
20619 (process_scope_var): Only process imported modules during early
20620 dwarf.
20621 (dwarf2out_early_global_decl): New.
20622 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20623 (dwarf2out_type_decl): Set early_dwarf while calling
20624 dwarf2out_decl.
20625 (dwarf2out_decl): Verify that we did not recreate a previously
20626 generated DIE.
20627 Do not return on DECL_EXTERNALs in VAR_DECLs.
20628 Abstract some code to local_function_static.
20629 (lookup_filename): Remove use of file_table_last_lookup.
20630 Gracefully exit on missing file_name.
20631 (dwarf2out_finish): Verify limbo list.
20632 Remove deferred_locations_list use.
20633 Move deferred_asm_name and limbo flushing to...
20634 (dwarf2out_early_finish): ...here. New.
20635 (dwarf2out_c_finalize): Remove set of deferred_location_list,
20636 deferred_asm_name, and file_table_last_lookup.
20637 * cgraph.h (referred_to_p): Add default argument.
20638 * cgraphunit.c (referred_to_p): Add and handle include_self
20639 argument.
20640 (analyze_functions): Add first_time argument.
20641 Call check_global_declaration for all symbols.
20642 Call late_global_decl for nodes for moribund nodes.
20643 (finalize_compilation_unit): Add new argument to
20644 analyze_functions.
20645 Call early_global_decl for functions.
20646 Call early_finish debug hook.
20647 * dbxout.c (dbxout_early_global_decl): New.
20648 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
20649 (dbx_debug_hooks): Add new hooks.
20650 (xcoff_debug_hooks): Same.
20651 * debug.c (do_nothing_debug_hooks): Add early_finish field.
20652 Add early and late debug hooks.
20653 Remove global_decl hook.
20654 * debug.h (struct gcc_debug_hooks): Add early_finish,
20655 early_global_decl, and late_global_decl fields.
20656 Remove global_decl field.
20657 Document gcc_debug_hooks.
20658 * gengtype.c (output_typename): Remove.
20659 * godump.c (go_early_global_decl): New.
20660 (go_late_global_decl): New.
20661 (go_global_decl): Remove.
20662 (dump_go_spec_init): Remove global_decl. Add
20663 {early,late}_global_decl.
20664 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20665 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20666 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20667 (write_global_declarations): Remove.
20668 (global_decl_processing): New.
20669 * langhooks.h (struct lang_hooks_for_decls): Remove
20670 final_write_globals field.
20671 Add post_compilation_parsing_cleanups field.
20672 * passes.c (rest_of_decl_compilation): Call early_global_decl.
20673 * sdbout.c: Add early and late_global_decl hooks. Remove
20674 sdbout_global_decl hook.
20675 Add early_finish field for sdb_debug_hooks.
20676 (sdbout_global_decl): Remove.
20677 (sdbout_early_global_decl): New.
20678 (sdbout_late_global_decl): New.
20679 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20680 * toplev.c (check_global_declaration): Rename from
20681 check_global_declaration_1.
20682 Adapt to use symtab infrastructure.
20683 (check_global_declarations): Remove.
20684 (emit_debug_global_declarations): Remove.
20685 (compile_file): Remove call to final_write_globals langhook.
20686 Run the actual compilation process.
20687 Perform any post compilation parser cleanups.
20688 Generate late debug info.
20689 * toplev.h (check_global_declaration): New.
20690 (check_global_declaration_1): Remove.
20691 (check_global_declarations): Remove.
20692 (write_global_declarations): Remove.
20693 (emit_debug_global_declarations): Remove.
20694 (global_decl_processing): New.
20695 * tree-core.h (struct tree_block): Add DIE field.
20696 * tree.h (BLOCK_DIE): New.
20697 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20698 throughout.
20699 (vmsdbgout_early_global_decl): New.
20700 (vmsdbgout_late_global_decl): New.
20701 Add early_finish debug hook field to vmsdbg_debug_hooks.
20702 Remove vmsdbgout_decl to vmsdbgout_function_decl.
20703 Add early and late_global_decl debug hooks.
20704
20705 2015-06-05 Julian Brown <julian@codesourcery.com>
20706 Sandra Loosemore <sandra@codesourcery.com>
20707
20708 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20709 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20710 to print-sysroot-suffix.sh script.
20711
20712 2015-06-05 Tom de Vries <tom@codesourcery.com>
20713
20714 merge from gomp4 branch:
20715 2015-05-28 Tom de Vries <tom@codesourcery.com>
20716
20717 PR tree-optimization/65443
20718 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20719 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20720 (try_transform_to_exit_first_loop_alt): New function.
20721 (transform_to_exit_first_loop): Use
20722 try_transform_to_exit_first_loop_alt.
20723
20724 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
20725
20726 * builtins.c (expand_builtin_atomic_compare_exchange): Call
20727 emit_cmp_and_jump_insns with the mode of target.
20728
20729 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20730
20731 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20732
20733 2015-06-04 DJ Delorie <dj@redhat.com>
20734
20735 * config/msp430/msp430.md (movsi_s): New. Special case for
20736 storing a 20-bit symbol into a 32-bit register.
20737 * config/msp430/msp430.c (msp430_subreg): Add support for it.
20738 * config/msp430/predicates.md (msp430_symbol_operand): New.
20739
20740 2015-06-04 Sriraman Tallam <tmsriram@google.com>
20741
20742 * c-family/c-common.c (noplt): New attribute.
20743 (handle_noplt_attribute): New handler.
20744 * calls.c (prepare_call_address): Check for noplt
20745 attribute.
20746 * config/i386/i386.c (ix86_expand_call): Check
20747 for noplt attribute.
20748 (ix86_nopic_noplt_attribute_p): New function.
20749 (ix86_output_call_insn): Output indirect call for non-pic
20750 no plt calls.
20751 * doc/extend.texi (noplt): Document new attribute.
20752 * doc/invoke.texi: Document new attribute.
20753
20754 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
20755
20756 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20757 real.h, and fixed-value.h when included in host source files.
20758 * double-int.h: Remove redundant #includes listed above.
20759 * fixed-value.h: Likewise.
20760 * real.h: Likewise.
20761 * wide-int.h: Likewise.
20762 * inchash.h: Likewise.
20763 * rtl.h: Add some include files When included from a generator file.
20764 * target.h: Remove wide-int.h and insn-modes.h from the include list.
20765 * internal-fn.h: Don't include coretypes.h.
20766 * alias.c: Adjust includes for restructured coretypes.h.
20767 * asan.c: Likewise.
20768 * attribs.c: Likewise.
20769 * auto-inc-dec.c: Likewise.
20770 * auto-profile.c: Likewise.
20771 * bb-reorder.c: Likewise.
20772 * bt-load.c: Likewise.
20773 * builtins.c: Likewise.
20774 * caller-save.c: Likewise.
20775 * calls.c: Likewise.
20776 * ccmp.c: Likewise.
20777 * cfg.c: Likewise.
20778 * cfganal.c: Likewise.
20779 * cfgbuild.c: Likewise.
20780 * cfgcleanup.c: Likewise.
20781 * cfgexpand.c: Likewise.
20782 * cfghooks.c: Likewise.
20783 * cfgloop.c: Likewise.
20784 * cfgloop.h: Likewise.
20785 * cfgloopanal.c: Likewise.
20786 * cfgloopmanip.c: Likewise.
20787 * cfgrtl.c: Likewise.
20788 * cgraph.c: Likewise.
20789 * cgraphbuild.c: Likewise.
20790 * cgraphclones.c: Likewise.
20791 * cgraphunit.c: Likewise.
20792 * cilk-common.c: Likewise.
20793 * combine-stack-adj.c: Likewise.
20794 * combine.c: Likewise.
20795 * compare-elim.c: Likewise.
20796 * convert.c: Likewise.
20797 * coverage.c: Likewise.
20798 * cppbuiltin.c: Likewise.
20799 * cprop.c: Likewise.
20800 * cse.c: Likewise.
20801 * cselib.c: Likewise.
20802 * data-streamer-in.c: Likewise.
20803 * data-streamer-out.c: Likewise.
20804 * data-streamer.c: Likewise.
20805 * dbxout.c: Likewise.
20806 * dce.c: Likewise.
20807 * ddg.c: Likewise.
20808 * debug.c: Likewise.
20809 * df-core.c: Likewise.
20810 * df-problems.c: Likewise.
20811 * df-scan.c: Likewise.
20812 * df.h: Likewise.
20813 * dfp.c: Likewise.
20814 * dojump.c: Likewise.
20815 * dominance.c: Likewise.
20816 * domwalk.c: Likewise.
20817 * double-int.c: Likewise.
20818 * dse.c: Likewise.
20819 * dumpfile.c: Likewise.
20820 * dwarf2asm.c: Likewise.
20821 * dwarf2cfi.c: Likewise.
20822 * dwarf2out.c: Likewise.
20823 * dwarf2out.h: Likewise.
20824 * emit-rtl.c: Likewise.
20825 * et-forest.c: Likewise.
20826 * except.c: Likewise.
20827 * explow.c: Likewise.
20828 * expmed.c: Likewise.
20829 * expr.c: Likewise.
20830 * final.c: Likewise.
20831 * fixed-value.c: Likewise.
20832 * fold-const.c: Likewise.
20833 * function.c: Likewise.
20834 * fwprop.c: Likewise.
20835 * gcc-plugin.h: Likewise.
20836 * gcse.c: Likewise.
20837 * generic-match-head.c: Likewise.
20838 * ggc-page.c: Likewise.
20839 * gimple-builder.c: Likewise.
20840 * gimple-expr.c: Likewise.
20841 * gimple-fold.c: Likewise.
20842 * gimple-iterator.c: Likewise.
20843 * gimple-low.c: Likewise.
20844 * gimple-match-head.c: Likewise.
20845 * gimple-pretty-print.c: Likewise.
20846 * gimple-ssa-isolate-paths.c: Likewise.
20847 * gimple-ssa-strength-reduction.c: Likewise.
20848 * gimple-streamer-in.c: Likewise.
20849 * gimple-streamer-out.c: Likewise.
20850 * gimple-streamer.h: Likewise.
20851 * gimple-walk.c: Likewise.
20852 * gimple.c: Likewise.
20853 * gimplify-me.c: Likewise.
20854 * gimplify.c: Likewise.
20855 * godump.c: Likewise.
20856 * graph.c: Likewise.
20857 * graphite-blocking.c: Likewise.
20858 * graphite-dependences.c: Likewise.
20859 * graphite-interchange.c: Likewise.
20860 * graphite-isl-ast-to-gimple.c: Likewise.
20861 * graphite-optimize-isl.c: Likewise.
20862 * graphite-poly.c: Likewise.
20863 * graphite-scop-detection.c: Likewise.
20864 * graphite-sese-to-poly.c: Likewise.
20865 * graphite.c: Likewise.
20866 * haifa-sched.c: Likewise.
20867 * hooks.h: Likewise.
20868 * hw-doloop.c: Likewise.
20869 * ifcvt.c: Likewise.
20870 * incpath.c: Likewise.
20871 * init-regs.c: Likewise.
20872 * internal-fn.c: Likewise.
20873 * ipa-chkp.c: Likewise.
20874 * ipa-comdats.c: Likewise.
20875 * ipa-cp.c: Likewise.
20876 * ipa-devirt.c: Likewise.
20877 * ipa-icf-gimple.c: Likewise.
20878 * ipa-icf.c: Likewise.
20879 * ipa-inline-analysis.c: Likewise.
20880 * ipa-inline-transform.c: Likewise.
20881 * ipa-inline.c: Likewise.
20882 * ipa-polymorphic-call.c: Likewise.
20883 * ipa-profile.c: Likewise.
20884 * ipa-prop.c: Likewise.
20885 * ipa-pure-const.c: Likewise.
20886 * ipa-ref.c: Likewise.
20887 * ipa-reference.c: Likewise.
20888 * ipa-split.c: Likewise.
20889 * ipa-utils.c: Likewise.
20890 * ipa-visibility.c: Likewise.
20891 * ipa.c: Likewise.
20892 * ira-build.c: Likewise.
20893 * ira-color.c: Likewise.
20894 * ira-conflicts.c: Likewise.
20895 * ira-costs.c: Likewise.
20896 * ira-emit.c: Likewise.
20897 * ira-lives.c: Likewise.
20898 * ira.c: Likewise.
20899 * jump.c: Likewise.
20900 * langhooks.c: Likewise.
20901 * lcm.c: Likewise.
20902 * loop-doloop.c: Likewise.
20903 * loop-init.c: Likewise.
20904 * loop-invariant.c: Likewise.
20905 * loop-iv.c: Likewise.
20906 * loop-unroll.c: Likewise.
20907 * lower-subreg.c: Likewise.
20908 * lra-assigns.c: Likewise.
20909 * lra-coalesce.c: Likewise.
20910 * lra-constraints.c: Likewise.
20911 * lra-eliminations.c: Likewise.
20912 * lra-lives.c: Likewise.
20913 * lra-remat.c: Likewise.
20914 * lra-spills.c: Likewise.
20915 * lra.c: Likewise.
20916 * lto-cgraph.c: Likewise.
20917 * lto-compress.c: Likewise.
20918 * lto-opts.c: Likewise.
20919 * lto-section-in.c: Likewise.
20920 * lto-section-out.c: Likewise.
20921 * lto-streamer-in.c: Likewise.
20922 * lto-streamer-out.c: Likewise.
20923 * lto-streamer.c: Likewise.
20924 * mcf.c: Likewise.
20925 * mode-switching.c: Likewise.
20926 * modulo-sched.c: Likewise.
20927 * omega.c: Likewise.
20928 * omp-low.c: Likewise.
20929 * optabs.c: Likewise.
20930 * opts-global.c: Likewise.
20931 * passes.c: Likewise.
20932 * plugin.c: Likewise.
20933 * postreload-gcse.c: Likewise.
20934 * postreload.c: Likewise.
20935 * predict.c: Likewise.
20936 * print-rtl.c: Likewise.
20937 * print-tree.c: Likewise.
20938 * profile.c: Likewise.
20939 * real.c: Likewise.
20940 * realmpfr.c: Likewise.
20941 * realmpfr.h: Likewise.
20942 * recog.c: Likewise.
20943 * ree.c: Likewise.
20944 * reg-stack.c: Likewise.
20945 * regcprop.c: Likewise.
20946 * reginfo.c: Likewise.
20947 * regrename.c: Likewise.
20948 * regs.h: Likewise.
20949 * regstat.c: Likewise.
20950 * reload.c: Likewise.
20951 * reload1.c: Likewise.
20952 * reorg.c: Likewise.
20953 * resource.c: Likewise.
20954 * rtl-chkp.c: Likewise.
20955 * rtlanal.c: Likewise.
20956 * rtlhooks.c: Likewise.
20957 * sanopt.c: Likewise.
20958 * sched-deps.c: Likewise.
20959 * sched-ebb.c: Likewise.
20960 * sched-rgn.c: Likewise.
20961 * sched-vis.c: Likewise.
20962 * sdbout.c: Likewise.
20963 * sel-sched-dump.c: Likewise.
20964 * sel-sched-ir.c: Likewise.
20965 * sel-sched.c: Likewise.
20966 * sese.c: Likewise.
20967 * shrink-wrap.c: Likewise.
20968 * shrink-wrap.h: Likewise.
20969 * simplify-rtx.c: Likewise.
20970 * stack-ptr-mod.c: Likewise.
20971 * statistics.c: Likewise.
20972 * stmt.c: Likewise.
20973 * stor-layout.c: Likewise.
20974 * store-motion.c: Likewise.
20975 * stringpool.c: Likewise.
20976 * symtab.c: Likewise.
20977 * target-globals.c: Likewise.
20978 * targhooks.c: Likewise.
20979 * toplev.c: Likewise.
20980 * tracer.c: Likewise.
20981 * trans-mem.c: Likewise.
20982 * tree-affine.c: Likewise.
20983 * tree-affine.h: Likewise.
20984 * tree-browser.c: Likewise.
20985 * tree-call-cdce.c: Likewise.
20986 * tree-cfg.c: Likewise.
20987 * tree-cfgcleanup.c: Likewise.
20988 * tree-chkp-opt.c: Likewise.
20989 * tree-chkp.c: Likewise.
20990 * tree-chrec.c: Likewise.
20991 * tree-complex.c: Likewise.
20992 * tree-data-ref.c: Likewise.
20993 * tree-dfa.c: Likewise.
20994 * tree-diagnostic.c: Likewise.
20995 * tree-dump.c: Likewise.
20996 * tree-eh.c: Likewise.
20997 * tree-emutls.c: Likewise.
20998 * tree-if-conv.c: Likewise.
20999 * tree-inline.c: Likewise.
21000 * tree-into-ssa.c: Likewise.
21001 * tree-iterator.c: Likewise.
21002 * tree-loop-distribution.c: Likewise.
21003 * tree-nested.c: Likewise.
21004 * tree-nrv.c: Likewise.
21005 * tree-object-size.c: Likewise.
21006 * tree-outof-ssa.c: Likewise.
21007 * tree-parloops.c: Likewise.
21008 * tree-phinodes.c: Likewise.
21009 * tree-predcom.c: Likewise.
21010 * tree-pretty-print.c: Likewise.
21011 * tree-pretty-print.h: Likewise.
21012 * tree-profile.c: Likewise.
21013 * tree-scalar-evolution.c: Likewise.
21014 * tree-sra.c: Likewise.
21015 * tree-ssa-address.c: Likewise.
21016 * tree-ssa-alias.c: Likewise.
21017 * tree-ssa-ccp.c: Likewise.
21018 * tree-ssa-coalesce.c: Likewise.
21019 * tree-ssa-copy.c: Likewise.
21020 * tree-ssa-copyrename.c: Likewise.
21021 * tree-ssa-dce.c: Likewise.
21022 * tree-ssa-dom.c: Likewise.
21023 * tree-ssa-dse.c: Likewise.
21024 * tree-ssa-forwprop.c: Likewise.
21025 * tree-ssa-ifcombine.c: Likewise.
21026 * tree-ssa-live.c: Likewise.
21027 * tree-ssa-loop-ch.c: Likewise.
21028 * tree-ssa-loop-im.c: Likewise.
21029 * tree-ssa-loop-ivcanon.c: Likewise.
21030 * tree-ssa-loop-ivopts.c: Likewise.
21031 * tree-ssa-loop-manip.c: Likewise.
21032 * tree-ssa-loop-niter.c: Likewise.
21033 * tree-ssa-loop-prefetch.c: Likewise.
21034 * tree-ssa-loop-unswitch.c: Likewise.
21035 * tree-ssa-loop.c: Likewise.
21036 * tree-ssa-loop.h: Likewise.
21037 * tree-ssa-math-opts.c: Likewise.
21038 * tree-ssa-operands.c: Likewise.
21039 * tree-ssa-phiopt.c: Likewise.
21040 * tree-ssa-phiprop.c: Likewise.
21041 * tree-ssa-pre.c: Likewise.
21042 * tree-ssa-propagate.c: Likewise.
21043 * tree-ssa-reassoc.c: Likewise.
21044 * tree-ssa-sccvn.c: Likewise.
21045 * tree-ssa-scopedtables.c: Likewise.
21046 * tree-ssa-sink.c: Likewise.
21047 * tree-ssa-strlen.c: Likewise.
21048 * tree-ssa-structalias.c: Likewise.
21049 * tree-ssa-tail-merge.c: Likewise.
21050 * tree-ssa-ter.c: Likewise.
21051 * tree-ssa-threadedge.c: Likewise.
21052 * tree-ssa-threadupdate.c: Likewise.
21053 * tree-ssa-uncprop.c: Likewise.
21054 * tree-ssa-uninit.c: Likewise.
21055 * tree-ssa.c: Likewise.
21056 * tree-ssanames.c: Likewise.
21057 * tree-stdarg.c: Likewise.
21058 * tree-streamer-in.c: Likewise.
21059 * tree-streamer-out.c: Likewise.
21060 * tree-streamer.c: Likewise.
21061 * tree-switch-conversion.c: Likewise.
21062 * tree-tailcall.c: Likewise.
21063 * tree-vect-data-refs.c: Likewise.
21064 * tree-vect-generic.c: Likewise.
21065 * tree-vect-loop-manip.c: Likewise.
21066 * tree-vect-loop.c: Likewise.
21067 * tree-vect-patterns.c: Likewise.
21068 * tree-vect-slp.c: Likewise.
21069 * tree-vect-stmts.c: Likewise.
21070 * tree-vectorizer.c: Likewise.
21071 * tree-vrp.c: Likewise.
21072 * tree.c: Likewise.
21073 * tsan.c: Likewise.
21074 * ubsan.c: Likewise.
21075 * valtrack.c: Likewise.
21076 * value-prof.c: Likewise.
21077 * var-tracking.c: Likewise.
21078 * varasm.c: Likewise.
21079 * varpool.c: Likewise.
21080 * vmsdbgout.c: Likewise.
21081 * vtable-verify.c: Likewise.
21082 * web.c: Likewise.
21083 * wide-int-print.cc: Likewise.
21084 * wide-int-print.h: Likewise.
21085 * wide-int.cc: Likewise.
21086 * xcoffout.c: Likewise.
21087 * config/aarch64/aarch64-builtins.c: Likewise.
21088 * config/aarch64/aarch64.c: Likewise.
21089 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21090 * config/alpha/alpha.c: Likewise.
21091 * config/arc/arc.c: Likewise.
21092 * config/arm/aarch-common.c: Likewise.
21093 * config/arm/arm-builtins.c: Likewise.
21094 * config/arm/arm-c.c: Likewise.
21095 * config/arm/arm.c: Likewise.
21096 * config/avr/avr-c.c: Likewise.
21097 * config/avr/avr-log.c: Likewise.
21098 * config/avr/avr.c: Likewise.
21099 * config/bfin/bfin.c: Likewise.
21100 * config/c6x/c6x.c: Likewise.
21101 * config/cr16/cr16.c: Likewise.
21102 * config/cris/cris.c: Likewise.
21103 * config/darwin-c.c: Likewise.
21104 * config/darwin.c: Likewise.
21105 * config/default-c.c: Likewise.
21106 * config/epiphany/epiphany.c: Likewise.
21107 * config/epiphany/mode-switch-use.c: Likewise.
21108 * config/epiphany/resolve-sw-modes.c: Likewise.
21109 * config/fr30/fr30.c: Likewise.
21110 * config/frv/frv.c: Likewise.
21111 * config/ft32/ft32.c: Likewise.
21112 * config/glibc-c.c: Likewise.
21113 * config/h8300/h8300.c: Likewise.
21114 * config/i386/i386-c.c: Likewise.
21115 * config/i386/i386.c: Likewise.
21116 * config/i386/msformat-c.c: Likewise.
21117 * config/i386/winnt-cxx.c: Likewise.
21118 * config/i386/winnt-stubs.c: Likewise.
21119 * config/i386/winnt.c: Likewise.
21120 * config/ia64/ia64-c.c: Likewise.
21121 * config/ia64/ia64.c: Likewise.
21122 * config/iq2000/iq2000.c: Likewise.
21123 * config/lm32/lm32.c: Likewise.
21124 * config/m32c/m32c-pragma.c: Likewise.
21125 * config/m32c/m32c.c: Likewise.
21126 * config/m32r/m32r.c: Likewise.
21127 * config/m68k/m68k.c: Likewise.
21128 * config/mcore/mcore.c: Likewise.
21129 * config/mep/mep-pragma.c: Likewise.
21130 * config/mep/mep.c: Likewise.
21131 * config/microblaze/microblaze-c.c: Likewise.
21132 * config/microblaze/microblaze.c: Likewise.
21133 * config/mips/mips.c: Likewise.
21134 * config/mmix/mmix.c: Likewise.
21135 * config/mn10300/mn10300.c: Likewise.
21136 * config/moxie/moxie.c: Likewise.
21137 * config/msp430/msp430-c.c: Likewise.
21138 * config/msp430/msp430.c: Likewise.
21139 * config/nds32/nds32-cost.c: Likewise.
21140 * config/nds32/nds32-fp-as-gp.c: Likewise.
21141 * config/nds32/nds32-intrinsic.c: Likewise.
21142 * config/nds32/nds32-isr.c: Likewise.
21143 * config/nds32/nds32-md-auxiliary.c: Likewise.
21144 * config/nds32/nds32-memory-manipulation.c: Likewise.
21145 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21146 * config/nds32/nds32-predicates.c: Likewise.
21147 * config/nds32/nds32.c: Likewise.
21148 * config/nios2/nios2.c: Likewise.
21149 * config/nvptx/nvptx.c: Likewise.
21150 * config/pa/pa.c: Likewise.
21151 * config/pdp11/pdp11.c: Likewise.
21152 * config/rl78/rl78-c.c: Likewise.
21153 * config/rl78/rl78.c: Likewise.
21154 * config/rs6000/rs6000-c.c: Likewise.
21155 * config/rs6000/rs6000.c: Likewise.
21156 * config/rx/rx.c: Likewise.
21157 * config/s390/s390-c.c: Likewise.
21158 * config/s390/s390.c: Likewise.
21159 * config/sh/sh-c.c: Likewise.
21160 * config/sh/sh-mem.cc: Likewise.
21161 * config/sh/sh.c: Likewise.
21162 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21163 * config/sh/sh_treg_combine.cc: Likewise.
21164 * config/sol2-c.c: Likewise.
21165 * config/sol2-cxx.c: Likewise.
21166 * config/sol2-stubs.c: Likewise.
21167 * config/sol2.c: Likewise.
21168 * config/sparc/sparc-c.c: Likewise.
21169 * config/sparc/sparc.c: Likewise.
21170 * config/spu/spu-c.c: Likewise.
21171 * config/spu/spu.c: Likewise.
21172 * config/stormy16/stormy16.c: Likewise.
21173 * config/tilegx/mul-tables.c: Likewise.
21174 * config/tilegx/tilegx-c.c: Likewise.
21175 * config/tilegx/tilegx.c: Likewise.
21176 * config/tilepro/mul-tables.c: Likewise.
21177 * config/tilepro/tilepro-c.c: Likewise.
21178 * config/tilepro/tilepro.c: Likewise.
21179 * config/v850/v850-c.c: Likewise.
21180 * config/v850/v850.c: Likewise.
21181 * config/vax/vax.c: Likewise.
21182 * config/visium/visium.c: Likewise.
21183 * config/vms/vms-c.c: Likewise.
21184 * config/vms/vms.c: Likewise.
21185 * config/vxworks.c: Likewise.
21186 * config/winnt-c.c: Likewise.
21187 * config/xtensa/xtensa.c: Likewise.
21188 * common/config/bfin/bfin-common.c: Likewise.
21189
21190 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
21191
21192 * tree.h (tree_code_for_canonical_type_merging): New function.
21193 * tree.c (gimple_canonical_types_compatible_p): Use
21194 tree_code_for_canonical_type_merging..
21195
21196 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21197
21198 PR c++/66192
21199 PR target/66200
21200 * doc/tm.texi: Regenerate.
21201 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21202 * target.def (TARGET_RELAXED_ORDERING): Likewise.
21203 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21204 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21205 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21206 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21207 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21208 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21209 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21210
21211 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21212
21213 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21214 register fma steering pass.
21215 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21216 AARCH64_TUNE_FMA_STEERING.
21217
21218 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
21219
21220 * tree.c (verify_type_variant): Verify that type and variant is
21221 compatible.
21222 (gimple_canonical_types_compatible_p): Look for main variants.
21223
21224 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21225
21226 * config.gcc (powerpc*-*-*): Add support for a new configure
21227 option --with-advance-toolchain=<xxx> which overrides using the
21228 default header files, libraries and dynamic linker.
21229
21230 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21231 specs to support the configure --with-advance-toolchain=<xxx>
21232 option.
21233 (INCLUDE_EXTRA_SPEC): Likewise.
21234 (LINK_OS_EXTRA_SPEC32): Likewise.
21235 (LINK_OK_EXTRA_SPEC64): Likewise.
21236 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21237 (DYNAMIC_LINKER_PREFIX): Likewise.
21238 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21239 toolchain support.
21240 (GLIBC_DYNAMIC_LINKER32): Likewise.
21241 (GLIBC_DYNAMIC_LINKER64): Likewise.
21242 (LINK_OS_LINUX_SPEC32): Likewise.
21243 (LINK_OS_LINUX_SPEC64): Likewise.
21244
21245 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21246 configuration option.
21247
21248 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
21249
21250 PR target/66275
21251 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21252 to determine current function ABI.
21253 (ix86_function_value_regno_p): Ditto.
21254
21255 2015-06-03 Martin Liska <mliska@suse.cz>
21256
21257 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21258 * bitmap.h (struct bitmap_usage): Likewise.
21259 * ggc-common.c (struct ggc_usage): Likewise.
21260 * mem-stats.h (struct mem_location): Likewise.
21261 (struct mem_usage): Likewise.
21262 * vec.c (struct vec_usage): Likewise.
21263
21264 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
21265
21266 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21267 -Bsymbolic.
21268
21269 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
21270
21271 * doc/plugins.texi (enum plugin_event): New event.
21272 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21273 and PLUGIN_FINISH_FUNCTION.
21274 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21275 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21276
21277 2015-06-03 Richard Biener <rguenther@suse.de>
21278
21279 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21280 compute GROUP_GAP for the first element.
21281 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21282 on in-group gaps.
21283
21284 2015-06-03 Nick Clifton <nickc@redhat.com>
21285
21286 * config/rl78/rl78-real.md: Add peepholes to avoid a register
21287 copy when calling a function.
21288 * config/rl78/rl78.c (need_to_save): Do not push the frame
21289 pointer in an interrupt handler prologue if it is never used.
21290
21291 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21292
21293 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21294
21295 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21296
21297 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21298 reference when cloning alias node.
21299
21300 2015-06-03 Martin Liska <mliska@suse.cz>
21301
21302 * alloc-pool.h (struct pool_usage): Correct space padding.
21303 * ggc-page.c (ggc_print_statistics): Align columns in a report.
21304 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21305 * tree.c (dump_tree_statistics): Align columns in a report.
21306
21307 2015-06-03 Martin Liska <mliska@suse.cz>
21308
21309 * alloc-pool.c (allocate_pool_descriptor): Remove.
21310 (struct pool_output_info): Likewise.
21311 (print_alloc_pool_statistics): Likewise.
21312 (dump_alloc_pool_statistics): Likewise.
21313 * alloc-pool.h (struct pool_usage): New struct.
21314 (pool_allocator::initialize): Change usage of memory statistics
21315 to a new interface.
21316 (pool_allocator::release): Likewise.
21317 (pool_allocator::allocate): Likewise.
21318 (pool_allocator::remove): Likewise.
21319 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21320 for a pool allocator.
21321 * mem-stats.h (struct mem_location): Add new ctor.
21322 (struct mem_usage): Add counter for number of
21323 instances.
21324 (mem_alloc_description::register_descriptor): New overload of
21325 * mem-stats.h (mem_location::to_string): New function.
21326 * bitmap.h (struct bitmap_usage): Use this new function.
21327 * ggc-common.c (struct ggc_usage): Likewise.
21328 the function.
21329
21330 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21331
21332 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21333 of GCC_INSN_FLAGS_H block.
21334
21335 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21336
21337 * explow.c (plus_constant): Update check after force_const_mem call
21338 to see if the value returned is not a NULL_RTX.
21339
21340 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21341
21342 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
21343 remove instumentation thunks calling reachable functions.
21344 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
21345 * lto/lto-partition.c (privatize_symbol_name_1): New.
21346 (privatize_symbol_name): Privatize both decl and orig_decl
21347 names for instrumented functions.
21348 * cgraph.c (cgraph_node::verify_node): Add transparent
21349 alias chain check for instrumented node.
21350
21351 2015-06-03 Marek Polacek <polacek@redhat.com>
21352
21353 PR c/64223
21354 PR c/29358
21355 * tree.c (attribute_value_equal): Handle attribute format.
21356 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
21357
21358 2015-06-03 Richard Biener <rguenther@suse.de>
21359
21360 PR tree-optimization/63916
21361 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21362 Forward-propagate non-invariant addresses by splicing their
21363 reference ops if the result isn't going to be used by PRE.
21364 (vn_reference_lookup_3): Remove pointless assert.
21365
21366 2015-06-03 Richard Biener <rguenther@suse.de>
21367
21368 PR tree-optimization/66375
21369 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21370 add to the evolution before following SSA edges.
21371
21372 2015-06-03 Bin Cheng <bin.cheng@arm.com>
21373
21374 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21375 (dump_use, dump_cand, find_induction_variables): Pass new argument
21376 to dump_iv.
21377 (record_use): Preserve the ssa name information in IV.
21378
21379 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21380
21381 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21382 NO_MODE_TEST.
21383 (add_mode_tests): Don't add mode tests if the predicate only
21384 accepts scalar constant integers. Otherwise, allow the mode
21385 of "op" to be VOIDmode if the predicate does accept such integers.
21386
21387 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
21388
21389 PR target/66258
21390 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21391 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21392 (aarch64_secondary_reload): Likewise
21393 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21394 to !TARGET_FLOAT.
21395 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21396 Likewise.
21397
21398 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
21399 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21400
21401 PR target/65768
21402 * cprop.c (try_replace_reg): Check cost of constants before propagating.
21403
21404 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21405
21406 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21407 provide access to the IBM extended double floating point mode if
21408 long double is IEEE 128-bit floating point.
21409 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21410 point if long double is the IBM extended double type.
21411
21412 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21413 enable adding IEEE 128-bit floating point support.
21414 (-mfloat128-software): Likewise.
21415 (-mfloat128-sw): Likewise.
21416
21417 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21418 128-bit floating point types to occupy any register if
21419 -mlong-double-64. Do not allow use of IFmode/KFmode unless
21420 -mfloat128-software is enabled.
21421 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21422 support.
21423 (rs6000_option_override_internal): Add -mfloat128-* support.
21424 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21425
21426 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21427 and float128 type nodes.
21428 (ieee128_float_type_node): Likewise.
21429 (ibm128_float_type_node): Likewise.
21430
21431 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
21432
21433 PR target/66136
21434 * config/aarch64/geniterators.sh: Rewrite in awk.
21435
21436 2015-06-02 Martin Liska <mliska@suse.cz>
21437
21438 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21439 values to avoid -Wmaybe-uninitialized errors.
21440
21441 2015-06-02 Richard Biener <rguenther@suse.de>
21442
21443 PR debug/65549
21444 * dwarf2out.c (lookup_context_die): New function.
21445 (resolve_addr): Avoid forcing a full DIE for the
21446 target of a DW_TAG_GNU_call_site during late compilation.
21447 Instead create a stub DIE without a type if we have a
21448 context DIE present.
21449
21450 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
21451
21452 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21453
21454 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21455
21456 PR tree-optimization/48052
21457 * cfgloop.h (struct control_iv): New.
21458 (struct loop): New field control_ivs.
21459 * tree-ssa-loop-niter.c : Include "stor-layout.h".
21460 (number_of_iterations_lt): Set no_overflow information.
21461 (number_of_iterations_exit): Init control iv in niter struct.
21462 (record_control_iv): New.
21463 (estimate_numbers_of_iterations_loop): Call record_control_iv.
21464 (loop_exits_before_overflow): New. Interface factored out of
21465 scev_probably_wraps_p.
21466 (scev_probably_wraps_p): Factor loop niter related code into
21467 loop_exits_before_overflow.
21468 (free_numbers_of_iterations_estimates_loop): Free control ivs.
21469 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21470
21471 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
21472
21473 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21474 the target doesn't belong to the current function.
21475
21476 2015-06-02 Marek Polacek <polacek@redhat.com>
21477
21478 PR middle-end/66345
21479 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21480 get_maxval_strlen does not produce an INTEGER_CST.
21481
21482 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
21483
21484 * config/arc/constraints.md: Use lower-case names in match_code.
21485 * config/mmix/constraints.md: Likewise.
21486
21487 2015-06-02 Richard Biener <rguenther@suse.de>
21488
21489 PR tree-optimization/65961
21490 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21491 check and clarify dump message.
21492 (vect_build_slp_tree): If all children are built up from scalars
21493 build up the parent from scalars instead.
21494 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21495
21496 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
21497
21498 PR other/65366
21499 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
21500 instead of print ... .
21501
21502 2015-06-02 Alan Modra <amodra@gmail.com>
21503
21504 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21505 2014-08-11 change.
21506
21507 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21508
21509 PR tree-optimization/52563
21510 PR tree-optimization/62173
21511 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
21512 (alloc_iv, set_iv): New parameter.
21513 (determine_biv_step): Delete.
21514 (find_bivs): Inline original determine_biv_step. Pass new
21515 argument to set_iv.
21516 (idx_find_step): Use no_overflow information for conversion.
21517 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21518 resolve_mixers handle folded_casts.
21519 (instantiate_scev_name): Change bool parameter to bool pointer.
21520 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21521 (instantiate_array_ref, instantiate_scev_not): Ditto.
21522 (instantiate_scev_3, instantiate_scev_2): Ditto.
21523 (instantiate_scev_1, instantiate_scev_r): Ditto.
21524 (instantiate_scev_convert, ): Change parameter. Pass argument
21525 to chrec_convert_aggressive.
21526 (instantiate_scev): Change argument.
21527 (resolve_mixers): New parameter and set it.
21528 (scev_const_prop): New argument.
21529 * tree-scalar-evolution.h (resolve_mixers): New parameter.
21530 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21531 of chrec_conert_1.
21532 (chrec_convert): New parameter. Move definition below.
21533 (chrec_convert_aggressive): New parameter and set it. Call
21534 convert_affine_scev.
21535 * tree-chrec.h (chrec_convert): New parameter.
21536 (chrec_convert_aggressive): Ditto.
21537
21538 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21539
21540 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21541 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21542 the LHS of a no-return call if its type has variable size.
21543 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21544 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21545
21546 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
21547
21548 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21549 * config.in: Regenerate.
21550
21551 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21552
21553 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21554 consecutive accesses within outer-loop with force_vectorize
21555 for references with zero step in inner-loop.
21556
21557 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21558
21559 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21560 rather than from gcc/build directory.
21561
21562 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21563
21564 PR target/65697
21565 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21566 for __sync memory models, emit initial loads and final barriers as
21567 appropriate.
21568
21569 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21570
21571 PR target/65697
21572 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21573 (aarch64_split_atomic_op): Check for __sync memory models, emit
21574 appropriate initial loads and final barriers.
21575
21576 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21577
21578 * Makefile.in: Fix gcov dependencies that should
21579 not point to a build folder.
21580
21581 2015-06-01 Richard Biener <rguenther@suse.de>
21582
21583 Revert
21584 2015-05-29 Richard Biener <rguenther@suse.de>
21585
21586 PR tree-optimization/66314
21587 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21588 parameter that says which loop the new block belongs to.
21589 (ssa_create_duplicates): Blocks duplicated for the threaded
21590 path belong to the loop of the thread destination.
21591
21592 2015-06-01 Martin Liska <mliska@suse.cz>
21593
21594 * sched-deps.c: Include pool-alloc.h before
21595 cselib.h header file is included.
21596
21597 2015-06-01 Richard Biener <rguenther@suse.de>
21598
21599 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21600 functions.
21601
21602 2015-06-01 Martin Liska <mliska@suse.cz>
21603
21604 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21605 a function local variable.
21606
21607 2015-06-01 Martin Liska <mliska@suse.cz>
21608
21609 * alloc-pool.c (create_alloc_pool): Remove.
21610 (empty_alloc_pool): Likewise.
21611 (free_alloc_pool): Likewise.
21612 (free_alloc_pool_if_empty): Likewise.
21613 (pool_alloc): Likewise.
21614 (pool_free): Likewise.
21615 * alloc-pool.h: Remove old declarations.
21616
21617 2015-06-01 Martin Liska <mliska@suse.cz>
21618
21619 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21620 (ira_create_object): Likewise.
21621 (ira_create_allocno): Likewise.
21622 (ira_create_live_range): Likewise.
21623 (copy_live_range): Likewise.
21624 (ira_finish_live_range): Likewise.
21625 (ira_free_allocno_costs): Likewise.
21626 (finish_allocno): Likewise.
21627 (finish_allocnos): Likewise.
21628 (initiate_prefs): Likewise.
21629 (ira_create_pref): Likewise.
21630 (finish_pref): Likewise.
21631 (finish_prefs): Likewise.
21632 (initiate_copies): Likewise.
21633 (ira_create_copy): Likewise.
21634 (finish_copy): Likewise.
21635 (finish_copies): Likewise.
21636 (finish_prefs): Likewise.
21637
21638 2015-06-01 Martin Liska <mliska@suse.cz>
21639
21640 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21641 (allocate_and_init_ipcp_value): Likewise.
21642 (ipcp_lattice::add_value): Likewise.
21643 (merge_agg_lats_step): Likewise.
21644 (ipcp_driver): Likewise.
21645 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21646 (ipa_free_all_structures_after_iinln): Likewise.
21647 * ipa-prop.h: Likewise.
21648
21649 2015-06-01 Martin Liska <mliska@suse.cz>
21650
21651 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21652 pool allocator.
21653 (set_hint_predicate): Likewise.
21654 (inline_summary_alloc): Likewise.
21655 (reset_inline_edge_summary): Likewise.
21656 (reset_inline_summary): Likewise.
21657 (set_cond_stmt_execution_predicate): Likewise.
21658 (set_switch_stmt_execution_predicate): Likewise.
21659 (compute_bb_predicates): Likewise.
21660 (estimate_function_body_sizes): Likewise.
21661 (inline_free_summary): Likewise.
21662
21663 2015-06-01 Martin Liska <mliska@suse.cz>
21664
21665 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21666 (ipa_edge_duplication_hook): Likewise.
21667 (ipa_free_all_structures_after_ipa_cp): Likewise.
21668 (ipa_free_all_structures_after_iinln): Likewise.
21669
21670 2015-06-01 Martin Liska <mliska@suse.cz>
21671
21672 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21673 (ipa_profile_generate_summary): Likewise.
21674 (ipa_profile_read_summary): Likewise.
21675 (ipa_profile): Likewise.
21676
21677 2015-06-01 Martin Liska <mliska@suse.cz>
21678
21679 * tree-ssa-structalias.c (new_var_info): Use new type-based
21680 pool allocator.
21681 (new_constraint): Likewise.
21682 (init_alias_vars): Likewise.
21683 (delete_points_to_sets): Likewise.
21684
21685 2015-06-01 Martin Liska <mliska@suse.cz>
21686
21687 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21688 (free_strinfo): Likewise.
21689 (pass_strlen::execute): Likewise.
21690
21691 2015-06-01 Martin Liska <mliska@suse.cz>
21692
21693 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21694 pool allocator.
21695 (vn_reference_insert_pieces): Likewise.
21696 (vn_phi_insert): Likewise.
21697 (visit_reference_op_call): Likewise.
21698 (copy_phi): Likewise.
21699 (copy_reference): Likewise.
21700 (process_scc): Likewise.
21701 (allocate_vn_table): Likewise.
21702 (free_vn_table): Likewise.
21703
21704 2015-06-01 Martin Liska <mliska@suse.cz>
21705
21706 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21707 pool allocator.
21708 (add_repeat_to_ops_vec): Likewise.
21709 (get_ops): Likewise.
21710 (maybe_optimize_range_tests): Likewise.
21711 (init_reassoc): Likewise.
21712 (fini_reassoc): Likewise.
21713
21714 2015-06-01 Martin Liska <mliska@suse.cz>
21715
21716 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21717 pool allocator.
21718 (bitmap_set_new): Likewise.
21719 (get_or_alloc_expr_for_constant): Likewise.
21720 (get_or_alloc_expr_for): Likewise.
21721 (phi_translate_1): Likewise.
21722 (compute_avail): Likewise.
21723 (init_pre): Likewise.
21724 (fini_pre): Likewise.
21725
21726 2015-06-01 Martin Liska <mliska@suse.cz>
21727
21728 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21729 (delete_dep_node): Likewise.
21730 (create_deps_list): Likewise.
21731 (free_deps_list): Likewise.
21732 (sched_deps_init): Likewise.
21733 (sched_deps_finish): Likewise.
21734
21735 2015-06-01 Martin Liska <mliska@suse.cz>
21736
21737 * regcprop.c (free_debug_insn_changes): Use new type-based
21738 pool allocator.
21739 (replace_oldest_value_reg): Likewise.
21740 (pass_cprop_hardreg::execute): Likewise.
21741
21742 2015-06-01 Martin Liska <mliska@suse.cz>
21743
21744 * ira-build.c (initiate_cost_vectors): Use new type-based
21745 pool allocator.
21746 (ira_allocate_cost_vector): Likewise.
21747 (ira_free_cost_vector): Likewise.
21748 (finish_cost_vectors): Likewise.
21749
21750 2015-06-01 Martin Liska <mliska@suse.cz>
21751
21752 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21753 pool allocator.
21754 (free_sched_pools): Likewise.
21755 * sel-sched-ir.h (_list_alloc): Likewise.
21756 (_list_remove): Likewise.
21757
21758 2015-06-01 Martin Liska <mliska@suse.cz>
21759
21760 * stmt.c (add_case_node): Use new type-based pool allocator.
21761 (expand_case): Likewise.
21762 (expand_sjlj_dispatch_table): Likewise.
21763
21764 2015-06-01 Martin Liska <mliska@suse.cz>
21765
21766 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21767 (free_bb): Likewise.
21768 (pass_cse_reciprocals::execute): Likewise.
21769
21770 2015-06-01 Martin Liska <mliska@suse.cz>
21771
21772 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21773 (sra_deinitialize) Likewise.
21774 (create_access_1) Likewise.
21775 (build_accesses_from_assign) Likewise.
21776 (create_artificial_child_access) Likewise.
21777
21778 2015-06-01 Martin Liska <mliska@suse.cz>
21779
21780 * dse.c (get_group_info):Use new type-based pool allocator.
21781 (dse_step0) Likewise.
21782 (free_store_info) Likewise.
21783 (delete_dead_store_insn) Likewise.
21784 (free_read_records) Likewise.
21785 (record_store) Likewise.
21786 (replace_read) Likewise.
21787 (check_mem_read_rtx) Likewise.
21788 (scan_insn) Likewise.
21789 (dse_step1) Likewise.
21790 (dse_step7) Likewise.
21791
21792 2015-06-01 Martin Liska <mliska@suse.cz>
21793
21794 * df-scan.c (struct df_scan_problem_data):Use new type-based
21795 pool allocator.
21796 (df_scan_free_internal) Likewise.
21797 (df_scan_alloc) Likewise.
21798 (df_grow_reg_info) Likewise.
21799 (df_free_ref) Likewise.
21800 (df_insn_create_insn_record) Likewise.
21801 (df_mw_hardreg_chain_delete) Likewise.
21802 (df_insn_info_delete) Likewise.
21803 (df_free_collection_rec) Likewise.
21804 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21805 (df_sort_and_compress_mws) Likewise.
21806 (df_ref_create_structure) Likewise.
21807 (df_ref_record) Likewise.
21808
21809 2015-06-01 Martin Liska <mliska@suse.cz>
21810
21811 * df-problems.c (df_chain_create):Use new type-based pool allocator.
21812 (df_chain_unlink_1) Likewise.
21813 (df_chain_unlink) Likewise.
21814 (df_chain_remove_problem) Likewise.
21815 (df_chain_alloc) Likewise.
21816 (df_chain_free) Likewise.
21817 * df.h (struct dataflow) Likewise.
21818
21819 2015-06-01 Martin Liska <mliska@suse.cz>
21820
21821 * cselib.c (new_elt_list):Use new type-based pool allocator.
21822 (new_elt_loc_list) Likewise.
21823 (unchain_one_elt_list) Likewise.
21824 (unchain_one_elt_loc_list) Likewise.
21825 (unchain_one_value) Likewise.
21826 (new_cselib_val) Likewise.
21827 (cselib_init) Likewise.
21828 (cselib_finish) Likewise.
21829
21830 2015-06-01 Martin Liska <mliska@suse.cz>
21831
21832 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21833 (sh_reorg) Likewise.
21834
21835 2015-06-01 Martin Liska <mliska@suse.cz>
21836
21837 * cfg.c (initialize_original_copy_tables):Use new type-based
21838 pool allocator.
21839 (free_original_copy_tables) Likewise.
21840 (copy_original_table_clear) Likewise.
21841 (copy_original_table_set) Likewise.
21842
21843 2015-06-01 Martin Liska <mliska@suse.cz>
21844
21845 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21846 pool allocator.
21847 (asan_mem_ref_new) Likewise.
21848 (free_mem_ref_resources) Likewise.
21849
21850 2015-06-01 Martin Liska <mliska@suse.cz>
21851
21852 * var-tracking.c (variable_htab_free):Use new type-based
21853 pool allocator.
21854 (attrs_list_clear) Likewise.
21855 (attrs_list_insert) Likewise.
21856 (attrs_list_copy) Likewise.
21857 (shared_hash_unshare) Likewise.
21858 (shared_hash_destroy) Likewise.
21859 (unshare_variable) Likewise.
21860 (var_reg_delete_and_set) Likewise.
21861 (var_reg_delete) Likewise.
21862 (var_regno_delete) Likewise.
21863 (drop_overlapping_mem_locs) Likewise.
21864 (variable_union) Likewise.
21865 (insert_into_intersection) Likewise.
21866 (canonicalize_values_star) Likewise.
21867 (variable_merge_over_cur) Likewise.
21868 (dataflow_set_merge) Likewise.
21869 (remove_duplicate_values) Likewise.
21870 (variable_post_merge_new_vals) Likewise.
21871 (dataflow_set_preserve_mem_locs) Likewise.
21872 (dataflow_set_remove_mem_locs) Likewise.
21873 (variable_from_dropped) Likewise.
21874 (variable_was_changed) Likewise.
21875 (set_slot_part) Likewise.
21876 (clobber_slot_part) Likewise.
21877 (delete_slot_part) Likewise.
21878 (loc_exp_insert_dep) Likewise.
21879 (notify_dependents_of_changed_value) Likewise.
21880 (emit_notes_for_differences_1) Likewise.
21881 (vt_emit_notes) Likewise.
21882 (vt_initialize) Likewise.
21883 (vt_finalize) Likewise.
21884
21885 2015-06-01 Martin Liska <mliska@suse.cz>
21886
21887 * ira-color.c (init_update_cost_records):Use new type-based
21888 pool allocator.
21889 (get_update_cost_record) Likewise.
21890 (free_update_cost_record_list) Likewise.
21891 (finish_update_cost_records) Likewise.
21892 (initiate_cost_update) Likewise.
21893
21894 2015-06-01 Martin Liska <mliska@suse.cz>
21895
21896 * lra.c (init_insn_regs): Use new type-based pool allocator.
21897 (new_insn_reg) Likewise.
21898 (free_insn_reg) Likewise.
21899 (free_insn_regs) Likewise.
21900 (finish_insn_regs) Likewise.
21901 (init_insn_recog_data) Likewise.
21902 (init_reg_info) Likewise.
21903 (finish_reg_info) Likewise.
21904 (lra_free_copies) Likewise.
21905 (lra_create_copy) Likewise.
21906 (invalidate_insn_data_regno_info) Likewise.
21907
21908 2015-06-01 Martin Liska <mliska@suse.cz>
21909
21910 * lra-lives.c (free_live_range): Use new type-based pool allocator.
21911 (free_live_range_list) Likewise.
21912 (create_live_range) Likewise.
21913 (copy_live_range) Likewise.
21914 (lra_merge_live_ranges) Likewise.
21915 (remove_some_program_points_and_update_live_ranges) Likewise.
21916 (lra_live_ranges_init) Likewise.
21917 (lra_live_ranges_finish) Likewise.
21918
21919 2015-06-01 Martin Liska <mliska@suse.cz>
21920
21921 * et-forest.c (et_new_occ): Use new type-based pool allocator.
21922 (et_new_tree): Likewise.
21923 (et_free_tree): Likewise.
21924 (et_free_tree_force): Likewise.
21925 (et_free_pools): Likewise.
21926 (et_split): Likewise.
21927
21928 2015-06-01 Martin Liska <mliska@suse.cz>
21929
21930 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21931 to header file.
21932 * alloc-pool.h (pool_allocator::pool_allocator): New function.
21933 (pool_allocator::release): Likewise.
21934 (inline pool_allocator::release_if_empty): Likewise.
21935 (inline pool_allocator::~pool_allocator): Likewise.
21936 (pool_allocator::allocate): Likewise.
21937 (pool_allocator::remove): Likewise.
21938
21939 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21940
21941 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21942 in comment.
21943
21944 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21945
21946 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21947 to fusible_ops.
21948 * config/arm/arm.c (arm_print_tune_info): Likewise.
21949 (arm_macro_fusion_p): Likewise.
21950 (arm_macro_fusion_pair_p): Likewise.
21951
21952 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21953
21954 * config/aarch64/aarch64-protos.h (tune_params): Rename
21955 fuseable_ops to fusible_ops.
21956 * config/aarch64/aarch64.c (generic_tunings): Rename
21957 fuseable_ops to fusible_ops.
21958 (cortexa53_tunings): Likewise.
21959 (cortexa57_tunings): Likewise.
21960 (thunderx_tunings): Likewise.
21961 (xgene1_tunings): Likewise.
21962 (aarch64_macro_fusion_p): Likewise.
21963 (aarch64_macro_fusion_pair_p): Likewise.
21964
21965 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
21966
21967 * config/s390/driver-native.c: New file.
21968 * config/s390/x-native: New file.
21969 * config.host: Add new files for s390.
21970 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
21971 and -march=native
21972 * config.gcc: Likewise.
21973 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
21974 * config/s390/s390-opts.h (enum processor_type): Ditto.
21975 * config/s390/s390.c (s390_option_override): Catch unhandled
21976 PROCESSOR_NATIVE
21977
21978 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
21979
21980 PR target/65527
21981 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
21982 redirection for instrumented calls.
21983 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
21984 (append_compiler_options): Append -fcheck-pointer-bounds.
21985 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
21986 (chkp_redirect_edge): New.
21987 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
21988 (chkp_redirect_edge): New.
21989
21990 2015-06-01 Richard Biener <rguenther@suse.de>
21991
21992 PR tree-optimization/66280
21993 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
21994 def-use walking.
21995
21996 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21997
21998 * config/aarch64/aarch64.md
21999 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
22000 logic_shift_imm.
22001
22002 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
22003
22004 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
22005 Remove obsolete kludge.
22006
22007 2015-06-01 Richard Biener <rguenther@suse.de>
22008
22009 * tree-ssa-reassoc.c (get_rank): Simplify.
22010
22011 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
22012
22013 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
22014 * configure: Regenerated.
22015
22016 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
22017
22018 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
22019 issue (add space between string literal and macro).
22020 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
22021
22022 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
22023
22024 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
22025 implict or explicit -fPIE or -fpie.
22026
22027 2015-05-30 Mike Frysinger <vapier@gentoo.org>
22028
22029 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
22030
22031 2015-05-28 DJ Delorie <dj@redhat.com>
22032
22033 * expmed.c (extract_bit_field_1): Avoid clobbering a
22034 yet-to-be-used base/index register.
22035
22036 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
22037
22038 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
22039 (alias_stats): Add num_universal.
22040 (alias_set_subset_of): Special case pointers; be ready for NULL
22041 children.
22042 (alias_sets_conflict_p): Special case pointers; be ready for NULL
22043 children.
22044 (init_alias_set_entry): Break out from ...
22045 (record_alias_subset): ... here; propagate new fields;
22046 allocate children only when really needed.
22047 (get_alias_set): Do less generous pointer globbing.
22048 (dump_alias_stats_in_alias_c): Update statistics.
22049
22050 2015-05-30 Alan Modra <amodra@gmail.com>
22051
22052 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
22053 correct block for use of r12.
22054 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
22055
22056 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22057
22058 PR target/66215
22059 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
22060 with -mhotpatch=.
22061
22062 2015-05-29 Jakub Jelinek <jakub@redhat.com>
22063
22064 PR tree-optimization/66142
22065 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
22066 virtual phis that feed themselves.
22067
22068 2015-05-29 Richard Biener <rguenther@suse.de>
22069
22070 PR tree-optimization/66314
22071 * tree-ssa-threadupdate.c (create_block_for_threading): Add
22072 parameter that says which loop the new block belongs to.
22073 (ssa_create_duplicates): Blocks duplicated for the threaded
22074 path belong to the loop of the thread destination.
22075
22076 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22077
22078 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
22079 to cleanup-saved-temps.
22080 * doc/sourcebuild.texi (Clean up generated test files): Expand
22081 introduction.
22082 (dg-keep-saved-temps): Document new proc.
22083 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
22084 cleanup-saved-temps): Remove.
22085
22086 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
22087
22088 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
22089 gcc_AC_CHECK_DECLS.
22090 * configure: Regenerate.
22091
22092 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22093
22094 * config/nios2/linux.h (CPP_SPEC): Define.
22095
22096 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22097
22098 * config/microblaze/linux.h (CPP_SPEC): Define.
22099
22100 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22101
22102 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
22103 -pthread is specified.
22104
22105 2015-05-28 Richard Biener <rguenther@suse.de>
22106
22107 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
22108 (vect_fixup_scalar_cycles_with_patterns): Likewise.
22109 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
22110 after pattern recog.
22111 (vect_create_epilog_for_reduction): Properly handle reductions
22112 with patterns.
22113 (vectorizable_reduction): Likewise.
22114 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
22115 reduction chains.
22116 (vect_get_constant_vectors): Create the correct number of
22117 initial values for reductions.
22118 (vect_schedule_slp_instance): Handle reduction chains that are
22119 type changing properly.
22120 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
22121
22122 2015-05-28 Richard Biener <rguenther@suse.de>
22123
22124 PR tree-optimization/66142
22125 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
22126 values better in memcpy destination handling. Handle non-aliasing
22127 we discover here.
22128
22129 2015-05-28 Lawrence Velázquez <vq@larryv.me>
22130
22131 PR target/63810
22132 * config/darwin-c.c (version_components): New global enum.
22133 (parse_version, version_as_legacy_macro)
22134 (version_as_modern_macro, macosx_version_as_macro): New functions.
22135 (version_as_macro): Remove.
22136 (darwin_cpp_builtins): Use new function.
22137
22138 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
22139
22140 * builtins.c (expand_builtin_acc_on_device): Mark parameters
22141 with ATTRIBUTE_UNUSED.
22142
22143 2015-05-28 Julian Brown <julian@codesourcery.com>
22144
22145 PR libgomp/65742
22146
22147 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
22148 sequence for !ACCEL_COMPILER.
22149
22150 2015-05-28 Nick Clifton <nickc@redhat.com>
22151
22152 * config/rx/rx.c (push_regs): New function. Extracts code from...
22153 (rx_expand_prologue): ... here. Use push_regs to push even small
22154 spans of registers.
22155 (pop_regs): New function.
22156 (rx_expand_epilogue): Use pop_regs to pop even small spans of
22157 registers.
22158
22159 2015-05-28 Richard Biener <rguenther@suse.de>
22160
22161 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
22162 member.
22163 (SLP_INSTANCE_BODY_COST_VEC): Remove.
22164 (vect_update_slp_costs_according_to_vf): Likewise.
22165 (vect_slp_analyze_operations): Update prototype.
22166 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
22167 vect_update_slp_costs_according_to_vf, adjust.
22168 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
22169 (vect_analyze_slp_cost_1): Likewise.
22170 (vect_analyze_slp_cost): Likewise. Properly deal with
22171 widening reduction ops. Commit body costs.
22172 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
22173 cost for loops from here.
22174 (vect_slp_analyze_operations): But do it from here when
22175 the vectorization factor is known and stmts are analyzed.
22176 (vect_bb_vectorization_profitable_p): Simplify.
22177 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
22178 (vect_update_slp_costs_according_to_vf): Remove.
22179
22180 2015-05-27 Magnus Granberg <zorry@gentoo.org>
22181 H.J. Lu <hongjiu.lu@intel.com>
22182
22183 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
22184 (BUILD_CFLAGS): Likewise.
22185 (BUILD_CXXFLAGS): Likewise.
22186 (LINKER): Add @NO_PIE_FLAG@.
22187 (BUILD_LDFLAGS): Likewise.
22188 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
22189 --enable-default-pie.
22190 * common.opt (fPIE): Initialize to -1.
22191 (fpie): Likewise.
22192 (no-pie): New option.
22193 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
22194 * configure.ac: Add --enable-default-pie.
22195 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
22196 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
22197 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
22198 * gcc.c (NO_PIE_SPEC): New.
22199 (PIE_SPEC): Likewise.
22200 (NO_FPIE1_SPEC): Likewise.
22201 (FPIE1_SPEC): Likewise.
22202 (NO_FPIE2_SPEC): Likewise.
22203 (FPIE2_SPEC): Likewise.
22204 (NO_FPIE2_SPEC): Likewise.
22205 (FPIE_SPEC): Likewise.
22206 (NO_FPIE_SPEC): Likewise.
22207 (NO_FPIC1_SPEC): Likewise.
22208 (FPIC1_SPEC): Likewise.
22209 (NO_FPIC2_SPEC): Likewise.
22210 (FPIC2_SPEC): Likewise.
22211 (NO_FPIC2_SPEC): Likewise.
22212 (FPIC_SPEC): Likewise.
22213 (NO_FPIC_SPEC): Likewise.
22214 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22215 (FPIE1_OR_FPIC1_SPEC): Likewise.
22216 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22217 (FPIE2_OR_FPIC2_SPEC): Likewise.
22218 (NO_FPIE_AND_FPIC_SPEC): Likewise.
22219 (FPIE_OR_FPIC_SPEC): Likewise.
22220 (LD_PIE_SPEC): Likewise.
22221 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
22222 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22223 * config/darwin.h (PIE_SPEC): Renamed to ...
22224 (DARWIN_PIE_SPEC): This.
22225 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22226 * config/darwin9.h (PIE_SPEC): Renamed to ...
22227 (DARWIN_PIE_SPEC): This.
22228 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22229 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22230 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22231 FPIE2_OR_FPIC2_SPEC.
22232 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22233 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22234 * config/sol2.h (ASM_PIC_SPEC): Likewise.
22235 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22236 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22237 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22238 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22239 * config/m32r/m32r.h (ASM_SPEC): Likewise.
22240 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22241 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22242 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22243 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22244 * config/sparc/linux.h (ASM_SPEC): Likewise.
22245 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22246 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22247 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22248 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22249 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22250 * config/sparc/sparc.h (ASM_SPEC): Likewise.
22251 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22252 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22253 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22254 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22255 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22256 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22257 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22258 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22259 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22260 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22261 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22262 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22263 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22264 * config/vax/linux.h (ASM_SPEC): Likewise.
22265 * doc/install.texi: Document --enable-default-pie.
22266 * doc/invoke.texi: Document -no-pie.
22267 * config.in: Regenerated.
22268 * configure: Likewise.
22269
22270 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22271
22272 PR rtl-optimization/66168
22273 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22274 can_move_invariant_reg.
22275
22276 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
22277
22278 PR target/66148
22279 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22280 REG_EQUAL note when doing insert.
22281
22282 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22283 instead of "%d" for 'o' operand.
22284
22285 2015-05-27 Nathan Sidwell <nathan@acm.org>
22286
22287 PR c++/66270
22288 * tree.c (build_pointer_type_for_mode): Canonical type does not
22289 inherit can_alias_all.
22290 (build_reference_type_for_mode): Likewise.
22291
22292 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
22293
22294 * expr.h (array_at_struct_end_p): Move to...
22295 (array_ref_element_size): Likewise.
22296 (component_ref_field_offset): Likewise.
22297 * tree.h (array_ref_element_size): ...here.
22298 (array_at_struct_end_p): Likewise.
22299 (component_ref_field_offset): Likewise.
22300 * expr.c (array_ref_element_size): Move to...
22301 (array_ref_low_bound): Likewise.
22302 (array_at_struct_end_p): Likewise.
22303 (array_ref_up_bound): Likewise.
22304 (component_ref_field_offset): Likewise.
22305 * tree.c (array_ref_element_size): ...here.
22306 (array_ref_low_bound): Likewise.
22307 (array_ref_up_bound): Likewise.
22308 (array_at_struct_end_p): Likewise.
22309 (component_ref_field_offset): Likewise.
22310
22311 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22312 Szabolcs Nagy <szabolcs.nagy@arm.com>
22313
22314 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22315
22316 2015-05-27 Jason Merrill <jason@redhat.com>
22317
22318 PR bootstrap/66304
22319 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22320 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22321 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22322
22323 2015-05-22 Aditya Kumar <hiraditya@msn.com>
22324
22325 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22326 is true.
22327
22328 * statistics.c (statistics_fini_pass): Print pass name.
22329
22330 2015-05-27 Richard Biener <rguenther@suse.de>
22331
22332 PR tree-optimization/66272
22333 Revert parts of
22334 2014-08-15 Richard Biener <rguenther@suse.de>
22335
22336 PR tree-optimization/62031
22337 * tree-data-ref.c (dr_analyze_indices): Do not set
22338 DR_UNCONSTRAINED_BASE.
22339 (dr_may_alias_p): All indirect accesses have to go the
22340 formerly DR_UNCONSTRAINED_BASE path.
22341 * tree-data-ref.h (struct indices): Remove
22342 unconstrained_base member.
22343 (DR_UNCONSTRAINED_BASE): Remove.
22344
22345 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
22346
22347 * dwarf2out.c: Remove block_map.
22348 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
22349 (gen_lexical_block_die): Same.
22350 (dwarf2out_function_decl): Remove block_map use.
22351 (dwarf2out_c_finalize): Same.
22352 * tree-core.h (struct tree_block): Add die field.
22353 * tree.h (BLOCK_DIE): New.
22354
22355 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22356
22357 PR target/65358
22358 * expr.c (memory_load_overlap): New function.
22359 (emit_push_insn): When pushing partial args to the stack would
22360 clobber the register part load the overlapping part into a pseudo
22361 and put it into the hard reg after pushing. Change return type
22362 to bool. Add bool argument.
22363 * expr.h (emit_push_insn): Change return type to bool.
22364 Add bool argument.
22365 * calls.c (expand_call): Cancel sibcall optimization when encountering
22366 partial argument on targets with ARGS_GROW_DOWNWARD and
22367 !STACK_GROWS_DOWNWARD.
22368 (emit_library_call_value_1): Update callsite of emit_push_insn.
22369 (store_one_arg): Likewise.
22370
22371 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22372
22373 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22374
22375 2015-05-27 Martin Liska <mliska@suse.cz>
22376
22377 * Makefile.in: Add additional dependencies related to memory report
22378 enhancement.
22379 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22380 * bitmap.c (struct bitmap_descriptor_d): Remove.
22381 (struct loc): Likewise.
22382 (struct bitmap_desc_hasher): Likewise.
22383 (bitmap_desc_hasher::hash): Likewise.
22384 (bitmap_desc_hasher::equal): Likewise.
22385 (get_bitmap_descriptor): Likewise.
22386 (bitmap_register): User new memory descriptor API.
22387 (register_overhead): Likewise.
22388 (bitmap_find_bit): Register nsearches and search_iter statistics.
22389 (struct bitmap_output_info): Remove.
22390 (print_statistics): Likewise.
22391 (dump_bitmap_statistics): Use new memory descriptor.
22392 * bitmap.h (struct bitmap_usage): New class.
22393 * genmatch.c: Extend header file inclusion.
22394 * genpreds.c: Likewise.
22395 * ggc-common.c (struct ggc_usage): New class.
22396 (struct ggc_loc_desc_hasher): Remove.
22397 (ggc_loc_desc_hasher::hash): Likewise.
22398 (ggc_loc_desc_hasher::equal): Likewise.
22399 (struct ggc_ptr_hash_entry): Likewise.
22400 (struct ptr_hash_hasher): Likewise.
22401 (ptr_hash_hasher::hash): Likewise.
22402 (ptr_hash_hasher::equal): Likewise.
22403 (make_loc_descriptor): Likewise.
22404 (ggc_prune_ptr): Likewise.
22405 (dump_ggc_loc_statistics): Use new memory descriptor.
22406 (ggc_record_overhead): Likewise.
22407 (ggc_free_overhead): Likewise.
22408 (final_cmp_statistic): Remove.
22409 (cmp_statistic): Likewise.
22410 (ggc_add_statistics): Liekwise.
22411 (ggc_prune_overhead_list): Likewise.
22412 * hash-map-traits.h: New file.
22413 * hash-map.h (struct default_hashmap_traits): Move the traits to a
22414 separate header file.
22415 * hash-set.h: Pass memory statistics info to ctor.
22416 * hash-table.c (void dump_hash_table_loc_statistics): New function.
22417 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22418 (hash_table::~hash_table): Register memory release operation.
22419 (hash_table::alloc_entries): Handle memory allocation operation.
22420 (hash_table::expand): Likewise.
22421 * inchash.c (iterative_hash_hashval_t): Move implementation to header
22422 file.
22423 (iterative_hash_host_wide_int): Likewise.
22424 * inchash.h (class hash): Likewise.
22425 * mem-stats-traits.h: New file.
22426 * mem-stats.h: New file.
22427 (mem_location): Add new class.
22428 (mem_usage): Likewise.
22429 (mem_alloc_description): Likewise.
22430 * sese.c: Add new header file inclusision.
22431 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22432 and hash_set.
22433 * tree-sra.c: Add new header file inclusision.
22434 * vec.c (struct vec_descriptor): Remove.
22435 (hash_descriptor): Likewise.
22436 (struct vec_usage): Likewise.
22437 (struct ptr_hash_entry): Likewise.
22438 (hash_ptr): Likewise.
22439 (eq_ptr): Likewise.
22440 (vec_prefix::register_overhead): Use new memory descriptor API.
22441 (vec_prefix::release_overhead): Likewise.
22442 (add_statistics): Remove.
22443 (dump_vec_loc_statistics): Use new memory descriptor API.
22444 * vec.h (struct vec_prefix): Likewise.
22445 (va_heap::reserve): Likewise.
22446 (va_heap::release): Likewise.
22447 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22448
22449 2015-05-27 Richard Biener <rguenther@suse.de>
22450
22451 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22452 earlier and remove ??? comment.
22453 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22454 and got called from loop analysis bail out. Always pass the SLP
22455 node to the vectorizable_* functions.
22456 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22457 the premature SLP check here.
22458 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22459 detected SLP stmts.
22460 (vect_detect_hybrid_slp_1): Likewise.
22461
22462 2015-05-26 Jeff Law <law@redhat.com>
22463
22464 * combine.c (find_split_point): Verify that the shift count is a
22465 constant when choosing (plus (ashift ...)) as a split point.
22466
22467 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22468 No functional changes.
22469
22470 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
22471
22472 * ipa-polymorphic-call.c
22473 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22474 case when call target is already known.
22475
22476 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
22477
22478 PR target/65979
22479 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22480 take into account the case that operands[1] and operands[2]
22481 are the same register.
22482
22483 2015-05-26 Michael Matz <matz@suse.de>
22484
22485 PR middle-end/66251
22486
22487 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22488 stores.
22489 (vect_create_vectorized_demotion_stmts): Always set
22490 STMT_VINFO_VEC_STMT, also with SLP.
22491 (vectorizable_store): Handle strided group stores.
22492
22493 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22494
22495 PR target/66049
22496 * config/aarch64/aarch64.md
22497 (*adds_shift_imm_<mode>): New pattern.
22498 (*subs_shift_imm_<mode>): Likewise.
22499 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22500 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22501 (*add_uxt<mode>_shift2): Likewise.
22502 (*add_uxtsi_shift2_uxtw): Likewise.
22503 (*sub_uxt<mode>_shift2): Likewise.
22504 (*sub_uxtsi_shift2_uxtw): Likewise.
22505
22506 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
22507
22508 * config/rs6000/constraints.md (Y, U): Use match_test.
22509
22510 2015-05-26 Christian Bruel <christian.bruel@st.com>
22511
22512 PR target/52144
22513 * config/arm/arm.c (arm_option_check_internal)
22514 (arm_option_params_internal): Check opts->target_flags to set macros.
22515 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22516 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22517 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22518 (builtin_define): Replaced with def_or_undef_macro.
22519 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22520 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22521 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22522 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22523 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22524 (TARGET_ARM_FEATURE_LDREX_P)
22525 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22526 * config/arm/arm-c.c (def_or_undef_macro): New function.
22527 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22528
22529 2015-05-26 Christian Bruel <christian.bruel@st.com>
22530
22531 * c-common.h (builtin_define_with_int_value)
22532 (builtin_define_type_sizeof): Declare.
22533 * c-cppbuiltin.c (builtin_define_with_int_value)
22534 (builtin_define_type_sizeof): Externalize.
22535 (builtin_define_std): Cleanup declaration.
22536 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22537 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22538 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22539 (builtin_define, builtin_assert): New macros.
22540
22541 2015-05-26 Richard Biener <rguenther@suse.de>
22542
22543 PR tree-optimization/66142
22544 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22545 MEM_REFs for the same base address.
22546
22547 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22548
22549 PR ipa/66181
22550 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22551
22552 2015-05-26 Jason Merrill <jason@redhat.com>
22553
22554 * configure.ac: Set CXXFLAGS for ISL test.
22555 * configure: Regenerate.
22556
22557 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
22558 strstr and basename.
22559 * configure: Regenerate.
22560
22561 2015-05-26 Richard Biener <rguenther@suse.de>
22562
22563 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22564 X % C -> X & (C - 1) for C being a power-of two to ...
22565 * match.pd: ... patterns.
22566
22567 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
22568
22569 * match.pd (swapped_tcc_comparison): New operator list.
22570 (-A CMP -B): New simplification.
22571 * fold-const.c (fold_comparison): Remove corresponding code.
22572
22573 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22574
22575 * caller-save.c (init_caller_save): Base temporary register numbers
22576 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22577 * cfgloopanal.c (init_set_costs): Likewise.
22578 * dojump.c (prefer_and_bit_test): Likewise.
22579 * expr.c (init_expr_target): Likewise.
22580 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22581 * lower-subreg.c (init_lower_subreg): Likewise.
22582 * postreload.c (reload_cse_regs_1): Likewise.
22583
22584 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22585
22586 * gensupport.h (compute_test_codes): Declare.
22587 * gensupport.c (compute_predicate_codes): Rename to...
22588 (compute_test_codes): ...this. Generalize error message.
22589 (process_define_predicate): Update accordingly.
22590 * genpreds.c (compute_maybe_allows): Delete.
22591 (add_constraint): Use compute_test_codes to determine whether
22592 something can accept a SUBREG, REG or MEM.
22593
22594 2015-05-26 Torvald Riegel <triegel@redhat.com>
22595
22596 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22597 'memory model' to align with C++11; fix description of memory orders;
22598 fix a few typos.
22599
22600 2015-05-26 Richard Biener <rguenther@suse.de>
22601
22602 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22603 (vect_analyze_loop_operations): ... here. Remove slp parameter,
22604 detect whether we apply SLP. Remove call to
22605 vect_update_slp_costs_according_to_vf.
22606 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22607 vect_update_slp_costs_according_to_vf from here. Dispatch
22608 to vect_slp_analyze_operations to analyze SLP stmts.
22609 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22610 unused bb_vec_info parameter, adjust assert.
22611 (vect_slp_analyze_operations): Pass in the slp instance tree
22612 instead of bb_vec_info.
22613 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22614 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22615
22616 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22617
22618 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22619 Q_REGS. Expand comment.
22620 (REG_CLASS_NAMES): Ditto.
22621 (REG_CLASS_CONTENTS): Ditto.
22622
22623 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
22624
22625 PR target/66274
22626 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22627 when LEGACY_INT_REGNO_P is processed.
22628
22629 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22630
22631 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22632
22633 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22634
22635 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22636 register if not marked dead/unused, before return.
22637
22638 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22639
22640 PR lto/66180
22641 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22642 is set; check for assembler name at LTO time.
22643 (type_in_anonymous_namespace): Remove hacks, check that all
22644 anonymous types are called "<anon>"
22645 (odr_type_p): Simplify; add check for "<anon>"
22646 (odr_subtypes_equivalent): Add odr_type_p check.
22647 * tree.c (need_assembler_name_p): Even anonymous namespace needs
22648 assembler name.
22649
22650 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22651
22652 * ipa-utils.h (method_class_type): Remove.
22653 * cgraphunit.c (walk_polymorphic_call_targets): Use
22654 TYPE_METHOD_BASETYPE.
22655 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22656 on main variants only.
22657 (method_class_type): Remove.
22658 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22659 (build_type_inheritance_graph): Likewise.
22660 * ipa-icf.c (sem_function::equals_wpa): Likewise.
22661 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22662 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22663
22664 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22665
22666 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22667 is_typedef_decl, typedef_variant_p): Constify.
22668 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22669 is_typedef_decl, typedef_variant_p): Constify.
22670
22671 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22672
22673 * defaults.h (gen_tablejump): New function.
22674 (HAVE_tablejump): Add default value.
22675 * expr.c: Adjust.
22676 * stmt.c: Likewise.
22677
22678 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22679
22680 * defaults.h (gen_store_multiple): New function.
22681 (HAVE_store_multiple): Add default value.
22682 * expr.c (move_block_from_reg): Adjust.
22683
22684 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22685
22686 * defaults.h (gen_load_multiple): New function.
22687 (HAVE_load_multiple): Add default value.
22688 * expr.c (move_block_to_reg): Adjust.
22689
22690 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22691
22692 * defaults.h (gen_mem_signal_fence): New function.
22693 (HAVE_mem_signal_fence): Add default value.
22694 * optabs.c: Adjust.
22695
22696 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22697
22698 * defaults.h (gen_memory_barrier): New function.
22699 (HAVE_memory_barrier): Add default value.
22700 * optabs.c: Adjust.
22701
22702 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22703
22704 * defaults.h (gen_mem_thread_fence): New function.
22705 (HAVE_mem_thread_fence): Add default definition.
22706 * optabs.c: Adjust.
22707
22708 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22709
22710 * combine.c (find_split_point): Check the value of HAVE_lo_sum
22711 instead of if it is defined.
22712 (combine_simplify_rtx): Likewise.
22713 * lra-constraints.c (process_address_1): Likewise.
22714 * config/darwin.c: Adjust.
22715 * genconfig.c (main): Always define HAVE_lo_sum.
22716
22717 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22718
22719 * genmatch.c (parser::parse_operation): Reject expanding
22720 operator-list inside 'for'.
22721
22722 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22723
22724 * genmatch.c (parser::parse_for): Reject iterator if used as
22725 operator-list.
22726
22727 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22728
22729 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22730 after end of id-list.
22731
22732 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22733
22734 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22735 we do not try to compute canonical type for type that does not need
22736 alias set.
22737 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22738 FUNCITON_TYPE.
22739 * tree.h (type_with_alias_set_p): New.
22740
22741 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22742
22743 * tree.c (gimple_canonical_types_compatible_p): Do not compare
22744 function attributes.
22745 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22746
22747 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
22748
22749 * Makefile.in (check_gcc_parallelize): Delete.
22750 (lang_checks_parallelized): Update comment.
22751
22752 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
22753
22754 PR rtl-optimization/66237
22755 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22756 location of an "as_a" cast.
22757
22758 2015-05-22 Jeff Law <law@redhat.com>
22759
22760 * config/pa/pa.md (non-canonical shift-add insns): Remove.
22761 (peepholes with non-canonical RTL sources): Remove.
22762 (peepholes for indexed stores of FP regs in integer modes): Match and
22763 generate canonical RTL.
22764
22765 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22766
22767 PR tree-optimization/63387
22768 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22769 ((x ord x) & (y ord y) -> (x ord y),
22770 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22771 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22772 vectors like scalars.
22773
22774 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22775
22776 * convert.c (convert_to_integer, convert_to_vector): Include the
22777 types in the error message.
22778
22779 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22780
22781 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22782 simplifications.
22783
22784 2015-05-22 Jeff Law <law@redhat.com>
22785
22786 * config/pa/pa.md (integer_indexed_store splitters): Use
22787 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
22788 insns -- adjusting the constant 2nd operand accordingly.
22789
22790 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22791 (plus (ashift X log2) Y) if it is a split point.
22792
22793 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22794 out of hppa_legitimize_address to handle both forms of a multiply
22795 by 2, 4 or 8.
22796 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22797 Always generate the ASHIFT variant as the result is not directly
22798 used in a MEM. Update comments and refactor slightly to improve
22799 readability.
22800
22801 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22802
22803 PR target/65491
22804 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22805 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
22806 (aarch64_composite_type_p): Return false if given type and mode are
22807 for a short vector.
22808
22809 2015-05-22 Richard Biener <rguenther@suse.de>
22810
22811 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22812 member.
22813 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22814 patterns when determining whether SLP is pure.
22815 (vect_is_slp_reduction): Remove check for pattern stmts.
22816 (vect_is_simple_reduction_1): Remove dead code.
22817 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22818 (vect_get_and_check_slp_defs): Pass in the stmt number.
22819 Allow the first def in a reduction to be not a pattern stmt when
22820 the rest of the stmts def are patterns.
22821 (vect_build_slp_tree_1): Allow tcc_expression codes like
22822 SAD_EXPR and DOT_PROD_EXPR.
22823 (vect_build_slp_tree): Adjust.
22824 (vect_analyze_slp): Refactor and move BB vect error message ...
22825 (vect_slp_analyze_bb_1): ... here.
22826
22827 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
22828
22829 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22830 for CSWTCH temporary.
22831
22832 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22833
22834 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22835 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
22836 unknown unspecs.
22837
22838 2015-05-22 Richard Biener <rguenther@suse.de>
22839
22840 PR tree-optimization/66251
22841 * tree-vect-stmts.c (vectorizable_conversion): Properly
22842 set STMT_VINFO_VEC_STMT even for the SLP case.
22843
22844 2015-05-22 Marek Polacek <polacek@redhat.com>
22845
22846 * doc/extend.texi: Use @pxref instead of @xref.
22847
22848 2015-05-22 hiraditya <hiraditya@msn.com>
22849
22850 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22851 redundant if.
22852
22853 2015-05-22 Richard Biener <rguenther@suse.de>
22854
22855 PR tree-optimization/65701
22856 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22857 Move peeling cost models into one place. Peel for alignment
22858 for single loads only if an aligned load is cheaper than
22859 an unaligned load.
22860
22861 2015-05-22 Marek Polacek <polacek@redhat.com>
22862
22863 PR c/47043
22864 * doc/extend.texi (Enumerator Attributes): New section.
22865 Document syntax of enumerator attributes.
22866
22867 2015-05-22 Richard Biener <rguenther@suse.de>
22868
22869 * tree-vect-loop.c (get_reduction_op): New function.
22870 (vect_model_reduction_cost): Use it, add reduc_index parameter.
22871 Make ready for BB reductions.
22872 (vect_create_epilog_for_reduction): Use get_reduction_op.
22873 (vectorizable_reduction): Init reduc_index to a valid value.
22874 Adjust vect_model_reduction_cost call.
22875 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22876 operand for reduction defaults. Add SAD_EXPR support.
22877 Assert we have a neutral op for SLP reductions.
22878 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22879 walking pattern stmt ops only recurse to SSA names.
22880
22881 2015-05-22 Richard Biener <rguenther@suse.de>
22882
22883 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22884 assert with guard, remove check on detected reduction.
22885 (vect_recog_sad_pattern): Likewise.
22886 (vect_recog_widen_sum_pattern): Likewise.
22887
22888 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22889
22890 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22891 __always_inline__ attribute.
22892 (vaesdq_u8): Likewise.
22893 (vaesmcq_u8): Likewise.
22894 (vaesimcq_u8): Likewise.
22895 (vsha1cq_u32): Likewise.
22896 (vsha1mq_u32): Likewise.
22897 (vsha1pq_u32): Likewise.
22898 (vsha1h_u32): Likewise.
22899 (vsha1su0q_u32): Likewise.
22900 (vsha1su1q_u32): Likewise.
22901 (vsha256hq_u32): Likewise.
22902 (vsha256h2q_u32): Likewise.
22903 (vsha256su0q_u32): Likewise.
22904 (vsha256su1q_u32): Likewise.
22905 (vmull_p64): Likewise.
22906 (vmull_high_p64): Likewise.
22907
22908 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22909
22910 * final.c (final_scan_insn): Don't check HAVE_peephole with the
22911 preprocessor.
22912 * output.h: Likewise.
22913 * genconfig.c (main): Alwways define HAVE_peephole.
22914 * genpeep.c: Don't emit checks of HAVE_peephole.
22915
22916 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22917
22918 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22919 check HAVE_conditional_move with the preprocessor.
22920
22921 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22922
22923 * genconfig.c (main): Always define HAVE_conditional_move.
22924 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22925 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22926 is defined.
22927
22928 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22929
22930 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22931 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22932 and FRAME_POINTER_REGNUM with the preprocessor.
22933
22934 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22935
22936 * defaults.h: Add default for STACK_PUSH_CODE.
22937 * expr.c: Don't redefine STACK_PUSH_CODE.
22938 * recog.c: Likewise.
22939
22940 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22941
22942 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22943 sched-deps.c: Use if instead of preprocessor checks with
22944 STACK_GROWS_DOWNWARD.
22945
22946 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22947
22948 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22949 is defined.
22950 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22951 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22952 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22953 * doc/tm.texi: Regenerate.
22954
22955 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
22956
22957 PR target/66232
22958 * config/i386/constraints.md (Bg): New constraint for GOT memory
22959 operand.
22960 * config/i386/i386.md (*call_got_x32): New pattern.
22961 (*call_value_got_x32): Likewise.
22962 * config/i386/predicates.md (GOT_memory_operand): New predicate.
22963
22964 2015-05-21 Jakub Jelinek <jakub@redhat.com>
22965
22966 PR tree-optimization/66233
22967 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22968 Simplify.
22969
22970 2015-05-21 Jeff Law <law@redhat.com>
22971
22972 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
22973 than MULT for shadd sequences.
22974
22975 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
22976
22977 * alias.c (alias_stats): New static var.
22978 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
22979 (dump_alias_stats_in_alias_c): New function.
22980 * alias.h (dump_alias_stats_in_alias_c): Declare.
22981 * tree-ssa-alias.c (dump_alias_stats): Call it.
22982
22983 2015-05-08 Michael Matz <matz@suse.de>
22984
22985 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
22986 to strided_p.
22987 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
22988 (STMT_VINFO_STRIDED_P): ... this.
22989 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
22990 (vect_verify_datarefs_alignment): Likewise.
22991 (vect_enhance_data_refs_alignment): Likewise.
22992 (vect_analyze_data_ref_access): Likewise.
22993 (vect_analyze_data_refs): Accept strided stores.
22994 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
22995 (vect_model_load_cost): Adjust for macro rename.
22996 (vectorizable_mask_load_store): Likewise.
22997 (vectorizable_load): Likewise.
22998 (vectorizable_store): Open code strided stores.
22999
23000 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23001
23002 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
23003 Document sqrt_insn.
23004
23005 2015-05-21 Richard Biener <rguenther@suse.de>
23006
23007 PR c++/66211
23008 * match.pd: Guard pattern optimzing (int)(float)int
23009 conversions to apply only on GIMPLE.
23010
23011 2015-05-21 Jeff Law <law@redhat.com>
23012
23013 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
23014 multiply-accumulate/shift-add insn generation.
23015
23016 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23017
23018 PR target/54236
23019 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
23020 operands[1] are the same.
23021
23022 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
23023
23024 PR middle-end/66221
23025 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
23026 build_distinct_type_copy to copy bounds.
23027
23028 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
23029
23030 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
23031 Change to unsigned int.
23032
23033 2015-05-20 Jeff Law <law@redhat.com>
23034
23035 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
23036 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
23037 (pa_shadd_constant_p): Allow constants for shadd insns rather
23038 than valid scaling constants for memory addresses.
23039 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
23040 * config/pa/predicates.md (mem_shadd_operand): New predicate.
23041 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
23042 (shift-add insns using ASHIFT): New patterns.
23043
23044 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
23045
23046 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
23047 feasible.
23048 (fix_up_fall_thru_edges): Likewise.
23049 (fix_crossing_conditional_branches): Likewise. Promote jump targets
23050 from to rtx_insn to rtx_code_label where feasible.
23051 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
23052 gen_move_insn (returned type changed to rtx_insn).
23053 * builtins.c (expand_errno_check): Fix arguments of
23054 do_compare_rtx_and_jump (now expects rtx_code_label).
23055 (expand_builtin_acc_on_device): Likewise.
23056 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
23057 invert_jump (now exprects rtx_jump_insn).
23058 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
23059 (construct_init_block): Use rtx_code_label.
23060 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
23061 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
23062 calling redirect_jump.
23063 (patch_jump_insn): Likewise.
23064 (redirect_branch_edge): Likewise.
23065 (force_nonfallthru_and_redirect): Likewise.
23066 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
23067 when suitable.
23068 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
23069 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
23070 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
23071 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
23072 to store the value retured by gen_label_rtx.
23073 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
23074 rtx_jump_insn.
23075 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
23076 (split_branches): Fix calls of redirect_jump.
23077 * dojump.c (jumpifnot): Promote argument type from rtx to
23078 rtx_code_label.
23079 (jumpifnot_1): Likewise.
23080 (jumpif): Likewise.
23081 (jumpif_1): Likewise.
23082 (do_jump_1): Likewise.
23083 (do_jump): Likewise. Use rtx_code_label when feasible.
23084 (do_jump_by_parts_greater_rtx): Likewise.
23085 (do_jump_by_parts_zero_rtx): Likewise.
23086 (do_jump_by_parts_equality_rtx): Likewise.
23087 (do_compare_rtx_and_jump): Likewise.
23088 * dojump.h: Update function prototypes.
23089 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
23090 returns rtx_insn).
23091 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
23092 rtx_jump_insn.
23093 (emit_label_before): Likewise.
23094 (emit_jump_insn_after_noloc): Likewise.
23095 (emit_jump_insn_after_setloc): Likewise.
23096 (emit_jump_insn_after): Likewise
23097 (emit_jump_insn_before_setloc): Likewise.
23098 (emit_jump_insn_before): Likewise.
23099 (emit_label_before): Promote return type to rtx_code_label.
23100 (emit_label): Likewise.
23101 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
23102 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
23103 gen_move_insn.
23104 (emit_stack_restore): Likewise.
23105 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
23106 (do_cmp_and_jump): Likewise.
23107 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
23108 from rtx to rtx_code_label.
23109 (gen_move_insn_uncast): New function.
23110 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
23111 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
23112 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
23113 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
23114 invert_jump_1 and redirect_jump_1.
23115 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
23116 do_compare_rtx_and_jump.
23117 (expand_addsub_overflow): Likewise.
23118 (expand_neg_overflow): Likewise.
23119 (expand_mul_overflow): Likewise.
23120 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
23121 return value of gen_move_insn.
23122 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
23123 * loop-doloop.c (add_test): Use rtx_code_label.
23124 (doloop_modify): Likewise.
23125 (doloop_optimize): Likewise.
23126 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
23127 * lra-constraints.c (emit_spill_move): Remove cast of value returned
23128 by gen_move_insn.
23129 (inherit_reload_reg): Add cast when calling dump_insn_slim.
23130 (split_reg): Likewise.
23131 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
23132 gen_move_insn.
23133 * optabs.c (expand_binop_directly): Remove casts of values returned by
23134 maybe_gen_insn.
23135 (expand_unop_direct): Likewise.
23136 (expand_abs): Likewise.
23137 (maybe_emit_unop_insn): Likewise.
23138 (maybe_gen_insn): Promote return type to rtx_insn.
23139 * optabs.h: Update prototype of maybe_gen_insn.
23140 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
23141 redundant cast.
23142 * recog.c (struct peep2_insn_data): Promote type of insn field to
23143 rtx_insn.
23144 (peep2_reinit_state): Use NULL instead of NULL_RTX.
23145 (peep2_attempt): Remove casts of insn in peep2_insn_data.
23146 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
23147 * recog.h (struct insn_gen_fn): Promote return types of function
23148 pointers and operator ().from rtx to rtx_insn.
23149 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
23150 (fill_eager_delay_slots): Likewise.
23151 (relax_delay_slots): Likewise.
23152 (make_return_insns): Likewise.
23153 (dbr_schedule): Likewise.
23154 (optimize_skips): Likewise.
23155 (reorg_redirect_jump): Likewise.
23156 (fill_slots_from_thread): Likewise.
23157 * reorg.h: Update prototypes.
23158 * resource.c (find_dead_or_set_registers): Use dyn_cast to
23159 rtx_jump_insn instead of check. Use it's jump_target method.
23160 * rtl.h (rtx_jump_insn::jump_label): Define new method.
23161 (rtx_jump_insn::jump_target): Define new method.
23162 (rtx_jump_insn::set_jump_target): Define new method.
23163 * rtlanal.c (tablejump_p): Promote type of one local variable.
23164 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
23165 (sched_analyze_insn): Likewise.
23166 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
23167 (print_insn): Likewise.
23168 * stmt.c (label_rtx): Promote return type to rtx_insn.
23169 (force_label_rtx): Likewise.
23170 (jump_target_rtx): Define new function.
23171 (expand_label): Use it, get rid of one cast.
23172 (expand_naked_return): Promote rtx to rtx_code_label.
23173 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
23174 (expand_case): Use rtx_code_label instread of rtx where feasible.
23175 (expand_sjlj_dispatch_table): Likewise.
23176 (emit_case_nodes): Likewise.
23177 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
23178 * store-motion.c (insert_store): Make use of new return type of
23179 gen_move_insn and remove a cast.
23180 (replace_store_insn): Likewise.
23181
23182 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
23183
23184 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
23185 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
23186
23187 2015-05-20 Jeff Law <law@redhat.com>
23188
23189 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
23190 dispose of the jump thread path when the jump threading
23191 opportunity is cancelled.
23192
23193 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
23194
23195 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
23196 when printing the caret character.
23197
23198 2015-05-20 Marek Polacek <polacek@redhat.com>
23199
23200 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23201
23202 2015-05-20 Marek Polacek <polacek@redhat.com>
23203
23204 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23205 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23206 * gimple-fold.c (canonicalize_bool): Likewise.
23207 (same_bool_result_p): Likewise.
23208 * tree-if-conv.c (parse_predicate): Likewise.
23209
23210 2015-05-20 Marek Polacek <polacek@redhat.com>
23211
23212 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23213 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23214
23215 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23216
23217 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23218 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23219 values.
23220
23221 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
23222
23223 * config/mips/mips.h (micromips_globals): Declare.
23224
23225 2015-05-20 David Malcolm <dmalcolm@redhat.com>
23226
23227 * timevar.def (TV_INITIALIZE_RTL): New.
23228 * toplev.c (initialize_rtl): Use an auto_timevar to account this
23229 function's time to TV_INITIALIZE_RTL.
23230
23231 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
23232
23233 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23234 gimple_build_nop calls.
23235 (chkp_find_bounds_for_elem): Likewise.
23236 (chkp_get_zero_bounds): Likewise.
23237 (chkp_get_none_bounds): Likewise.
23238 (chkp_get_bounds_by_definition): Likewise.
23239 (chkp_generate_extern_var_bounds): Likewise.
23240 (chkp_get_bounds_for_decl_addr): Likewise.
23241 (chkp_get_bounds_for_string_cst): Likewise.
23242
23243 2015-05-20 Bin Cheng <bin.cheng@arm.com>
23244
23245 PR tree-optimization/65447
23246 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23247 (dump_use, dump_uses): Support to dump sub use.
23248 (record_use): New parameters to support sub use. Remove call to
23249 dump_use.
23250 (record_sub_use, record_group_use): New functions.
23251 (compute_max_addr_offset, split_all_small_groups): New functions.
23252 (group_address_uses, rewrite_use_address): New functions.
23253 (strip_offset): New declaration.
23254 (find_interesting_uses_address): Call record_group_use.
23255 (add_candidate): New assertion.
23256 (infinite_cost_p): Move definition forward.
23257 (add_costs): Check INFTY cost and return immediately.
23258 (get_computation_cost_at): Clear setup cost and dependent bitmap
23259 for sub uses.
23260 (determine_use_iv_cost_address): Compute cost for sub uses.
23261 (rewrite_use_address_1): Rename from old rewrite_use_address.
23262 (free_loop_data): Free sub uses.
23263 (tree_ssa_iv_optimize_loop): Call group_address_uses.
23264
23265 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23266 Jim Wilson <jim.wilson@linaro.org>
23267
23268 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23269 new fields loadv and storev.
23270 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23271 Initialize loadv and storev.
23272 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23273 (cortexa53_extra_costs): Likewise.
23274 (cortexa57_extra_costs): Likewise.
23275 (xgene1_extra_costs): Likewise.
23276 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23277 rtx_costs.
23278
23279 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23280
23281 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23282 storev.
23283 (cortexa8_extra_costs): Likewise.
23284 (cortexa5_extra_costs): Likewise.
23285 (cortexa7_extra_costs): Likewise.
23286 (cortexa12_extra_costs): Likewise.
23287 (cortexa15_extra_costs): Likewise.
23288 (v7m_extra_costs): Likewise.
23289
23290 2015-05-20 Jeff Law <law@redhat.com>
23291
23292 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23293 instead of open-coded version. Also delete the jump thread created
23294 within this function.
23295
23296 2015-05-20 Alan Modra <amodra@gmail.com>
23297
23298 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23299 stack adjusting insn. Formatting.
23300 (rs6000_emit_prologue): Track stack adjusting insn, and use of
23301 r12. If possible, emit first -fsplit-stack arg pointer insn
23302 before stack adjust. Don't use r12 to save cr if split-stack.
23303
23304 2015-05-20 Alan Modra <amodra@gmail.com>
23305
23306 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23307 Define.
23308 (rs6000_supports_split_stack): New function.
23309 * config/rs6000/rs6000.c (machine_function): Add
23310 split_stack_arg_pointer.
23311 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23312 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23313 rather than virtual_incoming_args_rtx.
23314 (rs6000_va_start): Likewise.
23315 (split_stack_arg_pointer_used_p): New function.
23316 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23317 (morestack_ref): New var.
23318 (gen_add3_const, rs6000_expand_split_stack_prologue,
23319 rs6000_internal_arg_pointer, rs6000_live_on_entry,
23320 rs6000_split_stack_space_check): New functions.
23321 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23322 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23323 (UNSPECV_SPLIT_STACK_RETURN): Define.
23324 (split_stack_prologue, load_split_stack_limit,
23325 load_split_stack_limit_di, load_split_stack_limit_si,
23326 split_stack_return, split_stack_space_check): New expands and insns.
23327 * config/rs6000/rs6000-protos.h
23328 (rs6000_expand_split_stack_prologue): Declare.
23329 (rs6000_split_stack_space_check): Declare.
23330
23331 2015-05-20 Alan Modra <amodra@gmail.com>
23332
23333 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23334 (direct_return): Test vrsave_size rather than vrsave_mask.
23335 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
23336 (rs6000_emit_epilogue): Likewise.
23337
23338 2015-05-20 Alan Modra <amodra@gmail.com>
23339
23340 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
23341 when not saving registers.
23342 (debug_stack_info): Adjust to omit printing unused offsets,
23343 as before.
23344 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
23345 expression.
23346
23347 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23348
23349 PR c++/65835
23350 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
23351 value_type to const char *.
23352
23353 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
23354
23355 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
23356 to build a biarch toolchain again.
23357
23358 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23359
23360 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
23361 or implicit declarations.
23362 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
23363 into it.
23364 (get_odr_type): Check type has linkage before adding bases.
23365 (register_odr_type): Check that type has linkage before adding it.
23366 (type_known_to_have_no_deriavations_p): Rename to ..
23367 (type_known_to_have_no_derivations_p): This one.
23368 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23369 (type_known_to_have_no_derivations_p): This one.
23370 * ipa-polymorphic-call.c
23371 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23372 type has linkage.
23373
23374 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23375
23376 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23377 (layout_type): Use RECORD_OR_UNION_TYPE_P.
23378
23379 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23380
23381 * config/s390/s390.c (s390_vector_bool_type_p): New function.
23382 (s390_invalid_binary_op): New function.
23383 (TARGET_INVALID_BINARY_OP): Define macro.
23384
23385 2015-05-19 David Sherwood <david.sherwood@arm.com>
23386
23387 * loop-invariant.c (create_new_invariant): Don't calculate address cost
23388 if mode is not a scalar integer.
23389 (get_inv_cost): Increase computational cost for unused invariants.
23390
23391 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23392
23393 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
23394 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
23395 * config/s390/s390-builtin-types.def: New file.
23396 * config/s390/s390-builtins.def: New file.
23397 * config/s390/s390-builtins.h: New file.
23398 * config/s390/s390-c.c: New file.
23399 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23400 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23401 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23402 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23403 prototypes.
23404 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23405 Include.
23406 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23407 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23408 variable definitions.
23409 (s390_const_operand_ok): New function.
23410 (s390_expand_builtin): Rewrite.
23411 (s390_init_builtins): New function.
23412 (s390_handle_vectorbool_attribute): New function.
23413 (s390_attribute_table): Add s390_vector_bool attribute.
23414 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23415 (s390_branch_condition_mask): Generate masks for new modes.
23416 (s390_expand_vec_compare_cc): New function.
23417 (s390_mangle_type): Add mangling for vector bool types.
23418 (enum s390_builtin): Remove.
23419 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23420 efpc builtins.
23421 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23422 s390_cpu_cpp_builtins.
23423 (REGISTER_TARGET_PRAGMAS): New macro.
23424 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23425 (insn_cmp mode attribute): Add new CC modes.
23426 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23427 (lcbb): New pattern definition.
23428 * config/s390/s390intrin.h: Include vecintrin.h.
23429 * config/s390/t-s390: New file.
23430 * config/s390/vecintrin.h: New file.
23431 * config/s390/vector.md: Include vx-builtins.md.
23432 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23433 support.
23434
23435 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23436
23437 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23438 CCVFHE.
23439 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23440 (s390_select_ccmode): Likewise.
23441 (s390_canonicalize_comparison): Swap operands if necessary.
23442 (s390_expand_vec_compare_scalar): Expand DFmode compare using
23443 single element vector instructions.
23444 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23445 (s390_branch_condition_mask): Generate CC masks for the new modes.
23446 * config/s390/s390.md (v0, vf, vd): New mode attributes.
23447 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23448 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23449 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23450 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23451 (*extend<DSF:mode><BFP:mode>2): New insn definition.
23452 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23453 (extend<DSF:mode><BFP:mode>2): Turn into expander.
23454 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23455 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23456 (sqrt<mode>2): Add vector instruction.
23457
23458 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23459
23460 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23461 constraints.
23462 * config/s390/predicates.md (const0_operand, constm1_operand)
23463 (constable_operand): Accept vector operands.
23464 * config/s390/s390-modes.def: Add supported vector modes.
23465 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23466 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23467 (s390_bytemask_vector_p, s390_expand_vec_strlen)
23468 (s390_expand_vec_compare, s390_expand_vcond)
23469 (s390_expand_vec_init): Add prototypes.
23470 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23471 (s390_vector_mode_supported_p): New function.
23472 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23473 (s390_contiguous_bitmask_vector_p): New function.
23474 (s390_bytemask_vector_p): New function.
23475 (s390_split_ok_p): Vector regs don't work either.
23476 (regclass_map): Add VEC_REGS.
23477 (s390_legitimate_constant_p): Handle vector constants.
23478 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23479 (legitimate_reload_vector_constant_p): New function.
23480 (s390_preferred_reload_class): Handle CONST_VECTOR.
23481 (s390_reload_symref_address): Likewise.
23482 (s390_secondary_reload): Vector memory instructions only support
23483 short displacements. Rename reload*_nonoffmem* to reload*_la*.
23484 (s390_emit_ccraw_jump): New function.
23485 (s390_expand_vec_strlen): New function.
23486 (s390_expand_vec_compare): New function.
23487 (s390_expand_vcond): New function.
23488 (s390_expand_vec_init): New function.
23489 (s390_dwarf_frame_reg_mode): New function.
23490 (print_operand): Handle addresses with 'O' and 'R' constraints.
23491 (NR_C_MODES, constant_modes): Add vector modes.
23492 (s390_output_pool_entry): Handle vector constants.
23493 (s390_hard_regno_mode_ok): Handle vector registers.
23494 (s390_class_max_nregs): Likewise.
23495 (s390_cannot_change_mode_class): New function.
23496 (s390_invalid_arg_for_unprototyped_fn): New function.
23497 (s390_function_arg_vector): New function.
23498 (s390_function_arg_float): Remove size variable.
23499 (s390_pass_by_reference): Handle vector arguments.
23500 (s390_function_arg_advance): Likewise.
23501 (s390_function_arg): Likewise.
23502 (s390_return_in_memory): Vector values are returned in a VR if
23503 possible.
23504 (s390_function_and_libcall_value): Handle vector arguments.
23505 (s390_gimplify_va_arg): Likewise.
23506 (s390_call_saved_register_used): Consider the arguments named.
23507 (s390_conditional_register_usage): Disable v16-v31 for non-vec
23508 targets.
23509 (s390_preferred_simd_mode): New function.
23510 (s390_support_vector_misalignment): New function.
23511 (s390_vector_alignment): New function.
23512 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23513 (TARGET_VECTOR_MODE_SUPPORTED_P)
23514 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23515 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23516 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23517 (TARGET_VECTOR_ALIGNMENT): Define target macro.
23518 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23519 (FIRST_PSEUDO_REGISTER): Increase value.
23520 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23521 (VECTOR_REG_P): Define macros.
23522 (FIXED_REGISTERS, CALL_USED_REGISTERS)
23523 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23524 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23525 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23526 Add vector registers.
23527 (CANNOT_CHANGE_MODE_CLASS): Call C function.
23528 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23529 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23530 memory.
23531 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23532 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23533 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23534 (VR*_REGNUM): New constants.
23535 (ALL): New mode iterator.
23536 (INTALL): Remove mode iterator.
23537 Include vector.md.
23538 (movti): Implement TImode moves for VRs.
23539 Disable TImode splitter for VR targets.
23540 Implement splitting TImode GPR<->VR moves.
23541 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23542 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23543 reload<mode>_la_in, reload<mode>_la_out.
23544 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23545 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23546 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23547 (mov<mode> SF SD): Prefer lder, lde for loading.
23548 Add lrl and strl instructions.
23549 Add vector instructions.
23550 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23551 Call s390_expand_vec_strlen on z13.
23552 (*cc_to_int): Change predicate to nonimmediate_operand.
23553 (addti3): Rename to *addti3. New expander.
23554 (subti3): Rename to *subti3. New expander.
23555 * config/s390/vector.md: New file.
23556
23557 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23558
23559 * common/config/s390/s390-common.c (processor_flags_table): Add
23560 z13.
23561 * config.gcc: Add z13.
23562 * config/s390/s390-opts.h (enum processor_type): Add
23563 PROCESSOR_2964_Z13.
23564 * config/s390/s390.c (s390_adjust_priority): Check for
23565 PROCESSOR_2964_Z13.
23566 (s390_reorg): Likewise.
23567 (s390_sched_reorder): Likewise.
23568 (s390_sched_variable_issue): Likewise.
23569 (s390_loop_unroll_adjust): Likewise.
23570 (s390_option_override): Likewise. Default to -mvx when available.
23571 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23572 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23573 (TARGET_VX_ABI): Define macros.
23574 macros.
23575 (TARGET_DEFAULT): Add MASK_OPT_VX.
23576 * config/s390/s390.md ("cpu" attribute): Add z13.
23577 ("cpu_facility" attribute): Add vec.
23578 * config/s390/s390.opt (processor_type): Add z13.
23579 (mvx): New options.
23580 * doc/invoke.texi: Add z13 option for -march.
23581
23582 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23583
23584 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23585 mode check to make sure that only scalar integer values are
23586 accepted.
23587
23588 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23589
23590 * tree.c (verify_type_variant): Fix #undef.
23591 (gimple_canonical_types_compatible_p): Move here from lto.c
23592 (verify_type): Verify TYPE_CANONICAL compatibility.
23593 * tree.h (gimple_canonical_types_compatible_p): Declare.
23594
23595 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23596
23597 PR middle-end/66199
23598 * tree.h (OMP_TEAMS_COMBINED): Define.
23599 * gimplify.c (enum gimplify_omp_var_data): Add
23600 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23601 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23602 (omp_notice_variable): Accept both ORT_TEAMS
23603 and ORT_COMBINED_TEAMS. Don't recurse if
23604 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23605 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23606 GOVD_FIRSTPRIVATE.
23607 (omp_no_lastprivate): New function.
23608 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23609 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23610 notice_outer and set appropriate bits, otherwise make
23611 sure default(none) combined constructs won't complain.
23612 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23613 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23614 omp_no_lastprivate either remove the clause or turn it
23615 into OMP_CLAUSE_PRIVATE.
23616 (gimplify_omp_for): Fix up handling of implicit
23617 lastprivate or linear iterators.
23618 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23619 ORT_COMBINED_TEAMS.
23620 * omp-low.c (lower_omp_for_lastprivate): For combined
23621 for simd use fd.loop.n2 from the for rather than simd.
23622
23623 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23624
23625 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23626 instead of gen_rtx_raw_REG.
23627 (cris_expand_epilogue): Likewise.
23628 * config/microblaze/microblaze.c (microblaze_classify_address):
23629 Likewise.
23630 * config/sparc/sparc.md: Likewise.
23631
23632 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
23633
23634 * config/alpha/alpha.c (alpha_legitimize_reload_address)
23635 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23636 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23637 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23638 Use CASE_CONST_SCALAR_INT.
23639 (print_operand) <case 'M'>: Use mode_width_operand to check the
23640 value of the constant.
23641 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23642 * config/alpha/predicates.md (input_operand): Use general_operand
23643 instead of match_code as operand check.
23644 (symbolic_operand): Use match_code with subexpression digits.
23645 * config/alpha/constraints.md (Q): Ditto.
23646
23647 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23648
23649 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23650
23651 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23652
23653 * config/s390/s390.c (s390_secondary_reload): Fix check for
23654 load/store relative.
23655
23656 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23657
23658 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
23659 alternative_mask to uint64_t.
23660
23661 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23662
23663 PR tree-optimization/66187
23664 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23665 Pass TYPE_SIGN to tree_int_cst_min_precision. If
23666 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23667
23668 2015-05-19 David Malcolm <dmalcolm@redhat.com>
23669
23670 * diagnostic.c (diagnostic_report_current_module): Strengthen
23671 local "new_map" from const line_map * to
23672 const line_map_ordinary *.
23673 * genmatch.c (error_cb): Likewise for local "map".
23674 (output_line_directive): Likewise for local "map".
23675 * input.c (expand_location_1): Likewise for local "map".
23676 Pass NULL rather than &map to
23677 linemap_unwind_to_first_non_reserved_loc, since the value is never
23678 read from there, and the value written back not read from here.
23679 (is_location_from_builtin_token): Strengthen local "map" from
23680 const line_map * to const line_map_ordinary *.
23681 (dump_location_info): Strengthen locals "map" from
23682 line_map *, one to const line_map_ordinary *, the other
23683 to const line_map_macro *.
23684 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23685 const line_map * to const line_map_macro *.
23686 (maybe_unwind_expanded_macro_loc): Add a call to
23687 linemap_check_macro when writing to the "map" field of the
23688 loc_map_pair.
23689 Introduce local const line_map_ordinary * "ord_map", using it in
23690 place of "map" in the part of the function where we know we have
23691 an ordinary map. Strengthen local "m" from const line_map * to
23692 const line_map_ordinary *.
23693
23694 2015-05-19 Nick Clifton <nickc@redhat.com>
23695
23696 PR target/66156
23697 * config/msp430/msp430.md (zero_extendhisi2): Add support for
23698 separate source and destination registers.
23699
23700 2015-05-19 Richard Biener <rguenther@suse.de>
23701
23702 PR tree-optimization/66165
23703 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23704 for no load permutation.
23705
23706 PR tree-optimization/66185
23707 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23708 when building the SLP node from scalars.
23709
23710 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23711 Tristan Gingold <gingold@adacore.com>
23712
23713 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23714 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23715 (expand_stack_restore): Call record_new_stack_level.
23716 (expand_stack_save): Do not call do_pending_stack_adjust.
23717 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23718 * calls.c (expand_call): Call record_new_stack_level for alloca.
23719 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23720 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23721 (update_sjlj_context): New global function.
23722 * except.h (update_sjlj_context): Declare.
23723 * explow.c (record_new_stack_level): New global function.
23724 (allocate_dynamic_stack_space): Call record_new_stack_level.
23725 * explow.h (record_new_stack_level): Declare.
23726 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23727 * cfgrtl.c (duplicate_insn_chain): Likewise.
23728
23729 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23730
23731 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23732 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23733 STACK_GROWS_DOWNWARD as normal if.
23734 (expand_call): Likewise.
23735
23736 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
23737
23738 PR target/54236
23739 * config/sh/sh.md (*round_int_even): New insn_and_split and
23740 accompanying new unnamed split.
23741
23742 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23743
23744 * bitmap.c (bitmap_set_range): Handle count==1 specially.
23745 (bitmap_clear_range): Likewise.
23746 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23747 bitmap_set_range unconditionally.
23748 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23749 * df-scan.c (df_mark_reg): Likewise.
23750 * haifa-sched.c (setup_ref_regs): Likewise.
23751 * sched-rgn.c (update_live_1): Likewise.
23752
23753 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23754
23755 * regs.h (END_HARD_REGNO): Delete.
23756 (END_REGNO): Move to...
23757 * rtl.h: ...here.
23758 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23759 * caller-save.c (mark_set_regs): Likewise.
23760 * combine.c (move_deaths, distribute_notes): Likewise.
23761 * cse.c (invalidate, invalidate_for_call): Likewise.
23762 * df-scan.c (df_ref_record): Likewise.
23763 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23764 (record_last_reg_set_info): Likewise.
23765 * reg-stack.c (convert_regs_exit): Likewise.
23766 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23767 * resource.c (update_live_status): Likewise.
23768 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23769
23770 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23771
23772 * rtl.h (reg_info): Add an nregs field.
23773 (REG_NREGS): Use it.
23774 (SET_REGNO_RAW): Delete.
23775 (set_regno_raw): New function.
23776 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23777 (END_REGNO): Redefine in terms of REG_NREGS.
23778 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23779 SET_REGNO_RAW.
23780 * emit-rtl.c (set_mode_and_regno): Likewise.
23781 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23782 instead of SET_REGNO_RAW.
23783
23784 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23785
23786 * rtl.h (PUT_MODE_RAW): New macro.
23787 (PUT_REG_NOTE_KIND): Use it.
23788 (set_mode_and_regno): Declare.
23789 (gen_raw_REG): Change regno to "unsigned int".
23790 (gen_rtx_REG): Change "unsigned" to "unsigned int".
23791 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23792 use set_mode_and_regno to change the mode of registers.
23793 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23794 * emit-rtl.c (set_mode_and_regno): New function.
23795 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
23796 * caller-save.c (reg_save_code): Use set_mode_and_regno.
23797 * expr.c (init_expr_target): Likewise.
23798 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23799 * postreload.c (reload_cse_simplify_operands): Likewise.
23800
23801 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23802
23803 * caller-save.c (init_caller_save): Use word_mode and
23804 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23805 * expr.c (init_expr_target): Likewise.
23806 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23807 * postreload.c (reload_cse_regs_1): Likewise.
23808
23809 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23810
23811 * rtl.def (REG): Change format to "r".
23812 * rtl.h (rtunion): Remove rt_reg.
23813 (reg_info): New structure.
23814 (rtx_def): Add reg field to main union.
23815 (X0REGATTR): Delete.
23816 (REG_CHECK): New macro.
23817 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23818 * rtl.c (rtx_format): Document "r".
23819 (rtx_code_size): Handle REG specially.
23820 * gengenrtl.c (special_format): Return true for formats
23821 that include 'r'.
23822 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23823 Deal with REG_ATTRS after the field loop.
23824 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23825 * expmed.c (init_expmed): Call gen_raw_REG instead of
23826 gen_rtx_raw_REG.
23827 * expr.c (init_expr_target): Likewise.
23828 * regcprop.c (maybe_mode_change): Likewise.
23829 * varasm.c (make_decl_rtl): Likewise.
23830 * final.c (leaf_renumber_regs_insn): Return early after
23831 handling REGs.
23832 * genemit.c (gen_exp): Handle 'r' fields.
23833 * genpeep.c (match_rtx): Likewise.
23834 * gensupport.c (subst_pattern_match): Likewise.
23835 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23836 (alter_constraints, subst_dup): Likewise.
23837 * read-rtl.c (read_rtx_code): Likewise.
23838 * print-rtl.c (print_rtx): Likewise.
23839 * genrecog.c (find_operand, find_matching_operand): Likewise.
23840 (validate_pattern, match_pattern_2): Likewise.
23841 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23842 (rtx_test::regno_field): New function.
23843 (operator ==, safe_to_hoist_p, transition_parameter_type)
23844 (parameter_type_string, print_parameter_value)
23845 (print_nonbool_test, print_test): Handle new enum values.
23846 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23847 * lra-constraints.c (operands_match_p): Likewise.
23848
23849 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23850
23851 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23852 Change type of new_regno to unsigned int.
23853 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23854 new_regno to unsigned int.
23855 (df_ref_change_reg_with_loc): Remove old_regno parameter.
23856 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
23857 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23858 (SET_REGNO_RAW): Add space after ",".
23859
23860 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23861
23862 * rtl.h (REG_NREGS): New macro
23863 * alias.c (record_set): Use it.
23864 * cfgcleanup.c (mark_effect): Likewise.
23865 * combine.c (likely_spilled_retval_1): Likewise.
23866 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23867 (move_deaths, distribute_notes): Likewise.
23868 * cselib.c (cselib_record_set): Likewise.
23869 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23870 * df-scan.c (df_mark_reg): Likewise.
23871 * dse.c (look_for_hardregs): Likewise.
23872 * dwarf2out.c (reg_loc_descriptor): Likewise.
23873 (multiple_reg_loc_descriptor): Likewise.
23874 * expr.c (write_complex_part, read_complex_part): Likewise.
23875 (emit_move_complex): Likewise.
23876 * haifa-sched.c (setup_ref_regs): Likewise.
23877 * ira-lives.c (mark_hard_reg_live): Likewise.
23878 * lra.c (lra_set_insn_recog_data): Likewise.
23879 * mode-switching.c (create_pre_exit): Likewise.
23880 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23881 (reload_combine_recognize_pattern): Likewise.
23882 (reload_combine_note_use, move2add_record_mode): Likewise.
23883 (reload_cse_move2add): Likewise.
23884 * reg-stack.c (subst_stack_regs_pat): Likewise.
23885 * regcprop.c (kill_value, copy_value): Likewise.
23886 (copyprop_hardreg_forward_1): Likewise.
23887 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23888 (build_def_use): Likewise.
23889 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23890 (deps_analyze_insn): Likewise.
23891 * sched-rgn.c (check_live_1, update_live_1): Likewise.
23892 * sel-sched.c (count_occurrences_equiv): Likewise.
23893 * valtrack.c (dead_debug_insert_temp): Likewise.
23894
23895 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23896
23897 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23898 * dse.c (note_add_store): Likewise.
23899 * ira-lives.c (mark_hard_reg_dead): Likewise.
23900 * loop-invariant.c (mark_reg_store): Likewise.
23901 (mark_reg_death): Likewise.
23902 * postreload.c (reload_combine): Likewise.
23903 (reload_combine_note_store): Likewise.
23904 (reload_combine_note_use): Likewise.
23905 * recog.c (peep2_reg_dead_p): Likewise.
23906
23907 2015-05-19 Alan Modra <amodra@gmail.com>
23908
23909 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23910 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23911 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23912 unused predicates.
23913 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23914 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
23915 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23916 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23917
23918 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
23919
23920 * config/mips/mips.md (JOIN_MODE): New mode iterator.
23921 (join2_load_Store<JOIN_MODE:mode>): New pattern.
23922 (join2_loadhi): Likewise.
23923 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23924 load-load and store-stores.
23925 * config/mips/mips.opt (mload-store-pairs): New option.
23926 (TARGET_LOAD_STORE_PAIRS): New macro.
23927 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23928 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23929 * config/mips/mips.c (mips_load_store_bonding_p): New function.
23930
23931 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
23932
23933 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23934 explicit swaps.
23935 * dojump.c (do_compare_rtx_and_jump): Likewise.
23936 * expmed.c (emit_store_flag_1): Likewise.
23937 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23938 * final.c (sprint_ul): Use std::reverse for reversing a string.
23939 * fold-const.c (extract_muldiv_1): Use std::swap.
23940 * genmodes.c (emit_mode_int_n): Likewise.
23941 * ifcvt.c (dead_or_predicable): Likewise.
23942 * ira-build.c (ira_merge_live_ranges): Likewise.
23943 (swap_allocno_copy_ends_if_necessary): Likewise.
23944 * ira.c (ira_setup_alts): Likewise.
23945 * loop-iv.c (iv_analyze_expr): Likewise.
23946 (implies_p): Likewise.
23947 (canon_condition): Likewise.
23948 * lra-constraints.c (swap_operands): Likewise.
23949 * lra-lives.c (lra_merge_live_ranges): Likewise.
23950 * omega.c (swap): Remove.
23951 (bswap): Remove.
23952 (omega_unprotect_1): Use std::swap.
23953 (omega_solve_geq): Likewise.
23954 * optabs.c (expand_binop_directly): Likewise.
23955 (expand_binop): Likewise.
23956 (emit_conditional_move): Likewise.
23957 (emit_conditional_add): Likewise.
23958 * postreload.c (reload_cse_simplify_operands): Likewise.
23959 * reg-stack.c (emit_swap_insn): Likewise.
23960 (swap_to_top): Likewise.
23961 (compare_for_stack_reg): Likewise.
23962 (subst_asm_stack_regs): Likewise.
23963 * reload.c (find_reloads): Likewise.
23964 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23965 * sel-sched.c (invoke_reorder_hooks): Likewise.
23966 (create_block_for_bookkeeping): Likewise.
23967 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23968 (lambda_matrix_right_hermite): Use std::swap.
23969 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23970 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23971 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
23972 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
23973 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
23974 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
23975 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
23976 * tree-vrp.c (compare_ranges): Likewise.
23977 * var-tracking.c (add_with_sets): Likewise.
23978 (vt_find_locations): Likewise.
23979
23980 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
23981
23982 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
23983 pie executables.
23984 (FBSD_ENDFILE_SPEC): Likewise.
23985 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
23986 config/freebsd-spec.h.
23987 (ENDFILE_SPEC): Likewise.
23988
23989 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
23990 Richard Henderson <rth@redhat.com>
23991
23992 PR target/57032
23993 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
23994 Check for a memory location that is not a reference (using an AND)
23995 to an unaligned location here.
23996 * config/alpha/predicates.md (normal_memory_operand): Remove.
23997
23998 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
23999
24000 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
24001 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
24002
24003 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
24004
24005 * config/mips/mips.c (micromips_globals): New variable.
24006 (mips_set_compression_mode): Save and reinitialize target-dependent
24007 state for microMIPS.
24008
24009 2015-05-18 Martin Liska <mliska@suse.cz>
24010
24011 * dbgcnt.def: Add new counter.
24012 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
24013
24014 2015-05-18 Martin Liska <mliska@suse.cz>
24015
24016 * dbgcnt.def: Sort counters.
24017 * opts.c (common_handle_option): Do not compile if
24018 -fdbg-cnt-list is enabled.
24019
24020 2015-05-18 Tom de Vries <tom@codesourcery.com>
24021
24022 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
24023 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
24024 address operator to va_list operand.
24025 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
24026 unconditionally.
24027 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
24028 operand.
24029 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
24030 * config/s390/s390.c (s390_gimplify_va_arg): Same.
24031 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
24032
24033 2015-05-18 Tom de Vries <tom@codesourcery.com>
24034
24035 * tree-ssa-tail-merge.c: Fix whitespace.
24036
24037 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
24038
24039 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
24040 cortex-a17, and cortex-a17.cortex-a7.
24041
24042 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
24043
24044 PR target/54236
24045 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
24046
24047 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
24048
24049 PR target/66174
24050 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
24051 QImode inner modes for TARGET_AVX512BW. Force mask operand
24052 to a register for AVX512F modes.
24053
24054 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24055
24056 * toplev.c (emit_debug_global_declarations): Do not output debug info
24057 when doing slim LTO objects.
24058
24059 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24060
24061 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
24062 odr_types_equivalent_p): Declare.
24063 (odr_type_p): Use gcc_checking_assert.
24064 (type_in_anonymous_namespace_p) Declare.
24065 (type_with_linkage_p): Declare.
24066 * common.opt (Wlto-type-mismatch): New warning.
24067 * ipa-devirt.c (compound_type_base): New function.
24068 (odr_or_derived_type_p): New function.
24069 (odr_types_equivalent_p): New function.
24070 (add_type_duplicate): Simplify.
24071 (type_with_linkage_p): Add hack to prevent false positives on C types
24072 (type_in_anonymous_namespace_p): Likewise.
24073 * tree.c (need_assembler_name_p): Use type_with_linkage.
24074 * tree.h (type_in_anonymous_namespace_p): Remove.
24075 * doc/invoke.texi (-Wlto-type-mismatch): Document
24076
24077 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24078
24079 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
24080 (verify_type): Verify STRING_FLAG.
24081
24082 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
24083
24084 PR fortran/44054
24085 * tree-pretty-print.c (percent_K_format): Replace locus pointer
24086 with accessor function.
24087 * tree-diagnostic.c (diagnostic_report_current_function): Use
24088 diagnostic_location function.
24089 (maybe_unwind_expanded_macro_loc): Likewise.
24090 (virt_loc_aware_diagnostic_finalizer): Likewise.
24091 (default_tree_printer): Replace locus pointer with accessor function.
24092 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
24093 (diagnostic_set_info_translated): Initialize second location.
24094 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
24095 (diagnostic_show_locus): Handle two locations. Call
24096 diagnostic_print_caret_line.
24097 (diagnostic_print_caret_line): New.
24098 (default_diagnostic_starter): Use diagnostic_location function.
24099 (diagnostic_report_diagnostic): Use diagnostic_location function.
24100 (verbatim): Do not set text.locus.
24101 * diagnostic.h (struct diagnostic_info): Remove location field.
24102 (struct diagnostic_context): Make caret_chars an array of two.
24103 (diagnostic_location): New inline.
24104 (diagnostic_expand_location): Handle two locations.
24105 (diagnostic_same_line): New inline.
24106 (diagnostic_print_caret_line): Declare.
24107 (CARET_LINE_MARGIN): New constant.
24108 * pretty-print.c (pp_printf): Do not set text.locus.
24109 (pp_verbatim): Do not set text.locus.
24110 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
24111 (struct text_info): Replace locus pointer with locations
24112 array. Add accessor functions.
24113
24114 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
24115 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24116
24117 PR target/65768
24118 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
24119 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
24120 large constants in register instead of splitting them.
24121
24122 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
24123
24124 PR target/66140
24125 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
24126 replacements in memory addresses.
24127 (get_unaligned_address): Ditto.
24128
24129 2015-05-16 James Bowman <james.bowman@ftdichip.com>
24130
24131 * config/ft32/*: New files for FT32 port.
24132 * doc/install.texi: Add FT32 information.
24133 * doc/invoke.texi: Add FT32 information.
24134 * doc/md.texi: Add FT32 information.
24135 * doc/contrib.texi: Self added.
24136
24137 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
24138
24139 PR tree-optimization/64454
24140 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
24141 (-1 - A -> ~A): Remove unnecessary condition.
24142
24143 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
24144
24145 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
24146 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
24147 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
24148
24149 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
24150
24151 * ipa-chkp.h (chkp_wrap_function): New.
24152 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
24153 (chkp_wrap_function_name): New.
24154 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
24155 to get wrapper name.
24156 * lto-cgraph.c: Include ipa-chkp.h.
24157 (input_cgraph_1): Avoid alias chain for wrappers.
24158
24159 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24160
24161 PR middle-end/66134
24162 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
24163 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
24164
24165 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24166
24167 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
24168 (AARCH64_FL_SLOWMUL): Delete.
24169 (AARCH64_FL_CRC): Redefine to 1<<3.
24170 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
24171
24172 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24173
24174 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
24175 casting.
24176
24177 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24178
24179 * config/alpha/alpha.md (extendqidi2): Use general_operand
24180 instead of some_operand for operand[1] predicate.
24181 (extendhidi2): Ditto.
24182 (cbranchdi4): Use general_operand instead of some_operand
24183 for operand[1] and operands[2] predicates.
24184 (cstoredi4): Ditto.
24185 * config/alpha/predicates.md (some_operand): Remove unused predicate.
24186 (some_ni_operand): Ditto.
24187
24188 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24189
24190 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
24191 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
24192 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
24193 low part of the constant using alpha_emit_set_const_1.
24194 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
24195
24196 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
24197
24198 * varasm.c (output_constant_pool_1): Pass down alignment from
24199 constant pool entry's descriptor to output_constant_pool_2.
24200 (output_object_block): Add comment prior to call to
24201 output_constant_pool_1.
24202
24203 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
24204
24205 PR rtl-optimization/65862
24206 * target.def (ira_change_pseudo_allocno_class): New hook.
24207 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24208 value of the hook.
24209 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24210 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24211 hook.
24212 * ira-costs.c (find_costs_and_classes): Call the hook and change
24213 classes when it is necessary.
24214 * doc/tm.texi: Update.
24215
24216 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
24217
24218 * config/i386/i386.md (sibcall_memory): Check that register with
24219 callee address is not also used as one of the arguments, instead
24220 of checking that it is not live after the sibcall.
24221 (sibcall_pop_memory): Ditto.
24222 (sibcall_value_memory): Ditto.
24223 (sibcall_value_pop_memory): Ditto.
24224
24225 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
24226
24227 * generic-match-head.c (types_match): Handle non-types.
24228 * gimple-match-head.c (types_match): Likewise.
24229 * match.pd: Remove unnecessary TREE_TYPE for types_match.
24230
24231 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
24232
24233 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24234 (csneg3<mode>_insn): Enable expansion of pattern.
24235
24236 2015-05-14 Nick Clifton <nickc@redhat.com>
24237
24238 * config/rl78/rl78.c (rl78_select_section): Select the correct
24239 default section based upon the category of the decl.
24240
24241 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24242
24243 PR rtl-optimization/30967
24244 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24245 destination mode for the cost of scc patterns.
24246
24247 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24248
24249 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24250 using SWIM248 mode iterator.
24251 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24252 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
24253 for operand[2] constraint.
24254 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24255
24256 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24257
24258 PR middle-end/66133
24259 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24260 make sure it is never noreturn, even when the task body does not
24261 return.
24262 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24263 right before GIMPLE_OMP_RETURN.
24264 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24265 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
24266 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24267
24268 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24269
24270 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24271 * tree-ssa-math-opts.c: Include params.h
24272 (pow_synth_sqrt_info): New struct.
24273 (representable_as_half_series_p): New function.
24274 (get_fn_chain): Likewise.
24275 (print_nested_fn): Likewise.
24276 (dump_fractional_sqrt_sequence): Likewise.
24277 (dump_integer_part): Likewise.
24278 (expand_pow_as_sqrts): Likewise.
24279 (gimple_expand_builtin_pow): Use above to attempt to expand
24280 pow as series of square roots. Removed now unused variables.
24281
24282 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24283
24284 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24285 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24286 Remove *p0 and *p1 arguments. Rewrite function.
24287 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24288 (alpha_split_const_mov): Update calls to alpha_extract_integer and
24289 alpha_emit_set_long_const.
24290 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24291 (alpha_output_mi_thunk_osf): Ditto.
24292 * config/alpha/alpha.md (movti): Do not check operands[1]
24293 for CONST_DOUBLE.
24294
24295 2015-05-13 Richard Biener <rguenther@suse.de>
24296
24297 PR tree-optimization/66129
24298 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24299 commutative.
24300 (vect_schedule_slp_instance): Fix typo.
24301
24302 2015-05-13 David Malcolm <dmalcolm@redhat.com>
24303
24304 * common.opt (fdump-internal-locations): New option.
24305 * input.c: Include diagnostic-core.h.
24306 (get_end_location): New function.
24307 (write_digit): New function.
24308 (write_digit_row): New function.
24309 (dump_location_range): New function.
24310 (dump_labelled_location_range): New function.
24311 (dump_location_info): New function.
24312 * input.h (dump_location_info): New prototype.
24313 * toplev.c (compile_file): Handle flag_dump_locations.
24314
24315 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
24316
24317 * gimple-expr.h (is_gimple_constant): Reorder.
24318 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24319
24320 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24321
24322 * combine.c (simplify_set): When generating a CC set, if the
24323 source already is in the correct mode, do not wrap it in a
24324 compare. Simplify the rest of that code.
24325
24326 2015-05-13 Richard Biener <rguenther@suse.de>
24327
24328 PR tree-optimization/66123
24329 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24330 a taken edge.
24331
24332 2015-05-13 Richard Biener <rguenther@suse.de>
24333
24334 PR middle-end/66110
24335 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24336 specially.
24337 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24338
24339 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24340
24341 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
24342 * aclocal.m4: Regenerated with automake-1.11.6.
24343
24344 2015-05-13 Tom de Vries <tom@codesourcery.com>
24345
24346 PR tree-optimization/66010
24347 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
24348 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
24349 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
24350 and rval based on do_deref.
24351
24352 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24353
24354 PR target/65103
24355 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
24356 link time constants into adress expressions and therefore set
24357 their cost to 0.
24358
24359 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24360
24361 PR target/66112
24362 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
24363 Use SWI248 iterator instead of SWI.
24364 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
24365 Use eq_attr "alternative" "0" instead of match_test in
24366 length_immediate attribute computation.
24367 (*mulvhi4, *mulvhi4_1): New define_insns.
24368
24369 PR target/66112
24370 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24371 SIGNED to get precision of non-negative value.
24372
24373 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24374
24375 PR target/66048
24376 * function.c (diddle_return_value_1): Process bounds first.
24377 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24378 register.
24379
24380 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24381
24382 PR rtl-optimization/64616
24383 * loop-invariant.c (can_move_invariant_reg): New.
24384 (move_invariant_reg): Call above new function to decide whether
24385 instruction can just be moved, skipping creation of temporary
24386 register.
24387
24388 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24389
24390 PR target/pr66047.c
24391 * i386.c (ix86_function_sseregparm): Only return -1 if local function
24392 with implied regparm is called from -mno-sse function.
24393 (init_cumulative_args): Output error if ix86_function_sseregparm
24394 return -1 and SSE register would be needed.
24395 (function_arg_advance_32): Likewise.
24396 (function_arg_32): Likewise.
24397 * i386.h (ix86_args): Add decl field.
24398
24399 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24400
24401 PR ipa/65873
24402 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24403 inlines across optimization boundary.
24404
24405 2015-05-12 Jason Merrill <jason@redhat.com>
24406
24407 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24408 string literal and macro name.
24409
24410 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
24411
24412 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24413 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24414 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24415
24416 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24417
24418 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24419 (-Wmisleading-indentation): New option.
24420 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24421
24422 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
24423
24424 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24425 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24426 (alpha_extract_integer): Ditto.
24427 (alpha_legitimate_constant_p): Ditto.
24428 (alpha_split_tmode_pair): Ditto.
24429 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24430 (alpha_expand_mov): Ditto.
24431 (print_operand): Remove handling of 'H' modifier.
24432 <case 'm'>: Remove CONST_DOUBLE handling.
24433 (summarize_insn): Handle CONST_WIDE_INT.
24434 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24435 (anddi3): Ditto.
24436 (movti): Handle CONST_WIDE_INT.
24437 * config/alpha/constraints.md ('H'): Remove constraint definition.
24438 ('G'): Do not match MODE_FLOAT class.
24439 * config/alpha/predicates.md (const0_operand): Also match
24440 const_wide_int.
24441 (non_add_const_operand): Ditto.
24442 (non_zero_const_operand): Ditto.
24443 (some_operand): Ditto.
24444 (input_operand): Ditto. Handle CONST_WIDE_INT.
24445 (and_operand): Do not match const_double.
24446 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24447
24448 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
24449
24450 PR target/65697
24451 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24452 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24453 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24454 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24455 is_mm_seq_cst, is_mm_sync): New accessor functions.
24456 * builtins.c (expand_builtin_sync_operation,
24457 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24458 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24459 (get_memmodel, expand_builtin_atomic_compare_exchange,
24460 expand_builtin_atomic_load, expand_builtin_atomic_store,
24461 expand_builtin_atomic_clear): Use new accessor routines.
24462 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24463 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24464 (maybe_emit_sync_lock_test_and_set): Use new accessors and
24465 MEMMODEL_SYNC_ACQUIRE.
24466 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24467 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24468 expand_atomic_store): Use new accessors.
24469 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24470 * tsan.c (instrument_builtin_call): Update check for memory model beyond
24471 final enum to use MEMMODEL_LAST.
24472 * c-family/c-common.c: Use new accessor for memmodel_base.
24473 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24474 accessors.
24475 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24476 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24477 mem_thread_fence, *dmb): Likewise.
24478 * config/alpha/alpha.c (alpha_split_compare_and_swap,
24479 alpha_split_compare_and_swap_12): Likewise.
24480 * config/arm/arm.c (arm_expand_compare_and_swap,
24481 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24482 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24483 atomic_loaddi): Likewise.
24484 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24485 Likewise.
24486 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24487 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24488 use new accessors.
24489 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24490 atomic_store<mode>, atomic_compare_and_swap<mode>,
24491 atomic_exchange<mode>): Use new accessors.
24492 * config/mips/mips.c (mips_process_sync_loop): Likewise.
24493 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24494 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24495 rs6000_post_atomic_barrier): Add new cases.
24496 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24497 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24498 (atomic_load<mode>): Add new cases and use new accessors.
24499 (store_quadpti): Add new cases.
24500 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24501 accessors.
24502 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24503 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24504 model, not 8.
24505
24506 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24507
24508 * ipa-devirt.c (type_with_linkage_p): New function.
24509 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24510 type has linkage.
24511 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24512 (can_be_name_hashed_p): Simplify.
24513 (hash_odr_name): Check that type has linkage before checking if it is
24514 anonymous.
24515 (types_same_for_odr): Likewise.
24516 (odr_name_hasher::equal): Likewise.
24517 (odr_subtypes_equivalent_p): Likewise.
24518 (warn_types_mismatch): Likewise.
24519 (get_odr_type): Likewise.
24520 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24521 * ipa-utils.h (odr_type_p): Move offline.
24522 * tree.c (need_assembler_name_p): Fix handling of types
24523 without linkages.
24524 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24525
24526 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24527
24528 * timevar.c (timevar_enable): Delete in favor of...
24529 (g_timer): New global.
24530 (struct timevar_def): Move to timevar.h inside class timer.
24531 (struct timevar_stack_def): Likewise.
24532 (timevars): Delete global in favor of field "m_timevars" within
24533 class timer in timevar.h
24534 (stack): Likewise, in favor of field "m_stack".
24535 (unused_stack_instances): Likewise, in favor of field
24536 "m_unused_stack_instances".
24537 (start_time): Likewise, in favor of field "m_start_time".
24538 (get_time): Eliminate check for timevar_enable.
24539 (timer::timer): New function, built from part of timevar_init.
24540 (timevar_init): Rewrite idempotency test from using
24541 "timevar_enable" bool to using dynamic allocation of "g_timer".
24542 Move rest of implementation into timer's constructor.
24543 (timevar_push_1): Rename to...
24544 (timer::push): ...this, adding "m_" prefixes to variables that
24545 are now fields of timer.
24546 (timevar_pop_1): Likewise, rename to...
24547 (timer::pop): ...this, and add "m_" prefixes.
24548 (timevar_start): Replace test for "timevar_enable" with one for
24549 "g_timer", and move bulk of implementation to...
24550 (timer::start): ...here, adding "m_" prefixes.
24551 (timevar_stop): Likewise, from here...
24552 (timer::stop): ...to here.
24553 (timevar_cond_start): Likewise, from here...
24554 (timer::cond_start): ...to here.
24555 (timevar_cond_stop): Likewise, from here...
24556 (timer::cond_stop): ...to here.
24557 (validate_phases): Rename to...
24558 (timer::validate_phases): ...this, and add "m_" prefixes. Make
24559 locals "total" and "tv" const.
24560 (timevar_print): Rename to...
24561 (timer::print): ...this, and add "m_" prefixes. Make locals
24562 "total" and "tv" const. Eliminate test for timevar_enable.
24563 * timevar.h (timevar_enable): Eliminate.
24564 (g_timer): New declaration.
24565 (timevar_push_1): Eliminate.
24566 (timevar_pop_1): Eliminate.
24567 (timevar_print): Eliminate.
24568 (class timer): New class.
24569 (timevar_push): Rewrite to use g_timer.
24570 (timevar_pop): Likewise.
24571 * toplev.c (toplev::~toplev): Likewise.
24572
24573 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
24574
24575 * arm-protos.h (arm_sched_autopref): Delete.
24576 (tune_params): Re-organize, use enums for flag values.
24577 (FUSE_OPS): New macro.
24578 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24579 (ARM_PREFETCH_BENEFICIAL): Likewise.
24580 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24581 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24582 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24583 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24584 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24585 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
24586 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24587 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24588 format.
24589 (arm_option_override, thumb2_reorg, arm_print_tune_info)
24590 (aarch_macro_fusion_pair_p): Update uses of current_tune.
24591 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24592
24593 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
24594
24595 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24596 "break".
24597
24598 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
24599 Sandra Loosemore <sandra@codesourcery.com>
24600
24601 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24602 value.
24603 (REG_CLASS_NAMES): Add "IJMP_REGS".
24604 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24605 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24606 use new "c" register constraint.
24607 * config/nios2/constraint.md (c): New register constraint
24608 corresponding to IJMP_REGS.
24609
24610 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24611
24612 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24613 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24614 define_splits): Delete, revamp, transmogrify into ...
24615 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24616 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24617 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24618 New.
24619
24620 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24621
24622 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24623 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24624
24625 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24626
24627 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24628 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24629 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24630 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24631 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24632 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24633 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24634 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24635 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24636 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24637 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24638 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24639 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24640 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24641 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24642 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24643 and 30 corresponding splitters): Delete.
24644
24645 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24646
24647 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24648 zero_extract.
24649
24650 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24651
24652 * combine.c (recog_for_combine_1): New function, factored out
24653 from recog_for_combine.
24654 (change_zero_ext): New function.
24655 (recog_for_combine): If recog fails, try again with the pattern
24656 modified by change_zero_ext; if that still fails, restore the
24657 pattern.
24658
24659 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24660
24661 * combine.c (get_undo_marker): New function.
24662 (undo_to_marker): New function, largely factored out from ...
24663 (undo_all): ... this. Adjust.
24664
24665 2015-05-12 Richard Biener <rguenther@suse.de>
24666
24667 PR tree-optimization/66101
24668 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24669 fixup if we turn a loop exit edge to a fallthru edge.
24670
24671 2015-05-12 Richard Biener <rguenther@suse.de>
24672
24673 PR tree-optimization/37021
24674 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24675 (SLP_TREE_TWO_OPERATORS): New define.
24676 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24677 SLP_TREE_TWO_OPERATORS.
24678 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24679 SLP node.
24680 (vect_build_slp_tree): Adjust.
24681 (vect_analyze_slp_cost_1): Likewise.
24682 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24683 emitting two vector stmts and mixing the results.
24684
24685 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
24686
24687 * call.c (print_z_candidates): Remove dead code.
24688
24689 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24690
24691 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24692 and zEC12_simple_fp.
24693 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24694 to 1.
24695
24696 2015-05-12 Tom de Vries <tom@codesourcery.com>
24697
24698 PR tree-optimization/66010
24699 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24700 ifn_va_arg.
24701 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24702 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
24703 va_lists are passed, and remove corresponding handling.
24704 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
24705 do_deref argument to ifn_va_arg.
24706 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24707 ifn_va_arg.
24708
24709 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24710
24711 PR target/65955
24712 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24713 REG before taking its REGNO.
24714
24715 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24716
24717 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24718 rsp->sign_bit_copies and rsp->nonzero_bits into ...
24719 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
24720 present to get more accurate information about the number of sign bit
24721 copies and non zero bits.
24722
24723 2015-05-12 Richard Biener <rguenther@suse.de>
24724
24725 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24726 do not allow unrolling.
24727
24728 2015-05-11 Richard Henderson <rth@redhat.com>
24729
24730 * config/i386/i386-modes.def (CCP): New.
24731 * config/i386/i386.c (put_condition_code): Handle it.
24732 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24733
24734 2015-05-11 Richard Henderson <rth@redhat.com>
24735
24736 * target.def (md_asm_clobbers): Replace with...
24737 (md_asm_adjust): this.
24738 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24739 (TARGET_MD_ASM_ADJUST): New.
24740 * tm.texi: Rebuild.
24741 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24742 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24743 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24744
24745 * cfgexpand.c (check_operand_nalternatives): Accept vector of
24746 constraints instead of lists of outputs and inputs.
24747 (expand_asm_stmt): Save and restore input_location around the
24748 body of the function. Move asm data into vectors instead of
24749 building tree lists. Generate cleanup sequences as needed,
24750 rather than waiting til the end. Use new md_asm_adjust hook.
24751
24752 * config/vxworks.c: Include vec.h before target.h.
24753 * gimple.c: Likewise.
24754 * incpath.c: Likewise.
24755 * mode-switching.c: Likewise.
24756
24757 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24758 (cris_md_asm_adjust): this.
24759 (TARGET_MD_ASM_CLOBBERS): Remove.
24760 (TARGET_MD_ASM_ADJUST): New.
24761 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24762 (ix86_md_asm_adjust): this.
24763 (TARGET_MD_ASM_CLOBBERS): Remove.
24764 (TARGET_MD_ASM_ADJUST): New.
24765 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24766 (mn10300_md_asm_adjust): this.
24767 (TARGET_MD_ASM_CLOBBERS): Remove.
24768 (TARGET_MD_ASM_ADJUST): New.
24769 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24770 (rs6000_md_asm_adjust): this.
24771 (TARGET_MD_ASM_CLOBBERS): Remove.
24772 (TARGET_MD_ASM_ADJUST): New.
24773 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24774 (visium_md_asm_adjust): this.
24775 (TARGET_MD_ASM_CLOBBERS): Remove.
24776 (TARGET_MD_ASM_ADJUST): New.
24777
24778 2015-05-11 Richard Henderson <rth@redhat.com>
24779
24780 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24781 if noutputs is zero.
24782 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24783
24784 * cfgexpand.c (expand_asm_operands): Merge into...
24785 (expand_asm_stmt): ... here.
24786
24787 * cfgexpand.c (expand_asm_operands): Don't call
24788 resolve_asm_operand_names.
24789 * stmt.c (resolve_asm_operand_names): Clarify block comment.
24790
24791 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
24792
24793 * dwarf2out.c (gen_member_die): Sanity check that we access
24794 TYPE_MAIN_VARIANT for TYPE_METHODS.
24795 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24796 checking TYPE_METHODS.
24797 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24798 if non-null.
24799 (build_distinct_type_copy): Clear TYPE_METHODS.
24800 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24801 (verify_type): Allow TYPE_METHODS to be error_mark_node.
24802 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24803
24804 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
24805
24806 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24807 (emit_pattern_before_setloc): Likewise.
24808
24809 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24810
24811 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24812 for define_peephole2s.
24813 (get_peephole2_pattern): New function.
24814 (main): Use it. Call validate_pattern.
24815
24816 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24817
24818 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24819 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24820 (Last callee saved reg is different for AVR_TINY architecture)
24821
24822 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24823
24824 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24825 when looking for memory references.
24826
24827 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24828
24829 PR target/65753
24830 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24831 via function pointers.
24832
24833 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24834
24835 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24836 indirect call by forcing address into a pseudo with -fno-plt.
24837 * common.opt (flag_plt): New option.
24838 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24839 ([-fno-plt]): Document.
24840
24841 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
24842
24843 PR bootstrap/66105
24844 * config/rs6000/option-defaults.h: Add space between string literal
24845 and macro name.
24846
24847 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
24848
24849 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24850 accross ARM targets.
24851
24852 2015-05-11 Christian Bruel <christian.bruel@st.com>
24853
24854 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24855 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24856
24857 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24858
24859 PR rtl-optimization/66076
24860 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24861 Don't grow the heap array if it is already big enough from a
24862 previous iteration.
24863
24864 2015-05-11 Christian Bruel <christian.bruel@st.com>
24865
24866 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24867 (is_called_in_ARM_mode): Remove.
24868 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24869 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24870 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24871 arm_declare_function_name.
24872
24873 2015-05-11 Christian Bruel <christian.bruel@st.com>
24874
24875 * config/arm/arm.c (arm_option_override): Reoganized and split into :
24876 (arm_option_params_internal); New function.
24877 (arm_option_check_internal): New function.
24878 (arm_option_override_internal): New function.
24879 (thumb_code, thumb1_code): Remove.
24880 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24881 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24882 (thumb_code, thumb1_code): Remove.
24883 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24884
24885 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24886
24887 * config/alpha/alpha.c (alpha_emit_set_const_1)
24888 (alpha_emit_set_long_const, alpha_extract_integer)
24889 (alpha_legitimate_constant_p, alpha_split_const_mov)
24890 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24891 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24892 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24893 HOST_WIDE_INT_1U.
24894 * config/alpha/predicates.md (mode_mask_operand): Do not match
24895 const_double RTX.
24896 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24897 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24898 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24899 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24900 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24901
24902 2015-05-11 Jakub Jelinek <jakub@redhat.com>
24903
24904 PR target/65780
24905 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24906 default_binds_local_p_2.
24907 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24908 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24909
24910 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24911
24912 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24913
24914 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24915
24916 Patch by Richard Biener
24917 * coverage.c (coverage_obj_init): Delay building of type variant
24918 until the type is finished.
24919
24920 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24921
24922 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24923 mismatch between C and C++ type; compoare correctly ARG_TYPES
24924 for non-prototypes and output correctly parameter index for METHOD_TYPE.
24925 (odr_types_equivalent_p): Fix wording of warning about attributes;
24926 it is OK to match prototype and non-prototype.
24927
24928 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24929
24930 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24931 TYPE_ARG_TYPES list.
24932 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24933 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24934
24935 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24936
24937 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24938 * tree.h (is_lang_specific): Constify.
24939
24940 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
24941
24942 PR tree-optimization/64454
24943 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24944 Rewrite.
24945
24946 2015-05-08 Jason Merrill <jason@redhat.com>
24947
24948 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24949 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24950 config/darwin.h, config/darwin9.h, config/elfos.h,
24951 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24952 config/microblaze/microblaze.h, config/mips/mips.h,
24953 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24954 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24955 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24956 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24957 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24958 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24959 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24960 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24961 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24962 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24963 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24964 between string literal and macro name.
24965
24966 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24967
24968 * jump.c: Change argument types to rtx_insn *.
24969 * rtl.h: Adjust.
24970
24971 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24972
24973 * lra-constraints.c: Change argument type to rtx_insn *.
24974
24975 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24976
24977 * df-problems.c: Change argument type to rtx_insn *.
24978
24979 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24980
24981 * combine.c: Change argument type to rtx_insn *.
24982
24983 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24984
24985 * rtl.h: Adjust.
24986 * rtlanal.c: Change argument type to rtx_insn *.
24987
24988 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24989
24990 * sched-deps.c: Change argument types to rtx_insn *.
24991 * sched-int.h: Adjust.
24992
24993 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24994
24995 * dwarf2cfi.c: Change argument type to rtx_insn *.
24996
24997 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24998
24999 * ira.c (decrease_live_ranges_number): Changetype of local
25000 variable to rtx_insn *.
25001 * recog.c: Change argument types to rtx_insn *.
25002 * recog.h: Adjust.
25003
25004 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25005
25006 * reorg.c: Change argument types to rtx_insn *.
25007
25008 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25009
25010 * ira-color.c: Change argument types to rtx_insn *.
25011 * lra-eliminations.c: Likewise.
25012 * ira.h: Adjust.
25013
25014 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25015
25016 * gcse.c: Change argument types to rtx_insn *.
25017
25018 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25019
25020 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
25021
25022 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25023
25024 * emit-rtl.c (emit_debug_insn_before): Change argument type to
25025 rtx_insn *.
25026 * rtl.h: Adjust.
25027
25028 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25029
25030 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
25031 * rtl.h: Adjust.
25032
25033 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25034
25035 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
25036 * rtl.h: Adjust.
25037
25038 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25039
25040 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
25041 * rtl.h: Adjust.
25042
25043 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25044
25045 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
25046 * rtl.h: Adjust.
25047
25048 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25049
25050 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
25051 to rtx_insn *.
25052 * rtl.h: Adjust.
25053
25054 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25055
25056 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
25057 to rtx_insn *.
25058 * rtl.h: Likewise.
25059
25060 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25061
25062 * except.c (can_nonlocal_goto): Change type of argument to
25063 rtx_insn *.
25064 * rtl.h: Adjust.
25065
25066 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25067
25068 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
25069 * rtl.h: Adjust.
25070
25071 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25072
25073 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
25074 * cfgrtl.c (can_delete_label_p): Adjust.
25075 * rtl.h: likewise.
25076
25077 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25078
25079 * reorg.c (stop_search_p): Change argument to rtx_insn *.
25080
25081 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25082
25083 * except.c (make_reg_eh_region_note): Change argument to
25084 rtx_insn *.
25085 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
25086 * except.h: Adjust.
25087
25088 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25089
25090 * mode-switching.c (commit_mode_sets): Change type of local
25091 variable from rtx to rtx_insn *.
25092
25093 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
25094
25095 * doc/install.texi (--enable-languages): Add missing jit and lto info.
25096 Add ^ to grep command.
25097 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
25098 arg to last gimple_simplify declaration. Add missing gimple_build
25099 declaration for built-in function case with four tree args.
25100
25101 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
25102 Szabolcs Nagy <szabolcs.nagy@arm.com>
25103
25104 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
25105 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
25106 (GNU_USER_DYNAMIC_LINKERN32): Update.
25107
25108 2015-05-08 Richard Biener <rguenther@suse.de>
25109
25110 PR tree-optimization/66036
25111 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
25112 Handle strided group loads.
25113 (vect_verify_datarefs_alignment): Likewise.
25114 (vect_enhance_data_refs_alignment): Likewise.
25115 (vect_analyze_group_access): Likewise.
25116 (vect_analyze_data_ref_access): Likewise.
25117 (vect_analyze_data_ref_accesses): Likewise.
25118 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
25119 (vectorizable_load): Likewise.
25120
25121 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
25122
25123 * config/rs6000/rs6000.md: Require operand inequality in one
25124 of the peepholes.
25125
25126 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
25127 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25128
25129 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
25130 from (set ...).
25131 * config/rx/rx.md (movdi, movdf): Likewise.
25132 Likewise for define_peephole2s.
25133
25134 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25135
25136 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
25137 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
25138 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
25139 vtst_u64): Rewrite using gcc vector extensions.
25140
25141 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25142
25143 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
25144 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
25145
25146 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25147
25148 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
25149
25150 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
25151
25152 * config/glibc-stdint.h (OPTION_MUSL): Define.
25153 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
25154 Change the definition based on OPTION_MUSL for 64 bit targets.
25155 * config/linux.h (OPTION_MUSL): Redefine.
25156 * config/alpha/linux.h (OPTION_MUSL): Redefine.
25157 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
25158 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
25159
25160 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
25161 Szabolcs Nagy <szabolcs.nagy@arm.com>
25162
25163 * config.gcc (LIBC_MUSL): New tm_defines macro.
25164 * config/linux.h (OPTION_MUSL): Define.
25165 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
25166 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
25167 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25168 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25169 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25170 * config/linux.opt (mmusl): New option.
25171 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
25172 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25173 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25174 * configure: Regenerate.
25175
25176 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
25177 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25178
25179 PR target/48904
25180 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
25181 * config/i386/knetbsd-gnu64.h: New file.
25182
25183 2015-05-08 Marek Polacek <polacek@redhat.com>
25184
25185 PR c/64918
25186 * doc/invoke.texi: Document -Woverride-init-side-effects.
25187
25188 2015-05-07 Marek Polacek <polacek@redhat.com>
25189
25190 PR c/65179
25191 * doc/invoke.texi: Document -Wshift-negative-value.
25192
25193 2015-05-06 Aditya Kumar <hiraditya@msn.com>
25194
25195 * gcov-tool.c (do_merge): Refactore to remove int ret.
25196 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
25197 !type == FUNC to type != FUNC.
25198 * reload.h (struct target_reload): Changee to type of
25199 x_spill_indirect_levels from bool to unsigned char.
25200
25201 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
25202
25203 * rtl.h (always_void_p): New function.
25204 * gengenrtl.c (always_void_p): Likewise.
25205 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25206 with code foo are always VOIDmode.
25207 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25208 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25209 compare-elim.c, config/aarch64/aarch64.c,
25210 config/aarch64/aarch64.md, config/alpha/alpha.c,
25211 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25212 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25213 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25214 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25215 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25216 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25217 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25218 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25219 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25220 config/ia64/vect.md, config/iq2000/iq2000.c,
25221 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25222 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25223 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25224 config/mep/mep.c, config/microblaze/microblaze.c,
25225 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25226 config/mn10300/mn10300.c, config/msp430/msp430.c,
25227 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25228 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25229 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25230 config/rs6000/altivec.md, config/rs6000/rs6000.c,
25231 config/rs6000/rs6000.md, config/rs6000/vector.md,
25232 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25233 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25234 config/sh/sh.md, config/sh/sh_treg_combine.cc,
25235 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25236 config/spu/spu.md, config/stormy16/stormy16.c,
25237 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25238 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25239 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25240 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25241 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25242 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25243 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25244 var-tracking.c: Update calls accordingly.
25245
25246 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25247
25248 PR middle-end/192
25249 PR middle-end/54303
25250 * varasm.c (function_mergeable_rodata_prefix): New function.
25251 (mergeable_string_section): Use it.
25252 (mergeable_constant_section): Use it.
25253
25254 2015-05-07 Jeff Law <law@redhat.com>
25255
25256 PR target/39726
25257 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25258 simplifier to narrow arithmetic.
25259 * generic-match-head.c: (types_match, single_use): New functions.
25260 * gimple-match-head.c: (types_match, single_use): New functions.
25261
25262 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25263
25264 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25265 rtx type.
25266
25267 2015-05-07 Richard Biener <rguenther@suse.de>
25268
25269 PR tree-optimization/66002
25270 * passes.def: Schedule another pass_merge_phi after ifcombine, right
25271 before phiopt.
25272
25273 2015-05-07 Marek Polacek <polacek@redhat.com>
25274 Martin Uecker <uecker@eecs.berkeley.edu>
25275
25276 * doc/invoke.texi: Document -fsanitize=bounds-strict.
25277 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25278 into SANITIZE_NONDEFAULT.
25279 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25280
25281 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
25282
25283 PR target/66015
25284 * config/alpha/alpha.c (alpha_override_options_after_change): New.
25285 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25286 (alpha_override_options): Move align_loops, align_jumps and
25287 align_functions handling into alpha_override_options_after_change.
25288
25289 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
25290 Chris Jones <chrisj@nvidia.com>
25291 Joshua Conner <jconner@nvidia.com>
25292
25293 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25294 linking of crtfastmath.o.
25295 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25296
25297 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25298
25299 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25300 (cstore<mode>4_unsigned_imm): New expander.
25301 (cstore<mode>4): Remove empty constraint strings. Use the new
25302 expanders.
25303
25304 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
25305
25306 PR target/64208
25307 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25308 alternatives.
25309
25310 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25311
25312 * config/aarch64/geniterators.sh: Use standard BRE in sed.
25313
25314 2015-05-06 Alan Modra <amodra@gmail.com>
25315
25316 PR target/66033
25317 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25318 (UNSPEC_NOP): Define.
25319 (reload_vsx_from_gpr<mode>): Add missing DONE.
25320 (reload_gpr_from_vsx<mode>): Likewise.
25321 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25322 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25323
25324 2015-05-06 Christian Bruel <christian.bruel@st.com>
25325
25326 PR target/66015
25327 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25328 align_jumps, align_functions into aarch64_override_options_after_change.
25329
25330 2015-05-06 Richard Biener <rguenther@suse.de>
25331
25332 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25333 vect_transform_slp_perm_load to check if we support a permutation
25334 for basic-block vectorization.
25335
25336 2015-05-06 Nick Clifton <nickc@redhat.com>
25337
25338 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25339 used, even if it is not being used as a frame pointer.
25340
25341 2015-05-05 Jason Merrill <jason@redhat.com>
25342
25343 * dwarf2out.c (gen_member_die): Don't emit anything for an
25344 anonymous class constructor.
25345
25346 2015-05-05 David Malcolm <dmalcolm@redhat.com>
25347
25348 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
25349 that it reflects the block structure.
25350 (afdo_propagate_edge): Likewise.
25351 (afdo_calculate_branch_prob): Likewise.
25352 (afdo_annotate_cfg): Likewise.
25353 * cfgcleanup.c (equal_different_set_p): Likewise.
25354 (try_crossjump_to_edge): Likewise.
25355 * cgraph.c (cgraph_node::verify_node): Likewise.
25356 * cgraphunit.c (expand_all_functions): Likewise.
25357 * config/i386/i386.c (ix86_expand_copysign): Likewise.
25358 (exact_dependency_1): Likewise.
25359 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25360 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
25361 * gensupport.c (process_define_subst): Likewise.
25362 * lto-wrapper.c (merge_and_complain): Likewise.
25363 * tree-if-conv.c (if_convertible_bb_p): Likewise.
25364 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
25365 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
25366 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25367 * tree-vect-loop.c (vectorizable_reduction): Likewise.
25368 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25369 * tree-vect-stmts.c (vectorizable_shift): Likewise.
25370 * tree-vrp.c (vrp_finalize): Likewise.
25371 * tree.c (variably_modified_type_p): Likewise.
25372
25373 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
25374
25375 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25376 on darwin12 and later.
25377 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25378 file to pass -rdynamic on darwin12 and later.
25379 * config/darwin.opt (rdynamic): Add.
25380
25381 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25382
25383 * doc/extend.texi (C Extensions): Update menu for moved Variable
25384 Attributes and Type Attributes sections.
25385
25386 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25387
25388 PR target/65990
25389 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25390 if rep_8byte stringop strategy was specified for 32-bit target.
25391
25392 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
25393
25394 PR target/65915
25395 * config/i386/i386.md (vector convert to float spltiter): Check for
25396 xmm16+, when splitting scalar float conversion.
25397 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25398
25399 2015-05-05 Nick Clifton <nickc@redhat.com>
25400
25401 * config/msp430/msp430-opts.h (enum msp430_regions): New.
25402 * config/msp430/msp430.c (msp430_override_options): Complain if
25403 -mcode-region or -mdata-region is used on a non MSP430X.
25404 (msp430_section_attr): New function. Checks lower, upper and
25405 either attributes.
25406 (msp430_attribute_table): Add lower, upper and either.
25407 (gen_prefix): New function. Generates a prefix for a section
25408 name.
25409 (msp430_select_section): New function - handles the choice of
25410 section for an object. Takes into account memory region
25411 attributes and options.
25412 (msp430_function_section): Use gen_prefix.
25413 (TARGET_SECTION_TYPE_FLAGS): Define.
25414 (msp430_section_type_flags): New function.
25415 (TARGET_ASM_UNIQUE_SECTION): Define.
25416 (msp430_unique_section): New function.
25417 (msp430_output_aligned_decl_common): New function.
25418 (msp430_do_not_relax_short_jumps): New function.
25419 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25420 Define.
25421 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25422 * config/msp430/msp430-protos.h
25423 (msp430_do_not_relax_short_jumps): New prototype.
25424 (msp430_output_aligned_decl_common): New prototype.
25425 * config/msp430/msp430.md (length): New attribute.
25426 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25427 then use a long code sequence for short jumps.
25428 * config/msp430/msp430.opt (mcode-region): New.
25429 (mdata-region): New.
25430 * doc/invoke.texi: Document new options.
25431 * doc/extend.texi: Document new attributes.
25432
25433 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25434
25435 * config/aarch64-protos.h (struct cpu_branch_cost): New.
25436 (tune_params): Add field branch_costs.
25437 (aarch64_branch_cost): Declare.
25438 * config/aarch64.c (generic_branch_cost): New.
25439 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25440 (cortexa53_tunings): Likewise.
25441 (cortexa57_tunings): Likewise.
25442 (thunderx_tunings): Likewise.
25443 (xgene1_tunings): Likewise.
25444 (aarch64_branch_cost): Define.
25445 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25446
25447 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25448
25449 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25450 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25451 * config/i386/i386.md: Ditto.
25452 * config/i386/winnt.c: Ditto.
25453
25454 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25455
25456 * doc/extend.texi (__atomic Builtins): Move implementation details
25457 to the end of the description, rewrite opening paragraphs, state
25458 difference with __sync builtins, state C11/C++11 assumptions,
25459 weaken itemized descriptions, add explanation of memory model
25460 behaviour, expand description of compare-exchange, simplify text.
25461
25462 2015-05-05 Renlin Li <renlin.li@arm.com>
25463
25464 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25465
25466 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
25467
25468 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25469 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25470 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25471 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25472 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25473 * configure: Regenerate.
25474 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25475 * doc/install.texi (aarch64*-*-*): Document new
25476 --enable-fix-cortex-a53-843419 option.
25477 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25478 and -mno-fix-cortex-a53-843419 options.
25479
25480 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25481
25482 PR target/65871
25483 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25484
25485 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
25486
25487 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25488 fix overactive TYPE_MIN_VALUE check and add FIXME for type
25489 compatibility problems.
25490
25491 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25492
25493 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25494 constraints.
25495 (cbranchsi4_reg): New.
25496 * config/microblaze/microblaze.c
25497 (microblaze_expand_conditional_branch_reg): New.
25498 * config/microblaze/microblaze-protos.h
25499 (microblaze_expand_conditional_branch_reg): New prototype.
25500
25501 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25502
25503 * config/microblaze/microblaze.md (peephole2): New.
25504
25505 2015-05-04 Jeff Law <law@redhat.com>
25506
25507 Revert:
25508 2015-05-04 Jeff Law <law@redhat.com>
25509
25510 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25511 simplifier to narrow arithmetic.
25512 * generic-match-head.c: (types_match, single_use): New functions.
25513 * gimple-match-head.c: (types_match, single_use): New functions.
25514
25515 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25516
25517 PR target/65987
25518 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25519 (split_branches): Likewise.
25520
25521 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
25522
25523 * common.opt (fdelete-null-pointer-checks): Init to -1.
25524 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25525 override flag_delete_null_pointer_checks default.
25526 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25527 behavior re address zero. Better document target-specific behavior.
25528 (-fisolate-errneous-paths-dereference): Mention relationship to
25529 -fdelete-null-pointer-checks.
25530
25531 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25532
25533 PR tree-optimization/65984
25534 * ubsan.c: Include tree-cfg.h.
25535 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25536 stmt_could_throw_p test, rename can_throw variable to ends_bb.
25537
25538 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25539
25540 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25541 to CONST_DOUBLE_P predicate.
25542 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25543 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25544 allow only operands that satisfy standard_sse_constant_p predicate.
25545 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25546 to CONST_DOUBLE_P predicate.
25547
25548 2015-05-04 Jeff Law <law@redhat.com>
25549
25550 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25551 simplifier to narrow arithmetic.
25552 * generic-match-head.c: (types_match, single_use): New functions.
25553 * gimple-match-head.c: (types_match, single_use): New functions.
25554
25555 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
25556
25557 * config/arm/arm.c: Restore bootstrap.
25558
25559 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25560
25561 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25562 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25563 as CONST_WIDE_INT, not CONST_DOUBLE.
25564 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25565 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25566 (ix86_find_base_term): Do not check for CONST_DOUBLE.
25567 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25568 (ix86_build_signbit_mask): Rewrite using wide ints.
25569 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25570 (ix86_rtx_costs): Handle CONST_WIDE_INT.
25571 (find_constant): Ditto.
25572 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25573 using gen_int_mode.
25574 * config/i386/predicates.md (x86_64_immediate_operand)
25575 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25576 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25577 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25578 (const0_operand): Also match const_wide_int.
25579 (constm1_operand): Ditto.
25580 (const1_operand): Ditto.
25581
25582 2015-05-04 Richard Biener <rguenther@suse.de>
25583
25584 PR tree-optimization/65965
25585 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25586 store groups at gaps.
25587
25588 2015-05-04 Richard Biener <rguenther@suse.de>
25589
25590 PR tree-optimization/65935
25591 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25592 then make sure to apply that swapping to the IL.
25593
25594 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25595
25596 * Makefile.in (PATCHLEVEL_c): New variable.
25597 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25598 expand the same way as if DEVPHASE_c was non-empty.
25599
25600 2015-05-04 Kai Tietz <ktietz@redhat.com>
25601
25602 PR target/65559
25603 * lto-wrapper.c (run_gcc): Open filename
25604 in binary-mode.
25605
25606 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
25607
25608 * doc/extend.texi (Variable Attributes, Type Attributes): Move
25609 sections up in file, to immediately after the Function Attributes
25610 section.
25611
25612 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
25613
25614 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25615
25616 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25617
25618 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25619 (insert_partition_copy_on_edge): Adjust.
25620 (insert_rtx_to_part_on_edge): Likewise.
25621 (insert_part_to_rtx_on_edge): Likewise.
25622
25623 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25624
25625 * function.c (set_return_jump_label): Change type of argument to
25626 rtx_insn *.
25627 * function.h (set_return_jump_label): Adjust.
25628
25629 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25630
25631 * reload.h (struct reg_equivs_t): Change type of init to
25632 rtx_insn *.
25633 * ira.c (fix_reg_equiv_init): Adjust.
25634 * reload1.c (eliminate_regs_1): Likewise.
25635 (init_eliminable_invariants): Likewise.
25636
25637 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25638
25639 * cselib.c (fp_setter_insn): Take a rtx_insn *.
25640 * cselib.h (fp_setter_insn): Adjust.
25641
25642 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25643
25644 * recog.c (struct validate_replace_src_data): Change type of
25645 insn field to rtx_insn *.
25646 (validate_replace_src_group): Change type of argument to rtx_insn *.
25647 * recog.h (validate_replace_src_group): Adjust.
25648
25649 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25650
25651 * haifa-sched.c: Change the type of some variables to rtx_insn *.
25652 * sched-deps.c: Likewise.
25653 * sched-int.h: Likewise.
25654 * sched-rgn.c: Likewise.
25655 * sel-sched.c: Likewise.
25656
25657 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25658
25659 to rtx_insn *.
25660 * config/i386/i386.c: Change the type of some arguments to
25661 rtx_insn *.
25662 * config/arm/arm.c: Likewise.
25663
25664 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25665
25666 * lra-constraints.c: Change type of some arguments to rtx_insn *.
25667
25668 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25669
25670 * regcprop.c (kill_autoinc_value): Change type of argument to
25671 rtx_insn *.
25672
25673 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25674
25675 * genrecog.c (print_subroutine): Adjust.
25676 * recog.c (get_bool_attr_mask_uncached): Likewise.
25677 * recog.h (struct recog_data_d): Change the type of insn to
25678 rtx_insn *.
25679
25680 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25681
25682 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25683
25684 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25685
25686 * df-problems.c (df_set_note): Change type of argument to
25687 rtx_insn *.
25688
25689 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25690
25691 * builtins.c (expand_builtin_trap): Change type of local
25692 variable to rtx_insn *.
25693 (add_sched_insns_for_speculation): Likewise.
25694 (ix86_emit_save_regs): Likewise.
25695 (get_scratch_register_on_entry): Likewise.
25696 (ix86_emit_restore_reg_using_pop): Likewise.
25697 (ix86_emit_leave): Likewise.
25698 (ix86_emit_restore_regs_using_mov): Likewise.
25699 (ix86_expand_epilogue): Likewise.
25700 Likewise.
25701 (rl78_alloc_physical_registers_umul): Likewise.
25702 * cselib.c (discard_useless_locs): Likewise.
25703 (cselib_invalidate_regno): Likewise.
25704 (cselib_invalidate_mem): Likewise.
25705 * function.c (expand_function_start): Likewise.
25706 (emit_use_return_register_into_block): Likewise.
25707 * gcse.c: Likewise.
25708 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25709 * ifcvt.c (noce_get_alt_condition): Likewise.
25710 * loop-doloop.c (doloop_condition_get): Likewise.
25711 * lra-constraints.c (inherit_in_ebb): Likewise.
25712 * modulo-sched.c (sms_schedule_by_order): Likewise.
25713 * recog.c (next_insn_tests_no_inequality): Likewise.
25714 * reorg.c (emit_delay_sequence): Likewise.
25715 (update_reg_dead_notes): Likewise.
25716 (fix_reg_dead_note): Likewise.
25717 (fill_slots_from_thread): Likewise.
25718 (delete_computation): Likewise.
25719
25720 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
25721
25722 * doc/extend.texi (Variable Attributes): Add menu and proper
25723 @nodes to subsections. Move Microsoft Windows attributes to
25724 their own subsection.
25725 (Type Attributes): Reorganize introduction to remove duplicate
25726 list of attributes. Add menu and proper @nodes to subsections.
25727 Alphabetize the main table of common attributes.
25728
25729 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
25730
25731 * match.pd: New simplification patterns.
25732 (x + (x & 1)) -> ((x + 1) & ~1)
25733 (x & ~(x & y)) -> ((x & ~y))
25734 (x | ~(x | y)) -> ((x | ~y))
25735
25736 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25737
25738 * target.def (attribute_table): Mention that struct attribute_spec
25739 is defined in tree-core.h rather than tree.h
25740 * doc/tm.texi: Regenerate.
25741
25742 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
25743
25744 * genrecog.c (test): Rename to rtx_test. Update rest of file
25745 accordingly.
25746
25747 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
25748
25749 PR translation/65959
25750 * params.h (DEFPARAM): Rename msgid to nocmsgid.
25751
25752 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25753
25754 * config/aarch64/aarch64-protos.h (tune_params):
25755 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25756 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25757 Return value depending on target.
25758 (generic_tunings): Initialize new target settings.
25759 (cortexa53_tunings): Likewise.
25760 (cortexa57_tunings): Likewise.
25761 (thunderx_tunings): Likewise.
25762 (xgene1_tunings): Likewise.
25763
25764 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25765
25766 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25767 Make Cortex-A53 shift costs more accurate.
25768
25769 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25770
25771 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25772 UNSIGNED_FLOAT.
25773
25774 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25775
25776 * config/aarch64/aarch64.c (aarch64_rtx_costs):
25777 Calculate cost of op0 and op1 in PLUS and MINUS cases.
25778
25779 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25780
25781 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25782 Add cost of op0 in the compare-with-fpzero case.
25783
25784 2015-04-30 David Malcolm <dmalcolm@redhat.com>
25785
25786 * builtins.c (fold_builtin_1): Remove spurious second
25787 semicolon.
25788 * cgraph.h (symtab_node::get_availability): Likewise.
25789 * opts.c (common_handle_option): Remove spurious second semicolon.
25790 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25791 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25792
25793 2015-04-30 Caroline Tice <cmtice@google.com>
25794
25795 PR gcov-profile/65929
25796 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25797 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25798 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25799 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25800 * doc/tm.texi: Regenerate.
25801 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
25802 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25803 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
25804 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25805
25806 2015-04-30 Marek Polacek <polacek@redhat.com>
25807
25808 * varasm.c (handle_cache_entry): Fix logic.
25809
25810 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25811
25812 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25813 (*extrsi5_insn_uxtw_alt): Likewise.
25814 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25815 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25816 operations.
25817
25818 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25819
25820 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25821 fabd in ABS case.
25822
25823 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25824
25825 * config/aarch64/aarch64.md
25826 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25827 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25828 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25829 appropriately. Handle alternative EON form.
25830
25831 2015-04-30 Renlin Li <renlin.li@arm.com>
25832
25833 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25834 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25835
25836 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25837
25838 PR ipa/65873
25839 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25840 -fstrict-aliasing boundaries.
25841
25842 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25843
25844 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25845 and [SU]MNEGL patterns.
25846
25847 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25848
25849 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25850 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25851 combined arithmetic-shift ops. Properly handle all shift and extend
25852 operations that can occur in combination with PLUS/MINUS.
25853 Rename maybe_fma to compound_p.
25854 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25855 arithmetic and shift operations.
25856
25857 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25858
25859 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25860 rather than arith_shift cost when costing ADD/MINUS of an
25861 extended value.
25862
25863 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25864
25865 PR lto/65948
25866 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25867 to itself.
25868
25869 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
25870
25871 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25872 are for the same position.
25873
25874 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
25875
25876 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
25877 vectorize_loops.
25878 (vectorize_loops): Use it.
25879
25880 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25881
25882 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25883 for aggregate types.
25884 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25885 type to be non_ODR.
25886 * tree.c (need_assembler_name_p): Compute mangled name for
25887 non-fundamental types and integer types.
25888
25889 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
25890
25891 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25892 manual swaps.
25893 * expr.c (expand_expr_real_2): Likewise.
25894
25895 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25896
25897 * tree.c (build_common_builtin_nodes): Do not build
25898 __builtin_alloca_with_align as equivalent of library alloca.
25899
25900 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25901
25902 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25903 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25904 bugus variants.
25905 * tree.c: Include print-tree.h and ipa-utils.h
25906 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25907 (free_lang_data_in_cgraph): Call verify_type.
25908 (verify_type_variant): New function.
25909 (verify_type): New function.
25910 * tree.h (verify_type): Declare.
25911
25912 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
25913
25914 * config/mips/mips-cpus.def: (mips4): Change default processor
25915 from PROCESSOR_R8000 to PROCESSOR_R10000.
25916
25917 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
25918
25919 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25920 la/jalr instead of jal.
25921
25922 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
25923
25924 PR target/65871
25925 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25926 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25927 (setcc+movzbl peephole2): Check also clobbered reg.
25928 (setcc+andl peephole2): Ditto.
25929
25930 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25931
25932 PR libgomp/65099
25933 * config/nvptx/mkoffload.c (target_ilp32): New variable.
25934 (main): Set it depending on "-foffload-abi=[...]".
25935 (compile_native, main): Use it to pass "-m32" or "-m64" to the
25936 compiler.
25937
25938 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25939
25940 PR target/65770
25941 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25942 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25943 Flip lane index back at assembly time for bigendian.
25944
25945 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25946
25947 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25948 * gimplify.c (gimplify_omp_workshare): Use it.
25949
25950 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25951
25952 * Makefile.in (build/genrecog.o): Depend on inchash.h.
25953 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25954 build/inchash.o
25955 * genrecog.c: Rewrite most of the code except for the third page.
25956
25957 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25958
25959 * inchash.h, inchash.c: Include bconfig.h for build objects.
25960 * Makefile.in (build/inchash.o): New rule.
25961
25962 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
25963
25964 PR target/65924
25965 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25966 number in type attribute expression.
25967
25968 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25969
25970 * loop-iv.c (canon_condition): Generalize to all types of integer
25971 constant.
25972
25973 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
25974
25975 * gimple-walk.c: Prune duplicate or unneeded includes.
25976 (walk_gimple_asm): Only call parse_input_constraint or
25977 parse_output_constraint if their findings are used.
25978 Honour parse_input_constraint and parse_output_constraint
25979 result.
25980
25981 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25982
25983 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
25984
25985 2015-04-29 Tom de Vries <tom@codesourcery.com>
25986
25987 PR tree-optimization/65893
25988 * passes.def (pass_all_optimizations): Move pass_stdarg to after
25989 pass_dce.
25990
25991 2015-04-29 Richard Biener <rguenther@suse.de>
25992
25993 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
25994 compute GROUP_SIZE for basic-block SLP.
25995 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
25996 take into account gaps.
25997 (vect_get_mask_element): Properly reject references to previous
25998 vectors.
25999 (vect_transform_slp_perm_load): Likewise.
26000
26001 2015-04-29 Christian Bruel <christian.bruel@st.com>
26002
26003 PR target/64835
26004 * config/i386/i386.c (ix86_default_align): New function.
26005 (ix86_override_options_after_change): Call ix86_default_align.
26006 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
26007 (ix86_override_options_after_change): New function.
26008
26009 2015-04-28 Jeff Law <law@redhat.com>
26010
26011 * tree-ssa-dom.c (record_equality); Fix comment typos.
26012
26013 2015-04-28 Tom de Vries <tom@codesourcery.com>
26014
26015 PR tree-optimization/65887
26016 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
26017
26018 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
26019
26020 * doc/extend.texi (Declaring Attributes of Functions): Split into
26021 subsections by target. Alphabetize the table of common attributes.
26022 Rewrite some of the introductory text to reflect the new structure.
26023 Update some cross-references to point to the new subsections.
26024 (Attribute Syntax): Put paragraph about "__" naming here. Remove
26025 duplicate copies in the discussion of function, label, and type
26026 attributes.
26027
26028 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
26029
26030 PR bootstrap/65910
26031 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
26032
26033 2015-04-28 Jason Merrill <jason@redhat.com>
26034
26035 PR c++/65734
26036 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
26037 (finalize_type_size): Respect TYPE_USER_ALIGN.
26038 (layout_type) [ARRAY_TYPE]: Likewise.
26039
26040 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
26041
26042 * config/arm/arm.md (*arm_movt): Fix type attribute.
26043 (*cmpsi_shiftsi): Likewise.
26044 (*cmpsi_shiftsi_swp): Likewise.
26045 (*movsicc_insn): Likewise.
26046 (*cond_move): Likewise.
26047 (*if_plus_move): Likewise.
26048 (*if_move_plus): Likewise.
26049 (*if_arith_move): Likewise.
26050 (*if_move_arith): Likewise.
26051 (*if_shift_move): Likewise.
26052 (*if_move_shift): Likewise.
26053 (*arm_movtas_ze): Likewise.
26054 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
26055 redundancy and type attribute.
26056 (*thumb2_movsi_insn): Fix type attribute.
26057 (*thumb2_addsi_short): Likewise.
26058 (thumb2_addsi3_compare0): Likewise.
26059 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
26060 attributes accordingly.
26061
26062 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26063
26064 PR other/65911
26065 * function.c (pad_to_arg_alignment): Add parentheses.
26066
26067 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
26068
26069 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
26070 libgcc/config/frv/elf-lib.h.
26071
26072 2015-04-28 Tom de Vries <tom@codesourcery.com>
26073
26074 * tree-call-cdce.c: Fix example in header comment.
26075
26076 2015-04-28 Richard Biener <rguenther@suse.de>
26077
26078 PR tree-optimization/62283
26079 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
26080 fails fatally and we are vectorizing a basic-block simply
26081 cause the child to be constructed piecewise.
26082 (vect_analyze_slp_cost_1): Adjust.
26083 (vect_detect_hybrid_slp_stmts): Likewise.
26084 (vect_bb_slp_scalar_cost): Likewise.
26085 (vect_get_constant_vectors): For piecewise constructed
26086 constants place them after the last def.
26087 (vect_get_slp_defs): Adjust.
26088 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
26089 externals for basic-block vectorization.
26090
26091 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26092
26093 PR target/63503
26094 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
26095 aarch64-*-*.
26096 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
26097 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
26098 (AARCH64_TUNE_FMA_STEERING): Likewise.
26099 * config/aarch64/aarch64-cores.def: Set
26100 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
26101 FMUL/FMADD instructions.
26102 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
26103 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
26104 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
26105 * config/aarch64/cortex-a57-fma-steering.h: New file.
26106 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26107
26108 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
26109
26110 * gensupport.c (std_preds): Add missing codes to address_operand entry.
26111
26112 2015-04-28 Richard Biener <rguenther@suse.de>
26113
26114 PR tree-optimization/65851
26115 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
26116 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
26117 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
26118 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
26119 (ccp_visit_phi_node): Adjust.
26120 (evaluate_stmt): For simplifications to SSA names return its
26121 lattice value if that isn't VARYING. Return immediately when
26122 simplified to a constant.
26123 (visit_assignment): Adjust.
26124 (ccp_visit_stmt): Likewise.
26125
26126 2015-04-28 Tom de Vries <tom@codesourcery.com>
26127
26128 PR tree-optimization/65818
26129 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
26130 evaluated.
26131
26132 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26133
26134 * calls.c (save_fixed_argument_area): Don't check
26135 ARGS_GROW_DOWNWARD with the preprocessor.
26136 (restore_fixed_argument_area): Likewise.
26137 (mem_overlaps_already_clobbered_arg_p): Likewise.
26138 (check_sibcall_argument_overlap): Likewise.
26139 (expand_call): Likewise.
26140 (emit_library_call_value_1): Likewise.
26141 (store_one_arg): Likewise.
26142 * function.c (assign_parms): Likewise.
26143 (locate_and_pad_parm): Likewise.
26144 (pad_to_arg_alignment): Likewise.
26145 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26146
26147 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26148
26149 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
26150 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
26151 * calls.c (save_fixed_argument_area): Don't chekc if
26152 ARGS_GROW_DOWNWARD is defined.
26153 (restore_fixed_argument_area): Likewise.
26154 (mem_overlaps_already_clobbered_arg_p): Likewise.
26155 (check_sibcall_argument_overlap): Likewise.
26156 (expand_call): Likewise.
26157 (emit_library_call_value_1): Likewise.
26158 (store_one_arg): Likewise.
26159 * function.c (assign_parms): Likewise.
26160 (locate_and_pad_parm): Likewise.
26161 (pad_to_arg_alignment): Likewise.
26162 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26163
26164 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26165
26166 * defaults.h (gen_epilogue): New function.
26167 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
26168 defined.
26169 * cfgrtl.c (cfg_layout_finalize): Likewise.
26170 * df-scan.c: Likewise.
26171 * function.c (thread_prologue_and_epilogue_insns): Likewise.
26172 (reposition_prologue_and_epilogue_notes): Likewise.
26173 * reorg.c (find_end_label): Likewise.
26174 * toplev.c: Likewise.
26175
26176 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26177
26178 * bb-reorder.c (HAVE_return): Don't check if its undefined.
26179 * defaults.h (gen_simple_return): New function.
26180 (gen_simple_return): Likewise.
26181 (HAVE_return): Add default definition to false.
26182 (HAVE_simple_return): Likewise.
26183 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
26184 HAVE_return and HAVE_simple_return are defined.
26185 * function.c (gen_return_pattern): Likewise.
26186 (convert_jumps_to_returns): Likewise.
26187 (thread_prologue_and_epilogue_insns): Likewise.
26188 * reorg.c (find_end_label): Likewise.
26189 (dbr_schedule): Likewise.
26190 * shrink-wrap.c: Likewise.
26191 * shrink-wrap.h: Likewise.
26192
26193 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26194
26195 * defaults.h (EPILOGUE_USES): Add default definition of false.
26196 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
26197 * resource.c (init_resource_info): Likewise.
26198
26199 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26200
26201 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26202 to false.
26203 * dwarf2out.c (field_byte_offset): REmove check if
26204 PCC_BITFIELD_TYPE_MATTERS is defined.
26205 * stor-layout.c (layout_decl): Likewise.
26206 (update_alignment_for_field): Likewise.
26207 (place_field): Likewise.
26208
26209 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26210
26211 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26212 true.
26213 * regrename.c (check_new_reg_p): Remove check if
26214 HARD_REGNO_RENAME_OK is defined.
26215 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26216
26217 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26218
26219 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26220 * cse.c (fold_rtx): Likewise.
26221 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26222 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26223 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26224 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26225 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26226 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26227 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26228 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26229 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26230 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26231 * Likewise.
26232 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26233 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26234 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26235 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26236 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26237 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26238 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26239 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26240 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26241 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26242 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26243 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26244 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26245 * doc/tm.texi: Regenerate.
26246 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26247 either true or false.
26248
26249 2015-04-27 Jeff Law <law@redhat.com>
26250
26251 PR tree-optimization/65217
26252 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26253 of them has a single use, make sure it is the LHS of the implied
26254 copy.
26255
26256 2015-04-28 Alan Modra <amodra@gmail.com>
26257
26258 PR target/65810
26259 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26260 (offsettable_ok_by_alignment): Use minimum of decl and toc
26261 pointer alignment. Replace dead code with assertion.
26262 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
26263 case if size exceeds toc pointer alignment.
26264 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26265 (rs6000_emit_move): Likewise.
26266 * configure.ac: Add linker toc pointer alignment check.
26267 * configure: Regenerate.
26268 * config.in: Regenerate.
26269
26270 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
26271
26272 * config.gcc: Add h8300-*-linux.
26273 * config/h8300/linux.h: New.
26274 * config/h8300/t-linux: New.
26275 * config/h8300/h8300.c (h8300_option_override): Normal mode
26276 is not supported for h8300-*-linux.
26277 (h8300_file_start): Target priority change.
26278 (get_shift_alg): Likewise.
26279 (h8300_shift_need_scratch_p): Likewise.
26280 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26281 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26282
26283 2015-04-27 Caroline Tice <cmtice@google.com>
26284
26285 * final.c (final_scan_insn): Output cold_function_name as function
26286 type.
26287 * varasm.c (cold_function_name): Make global.
26288 (assemble_start_function): Re-set cold_function_name.
26289 (assemble_end_function): Output cold partition size.
26290 * varasm.h (cold_function_name): Declare global.
26291
26292 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
26293
26294 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26295 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26296 constraint.
26297 (*movxi_internal_avx512f): Ditto.
26298 (define_split): Check for xmm16+, when splitting scalar float_extend.
26299 (*extendsfdf2_mixed): Use "v" constraint.
26300 (define_split): Check for xmm16+, when splitting scalar float_truncate.
26301 (*truncdfsf_fast_sse): Use "v" constraint.
26302 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26303 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26304 (define_peephole2): Check for xmm16+, when converting scalar
26305 float_truncate.
26306 (define_peephole2): Check for xmm16+, when converting scalar
26307 float_extend.
26308 (*fop_<mode>_comm_mixed): Use "v" constraint.
26309 (*fop_<mode>_comm_sse): Ditto.
26310 (*fop_<mode>_1_mixed): Ditto.
26311 (*sqrt<mode>2_sse): Ditto.
26312 (*ieee_s<ieee_maxmin><mode>3): Ditto.
26313
26314 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26315
26316 * combine.c (simplify_if_then_else): Use std::swap instead
26317 of manually swapping.
26318 (known_cond): Likewise.
26319 (simplify_comparison): Likewise.
26320
26321 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
26322
26323 PR target/64579
26324 * config/rs6000/htm.md: Remove all define_expands.
26325 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26326 UNSPECV_HTM_TABORTWCI): Remove.
26327 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26328 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26329 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26330 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26331 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26332 tabortwci_internal): Remove define_insns.
26333 (tabort<wd>c, tabort<wd>ci): New define_insns.
26334 (tabort): Use gpc_reg_operand.
26335 (tcheck): Remove operand.
26336 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26337 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26338 expected value.
26339 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
26340 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
26341 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
26342 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
26343 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
26344 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
26345 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
26346 (tcheck): Remove builtin argument.
26347 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
26348 not TARGET_64BIT.
26349 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
26350 tabortdc and tabortdci builtins when not in 64-bit mode.
26351 Modify code to handle the loss of the HTM define_expands.
26352 Emit code to copy the CR register to TARGET.
26353 (htm_init_builtins): Modify code to handle the loss of the HTM
26354 define_expands.
26355 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
26356 (RS6000_BTC_64BIT): Likewise.
26357 (RS6000_BTC_CR): New macro.
26358 * doc/extend.texi: Update documentation for htm builtins.
26359
26360 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26361
26362 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
26363 of manually swapping.
26364 (simplify_associative_operation): Likewise.
26365 (simplify_binary_operation): Likewise.
26366 (simplify_plus_minus): Likewise.
26367 (simplify_relational_operation): Likewise.
26368 (simplify_ternary_operation): Likewise.
26369
26370 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26371
26372 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26373 (xs_hi_nonmemory_operand): Remove error.
26374 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26375 general_operand rather than xs_hi_general_operand.
26376
26377 2015-04-27 Richard Biener <rguenther@suse.de>
26378
26379 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26380 (record_equivalences_from_stmt): Valueize rhs.
26381 (record_equality): Canonicalize x and y order via
26382 tree_swap_operands_p. Do not swap operands for same loop depth.
26383
26384 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
26385
26386 PR target/65296
26387 PR target/65895
26388 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26389 Add hint how to use own spec file.
26390
26391 2015-04-27 Jakub Jelinek <jakub@redhat.com>
26392
26393 PR tree-optimization/65875
26394 * tree-vrp.c (update_value_range): If in is_new case setting
26395 old_vr to VR_VARYING, also set new_vr to it. Remove
26396 old_vr->type == VR_VARYING test.
26397 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26398 SSA_PROP_INTERESTING if update_value_range returned true,
26399 but new range is VR_VARYING.
26400
26401 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
26402
26403 * combine.c (sign_extend_short_imm): New.
26404 (set_nonzero_bits_and_sign_copies): Use above new function for sign
26405 extension of src short immediate.
26406 (reg_nonzero_bits_for_combine): Likewise for tem.
26407
26408 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26409
26410 * stor-layout.c (self_referential_component_ref_p): New predicate.
26411 (copy_self_referential_tree_r): Use it.
26412 (self_referential_size): Punt for simple operations directly involving
26413 self-referential component references.
26414 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26415
26416 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26417
26418 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26419
26420 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26421
26422 * vec.h (vec): Make splice arguments const. Update definitions
26423 accordingly.
26424
26425 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
26426
26427 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26428 alternatives.
26429
26430 2015-04-26 Tom de Vries <tom@codesourcery.com>
26431
26432 PR tree-optimization/65826
26433 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26434
26435 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
26436
26437 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26438 (*madd3<mode>): Ditto.
26439 (*msub4<mode>): Ditto.
26440 (*msub3<mode>): Ditto.
26441 (*nmadd4<mode>): Ditto.
26442 (*nmadd3<mode>): Ditto.
26443 (*nmadd4<mode>_fastmath): Ditto.
26444 (*nmadd3<mode>_fastmath): Ditto.
26445 (*nmsub4<mode>): Ditto.
26446 (*nmsub3<mode>): Ditto.
26447 (*nmsub4<mode>_fastmath): Ditto.
26448 (*nmsub3<mode>_fastmath): Ditto.
26449
26450 2015-04-24 Jason Merrill <jason@redhat.com>
26451
26452 PR c++/50800
26453 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26454 down when building TYPE_CANONICAL.
26455 (build_pointer_type_for_mode): Likewise.
26456
26457 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
26458
26459 * genrecog.c (validate_pattern): Check matching constraint refers
26460 to a lower numbered operand.
26461
26462 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26463
26464 PR target/65849
26465 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26466 save to independent variables use the Save attribute. This will
26467 allow these options to be modified with the #pragma/attribute
26468 target support.
26469 (-mallow-movmisalign): Likewise.
26470 (-mallow-df-permute): Likewise.
26471 (-msched-groups): Likewise.
26472 (-malways-hint): Likewise.
26473 (-malign-branch-targets): Likewise.
26474 (-mvectorize-builtins): Likewise.
26475 (-msave-toc-indirect): Likewise.
26476
26477 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26478 can be set via the #pragma/attribute target support.
26479 (rs6000_opt_vars): Likewise.
26480 (rs6000_inner_target_options): If VSX was set, also set
26481 -mno-avoid-indexed-addresses.
26482
26483 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26484
26485 * config/arm/iterators.md (shiftable_ops): Rename to...
26486 (SHIFTABLE_OPS): ... This. Update use in comments.
26487 (ior_xor): Rename to...
26488 (IOR_XOR): ... This.
26489 (vqh_ops): Rename to...
26490 (VQH_OPS): ... This.
26491 (vqhs_ops): Rename to...
26492 (VQHS_OPS): ... This.
26493 (rshifts): Rename to...
26494 (RSHIFTS): ... This.
26495 (returns): Rename to...
26496 (RETURNS): ... This.
26497 * config/arm/arm.md: Update uses of the above.
26498 * config/arm/neon.md: Likewise.
26499
26500 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26501
26502 * config.host (case ${host}): Add aarch64*-*-linux case.
26503 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26504 fields to all the cores.
26505 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26506 Add MCPU_MTUNE_NATIVE_SPECS.
26507 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26508 field to all extensions.
26509 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26510 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26511 Adjust definition of AARCH64_OPT_EXTENSION.
26512 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26513 (MCPU_MTUNE_NATIVE_SPECS): Define.
26514 * config/aarch64/driver-aarch64.c: New file.
26515 * config/aarch64/x-arch64: New file.
26516 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26517 -mtune and -march.
26518
26519 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26520 Wei Mi <wmi@google.com>
26521
26522 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26523 * config/i386/i386.c (extract_base_offset_in_addr): New function.
26524 (ix86_operands_ok_for_move_multiple): Ditto.
26525 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26526 (movlpd/movhpd to movupd peephole2): Ditto.
26527
26528 2015-04-24 Marek Polacek <polacek@redhat.com>
26529
26530 PR c/61534
26531 * input.h (from_macro_expansion_at): Define.
26532
26533 PR c/63357
26534 * doc/invoke.texi: Update description of -Wlogical-op.
26535
26536 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26537
26538 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26539 ternary operator in fprintf and harmonize spacing.
26540
26541 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26542
26543 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26544 Mark operand1 commutative.
26545
26546 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26547
26548 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26549 input operands in memory.
26550 (*vec_concatv2si_sse4_1): Ditto.
26551 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26552 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26553 register_operand.
26554 (vec_extract_hi_v32hi): Ditto.
26555 (vec_extract_hi_v64hi): Ditto.
26556 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26557
26558 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26559 Steven Bosscher <steven@gcc.gnu.org>
26560
26561 PR rtl-optimization/34503
26562 * cprop.c (cprop_reg_p): New.
26563 (hash_scan_set): Use above function to check if register can be
26564 propagated.
26565 (find_avail_set): Return up to two sets, one whose source is a
26566 register and one whose source is a constant. Sets are returned in an
26567 array passed as parameter rather than as a return value.
26568 (cprop_insn): Use a do while loop rather than a goto. Try each of the
26569 sets returned by find_avail_set, starting with the one whose source is
26570 a constant. Use cprop_reg_p to check if register can be propagated.
26571 (do_local_cprop): Use cprop_reg_p to check if register can be
26572 propagated.
26573 (implicit_set_cond_p): Likewise.
26574
26575 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26576
26577 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26578 (sem_function::equals): IGNORED_NODES parameter is now unused;
26579 update call of equals_private.
26580 (sem_function::equals_private): Do not call equals_wpa; skip
26581 gimple body matching if there is no body.
26582 (sem_function::init): Add logic to hash tthunk info.
26583 (sem_function::parse): Also parse thunks.
26584 * ipa-icf.h (equals_private): Update declaration.
26585
26586 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26587
26588 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26589 asterisk from name so this can be generated directly.
26590 (*altivec_stvx_<mode>_internal): Likewise.
26591 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26592 that this is never called during or after reload/lra.
26593 (rs6000_frame_related): Remove split_reg
26594 argument and logic that references it.
26595 (emit_frame_save): Remove last parameter from call to
26596 rs6000_frame_related.
26597 (rs6000_emit_prologue): Remove last parameter from eight calls to
26598 rs6000_frame_related. Force generation of stvx instruction for
26599 Altivec register saves. Remove split_reg handling, which is no
26600 longer needed.
26601 (rs6000_emit_epilogue): Force generation of lvx instruction for
26602 Altivec register restores.
26603
26604 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26605
26606 * config/rs6000/rs6000.opt (mcrypto): Change option description to
26607 match category changes in ISA 2.07B.
26608
26609 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26610
26611 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26612 iterators.
26613 (cmp_op, cmp_type): New code attributes.
26614 (NEON_VCMP, NEON_VACMP): New int iterators.
26615 (cmp_op_unsp): New int attribute.
26616 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26617 (neon_vceq<mode>): Delete.
26618 (neon_vc<cmp_op><mode>_insn): New pattern.
26619 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26620 (neon_vcgeu<mode>): Delete.
26621 (neon_vcle<mode>): Likewise.
26622 (neon_vclt<mode>: Likewise.
26623 (neon_vcage<mode>): Likewise.
26624 (neon_vcagt<mode>): Likewise.
26625 (neon_vca<cmp_op><mode>): New define_expand.
26626 (neon_vca<cmp_op><mode>_insn): New pattern.
26627 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26628
26629 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26630
26631 * tree.h (attribute_value_equal): Declare.
26632 * tree.c (attribute_value_equal): Export.
26633
26634 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26635
26636 * ipa-icf.c (sem_item::compare_attributes): New function.
26637 (sem_item::compare_referenced_symbol_properties): Compare variable
26638 attributes.
26639 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26640 (sem_function::param_used_p): New function.
26641 (sem_function::equals_wpa): Fix attribute comparsion; match
26642 parameter type codes; do not compare paremter flags when
26643 they are not used; compare edge flags; compare indirect calls.
26644 (sem_item::update_hash_by_addr_refs): Hash reference type.
26645 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26646 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26647 reference use type.
26648 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26649 * ipa-icf.h (compare_attributes, param_used_p): Declare.
26650
26651 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26652
26653 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26654 cleanup.
26655 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26656 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26657 (sem_item::compare_referenced_symbol_properties): New.
26658 (sem_item::hash_referenced_symbol_properties): New.
26659 (sem_item::compare_cgraph_references): Rename to ...
26660 (sem_item::compare_symbol_references): ... this one; use
26661 compare_referenced_symbol_properties.
26662 (sem_function::equals_wpa): Do not compare
26663 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26664 DECL_IS_OPERATOR_NEW; compare pointer sizes.
26665 (sem_item::update_hash_by_addr_refs): Call
26666 hash_referenced_symbol_properties.
26667 (sem_item::update_hash_by_local_refs): Cleanup.
26668 (sem_function::merge): Do not mix up symbol properties.
26669 (sem_variable::equals_wpa): Use compare_symbol_references.
26670 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26671 (sem_item::hash_referenced_symbol_properties): New.
26672 (sem_item::compare_symbol_references): New.
26673 (sem_item::compare_cgraph_references): Remove.
26674
26675 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
26676
26677 PR target/26702
26678 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26679 Emit size of local.
26680
26681 2015-04-23 Nick Clifton <nickc@redhat.com>
26682
26683 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26684 ATTRIBUTE_UNUSED to x parameter.
26685 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26686
26687 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26688
26689 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26690 TARGET_CRYPTO to TARGET_P8_VECTOR>
26691 (crypto_vpermxor_<mode>): Likewise.
26692 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26693 (BU_CRYPTO_3A): Likewise.
26694 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26695 (BU_CRYPTO_OVERLOAD_3A): New #define.
26696 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26697 (VPMSUMH): Likewise.
26698 (VPMSUMW): Likewise.
26699 (VPMSUMD): Likewise.
26700 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26701 (VPERMXOR_V4SI): Likewise.
26702 (VPERMXOR_V8HI): Likewise.
26703 (VPERMXOR_V16QI): Likewise.
26704 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26705 BU_CRYPTO_OVERLOAD_2A.
26706 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26707 BU_CRYPTO_OVERLOAD_3A.
26708 * config/rs6000/rs6000.opt (mcrypto): Change description of
26709 option.
26710
26711 2015-04-23 Richard Biener <rguenther@suse.de>
26712
26713 * passes.def: Remove copy propagation passes run directly after CCP.
26714 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26715 SSA names.
26716 (ccp_visit_phi_node): Rework to handle first executable edge
26717 specially.
26718
26719 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
26720
26721 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26722 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26723 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26724 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26725 (thumb_legimitimize_reload_address): Remove.
26726 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26727 Remove.
26728 (thumb_legimitimize_reload_address): Remove.
26729
26730 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26731
26732 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26733
26734 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26735
26736 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26737 MAX_LDM_STM_OPS.
26738 (store_multiple): Likewise.
26739
26740 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26741
26742 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26743 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26744 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26745 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26746 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26747 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26748 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26749 Specify issue_rate value.
26750 (arm_issue_rate): Look up issue rate from tuning structs. Remove
26751 large switch statement.
26752 (arm_marvell_pj4_tune): New struct.
26753 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26754 struct.
26755
26756 2015-04-23 Richard Biener <rguenther@suse.de>
26757
26758 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26759 (vect_find_last_store_in_slp_instance): Rename to ...
26760 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26761 (vect_analyze_slp_cost_1): Use vector_load for constant defs
26762 and vec_construct for external defs when estimating prologue cost.
26763 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26764 Compute costs here only when vectorizing loops.
26765 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26766 have been determined.
26767 (vect_schedule_slp_instance): Simplify vectorized code placement
26768 and prepare for in-BB external defs.
26769 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26770 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26771 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26772 guard.
26773 (vect_model_load_cost): Likewise.
26774 (vectorizable_store): Instead add it here.
26775 (vectorizable_load): Likewise.
26776 (vect_is_simple_use): Dump def type textually.
26777
26778 2015-04-23 Richard Biener <rguenther@suse.de>
26779
26780 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26781 * cfgloop.c (verify_loop_structure): Verify the root loop node.
26782 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26783 instead of get_eh_region_from_lp_number.
26784 * loop-init.c (fix_loop_structure): If we removed a loop, reset
26785 the SCEV cache.
26786
26787 2015-04-23 Anton Blanchard <anton@samba.org>
26788
26789 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26790 need for -mprofile-kernel to save LR to stack.
26791
26792 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26793
26794 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26795 adjustments.
26796 (insn_is_swappable_p): Return 1 for a convert from double to
26797 single precision when all of its uses are splats of BE element
26798 zero.
26799
26800 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
26801
26802 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26803
26804 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26805
26806 PR target/65456
26807 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
26808 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26809 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26810 option.
26811 (rs6000_builtin_mask_for_load): Return 0 for targets with
26812 efficient unaligned VSX accesses so that the vectorizer will use
26813 direct unaligned loads.
26814 (rs6000_builtin_support_vector_misalignment): Always return true
26815 for targets with efficient unaligned VSX accesses.
26816 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26817 stores on targets with efficient unaligned VSX accesses is almost
26818 always the same as the cost of an aligned load or store, so model
26819 it that way.
26820 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26821 unaligned vectors if we have efficient unaligned VSX accesses.
26822 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26823 undocumented option.
26824
26825 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26826
26827 Revert:
26828 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26829
26830 * config.gcc (LIBC_MUSL): New tm_defines macro.
26831 * config/linux.h (OPTION_MUSL): Define.
26832 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26833 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26834 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26835
26836 * config/linux.opt (mmusl): New option.
26837 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26838 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26839
26840 * configure: Regenerate.
26841
26842 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26843
26844 * config.gcc (LIBC_MUSL): New tm_defines macro.
26845 * config/linux.h (OPTION_MUSL): Define.
26846 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26847 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26848 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26849
26850 * config/linux.opt (mmusl): New option.
26851 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26852 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26853
26854 * configure: Regenerate.
26855
26856 2015-04-22 Yury Gribov <y.gribov@samsung.com>
26857
26858 * doc/invoke.texi (-fsanitize-sections): Update description.
26859 * asan.c (set_sanitized_sections): Parse incoming arg.
26860 (section_sanitized_p): Support wildcards.
26861
26862 2015-04-22 Tom de Vries <tom@codesourcery.com>
26863
26864 PR tree-optimization/65823
26865 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26866 equality between ap_copy and ap.
26867
26868 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26869
26870 PR target/47098
26871 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26872
26873 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26874
26875 PR target/47122
26876 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26877
26878 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26879
26880 PR target/55144
26881 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26882 remove already contained t-files.
26883
26884 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26885
26886 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26887 Remove unneeded forward declarations.
26888 (suitable_for_tail_call_opt_p): Commentary typo fix.
26889
26890 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26891
26892 * varasm.c (emit_bss): Remove redundant guard.
26893
26894 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26895
26896 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26897
26898 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26899
26900 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26901
26902 2015-04-22 Hale Wang <hale.wang@arm.com>
26903 Terry Guo <terry.guo@arm.com>
26904
26905 PR rtl-optimization/64818
26906 * combine.c (can_combine_p): Don't combine user-specified
26907 register if it is in an asm input.
26908
26909 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
26910
26911 PR ipa/65076
26912 * passes.def (early_optimizations): Add pass_dse.
26913
26914 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26915
26916 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26917 * reorg.c (redundant_insn): Remove ifdef
26918 INSN_REFERENCES_ARE_DELAYED.
26919 * resource.c (mark_referenced_resources): Likewise.
26920
26921 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26922
26923 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26924 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26925 * resource.c (mark_set_resources): Likewise.
26926
26927 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26928
26929 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26930 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26931 (flow_find_head_matching_sequence): Likewise.
26932 (try_head_merge_bb): Likewise.
26933 * combine.c (can_combine_p): Likewise.
26934 (try_combine): Likewise.
26935 (distribute_notes): Likewise.
26936 * df-problems.c (can_move_insns_across): Likewise.
26937 * final.c (final): Likewise.
26938 * gcse.c (insert_insn_end_basic_block): Likewise.
26939 * ira.c (find_moveable_pseudos): Likewise.
26940 * reorg.c (try_merge_delay_insns): Likewise.
26941 (fill_simple_delay_slots): Likewise.
26942 (fill_slots_from_thread): Likewise.
26943 * sched-deps.c (sched_analyze_2): Likewise.
26944
26945 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26946
26947 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26948 PIC_OFFSET_TABLE_REGNUM.
26949
26950 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26951
26952 * alias.c (init_alias_target): Remove ifdef
26953 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26954 * df-scan.c (df_insn_refs_collect): Likewise.
26955 (df_get_regular_block_artificial_uses): Likewise.
26956 (df_get_eh_block_artificial_uses): Likewise.
26957 (df_get_entry_block_def_set): Likewise.
26958 (df_get_exit_block_use_set): Likewise.
26959 * emit-rtl.c (gen_rtx_REG): Likewise.
26960 * ira.c (ira_setup_eliminable_regset): Likewise.
26961 * reginfo.c (init_reg_sets_1): Likewise.
26962 * regrename.c (rename_chains): Likewise.
26963 * reload1.c (reload): Likewise.
26964 (eliminate_regs_in_insn): Likewise.
26965 * resource.c (mark_referenced_resources): Likewise.
26966 (init_resource_info): Likewise.
26967
26968 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26969
26970 * defaults.h (MASK_RETURN_ADDR): New definition.
26971 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26972 MASK_RETURN_ADDR.
26973
26974 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26975
26976 * defaults.h (RETURN_ADDR_OFFSET): New definition.
26977 * except.c (expand_builtin_extract_return_addr): Remove ifdef
26978 RETURN_ADDR_OFFSET.
26979 (expand_builtin_frob_return_addr): Likewise.
26980
26981 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26982
26983 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
26984 (try_redirect_by_replacing_jump): Likewise.
26985 (rtl_tidy_fallthru_edge): Likewise.
26986 * combine.c (insn_a_feeds_b): Likewise.
26987 (find_split_point): Likewise.
26988 (simplify_set): Likewise.
26989 * cprop.c (cprop_jump): Likewise.
26990 * cse.c (cse_extended_basic_block): Likewise.
26991 * df-problems.c (can_move_insns_across): Likewise.
26992 * function.c (emit_use_return_register_into_block): Likewise.
26993 * haifa-sched.c (sched_init): Likewise.
26994 * ira.c (find_moveable_pseudos): Likewise.
26995 * loop-invariant.c (find_invariant_insn): Likewise.
26996 * lra-constraints.c (curr_insn_transform): Likewise.
26997 * postreload.c (reload_combine_recognize_const_pattern):
26998 * Likewise.
26999 * reload.c (find_reloads): Likewise.
27000 * reorg.c (delete_scheduled_jump): Likewise.
27001 (steal_delay_list_from_target): Likewise.
27002 (steal_delay_list_from_fallthrough): Likewise.
27003 (redundant_insn): Likewise.
27004 (fill_simple_delay_slots): Likewise.
27005 (fill_slots_from_thread): Likewise.
27006 (delete_computation): Likewise.
27007 * sched-rgn.c (add_branch_dependences): Likewise.
27008
27009 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27010
27011 * genconfig.c (main): Always define HAVE_cc0.
27012 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
27013 HAVE_cc0.
27014 * cfgcleanup.c (flow_find_cross_jump): Likewise.
27015 (flow_find_head_matching_sequence): Likewise.
27016 (try_head_merge_bb): Likewise.
27017 * cfgrtl.c (rtl_merge_blocks): Likewise.
27018 (try_redirect_by_replacing_jump): Likewise.
27019 (rtl_tidy_fallthru_edge): Likewise.
27020 * combine.c (do_SUBST_MODE): Likewise.
27021 (insn_a_feeds_b): Likewise.
27022 (combine_instructions): Likewise.
27023 (can_combine_p): Likewise.
27024 (try_combine): Likewise.
27025 (find_split_point): Likewise.
27026 (subst): Likewise.
27027 (simplify_set): Likewise.
27028 (distribute_notes): Likewise.
27029 * cprop.c (cprop_jump): Likewise.
27030 * cse.c (cse_extended_basic_block): Likewise.
27031 * df-problems.c (can_move_insns_across): Likewise.
27032 * final.c (final): Likewise.
27033 (final_scan_insn): Likewise.
27034 * function.c (emit_use_return_register_into_block): Likewise.
27035 * gcse.c (insert_insn_end_basic_block): Likewise.
27036 * haifa-sched.c (sched_init): Likewise.
27037 * ira.c (find_moveable_pseudos): Likewise.
27038 * loop-invariant.c (find_invariant_insn): Likewise.
27039 * lra-constraints.c (curr_insn_transform): Likewise.
27040 * optabs.c (prepare_cmp_insn): Likewise.
27041 * postreload.c (reload_combine_recognize_const_pattern):
27042 * Likewise.
27043 * reload.c (find_reloads): Likewise.
27044 (find_reloads_address_1): Likewise.
27045 * reorg.c (delete_scheduled_jump): Likewise.
27046 (steal_delay_list_from_target): Likewise.
27047 (steal_delay_list_from_fallthrough): Likewise.
27048 (try_merge_delay_insns): Likewise.
27049 (redundant_insn): Likewise.
27050 (fill_simple_delay_slots): Likewise.
27051 (fill_slots_from_thread): Likewise.
27052 (delete_computation): Likewise.
27053 (relax_delay_slots): Likewise.
27054 * sched-deps.c (sched_analyze_2): Likewise.
27055 * sched-rgn.c (add_branch_dependences): Likewise.
27056
27057 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27058
27059 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
27060 that is trivially ded on non cc0 targets.
27061 (simplify_set): Likewise.
27062 (mark_used_regs_combine): Likewise.
27063 * cse.c (new_basic_block): Likewise.
27064 (fold_rtx): Likewise.
27065 (cse_insn): Likewise.
27066 (cse_extended_basic_block): Likewise.
27067 (set_live_p): Likewise.
27068 * rtlanal.c (canonicalize_condition): Likewise.
27069 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
27070
27071 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27072
27073 * conditions.h: Define macros even if HAVE_cc0 is undefined.
27074 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
27075 * final.c: Likewise.
27076 * jump.c: Likewise.
27077 * recog.c: Likewise.
27078 * recog.h: Declare functions even when HAVE_cc0 is undefined.
27079 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
27080
27081 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27082
27083 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
27084 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
27085 * builtins.c (expand_builtin): Remove check if
27086 EH_RETURN_DATA_REGNO is defined.
27087 * df-scan.c (df_bb_refs_collect): Likewise.
27088 (df_get_exit_block_use_set): Likewise.
27089 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
27090 * ira-lives.c (process_bb_node_lives): Likewise.
27091 * lra-lives.c (process_bb_lives): Likewise.
27092
27093 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27094
27095 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
27096 FIRST_PSEUDO_REG): New.
27097 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
27098 (ARG_POINTER_REGNUM): Define to ARGP_REG.
27099 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
27100 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
27101 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
27102 (FIRST_INT_REG): New.
27103 (LAST_INT_REG): New.
27104 (FIRST_*_REG): Define using *_REG.
27105 (LAST_*_REG): Ditto.
27106 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
27107 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
27108 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
27109
27110 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27111
27112 * expmed.c: (synth_mult): Only assume overlapping
27113 shift with previous steps in alg_sub_t_m2 case.
27114
27115 2015-04-21 Richard Biener <rguenther@suse.de>
27116
27117 PR tree-optimization/65650
27118 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
27119 transitions involving copies.
27120 (set_lattice_value): Adjust for copy lattice state.
27121 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
27122 if that doesn't dominate the merge point.
27123 (bit_value_unop): Adjust what we treat as varying mask.
27124 (bit_value_binop): Likewise.
27125 (bit_value_assume_aligned): Likewise.
27126 (evaluate_stmt): When we simplified to a SSA name record a copy
27127 instead of dropping to varying.
27128 (visit_assignment): Simplify.
27129
27130 * gimple-match.h (gimple_simplify): Add another callback.
27131 * gimple-fold.c (fold_stmt_1): Adjust caller.
27132 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
27133 for the 2nd callback.
27134 * gimple-match-head.c (gimple_simplify): Add a callback that is
27135 used to valueize the stmt operands and use it that way.
27136
27137 2015-04-21 Richard Biener <rguenther@suse.de>
27138
27139 PR tree-optimization/65788
27140 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
27141
27142 2015-04-21 Richard Biener <rguenther@suse.de>
27143
27144 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
27145 vec_construct cost by vec_stmt_cost.
27146
27147 2015-04-21 Richard Biener <rguenther@suse.de>
27148
27149 * cfghooks.h (create_basic_block): Replace with two overloads
27150 for RTL and GIMPLE.
27151 (split_block): Likewise.
27152 * cfghooks.c (split_block): Rename to ...
27153 (split_block_1): ... this.
27154 (split_block): Add two type-safe overloads for RTL and GIMPLE.
27155 (split_block_after_labels): Call split_block_1.
27156 (create_basic_block): Rename to ...
27157 (create_basic_block_1): ... this.
27158 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
27159 (create_empty_bb): Call create_basic_block_1.
27160 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
27161 split_block_after_labels.
27162 * omp-low.c (expand_parallel_call): Likewise.
27163 (expand_omp_target): Likewise.
27164 (simd_clone_adjust): Likewise.
27165 * tree-chkp.c (chkp_get_entry_block): Likewise.
27166 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
27167 create_basic_block overload.
27168 (cgraph_node::expand_thunk): Likewise.
27169 * tree-cfg.c (make_blocks): Likewise.
27170 (handle_abnormal_edges): Likewise.
27171 * tree-inline.c (copy_bb): Likewise.
27172
27173 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27174
27175 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
27176 New pattern.
27177 (*xor_one_cmplsidi3_ze): Likewise.
27178
27179 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
27180
27181 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
27182 use df_remove_problem rather than manually removing problems, leaving
27183 holes in df->problems_in_order[].
27184
27185 2015-04-21 Tom de Vries <tom@codesourcery.com>
27186
27187 PR tree-optimization/65802
27188 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
27189
27190 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27191
27192 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
27193 Increase to 128.
27194 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
27195 at '.'. Assert that there's enough space for everything.
27196
27197 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27198
27199 PR tree-optimization/64950
27200 Revert:
27201 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
27202
27203 PR target/41089
27204 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27205 as volatile.
27206
27207 2015-04-20 Shiva Chen <shiva0217@gmail.com>
27208
27209 PR rtl-optimization/64916
27210 * cfgcleanup.c (values_equal_p): New function.
27211 (can_replace_by): Use it.
27212
27213 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
27214
27215 PR c++/65801
27216 * doc/invoke.texi ([-Wnarrowing]): Update.
27217
27218 2015-04-20 Jeff Law <law@redhat.com>
27219
27220 PR tree-optimization/65658
27221 * tree-ssa-threadupdate.c (redirection_block_p): Remove
27222 redundant test for GIMPLE_ASSIGN in last change.
27223
27224 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
27225
27226 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27227 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27228 (legitimize_tls_address): Ditto.
27229 (ix86_expand_move): Ditto.
27230 (ix86_expand_binary_operator): Remove reload_in_progress checks.
27231 (ix86_expand_unary_operator): Ditto.
27232 * config/i386/predicates.md (index_register_operand): Ditto.
27233
27234 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
27235
27236 * reorg.c (try_merge_delay_insns): Improve correctness checking
27237 for targets with multiple delay slots.
27238
27239 2015-04-20 Jeff Law <law@redhat.com>
27240
27241 PR tree-optimization/65658
27242 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27243 statements too.
27244
27245 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27246
27247 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27248 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27249 Delete.
27250
27251 2015-04-20 Jakub Jelinek <jakub@redhat.com>
27252
27253 PR debug/65807
27254 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27255
27256 2015-04-20 Richard Biener <rguenther@suse.de>
27257
27258 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27259 * gimple-fold.c (gimple_build_valueize): New function.
27260 (gimple_build): Always use gimple_build_valueize as valueize hook.
27261
27262 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27263
27264 PR target/64134
27265 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27266 and overwrite variable parts if <= 1/2 the elements are variable.
27267
27268 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
27269
27270 PR rtl-optimization/65805
27271 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27272 Don't use difference of offset and previous offset if
27273 update_sp_offset is non-zero.
27274 (eliminate_regs_in_insn): Ditto.
27275 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27276 lra_eliminate_regs_1 call.
27277 * lra-constraints.c (get_equiv_with_elimination): Ditto.
27278
27279 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
27280
27281 * hash-table.h: Remove version of hash_table that stored value_type *.
27282 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27283 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27284 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27285 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27286 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27287 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27288 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27289 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27290 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27291 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27292 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27293 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27294 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27295 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27296 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27297 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27298
27299 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27300 Jakub Jelinek <jakub@redhat.com>
27301
27302 PR target/65787
27303 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27304 subsequent SH_NONE operand does not overwrite an existing *special
27305 value.
27306 (adjust_extract): Handle case where a vec_extract operation is
27307 wrapped in a PARALLEL.
27308
27309 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27310
27311 PR target/65780
27312 * config/i386/i386.c (ix86_binds_local_p): Define only if
27313 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27314
27315 2015-04-17 Jeff Law <law@redhat.com>
27316
27317 PR tree-optimization/47679
27318 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27319 * tree-ssa-scopedtables.c: New file.
27320 * tree-ssa-scopedtables.h: New file.
27321 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27322 (const_and_copies): Change name/type.
27323 (record_const_or_copy): Move into tree-ssa-scopedtables.c
27324 (record_const_or_copy_1): Similarly.
27325 (restore_vars_to_original_value): Similarly.
27326 (pass_dominator::execute): Create and destroy const_and_copies table.
27327 (thread_across_edge): Update passing of const_and_copies.
27328 (record_temporary_equivalence): Use method calls rather than
27329 manipulating const_and_copies directly.
27330 (record_equality, cprop_into_successor_phis): Similarly.
27331 (dom_opt_dom_walker::before_dom_children): Similarly.
27332 (dom_opt_dom_walker::after_dom_children): Similarly.
27333 (eliminate_redundant_computations): Similarly.
27334 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27335 (record_temporary_equivalence): Likewise.
27336 (invalidate_equivalences): Likewise.
27337 (record_temporary_equivalences_from_phis): Update due to type
27338 change of const_and_copies. Use method calls rather than
27339 manipulating the stack directly.
27340 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
27341 (thread_through_normal_block, thread_across_edge): Likewise.
27342 (thread_across_edge): Likewise.
27343 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
27344 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
27345 of equiv_stack.
27346 (identify_jump_threads): Update due to type change of equiv_stack.
27347 (finalize_jump_threads): Delete the equiv_stack when complete.
27348
27349 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
27350
27351 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27352 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
27353 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
27354
27355 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
27356
27357 PR target/65535
27358 * config.gcc: Exit with a comment when we do not have a major version
27359 number for the FreeBSD target.
27360
27361 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27362
27363 PR target/65689
27364 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
27365 maybe_allows_mem bitfields.
27366 (maybe_allows_none_start, maybe_allows_none_end,
27367 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27368 maybe_allows_mem_end): New variables.
27369 (compute_maybe_allows): New function.
27370 (add_constraint): Use it to initialize maybe_allows_reg and
27371 maybe_allows_mem fields.
27372 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27373 is_address constraints such that those that allow neither mem nor
27374 reg come first, then those that only allow reg but not mem, then
27375 those that only allow mem but not reg, then the rest.
27376 (write_allows_reg_mem_function): New function.
27377 (write_tm_preds_h): Call it.
27378 * stmt.c (parse_output_constraint, parse_input_constraint): Use
27379 the generated insn_extra_constraint_allows_reg_mem function
27380 instead of always setting *allows_reg = true; *allows_mem = true;
27381 for unknown extra constraints.
27382
27383 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27384
27385 PR target/65780
27386 * output.h (default_binds_local_p_3): New.
27387 * varasm.c (default_binds_local_p_3): Make it public. Take an
27388 argument to indicate if common symbol may be local. If common
27389 symbol may be local, treat non-external variable as defined
27390 locally.
27391 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27392 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27393 * config/i386/i386.c (ix86_binds_local_p): New.
27394 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27395 ix86_binds_local_p.
27396
27397 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27398
27399 PR debug/65771
27400 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27401 trying mem_loc_descriptor on XEXP (rtl, 0).
27402
27403 2015-04-17 Martin Liska <mliska@suse.cz>
27404
27405 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27406 Release symbol_compare_collection.
27407 * ipa-reference.c: Add TODO that a vector should be released.
27408
27409 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27410
27411 PR target/65296
27412 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27413 to new AVR-LibC file layout (bug #44574).
27414 (*avrlibc_devicelib): Same.
27415 * config/avr/avr-mcus.def: Adjust comments.
27416 * config/avr/avr.opt (nodevicelib): Adjust help.
27417
27418 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
27419
27420 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27421
27422 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
27423
27424 PR c++/64527
27425 * gimplify.c (gimplify_init_constructor): Always emit a
27426 side-effecting constructor.
27427
27428 2015-04-17 Tom de Vries <tom@codesourcery.com>
27429
27430 PR tree-optimization/64950
27431 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27432 in cfun->curr_properties.
27433 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27434 if we generate an IFN_VA_ARG.
27435 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27436 function if PROP_gimple_lva is not set in src function.
27437
27438 2015-04-17 Tom de Vries <tom@codesourcery.com>
27439 Michael Matz <matz@suse.de>
27440
27441 PR tree-optimization/64950
27442 * gimple-iterator.c (update_modified_stmts): Remove static.
27443 * gimple-iterator.h (update_modified_stmts): Declare.
27444 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27445 (gimplify_va_arg_internal): New function.
27446 (gimplify_va_arg_expr): Use IFN_VA_ARG.
27447 * gimplify.h (gimplify_va_arg_internal): Declare.
27448 * internal-fn.c (expand_VA_ARG): New unreachable function.
27449 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27450 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27451 (expand_ifn_va_arg): New function.
27452 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27453 (pass_stdarg::execute): Call expand_ifn_va_arg.
27454 (pass_data_lower_vaarg): New pass_data.
27455 (pass_lower_vaarg): New gimple_opt_pass.
27456 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27457 (make_pass_lower_vaarg): New function.
27458 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27459 properties_required field.
27460 * passes.def (all_passes): Add pass_lower_vaarg.
27461 * tree-pass.h (PROP_gimple_lva): Add define.
27462 (make_pass_lower_vaarg): Declare.
27463
27464 2015-04-17 Tom de Vries <tom@codesourcery.com>
27465
27466 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27467 * calls.c (call_expr_flags): Same.
27468
27469 2015-04-17 Tom de Vries <tom@codesourcery.com>
27470
27471 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27472 (pass_stdarg::execute): ... here.
27473
27474 2015-04-17 Tom de Vries <tom@codesourcery.com>
27475 Michael Matz <matz@suse.de>
27476
27477 * tree-cfg.c (make_blocks_1): Factor out of ...
27478 (make_blocks): ... here.
27479 (make_edges_bb): Factor out of ...
27480 (make_edges): ... here.
27481 (gimple_find_sub_bbs): New function.
27482 * tree-cfg.h (gimple_find_sub_bbs): Declare.
27483
27484 2015-04-17 Tom de Vries <tom@codesourcery.com>
27485
27486 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27487
27488 2015-04-17 Yury Gribov <y.gribov@samsung.com>
27489
27490 * asan.c (set_sanitized_sections): New function.
27491 (section_sanitized_p): Ditto.
27492 (asan_protect_global): Optionally sanitize user-defined
27493 sections.
27494 * asan.h (set_sanitized_sections): Declare new function.
27495 * common.opt (fsanitize-sections): New option.
27496 * doc/invoke.texi (-fsanitize-sections): Document new option.
27497 * opts-global.c (handle_common_deferred_options): Handle new
27498 option.
27499
27500 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27501
27502 PR debug/65771
27503 * dwarf2out.c (loc_list_from_tree): Return NULL
27504 for DEBUG_EXPR_DECL.
27505
27506 2015-04-17 Christian Bruel <christian.bruel@st.com>
27507
27508 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27509 same attributes.
27510
27511 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27512
27513 * ira-color.c (setup_left_conflict_sizes_p): Do not process
27514 node itself when computing left conflict subnode size.
27515
27516 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27517
27518 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27519 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27520 *fop_<mode>_1_sse using enabled attribute. Use
27521 register_mixssei387nonimm_operand operand 1 predicate. Change
27522 alternative 3 constraints from "x" to "v".
27523
27524 2015-04-16 Richard Biener <rguenther@suse.de>
27525
27526 PR tree-optimization/65774
27527 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27528 bit-value tracking on.
27529
27530 2015-04-16 Richard Biener <rguenther@suse.de>
27531
27532 PR tree-optimization/64277
27533 * tree-vrp.c (check_array_ref): Fix anti-range handling,
27534 simplify upper bound handling.
27535 (search_for_addr_array): Simplify.
27536 (check_array_bounds): Handle ADDR_EXPRs here.
27537 (check_all_array_refs): Simplify.
27538
27539 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27540
27541 * config/i386/i386.c (print_reg): Rewrite function.
27542
27543 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27544
27545 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27546 Invert the condition.
27547
27548 2015-04-16 Renlin Li <renlin.li@arm.com>
27549
27550 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27551 simplifications for UNSIGNED_FLOAT.
27552
27553 2015-04-16 Nick Clifton <nickc@redhat.com>
27554
27555 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27556 MUL_UNINIT.
27557 (enum rl78_cpu_type): New.
27558 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27559 (umulhi3_shift_virt): Remove m constraint from operand 1.
27560 (umulqihi3_virt): Likewise.
27561 * config/rl78/rl78.c (rl78_option_override): Add code to process
27562 -mcpu and -mmul options.
27563 (rl78_alloc_physical_registers): Add code to handle divhi and
27564 divsi valloc attributes.
27565 (set_origin): Likewise.
27566 * config/rl78/rl78.h (RL78_MUL_G14): Define.
27567 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27568 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27569 __RL78_Gxx__.
27570 (ASM_SPEC): Pass -mcpu on to assembler.
27571 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27572 (mulqi3_rl78): Likewise.
27573 (mulhi3_g13): Likewise.
27574 (mulhi3): Generate the G13 or G14 versions of the insn directly.
27575 (mulsi3): Likewise.
27576 (mulhi3_g14): Add clobbers of AX and BC.
27577 (mulsi3_g14): Likewise.
27578 (mulsi3_g13): Likewise.
27579 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27580 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27581 * config/rl78/rl78.opt (mmul): Initialise value to
27582 RL78_MUL_UNINIT.
27583 (mcpu): New option.
27584 (m13, m14, mrl78): New option aliases.
27585 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27586 (MULTILIB_DIRNAMES): Add g13 and g14.
27587 * doc/invoke.texi: Document -mcpu and -mmul options.
27588
27589 2015-04-16 Richard Biener <rguenther@suse.de>
27590
27591 * tree-ssa-ccp.c (likely_value): See if we have operands that
27592 are marked as never simulate again and return CONSTANT in this
27593 case.
27594 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27595 not have any operands that will be simulated again as
27596 not being simulated again.
27597
27598 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
27599
27600 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27601 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27602 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27603 attribute.
27604 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27605 enabled attribute.
27606 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27607 *float<SWI48:mode><MODEF:mode>2_sse.
27608 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27609 enabled attribute.
27610 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27611 enabled attribute.
27612
27613 2015-04-15 Tom de Vries <tom@codesourcery.com>
27614
27615 PR other/65487
27616 * function.c (push_dummy_function): New function.
27617 (init_dummy_function_start): Use push_dummy_function.
27618 (pop_dummy_function): New function. Factored out of ...
27619 (expand_dummy_function_end): ... here.
27620 * function.h (push_dummy_function, pop_dummy_function): Declare.
27621 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27622 pop_dummy_function.
27623 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27624
27625 2015-04-15 Jeff Law <law@redhat.com>
27626
27627 PR tree-optimization/47679
27628 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27629 need for forward declaration in upcoming changes.
27630 (record_conditions, record_edge_info): Likewise.
27631
27632 PR rtl-optimization/42522
27633 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27634 SIGN_EXTRACT as a whole object rather than simplifying
27635 its operand.
27636
27637 2015-04-15 Jakub Jelinek <jakub@redhat.com>
27638
27639 PR ipa/65765
27640 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27641 and GIMPLE_PREDICT use break instead of return true. For
27642 GIMPLE_EH_DISPATCH, compare dispatch region.
27643
27644 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
27645
27646 * doc/extend.texi (__sync Builtins): Simplify some text. Update
27647 details about the implementation. Make clear preference for
27648 __atomic builtins. Reduce possibility of future change.
27649
27650 2015-04-15 Nick Clifton <nickc@redhat.com>
27651
27652 * config/rx/rx.opt (mallow-string-insns): New option.
27653 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27654 builtin if string instructions are denied.
27655 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27656 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27657 appropriate.
27658 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27659 * config/rx/rx.md (movstr): Enable pattern only if string
27660 instructions are allowed.
27661 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27662 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27663 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27664 (MULTILIB_DIRNAMES): Add no-strings.
27665 * doc/invoke.texi: Document -mno-allow-string-insns.
27666
27667 2015-04-15 Alan Modra <amodra@gmail.com>
27668
27669 PR target/65408
27670 PR target/58744
27671 PR middle-end/36043
27672 * calls.c (load_register_parameters): Don't load past end of
27673 mem unless suitably aligned.
27674
27675 2015-04-15 Nick Clifton <nickc@redhat.com>
27676
27677 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27678 decrement instruction as being frame related.
27679 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27680 based addresses.
27681 If zero extending a function address enclose the operation in
27682 %code(...).
27683 (rl78_preferred_reload_class): New function.
27684 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27685 * config/rl78/rl78.md: Remove useless constraints in expanders.
27686 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27687 (mulhi3_rl78): Likewise.
27688 (mulhi3_g13): Likewise.
27689 (mulsi3_rl78): Likewise.
27690 (es_addr): Move to before the multiply patterns.
27691
27692 2015-04-15 Alan Modra <amodra@gmail.com>
27693
27694 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27695 and sequence_stack. Add seq.
27696 (seq_stack): Delete.
27697 * function.c (prepare_function_start): Don't access x_last_insn.
27698 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27699 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27700 * emit_rtl.c (start_sequence, push_topmost_sequence,
27701 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27702 sequence accessors.
27703 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27704 remove_insn): Likewise. Simplify.
27705 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27706 and pop_topmost_sequence.
27707 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
27708 debug insns.
27709 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27710
27711 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
27712
27713 PR target/65729
27714 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27715 the assertiion.
27716
27717 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27718
27719 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27720 (LEGACY_INT_REGNO_P): Ditto.
27721 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27722 (ANY_MASK_REG_P): Remove.
27723 (BND_REG_P): Rename from ANY_BND_REG_P.
27724 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27725 legacy integer registers. Do not handle MMX_REG_P in a special way.
27726 Merge 64byte and 32byte SSE handling.
27727
27728 2015-04-14 Nick Clifton <nickc@redhat.com>
27729
27730 * expr.c (expand_assignment): Force an address offset computation
27731 into a register before changing its mode.
27732 (expand_expr_real_1): Likewise.
27733
27734 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
27735
27736 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27737 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27738 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27739 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27740 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27741 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27742 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27743 and __aarch64_vget_lane_any.
27744
27745 2015-04-14 Jakub Jelinek <jakub@redhat.com>
27746
27747 PR rtl-optimization/65761
27748 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27749 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27750
27751 2015-04-14 Richard Biener <rguenther@suse.de>
27752
27753 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27754 (graphite_can_represent_scev): Use POINTER_TYPE_P.
27755
27756 2015-04-14 Richard Biener <rguenther@suse.de>
27757
27758 PR tree-optimization/65758
27759 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27760 against -1.
27761 (ccp_lattice_meet): Likewise.
27762 (bit_value_unop): Likewise.
27763 (bit_value_binop): Likewise.
27764 (bit_value_assume_aligned): Likewise.
27765
27766 2015-04-14 Christian Bruel <christian.bruel@st.com>
27767
27768 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27769 function.
27770
27771 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
27772
27773 PR tree-optimization/63387
27774 * match.pd ((x unord x) | (y unord y) -> (x unord y),
27775 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27776
27777 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27778
27779 * config/i386/predicates.md (any_QIreg_operand): Rename from
27780 q_regs_operand. Do not process subregs.
27781 (QIreg_operand): Use QI_REGNO_P predicate.
27782 (ext_QIreg_operand): Ditto.
27783 (ext_register_operand): Ditto.
27784 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27785 (AND splitters): Ditto.
27786 (AND with -65536 splitter): Add SWI48 mode for operand 0.
27787 (AND with -256 splitter): Use any_QIreg_operand predicate and
27788 SWI248 mode for operand 0.
27789 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27790 mode for operand 0.
27791 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27792
27793 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
27794
27795 * doc/plugins.texi: Rewrite first introductory paragraph.
27796
27797 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27798
27799 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27800 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27801
27802 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27803
27804 * ipa-profie.c (ipa_profile): Check number of parameters
27805 and possible polymorphic call targets before
27806 devirtualizing.
27807
27808 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
27809
27810 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27811 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27812
27813 2015-04-13 Richard Biener <rguenther@suse.de>
27814
27815 PR tree-optimization/65204
27816 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27817 takens for bit-CCP.
27818
27819 2015-04-13 Richard Biener <rguenther@suse.de>
27820
27821 PR target/65660
27822 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27823 and cond_not_taken_branch_cost to 4 and 2.
27824 (bdver2_cost): Likewise.
27825 (bdver3_cost): Likewise.
27826 (bdver4_cost): Likewise.
27827
27828 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27829
27830 * hash-table.h (hash_table constructor): Add mem stats.
27831 (alloc_entries): Likewise.
27832
27833 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27834
27835 * ipa-cp.c (ipcp_driver): Relase prev_edge.
27836 * passes.c (execute_one_pass): Only add transform if pass has one.
27837
27838 2015-04-12 Joseph Myers <joseph@codesourcery.com>
27839
27840 * config/i386/i386.c (ix86_option_override_internal): Don't set
27841 -fprefetch-loop-arrays if optimizing for size.
27842
27843 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27844 Gerald Pfeifer <gerald@pfeifer.com>
27845
27846 * doc/contrib.texi (Contributors): Add Martin Jambor and
27847 Michael Matz.
27848
27849 2015-04-12 Jakub Jelinek <jakub@redhat.com>
27850
27851 * BASE-VER: Set to 6.0.0.
27852
27853 PR tree-optimization/65747
27854 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27855 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27856
27857 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27858
27859 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27860 sentence. Improve grammar.
27861
27862 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27863
27864 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27865
27866 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27867
27868 PR ipa/65743
27869 * ipa-inline-transform.c (speculation_removed): Remove static var.
27870 (check_speculations): New function.
27871 (clone_inlined_nodes): Do not check spculations.
27872 (inline_call): Call check_speculations.
27873 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27874 consider non-invariants.
27875
27876 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27877 Martin Liska <mliska@suse.cz>
27878
27879 PR ipa/65722
27880 * ipa-icf.c (sem_item::compare_cgraph_references): function and
27881 variable can not match.
27882 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27883 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27884
27885 2015-04-11 Jakub Jelinek <jakub@redhat.com>
27886
27887 PR tree-optimization/65735
27888 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27889 Remove visited_phis argument, add visited_bbs, avoid recursing into the
27890 same bb rather than just into the same phi node.
27891 (thread_through_normal_block): Adjust caller.
27892
27893 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27894
27895 * doc/contrib.texi (Contributors): Add Ira Rosen.
27896
27897 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
27898
27899 * gcov.c (find_source): Fix miswording in error message.
27900 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27901 (ix86_expand_sse_comi_round): Fix typo in error message.
27902
27903 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27904
27905 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27906
27907 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
27908
27909 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27910
27911 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27912
27913 PR target/65710
27914 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27915 Print bad_spills_num and insn_pseudos_num.
27916
27917 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27918
27919 PR target/65694
27920 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27921 when creating +1 values for SImode.
27922
27923 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27924
27925 PR target/65729
27926 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27927 assert.
27928
27929 2015-04-10 Jakub Jelinek <jakub@redhat.com>
27930 Iain Sandoe <iain@codesourcery.com>
27931
27932 PR target/65351
27933 * configure: Regenerate.
27934
27935 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27936
27937 PR target/65671
27938 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27939
27940 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
27941
27942 * doc/contrib.texi (Contributors): Add John Marino.
27943
27944 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27945
27946 PR tree-optimization/65709
27947 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27948 TREE_TYPE (TREE_TYPE (t)).
27949
27950 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
27951
27952 PR target/65710
27953 * lra-int.h (lra_bad_spill_regno_start): New.
27954 * lra.c (lra_bad_spill_regno_start): New.
27955 (lra): Set up lra_bad_spill_regno_start. Set up
27956 lra_constraint_new_regno_start unconditionally.
27957 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27958 spill preferences.
27959
27960 2015-04-09 Marek Polacek <polacek@redhat.com>
27961 Jakub Jelinek <jakub@redhat.com>
27962
27963 PR middle-end/65554
27964 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27965 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27966 of STRIP_NOPS.
27967
27968 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
27969
27970 PR rtl-optimization/65693
27971 * combine.c (is_parallel_of_n_reg_sets): Move outside of
27972 #ifndef HAVE_cc0.
27973
27974 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
27975
27976 PR target/65296
27977 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
27978 device specs file if "device-specs%s" didn't resolve to a path.
27979
27980 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27981
27982 PR target/65676
27983 * config/i386/i386.c (fixup_modeless_constant): New.
27984 (ix86_expand_args_builtin): Fixup modeless constant operand.
27985 (ix86_expand_round_builtin): Ditto.
27986 (ix86_expand_special_args_builtin): Ditto.
27987 (ix86_expand_builtin): Ditto.
27988
27989 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27990
27991 PR target/65693
27992 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
27993 any pow2 integer in between 2 and 0x80000000U inclusive.
27994
27995 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
27996
27997 PR rtl-optimization/65693
27998 * combine.c (is_parallel_of_n_reg_sets): Change first argument
27999 from an rtx_insn * to an rtx.
28000 (try_combine): Adjust both callers. Use it once more.
28001
28002 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28003
28004 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
28005 (chkp_make_static_const_bounds): Search existing
28006 symbol by assembler name. Use make_decl_one_only.
28007 (chkp_get_zero_bounds_var): Remove node search which
28008 is now performed in chkp_make_static_const_bounds.
28009 (chkp_get_none_bounds_var): Likewise.
28010
28011 2015-04-08 Michael Witten <mfwitten@gmail.com>
28012
28013 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
28014 to an example.
28015
28016 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28017
28018 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
28019
28020 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
28021
28022 * doc/extend.texi (__sync Builtins): Fix grammar.
28023
28024 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28025
28026 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
28027
28028 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28029
28030 * varasm.c (emit_local): Move definition of align.
28031
28032 2015-04-08 Julian Brown <julian@codesourcery.com>
28033
28034 * config/nvptx/mkoffload.c (process): Support variable mapping.
28035
28036 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
28037
28038 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
28039 alpha_links **.
28040 (alpha_write_one_linkage): Correct typo.
28041
28042 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28043
28044 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
28045
28046 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
28047
28048 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
28049
28050 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28051
28052 * tree-chkp.h (chkp_insert_retbnd_call): New.
28053 * tree-chkp.c (chkp_insert_retbnd_call): New.
28054 * ipa-split.c (insert_bndret_call_after): Remove.
28055 (split_function): Use chkp_insert_retbnd_call.
28056 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
28057 bounds for instrumented functions.
28058
28059 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
28060
28061 PR ipa/65540
28062 * calls.c (initialize_argument_information): When producing tail
28063 call also turn SSA_NAMES passed by references to original PARM_DECLs
28064
28065 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
28066
28067 PR target/65648
28068 * lra-remat.c (do_remat): Process input and non-input insn
28069 registers separately.
28070
28071 2015-04-07 Jakub Jelinek <jakub@redhat.com>
28072
28073 PR debug/65678
28074 * valtrack.c (debug_lowpart_subreg): New function.
28075 (dead_debug_insert_temp): Use it.
28076
28077 PR middle-end/65680
28078 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
28079 into signed HOST_WIDE_INT the same as negative bit_offset.
28080
28081 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
28082
28083 * ipa-comdats.c (ipa_comdats): Visit all thunks
28084 to set proper comdat group.
28085
28086 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28087
28088 PR target/65489
28089 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
28090 on constants for NEON VSTRUCT modes.
28091
28092 2015-04-07 Jakub Jelinek <jakub@redhat.com>
28093 Iain Sandoe <iain@codesourcery.com>
28094
28095 PR target/65351
28096 * configure: Regenerate.
28097
28098 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28099
28100 PR target/65614
28101 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
28102 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
28103 that LFD is used to load double constants instead of LFS. Add
28104 defaults for all costs structures. Add comments for missing
28105 initialization fields.
28106 (size32_cost): Likewise.
28107 (size64_cost): Likewise.
28108 (rs64a_cost): Likewise.
28109 (mpccore_cost): Likewise.
28110 (ppc403_cost): Likewise.
28111 (ppc405_cost): Likewise.
28112 (ppc440_cost): Likewise.
28113 (ppc476_cost): Likewise.
28114 (ppc601_cost): Likewise.
28115 (ppc603_cost): Likewise.
28116 (ppc604_cost): Likewise.
28117 (ppc604e_cost): Likewise.
28118 (ppc620_cost): Likewise.
28119 (ppc630_cost): Likewise.
28120 (ppccell_cost): Likewise.
28121 (ppc750_cost): Likewise.
28122 (ppc7450_cost): Likewise.
28123 (ppc8540_cost): Likewise.
28124 (ppce300c2c3_cost): Likewise.
28125 (ppce500mc_cost): Likewise.
28126 (ppce500mc64_cost): Likewise.
28127 (ppce5500_cost): Likewise.
28128 (ppce6500_cost): Likewise.
28129 (titan_cost): Likewise.
28130 (power4_cost): Likewise.
28131 (power6_cost): Likewise.
28132 (power7_cost): Likewise.
28133 (power8_cost): Likewise.
28134 (ppca2_cost): Likewise.
28135 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
28136
28137 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
28138 instead of XXLOR to copy SFmode to clear out dirty bits created
28139 when SFmode denormals are generated.
28140 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
28141 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
28142
28143 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28144
28145 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
28146 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
28147 * config/aarch64/aarch64-tune.md: Regenerate.
28148
28149 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28150
28151 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
28152 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
28153 * config/arm/arm-cores.def (exynos-m1): New core.
28154 * config/arm/arm-tune.md: Regenerate.
28155 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
28156 * config/arm/bpabi.h: Likewise.
28157
28158 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28159
28160 * ipa-cp (set_single_call_flag): Remove too
28161 restrictive assert.
28162
28163 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
28164
28165 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
28166 GOMP_offload_unregister from the destructor.
28167
28168 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28169
28170 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
28171 flags for instrumentation thunk.
28172 (chkp_produce_thunks): Likewise.
28173
28174 2015-04-05 Martin Liska <mliska@suse.cz>
28175
28176 PR ipa/65665
28177 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
28178 has computed data structure.
28179 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28180
28181 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
28182
28183 * invoke.texi (inline-unit-growth): Increase growth to 20%
28184 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
28185
28186 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
28187
28188 PR target/65647
28189 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
28190 value checking.
28191 (lra_rematerialization_iter): New.
28192 * lra.c (lra): Initialize lra_rematerialization_iter.
28193 Stop updating lra_constraint_new_regno_start after switching of
28194 inheritance and rematerialization.
28195 * lra-remat.c (lra_rematerialization_iter): New.
28196 (lra_remat): Add printing pass iteration. Do rematerialization
28197 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
28198
28199 2015-04-04 Richard Biener <rguenther@suse.de>
28200
28201 PR tree-optimization/64909
28202 PR tree-optimization/65660
28203 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28204 to take a cost vector for scalar iteration cost.
28205 (vect_get_single_scalar_iteration_cost): Likewise.
28206 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28207 Compute the scalar iteration cost into a cost vector.
28208 (vect_get_known_peeling_cost): Use the scalar cost vector to
28209 account for the cost of the peeled iterations.
28210 (vect_estimate_min_profitable_iters): Likewise.
28211 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28212 Likewise.
28213
28214 2015-04-04 Alan Modra <amodra@gmail.com>
28215
28216 PR target/65576
28217 PR target/65240
28218 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28219 0.0 constant unless TARGET_VSX.
28220 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28221 alternative.
28222
28223 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28224
28225 PR ipa/65654
28226 * ipa-inline-transform.c (inline_call): Skip sanity check to work
28227 around the ICE
28228
28229 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28230
28231 PR ipa/65655
28232 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28233 speculative indirect edges to avoid ordering issue.
28234
28235 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28236
28237 PR ipa/65076
28238 * ipa-inline.c (edge_badness): Add combined size to the denominator.
28239
28240 2015-04-03 Jakub Jelinek <jakub@redhat.com>
28241
28242 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28243 TYPE_ARTIFICIAL on the .omp_data* types.
28244
28245 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28246
28247 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28248 instrumentation thunks.
28249
28250 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28251
28252 * config/i386/i386.c (ix86_expand_call): Avoid nested
28253 PARALLEL in returned call value.
28254
28255 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28256
28257 * lto-cgraph.c (input_cgraph_1): Always link instrumented
28258 assembler name with original one.
28259
28260 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28261
28262 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28263
28264 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28265
28266 Revert parts of r216820.
28267 * config/i386/i386.md (movqi_internal): Correct type calculation
28268 for alternatives 3 and 5.
28269
28270 2015-04-02 Jakub Jelinek <jakub@redhat.com>
28271
28272 PR preprocessor/61977
28273 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28274 predefine __vector/__bool/__pixel macros nor context sensitive
28275 macros for CLK_ASM.
28276 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28277
28278 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
28279
28280 * config/pa/pa.c (pa_output_move_double): Directly handle register
28281 indexed memory operand. Simplify handling of scaled register indexed
28282 memory operands.
28283
28284 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28285
28286 PR driver/65444
28287 * config/i386/linux-common.h (MPX_SPEC): New.
28288 (CHKP_SPEC): Add MPX_SPEC.
28289 * doc/invoke.texi (-fcheck-pointer-boudns): Document
28290 possible issues with '-z bndplt' support in linker.
28291
28292 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28293
28294 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28295 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28296 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28297 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28298 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28299
28300 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
28301
28302 * config/i386/sync.md (UNSPEC_MOVA): Remove.
28303 (atomic_load<mode>): Change operand 0 predicate to
28304 nonimmediate_operand and fix up the destination when needed.
28305 Use UNSPEC_LDA.
28306 (atomic_loaddi_fpu): Use UNSPEC_LDA.
28307 (atomic_store<mode>): Change operand 1 predicate to
28308 nonimmendate_operand and move the source to register when needed.
28309 Use UNSPEC_STA.
28310 (atomic_store<mode>_1): Use UNSPEC_STA.
28311 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28312 Fix moves from memory operand. Use UNSPEC_STA.
28313
28314 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
28315
28316 * expmed.c (strict_volatile_bitfield_p): Check that the access will
28317 not cross a MODESIZE boundary.
28318 (store_bit_field, extract_bit_field): Added assertions in the
28319 strict volatile bitfields code path.
28320
28321 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
28322
28323 PR target/65624
28324 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28325 Increase args array size by one to avoid buffer overflow.
28326
28327 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28328
28329 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28330 split_part.
28331 * ipa-inline.c (edge_badness): Add wrapper penalty.
28332 (sum_callers): Move up.
28333 (inline_small_functions): Set single_caller.
28334 * ipa-inline.h (inline_summary): Add single_caller.
28335 * ipa-split.c (split_function): Set split_part.
28336 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28337 * cgraph.h (cgraph_node): Add split_part.
28338
28339 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
28340
28341 PR target/58945
28342 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
28343 Do not split operands 0 and operands 2 to halfmode.
28344 (atomic_compare_and_swap<mode>): Update for
28345 atomic_compare_and_swap<dwi>_doubleword changes.
28346
28347 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28348
28349 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
28350 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
28351 no caching is done.
28352
28353 2015-03-31 Martin Liska <mliska@suse.cz>
28354
28355 PR ipa/65557
28356 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
28357 has already filled up function summary.
28358 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28359
28360 2015-03-31 Richard Biener <rguenther@suse.de>
28361
28362 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
28363 of types.
28364
28365 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
28366
28367 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28368 nested functions.
28369 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28370 (s390_asm_output_function_label): Adapt to new signature of
28371 s390_function_num_hotpatch_hw
28372 Optimise the code generating assembler output.
28373 Add comments to assembler file.
28374
28375 2015-03-31 Richard Biener <rguenther@suse.de>
28376
28377 PR middle-end/65626
28378 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28379 of the noreturn call so it is last and cleanup_control_flow_bb
28380 can do the CFG part.
28381
28382 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
28383
28384 PR target/65531
28385 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28386 same_comdat_group for external symbols.
28387 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28388 infinite same_comdat_group traversal loop.
28389
28390 2015-03-31 Jakub Jelinek <jakub@redhat.com>
28391
28392 PR plugins/61176
28393 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28394 automatically to $headers.
28395
28396 2015-03-30 Jakub Jelinek <jakub@redhat.com>
28397
28398 PR ipa/65610
28399 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28400 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28401 function.
28402 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28403 Use it.
28404 * ipa-prop.c (param_type_may_change_p): Likewise.
28405 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28406 (remove_unused_scope_block_p): Add in_ctor_dtor_block
28407 argument. Before inlining, preserve
28408 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28409 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
28410 recursive calls.
28411 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28412
28413 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28414
28415 PR ipa/65076
28416 * ipa-inline.c (edge_badness): Base denominator on callee's
28417 grwoth squared.
28418
28419 2015-03-27 Martin Jambor <mjambor@suse.cz>
28420
28421 PR ipa/65478
28422 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28423 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28424 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28425 node_calling_single_call.
28426 * ipa-cp.c (count_callers): New function.
28427 (set_single_call_flag): Likewise.
28428 (initialize_node_lattices): Count callers and set single_flag_call if
28429 necessary.
28430 (incorporate_penalties): New function.
28431 (good_cloning_opportunity_p): Use it, dump new flags.
28432 (propagate_constants_topo): Set node_within_scc flag if appropriate.
28433 * doc/invoke.texi (ipa-cp-recursion-penalty,
28434 ipa-cp-single-call-pentalty): Document.
28435
28436 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28437
28438 PR ipa/65588
28439 * symtab.c (symtab_node::get_partitioning_class): Register vars
28440 are duplicated.
28441 * varpool.c (symbol_table::output_variables) Do not assemble unefined
28442 decls for non-symbols.
28443
28444 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
28445
28446 PR target/65248
28447 * output.h (default_binds_local_p_2): New.
28448 * varasm.c (default_binds_local_p_2): Renamed to ...
28449 (default_binds_local_p_3): This. Don't return true on protected
28450 data symbol if protected data may be external.
28451 (default_binds_local_p): Use default_binds_local_p_3.
28452 (default_binds_local_p_1): Likewise.
28453 (default_binds_local_p_2): New.
28454 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28455 default_binds_local_p_2 if TARGET_MACHO is undefined.
28456
28457 2015-03-27 Jakub Jelinek <jakub@redhat.com>
28458
28459 PR target/65593
28460 * config/i386/i386.c (legitimize_pic_address): If base
28461 is SYMBOL_REF or LABEL_REF using %rip addressing, force
28462 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28463
28464 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28465
28466 PR target/65531
28467 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28468 comdat groups.
28469
28470 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28471
28472 PR ipa/65600
28473 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28474 of optimized out indirect call.
28475 (redirect_to_unreachable): Always build symbol table node for
28476 BUILT_IN_UNREACHABLE
28477
28478 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
28479
28480 PR target/65407
28481 * ira-costs.c (record_reg_classes): Process all constraint string
28482 containing 0-9.
28483
28484 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
28485
28486 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28487 memory_operand.
28488
28489 PR target/65052
28490 * config/c6x/constraints.md (S3): New constraint.
28491 * config/c6x/c6x.md (real_jump): Use it.
28492
28493 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28494
28495 PR middle-end/65595
28496 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28497 do redirection if the call is not optimized out.
28498
28499 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
28500
28501 PR target/65495
28502 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28503 (fchkp-check-incomplete-type): Add LTO.
28504 (fchkp-zero-input-bounds-for-main): Likewise.
28505 (fchkp-first-field-has-own-bounds): Likewise.
28506 (fchkp-narrow-bounds): Likewise.
28507 (fchkp-narrow-to-innermost-array): Likewise.
28508 (fchkp-use-static-bounds): Likewise.
28509 (fchkp-use-static-const-bounds): Likewise.
28510 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28511
28512 2015-03-27 Marek Polacek <polacek@redhat.com>
28513
28514 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28515
28516 2015-03-27 Marek Polacek <polacek@redhat.com>
28517
28518 PR sanitizer/65583
28519 * ubsan.c (ubsan_create_edge): New function.
28520 (instrument_bool_enum_load): Call it.
28521 (instrument_nonnull_arg): Likewise.
28522 (instrument_nonnull_return): Likewise.
28523 (instrument_object_size): Likewise.
28524
28525 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28526
28527 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28528 auto_vec.
28529
28530 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28531
28532 PR lto/65536
28533 * lto-streamer.h (class lto_location_cache): New.
28534 (struct data_in): Add location_cache.
28535 (lto_input_location): Update prototype.
28536 (stream_input_location_now): New.
28537 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28538 pointer to location.
28539 (stream_input_location): Update.
28540 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28541 (warn_odr): Apply location cache before warning.
28542 (lto_input_location): Update prototype.
28543 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28544 Use stream_input_location_now.
28545 * lto-streamer-in.c (lto_location_cache::current_cache): New static
28546 variable.
28547 (lto_location_cache::cmp_loc): New function.
28548 (lto_location_cache::apply_location_cache): New function.
28549 (lto_location_cache::accept_location_cache): New function.
28550 (lto_location_cache::revert_location_cache): New function.
28551 (lto_location_cache::input_location): New function.
28552 (lto_input_location): Do location caching.
28553 (stream_input_location_now): New function.
28554 (input_eh_region, input_struct_function_base): Use
28555 stream_input_location_now.
28556 (lto_data_in_create): use new.
28557 (lto_data_in_delete): Use delete.
28558 * tree-streamer-in.c (unpack_ts_block_value_fields,
28559 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28560 lto_input_ts_exp_tree_pointers): Update for cached location api.
28561
28562 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28563
28564 PR ipa/65076
28565 * passes.def: Add pass_nothrow.
28566 * ipa-pure-const.c: (pass_data_nothrow): New.
28567 (pass_nothrow): New.
28568 (pass_nothrow::execute): New.
28569 (make_pass_nothrow): New.
28570 * tree-pass.h (make_pass_nothrow): Declare.
28571
28572 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28573
28574 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28575 edge to change by speculation resolution or redirection.
28576 (edge_set_predicate): Likewise.
28577 (inline_summary_t::duplicate): Likewise.
28578 (remap_edge_summaries): Likewise.
28579
28580 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28581
28582 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28583 New macros.
28584 (can_inline_edge_p): Relax option matching for always inline functions.
28585
28586 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
28587
28588 PR target/65561
28589 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28590 Check operand 4 and operand 0 for equality.
28591 (avx512f_vextract<shuffletype>32x4_1_maskm):
28592 Check operand 6 and operand 0 for equality.
28593 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28594 for equality.
28595 (vec_extract_hi_<mode>_maskm): Ditto.
28596
28597 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28598
28599 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28600 dead calls back to live.
28601 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28602 cross check to ...
28603 (cgraph_node::verify_node): ... here; verify only callee edges,
28604 not caller.
28605 * cif-code.def (CILK_SPAWN): New code.
28606
28607 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28608
28609 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28610 (edge_set_predicate): Use it to mark unreachable edges.
28611 (inline_summary_t::duplicate): Remove unnecesary code.
28612 (remap_edge_summaries): Likewise.
28613 (dump_inline_summary): Report contains_cilk_spawn.
28614 (compute_inline_parameters): Compute contains_cilk_spawn.
28615 (inline_read_section, inline_write_summary): Stream
28616 contains_cilk_spawn.
28617 * ipa-inline.c (can_inline_edge_p): Do not touch
28618 DECL_STRUCT_FUNCTION that may not be available;
28619 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28620 remove check for callee_fun->can_throw_non_call_exceptions and
28621 replace it by optimization attribute check; check for flag_exceptions.
28622 * ipa-inline-transform.c (inline_call): Maintain
28623 DECL_FUNCTION_PERSONALITY
28624 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28625
28626 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28627
28628 PR tree-optimization/65551
28629 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28630 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28631
28632 2015-03-26 Richard Biener <rguenther@suse.de>
28633
28634 PR middle-end/65555
28635 * tree-cfg.c (verify_gimple_call): Do not require a call to
28636 have no LHS if it wasn't recognized as control altering yet.
28637
28638 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28639
28640 PR tree-optimization/64715
28641 * passes.def: Add another instance of pass_object_sizes before ccp1.
28642 * tree-object-size.c (pass_object_sizes::execute): In
28643 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28644 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28645 __bos result and the computed constant. Remove redundant
28646 checks, obsoleted by gimple_call_builtin_p test.
28647
28648 * var-tracking.c (variable_tracking_main_1): Don't track
28649 variables for targetm.no_register_allocation targets.
28650
28651 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
28652
28653 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28654 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28655
28656 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28657
28658 PR target/65569
28659 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28660 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
28661 0.0 is correctly setup.
28662 (extenddftf2_internal): Likewise.
28663
28664 2015-03-25 Sebastian Pop <s.pop@samsung.com>
28665
28666 PR tree-optimization/65177
28667 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28668 (bb_in_bbs): New.
28669 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
28670 edges not adjacent on the path to the original code.
28671
28672 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
28673
28674 PR bootstrap/65537
28675 * doc/install.texi (Building a native compiler): Document new
28676 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
28677 configuration assumes that the host supports the linker plugin.
28678
28679 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
28680
28681 PR target/65508
28682 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28683 chain for generated call.
28684
28685 2015-03-25 Richard Biener <rguenther@suse.de>
28686
28687 * passes.c (pass_manager::execute_early_local_passes): Guard
28688 execution of pass_chkp_instrumentation_passes with
28689 flag_check_pointer_bounds.
28690 (pass_chkp_instrumentation_passes::gate): Likewise.
28691
28692 2015-03-25 Martin Liska <mliska@suse.cz>
28693
28694 PR tree-optimization/65538
28695 * symbol-summary.h (function_summary::~function_summary):
28696 Relese memory for allocated summaries.
28697 (function_summary::release): New function.
28698
28699 2015-03-25 Jakub Jelinek <jakub@redhat.com>
28700
28701 PR lto/65515
28702 * lto-streamer-out.c (DFS::worklist): New struct.
28703 (DFS::worklist_vec): New data member.
28704 (DFS::next_dfs_num): Remove.
28705 (DFS::DFS): Rewritten using worklist instead of recursion,
28706 using most of code from DFS::DFS_write_tree.
28707 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28708 pass it to DFS_write_tree calls.
28709 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28710 quick initial checks push it into worklist_vec and return.
28711
28712 2015-03-25 Richard Biener <rguenther@suse.de>
28713
28714 PR middle-end/65519
28715 * genmatch.c (expr::gen_transform): Re-write to avoid
28716 using gimple_build.
28717
28718 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28719
28720 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28721
28722 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28723
28724 * config/arm/arm.opt (print_tune_info): New option.
28725 * config/arm/arm.c (arm_print_tune_info): New function.
28726 (arm_file_start): Call arm_print_tune_info.
28727 * config/arm/arm-protos.h (struct tune_params): Add comment.
28728 * doc/invoke.texi (@item -mprint-tune-info): New item.
28729 (-mtune): mention it in ARM Option Summary.
28730
28731 2015-03-25 DJ Delorie <dj@redhat.com>
28732
28733 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28734 correct clause.
28735
28736 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
28737 Martin Liska <mliska@suse.cz>
28738
28739 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28740 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28741 (sem_item::add_type): New function.
28742 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28743 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28744 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28745 (sem_function::equals_wpa): Fix typo.
28746 * ipa-icf.h (sem_item::add_type): New function.
28747 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28748 order.
28749
28750 2015-03-24 Jakub Jelinek <jakub@redhat.com>
28751
28752 PR tree-optimization/65533
28753 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28754 with swapped operands, call vect_free_slp_tree on
28755 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28756 vector.
28757
28758 2015-03-24 Richard Biener <rguenther@suse.de>
28759
28760 PR middle-end/65517
28761 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28762 for fixup if necessary.
28763
28764 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
28765
28766 * doc/extend.texi (Function Attributes): Add @cindex entries
28767 for all attributes and regularize their format. Delete text
28768 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
28769 information about "eightbit_data", "tiny_data", and "model"
28770 variable attributes to the Variable Attributes section. Fix
28771 some obvious typos and copy-editing issues.
28772 (Variable Attributes, Type Attributes): Likewise add/fix
28773 @cindex entries for all attributes.
28774
28775 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28776
28777 PR target/65523
28778 * tree-chkp.c (chkp_build_returned_bound): Ignore
28779 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28780
28781 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
28782
28783 PR target/65505
28784 * config/sh/predicates.md (simple_mem_operand,
28785 displacement_mem_operand): Add test for reg.
28786 (short_displacement_mem_operand): Test for displacement_mem_operand
28787 before invoking sh_disp_addr_displacement.
28788 * config/sh/constraints.md (Sdd, Sra): Simplify.
28789 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28790 Remove redundant displacement_mem_operand tests.
28791
28792 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
28793
28794 PR target/65296
28795 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28796 the same -mmcu=MCU more than once.
28797
28798 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28799
28800 PR bootstrap/65522
28801 * ipa-devirt.c: Remove duplicate demangle.h include.
28802
28803 PR target/65504
28804 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28805 on the pseudo.
28806 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28807 REG_POINTER on *destptr after adjusting it for prologue size.
28808
28809 PR ipa/65521
28810 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28811 ultimate_alias_target ()->order ints instead of
28812 ultimate_alias_target () pointers.
28813
28814 2015-03-23 Richard Biener <rguenther@suse.de>
28815
28816 PR tree-optimization/65518
28817 * tree-vect-stmts.c (vectorizable_load): Reject single-element
28818 interleaving cases we generate absymal code for.
28819
28820 2015-03-23 Richard Biener <rguenther@suse.de>
28821
28822 PR tree-optimization/65494
28823 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28824 matches here.
28825 (vect_analyze_slp_instance): But do that here, always and once.
28826
28827 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28828
28829 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28830 adding T or multiplying by T+1 and subracting T.
28831
28832 2015-03-22 Jeff Law <law@redhat.com>
28833
28834 PR rtl-optimization/64317
28835 * Makefile.in (OBJS): Add gcse-common.c
28836 * gcse.c: Include gcse-common.h
28837 (struct modify_pair_s): Move structure definition to gcse-common.h
28838 (compute_transp): Move function to gcse-common.c.
28839 (canon_list_insert): Similarly.
28840 (record_last_mem_set_info): Break out some code and put it into
28841 gcse-common.c. Call into the new common code.
28842 (compute_local_properties): Pass additional arguments to compute_transp.
28843 * postreload-gcse.c: Include gcse-common.h and df.h
28844 (modify_mem_list_set, blocks_with_calls): New variables.
28845 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28846 (get_bb_avail_insn): Pass in the expression index too.
28847 (alloc_mem): Allocate memory for the new bitmaps and lists.
28848 (free_mem): Free memory for the new bitmaps and lists.
28849 (insert_expr_in_table): Record a bitmap index for each entry we
28850 add to the table.
28851 (record_last_mem_set_info): Call into common code in gcse-common.c.
28852 (get_bb_avail_insn): If no available insn was found in the requested
28853 BB. If BB has a single predecessor, see if the expression is
28854 transparent in BB and available in that single predecessor.
28855 (compute_expr_transp): New wrapper for compute_transp.
28856 (eliminate_partially_redundant_load): Pass expression's bitmap_index
28857 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
28858 (gcse_after_reload_main): If there are elements in the hash table,
28859 then compute transparency for all the elements in the hash table.
28860 * gcse-common.h: New file.
28861 * gcse-common.c: New file.
28862
28863 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
28864
28865 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28866 as an adjective.
28867 (System Headers): Likewise.
28868 (Ifdef): Likewise.
28869 (Traditional macros): Likewise.
28870 (Invocation): Likewise.
28871 (Option Index): Likewise.
28872 * doc/cppopts.texi (-M): Likewise.
28873 (-finput-charset): Likewise.
28874 (--help): Likewise.
28875 * doc.invoke.texi (AVR Options): Likewise.
28876 (V850 Options): Likewise.
28877
28878 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
28879
28880 PR ipa/65475
28881 * ipa-devirt.c: Include demangle.h
28882 (odr_type_d): Add field rtti_broken.
28883 (odr_subtypes_equivalent_p): Do not require name to match.
28884 (compare_virtual_tables): Fix typo; if type already has ODR violation,
28885 bypass the tests; be ready for function referneces in vtables that are
28886 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28887 (warn_odr): Give up for nameless types.
28888 (warn_types_mismatch): Report mismatch in mangled names;
28889 report mismatch in anonymous namespaces; look into component types to
28890 give useful error; report when mismatch is dragged in from other ODR
28891 type.
28892 (odr_types_equivalent_p): Match types for being polymorphic; avoid
28893 duplicated diagnostics.
28894 (add_type_duplicate): Reorder checks so more informative ones come
28895 first; fix typo; do not output "the extra base is defined here" when
28896 we did not warn.
28897 (BINFO_N_BASE_BINFOS): Relax sanity check.
28898
28899 2015-03-22 Martin Liska <mliska@suse.cz>
28900 Jakub Jelinek <jakub@redhat.com>
28901
28902 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28903 masks that can potentially include a builtin.
28904 (ix86_add_new_builtins): Introduce fast filter for isa values
28905 that cannot trigger builtin inclusion.
28906
28907 2015-03-22 Martin Liska <mliska@suse.cz>
28908
28909 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28910 (sem_item::update_hash_by_local_refs): Likewise.
28911 (sem_variable::get_hash): Empty line is fixed.
28912 (sem_item_optimizer::execute): Include adding of hash references.
28913 (sem_item_optimizer::update_hash_by_addr_refs): New function.
28914 (sem_item_optimizer::build_hash_based_classes): Use local hash.
28915 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28916 (sem_item::update_hash_by_local_refs): Likewise.
28917
28918 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28919
28920 PR ipa/65502
28921 * ipa-comdats.c (enqueue_references): Walk through thunks.
28922 (ipa_comdats): Likewise.
28923 (set_comdat_group_1): New function.
28924
28925 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28926
28927 PR ipa/65475
28928 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28929 non-polymorphic
28930
28931 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
28932 Gerald Pfeifer <gerald@pfeifer.com>
28933
28934 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28935
28936 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28937 Sandra Loosemore <sandra@codesourcery.com>
28938
28939 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28940 function parameter declaration.
28941 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28942 Update arguments to nios2_adjust_call_address().
28943 (sibcall_internal): Rename from *sibcall.
28944 (sibcall_value_internal): Rename from *sibcall_value.
28945 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28946 (nios2_large_got_address): Add target temp reg parameter.
28947 (nios2_got_address): Adjust call to nios2_large_got_address, add
28948 force_reg around it.
28949 (nios2_load_pic_address): Add target temp reg parameter, replace call
28950 to nios2_got_address with corresponding code.
28951 (nios2_legitimize_constant_address): Update call to
28952 nios2_load_pic_address.
28953 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28954 to use temp reg for PIC loading purposes.
28955 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28956 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28957 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28958
28959 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28960
28961 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28962 usage of "the @option{...}".
28963 (-Wopenmp-simd): Likewise.
28964 (-fsanitize-recover): Likewise.
28965 (-fsanitize-undefined-trap-on-error): Likewise.
28966 (-flto): Likewise.
28967 (tracer-dynamic-coverage-feedback): Likewise.
28968 (reorder-block-duplicate-feedback): Likewise.
28969 (loop-unroll-jam-size): Likewise.
28970 (-B): Likewise.
28971 (-I-): Likewise.
28972 (-mabs=legacy): Likewise.
28973 (-mupper-regs-df): Likewise.
28974 (-mupper-regs-sf): Likewise.
28975 (-mpointers-to-nested-functions): Likewise.
28976
28977 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28978
28979 * doc/extend.texi (Cilk Plus Builtins): Add markup.
28980
28981 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28982
28983 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
28984 additional index entries and cross-references.
28985 (-fchkp-check-incomplete-type): Likewise.
28986 (-fchkp-first-field-has-own-bounds): Likewise.
28987 (-fchkp-narrow-to-innermost-array): Likewise.
28988 (-fchkp-use-fast-string-functions): Likewise.
28989 (-fchkp-use-nochk-string-functions): Likewise.
28990 (-fchkp-use-static-const-bounds): Likewise.
28991 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28992 (-fchkp-instrument-marked-only): Likewise.
28993 (-fchkp-use-wrappers): Likewise.
28994 (-static-libmpx): Likewise.
28995 (-static-libmpxwrappers): Likewise.
28996 * doc/extend.texi (bnd_legacy): Likewise.
28997 (bnd_instrument): Likewise.
28998 (bnd_variable_size): Likewise.
28999 (Pointer Bounds Checker builtins): Likewise.
29000
29001 2015-03-21 Tom de Vries <tom@codesourcery.com>
29002
29003 PR tree-optimization/65458
29004 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
29005 * cgraph.h (cgraph_node): Add parallelized_function field.
29006 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
29007 (input_overwrite_node): Read parallelized_function field.
29008 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
29009 parallelized_function on cgraph_node for child_fn.
29010 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
29011 Remove include of gt-tree-parloops.h.
29012 (parallelized_functions): Remove static variable.
29013 (parallelized_function_p): Rewrite using parallelized_function field of
29014 cgraph_node.
29015 (create_loop_fn): Remove adding to parallelized_functions.
29016 * Makefile.in (GTFILES): Remove tree-parloops.c
29017
29018 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
29019
29020 PR rtl-optimization/64366
29021 * lra.c (lra_update_insn_regno_info): Consider regs in
29022 CALL_INSN_FUNCTION_USAGE memory.
29023
29024 2015-03-20 Richard Biener <rguenther@suse.de>
29025
29026 PR middle-end/64715
29027 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
29028 for type comparison and gcc_checking_assert.
29029 (chrec_fold_plus_poly_poly): Likewise.
29030 (chrec_fold_multiply_poly_poly): Likewise.
29031 (chrec_convert_1): Likewise.
29032 * gimplify.c (gimplify_expr): Remove premature folding of
29033 &X + CST to &MEM[&X, CST].
29034
29035 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
29036
29037 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
29038 already is final.
29039 (ipa_inline): Recompute inline_failed codes.
29040 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29041 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
29042 CIF_FINAL_ERROR.
29043
29044 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
29045
29046 PR rtl-optimization/60851
29047 * recog.c (constrain_operands): Accept a pseudo register before reload
29048 for LRA enabled targets.
29049
29050 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
29051
29052 PR target/65240
29053 * config/rs6000/predicates.md (easy_fp_constant): Remove special
29054 -ffast-math handling that kept non-0 constants live in the RTL
29055 until reload. Remove logic testing the number of instructions it
29056 took to create a constant in a GPR that was never used, due to a
29057 test for soft-float earlier.
29058 (memory_fp_constant): Delete, no longer used.
29059
29060 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
29061 alternatives for loading non-0 constants into GPRs for hard
29062 floating point that is no longer needed due to changes in
29063 easy_fp_constant. Add support for loading 0.0 into GPRs.
29064 (mov<mode>_hardfloat32): Likewise.
29065 (mov<mode>_hardfloat64): Likewise.
29066 (mov<mode>_64bit_dm): Likewise.
29067 (movtd_64bit_nodm): Likewise.
29068 (pre-reload move FP constant define_split): Delete define_split,
29069 since it is no longer used.
29070 (extenddftf2_internal): Remove GHF constraints that are not valid
29071 for extenddftf2.
29072
29073 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
29074
29075 PR rtl-optimization/63491
29076 * lra-constraints.c (check_and_process_move): Use src instead of
29077 sreg. Remove some dead code.
29078
29079 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
29080
29081 PR ipa/65380
29082 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
29083 (sem_variable::merge): Likewise.
29084
29085 2015-03-19 Martin Liska <mliska@suse.cz>
29086
29087 PR ipa/65465
29088 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
29089 all fields of cgraph_thunk_info.
29090
29091 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
29092
29093 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
29094 clone instrumented thunks.
29095
29096 2015-03-19 Richard Biener <rguenther@suse.de>
29097
29098 Revert
29099 2015-03-10 Richard Biener <rguenther@suse.de>
29100
29101 PR middle-end/63155
29102 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29103 * tree-ssa-coalesce.c: Include timevar.h.
29104 (attempt_coalesce): Handle graph being NULL.
29105 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29106 Split out abnormal coalescing to ...
29107 (perform_abnormal_coalescing): ... this function.
29108 (coalesce_ssa_name): Perform abnormal coalescing without computing
29109 live/conflict.
29110 (verify_ssa_coalescing_worker): New function.
29111 (verify_ssa_coalescing): Likewise.
29112
29113 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
29114 Jakub Jelinek <jakub@redhat.com>
29115
29116 PR sanitizer/65400
29117 * tsan.c (instrument_gimple): Clear tail call flag on
29118 calls.
29119
29120 2015-03-19 Jakub Jelinek <jakub@redhat.com>
29121
29122 PR sanitizer/65400
29123 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
29124 call in the return bb.
29125 (find_split_points): Add RETURN_BB argument, don't call
29126 find_return_bb.
29127 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
29128 if true append TSAN_FUNC_EXIT internal call after the call to
29129 the split off function.
29130 (execute_split_functions): Call find_return_bb here.
29131 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
29132 Adjust find_split_points and split_function calls.
29133
29134 2015-03-18 DJ Delorie <dj@redhat.com>
29135
29136 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
29137 (iorqi3_virt): Likewise.
29138
29139 2015-03-18 Tom de Vries <tom@codesourcery.com>
29140
29141 * tree-parloops.c (parallelize_loops): Make static.
29142 * tree-parloops.h (parallelize_loops): Remove extern declaration.
29143
29144 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
29145
29146 PR middle-end/64491
29147 Revert:
29148 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
29149
29150 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
29151 condition would be removed due to undefined behaviour.
29152
29153 2015-03-18 Martin Liska <mliska@suse.cz>
29154
29155 PR ipa/65432
29156 * cgraph.c (cgraph_node::get_create): Remove unnecessary
29157 xstrdup_for_dump wrapper.
29158 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
29159 sem_item::name.
29160 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
29161 with xstrdup_for_dump.
29162 (sem_variable::equals): Likewise.
29163 (sem_item_optimizer::read_section): Use symtab_node::name instead of
29164 sem_item::name.
29165 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
29166 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
29167 symtab_node::asm_name with xstrdup_for_dump.
29168 (congruence_class::dump): Use symtab_node::name instead of
29169 sem_item::name.
29170 * ipa-icf.h (symtab_node::name): Remove.
29171 (symtab_node::asm_name): Likewise.
29172
29173 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29174
29175 PR tree-optimization/65450
29176 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
29177 function.
29178 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
29179 it instead of duplicate_ssa_name_ptr_info.
29180
29181 PR target/65222
29182 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
29183
29184 2015-03-18 Richard Biener <rguenther@suse.de>
29185
29186 * tree-data-ref.h (struct access_matrix): Remove.
29187 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
29188 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
29189 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
29190 (am_vector_index_for_loop): Likewise.
29191 (struct data_reference): Remove access_matrix member.
29192 (DR_ACCESS_MATRIX): Remove.
29193 (lambda_vector_new): Add comment.
29194 (lambda_matrix_new): Use XOBNEWVEC.
29195
29196 2015-03-18 Richard Biener <rguenther@suse.de>
29197
29198 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
29199 (pass_ch::execute): Cleanup the CFG only if we did sth.
29200 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29201
29202 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29203
29204 * expmed.c (synth_mult): Use std::swap instead of manually
29205 swapping algorithms.
29206
29207 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29208
29209 PR target/65078
29210 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29211
29212 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
29213
29214 PR target/65296
29215 * config/avr/avr.opt (-nodevicelib): New option.
29216 * doc/invoke.texi (AVR Options): Document it.
29217 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29218 libgcc.a, libc.a, libm.a.
29219 * config/avr/specs.h: Same.
29220 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29221 which don't (directly) depend on the device. Print more help.
29222 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29223 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29224 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29225 case of an error.
29226 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29227 for specs file name.
29228 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29229 * config/avr/avr-mcus.def: Adjust initializers and comments.
29230
29231 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
29232
29233 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29234 DECL_ONE_ONLY to check if decl is one only.
29235 * ipa-split.c (consider_split): Limit splitt of one only functions.
29236
29237 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29238
29239 PR tree-optimization/65427
29240 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29241 functions.
29242 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29243
29244 2015-03-16 Marek Polacek <polacek@redhat.com>
29245
29246 * cgraph.h (add_new_static_var): Remove declaration.
29247 * varpool.c (add_new_static_var): Remove function.
29248
29249 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29250
29251 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29252 instead of vec<tree> * with vec_alloc and release for args.
29253 Adjust all users.
29254
29255 PR middle-end/65431
29256 * omp-low.c (delete_omp_context): Only splay_tree_delete
29257 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29258 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
29259
29260 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
29261
29262 PR sanitizer/64820
29263 * cfgexpand.c (align_base): New function.
29264 (alloc_stack_frame_space): Call it.
29265 (expand_stack_vars): Align prev_frame to be sure
29266 data->asan_vec elements aligned properly.
29267
29268 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
29269
29270 PR middle-end/65409
29271 * expr.c (store_field): Do not do a direct block copy if the source is
29272 a PARALLEL with BLKmode.
29273
29274 2015-03-16 Tom de Vries <tom@codesourcery.com>
29275
29276 PR middle-end/65414
29277 Revert:
29278 2015-03-12 Tom de Vries <tom@codesourcery.com>
29279
29280 PR rtl-optimization/64895
29281 * lra-lives.c (check_pseudos_live_through_calls): Use
29282 actual_call_used_reg_set instead of call_used_reg_set, if available.
29283
29284 2015-03-16 Alan Modra <amodra@gmail.com>
29285
29286 PR target/63150
29287 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29288 Modify Z->r bswapdi splitter to use dest in place of scratch.
29289 In r->Z and Z->r bswapdi splitter rename word_high, word_low
29290 to word1, word2 and rearrange logic to suit.
29291 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29292 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
29293 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29294 Add one '?' on r->r. Modify Z->r splitter to avoid need for
29295 early clobber.
29296
29297 2015-03-14 Jakub Jelinek <jakub@redhat.com>
29298
29299 PR tree-optimization/65369
29300 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29301 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29302 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29303
29304 PR tree-optimization/65418
29305 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29306 are casts in the first PLUS_EXPR operand, ensure tbias and
29307 *totallowp are in the inner type.
29308
29309 PR rtl-optimization/65401
29310 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29311 argument. If true, adjust_address_nv of x with big-endian
29312 correction for the mode widening to GET_MODE (y).
29313 (make_field_assignment): Don't do MEM mode widening here.
29314 Use MEM_P instead of GET_CODE == MEM.
29315
29316 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
29317
29318 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29319 the external decls.
29320
29321 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29322
29323 PR target/64600
29324 * config/arm/arm.c (arm_gen_constant, AND case): Use
29325 ARM_SIGN_EXTEND when constructing AND mask.
29326
29327 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29328
29329 * graph.c (print_graph_cfg): Make function names visible and append
29330 parenthesis to it. Also make groups of basic blocks belonging to the
29331 same function visible.
29332
29333 2015-03-12 Richard Biener <rguenther@suse.de>
29334
29335 PR middle-end/44563
29336 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29337 to avoid quadratic behavior with inline expansion splitting blocks.
29338 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29339 with the successor if the predecessor will be merged with it.
29340 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
29341 entry block with its successor.
29342
29343 2015-03-13 Richard Biener <rguenther@suse.de>
29344
29345 PR middle-end/44563
29346 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
29347 (cleanup_tree_cfg_1): Do not call it.
29348 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
29349 (fixup_noreturn_call): Mark the stmt as control altering.
29350 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
29351 here.
29352 (pass_data_fixup_cfg): Produce a dump file.
29353 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
29354 (need_noreturn_fixup): New global.
29355 (pass_dominator::execute): Fixup queued noreturn calls.
29356 (optimize_stmt): Queue calls that became noreturn for fixup.
29357 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
29358 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
29359 (el_to_fixup): New global.
29360 (eliminate_dom_walker::before_dom_childre): Queue calls that
29361 became noreturn for fixup.
29362 (eliminate): Fixup queued noreturn calls.
29363 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
29364 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
29365 (substitute_and_fold_dom_walker::before_dom_children): Queue
29366 alls that became noreturn for fixup.
29367 (substitute_and_fold): Fixup queued noreturn calls.
29368
29369 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
29370
29371 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29372 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29373 are building; for methods check ODR type of class they belong to if
29374 they may lead to a polymorphic call.
29375 (sem_function::compare_polymorphic_p): Be bit smarter about testing
29376 when function may lead to a polymorphic call.
29377 (sem_function::compare_type_list): Remove.
29378 (sem_variable::equals): Update use of compatible_types_p.
29379 (sem_variable::parse_tree_refs): Remove.
29380 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29381 cdtor.
29382 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29383 matching here.
29384 (func_checker::compatible_polymorphic_types_p): Break out from ...
29385 (unc_checker::compatible_types_p): ... here.
29386 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29387 Declare.
29388 (unc_checker::compatible_types_p): Update.
29389 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29390 Remove.
29391
29392 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29393
29394 PR rtl-optimization/65235
29395 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29396 When first element of vec_concat is const_int, calculate its size
29397 using second element.
29398
29399 2015-03-12 Richard Biener <rguenther@suse.de>
29400
29401 PR middle-end/65270
29402 * fold-const.c (operand_equal_p): Fix ordering of resetting
29403 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29404
29405 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29406
29407 * config/s390/s390.c (s390_reorg): Move code to output nops after label
29408 to s390_reorg ().
29409 (s390_asm_output_function_label): Likewise.
29410 * config/s390/s390.c (s390_asm_output_function_label):
29411 Fix function label alignment with -mhtopatch.
29412 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29413 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29414 ("nop_2_byte"): New define_insn.
29415 ("nop_4_byte"): Likewise.
29416 ("nop_6_byte"): Likewise.
29417 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29418 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29419
29420 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29421
29422 PR target/65103
29423 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29424 register.
29425
29426 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29427
29428 PR target/65044
29429 * toplev.c (process_options): Restrict Pointer Bounds Checker
29430 usage with Address Sanitizer.
29431
29432 2015-03-12 Richard Biener <rguenther@suse.de>
29433
29434 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29435 to split on.
29436 * omp-low.c (expand_omp_taskreg): Split block before removing
29437 the stmt.
29438 (expand_omp_target): Likewise.
29439 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29440 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29441 stmt to split_block.
29442
29443 2015-03-12 Tom de Vries <tom@codesourcery.com>
29444
29445 PR rtl-optimization/64895
29446 * lra-lives.c (check_pseudos_live_through_calls): Use
29447 actual_call_used_reg_set instead of call_used_reg_set, if available.
29448
29449 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29450
29451 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29452 (cgraph_node::remove): Likewise.
29453 (cgraph_node::get_untransformed_body): Likewise.
29454 * varpool.c (varpool_node::remove): Likewise.
29455 (varpool_node::get_constructor): Add sanity check.
29456
29457 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
29458
29459 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29460 old GCC versions.
29461 (-fabi-compat-version): Likewise.
29462 (-ffriend-injection): Likewise.
29463 (-Wdeclaration-after-statement): Likewise.
29464 (-fomit-frame-pointer): Likewise.
29465 (-ftree-coalesce-inlined-vars): Likewise.
29466 (-fvisibility=): Likewise.
29467 * doc/extend.texi (Typeof): Likewise.
29468 (Zero Length): Likewise.
29469 (Escaped Newlines): Likewise.
29470 (Compound Literals): Likewise.
29471 (Function Attributes): Likewise.
29472 (Label Attributes): Likewise.
29473 (Type Attributes): Likewise.
29474 (Function Names): Likewise.
29475 (Other Builtins): Likewise.
29476 (Function Specific Option Pragmas): Likewise.
29477 (C++ Interface): Likewise.
29478
29479 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
29480
29481 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29482
29483 2015-03-11 Marek Polacek <polacek@redhat.com>
29484
29485 PR tree-optimization/65388
29486 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29487
29488 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29489
29490 PR target/65296
29491 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29492 * configure: Regenerate.
29493 * config.in: Regenerate.
29494 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29495 [-mn-flash]: Document it.
29496 [__AVR_ARCH__]: Document avrtiny.
29497
29498 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29499 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29500 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29501
29502 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29503
29504 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29505
29506 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29507
29508 PR target/65242
29509 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29510 allow reloads of PLUS in floating point/VSX registers.
29511
29512 2015-03-11 Junmo Park <junmoz.park@samsung.com>
29513
29514 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29515 crypto_sha256_fast.
29516 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29517
29518 2015-03-11 Richard Biener <rguenther@suse.de>
29519
29520 PR tree-optimization/65310
29521 * tree-sra.c (build_ref_for_offset): Also preserve larger
29522 alignment.
29523
29524 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
29525
29526 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29527
29528 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29529
29530 PR target/65368
29531 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29532 new define_expand.
29533 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29534
29535 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29536
29537 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29538 (sem_function::equals_wpa): ... here.
29539
29540 2015-03-10 Marek Polacek <polacek@redhat.com>
29541 Jakub Jelinek <jakub@redhat.com>
29542
29543 PR sanitizer/65367
29544 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29545 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
29546 separately.
29547
29548 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29549
29550 PR target/65286
29551 * config/rs6000/t-linux: For powerpc64* target set
29552 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29553
29554 2015-03-10 Richard Biener <rguenther@suse.de>
29555
29556 PR middle-end/44563
29557 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29558 for redirect_all_calls.
29559
29560 2015-03-10 Marek Polacek <polacek@redhat.com>
29561
29562 * gdbinit.in (pcfun): Define and document.
29563
29564 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
29565
29566 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29567 of libgomp-plugin.h.
29568 (find_target_compiler): Support a case when the path to gcc is
29569 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29570 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29571 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29572 libgomp-plugin.h.
29573 (main): Use GCC_INSTALL_NAME as target_driver_name.
29574 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29575 define.
29576 (mkoffload.o): Remove obsolete include path and defines.
29577 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29578
29579 2015-03-10 Richard Biener <rguenther@suse.de>
29580
29581 PR middle-end/63155
29582 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29583 * tree-ssa-coalesce.c: Include timevar.h.
29584 (attempt_coalesce): Handle graph being NULL.
29585 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29586 Split out abnormal coalescing to ...
29587 (perform_abnormal_coalescing): ... this function.
29588 (coalesce_ssa_name): Perform abnormal coalescing without computing
29589 live/conflict.
29590 (verify_ssa_coalescing_worker): New function.
29591 (verify_ssa_coalescing): Likewise.
29592
29593 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29594
29595 PR target/65296
29596 * config.gcc (extra_options) [avr]: Remove.
29597 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29598 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29599 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29600
29601 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29602 (-mmcu=): Add Var and MissingArgError properties.
29603 (-march=): Remove.
29604 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29605 * config/avr/t-multilib: Regenerate.
29606 * config/avr/specs.h: New file.
29607 * config/avr/driver-avr.c: New file.
29608 * config/avr/genopt.sh: Remove file.
29609 * config/avr/avr-tables.opt: Remove file.
29610 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29611 * config/avr/avr-c.c: Same.
29612 * avr-arch.h: Same.
29613 (avr_current_device): Remove proto.
29614 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29615 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29616 (EXTRA_SPEC_FUNCTIONS): Define.
29617 (avr_devicespecs_file): New specs function proto.
29618 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29619 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29620 (avr_current_device): Remove definition and usage.
29621 (avr_set_core_architecture): New static function.
29622 (avr_option_override): Use it.
29623 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29624 (mcu_name): New static array.
29625 (comparator, avr_archs_str, avr_mcus_str): New static functions.
29626 (avr_inform_devices, avr_inform_core_architectures): New functions.
29627 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29628 (avrlibc.h) [WITH_AVRLIBC]: Include.
29629 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29630 (print_mcu): Rewrite from scratch.
29631 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29632 Forward to avr-specific specs defined in device-specs file.
29633 * config/avr/t-avr (driver-avr.o): New rule.
29634 (avr-devices.o): Depend on avr-arch.h.
29635 (avr-mcus): No more depend on avr-tables.opt.
29636 (avr-tables.opt): Remove rule.
29637 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29638
29639 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29640
29641 * c-family/c.opt (fchkp-use-wrappers): New.
29642 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29643 (chkp_wrap_function): New.
29644 (chkp_build_instrumented_fndecl): Support wrapped
29645 functions.
29646 * doc/invoke.texi (-fcheck-pointer-bounds): New.
29647 (-fchkp-check-incomplete-type): New.
29648 (-fchkp-first-field-has-own-bounds): New.
29649 (-fchkp-narrow-bounds): New.
29650 (-fchkp-narrow-to-innermost-array): New.
29651 (-fchkp-optimize): New.
29652 (-fchkp-use-fast-string-functions): New.
29653 (-fchkp-use-nochk-string-functions): New.
29654 (-fchkp-use-static-bounds): New.
29655 (-fchkp-use-static-const-bounds): New.
29656 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29657 (-fchkp-check-read): New.
29658 (-fchkp-check-write): New.
29659 (-fchkp-store-bounds): New.
29660 (-fchkp-instrument-calls): New.
29661 (-fchkp-instrument-marked-only): New.
29662 (-fchkp-use-wrappers): New.
29663 (-static-libmpx): New.
29664 (-static-libmpxwrappers): New.
29665
29666 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29667
29668 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29669 (CHKP_SPEC): Add wrappers library.
29670 * c-family/c.opt (static-libmpxwrappers): New.
29671
29672 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29673
29674 * config/i386/linux-common.h (LIBMPX_LIBS): New.
29675 (LIBMPX_SPEC): New.
29676 (CHKP_SPEC): New.
29677 * gcc.c (CHKP_SPEC): New.
29678 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29679 * c-family/c.opt (static-libmpx): New.
29680
29681 2015-03-10 Richard Biener <rguenther@suse.de>
29682
29683 PR middle-end/44563
29684 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29685 for compare_type.
29686 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29687 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29688 (cgraph_add_edge_to_call_site_hash): Likewise.
29689 (cgraph_node::get_edge): Likewise.
29690 (cgraph_edge::set_call_stmt): Likewise.
29691 (cgraph_edge::remove_caller): Likewise.
29692
29693 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
29694
29695 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29696 (callee_saved_gpr_regs_size): ... this.
29697 (callee_saved_regs_first_regno): Rename to ...
29698 (callee_saved_first_gpr_regno): ... this.
29699 (callee_saved_regs_last_regno) Rename to ...
29700 (callee_saved_last_gpr_regno): ... this.
29701 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29702 variables.
29703 (nds32_initial_elimination_offset): Likewise.
29704 (nds32_expand_prologue): Likewise.
29705 (nds32_expand_epilogue): Likewise.
29706 (nds32_expand_prologue_v3push): Likewise.
29707 (nds32_expand_epilogue_v3pop): Likewise.
29708 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29709 Adjust renamed variables.
29710 (nds32_output_stack_pop): Likewise.
29711
29712 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
29713
29714 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29715 code in comment.
29716
29717 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29718
29719 PR rtl-optimization/65321
29720 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29721 than shift mode.
29722 * var-tracking.c (use_narrower_mode): Likewise.
29723
29724 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29725
29726 PR tree-optimization/65355
29727 * varasm.c (notice_global_symbol): Do not produce RTL.
29728 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29729 anchor.
29730 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29731 check for section anchors.
29732
29733 2015-03-10 Alan Modra <amodra@gmail.com>
29734
29735 PR target/65286
29736 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29737 to be single-arch by default. Set cpu_is_64bit for powerpc64
29738 given --with-cpu=native.
29739 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29740 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29741 and powerpc64le.
29742 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29743 rs6000_isa_flags rather than TARGET_64BIT.
29744
29745 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
29746 Kaz Kojima <kkojima@gcc.gnu.org>
29747
29748 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29749
29750 2015-03-09 Jakub Jelinek <jakub@redhat.com>
29751
29752 PR lto/65361
29753 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29754 on a TREE_BINFO, instead use BINFO_TYPE.
29755
29756 2015-03-09 Richard Biener <rguenther@suse.de>
29757
29758 PR middle-end/65270
29759 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29760 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29761 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
29762 of that. When comparing dereferences compare alignment.
29763 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29764
29765 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29766
29767 * ipa-inline-analysis.c (check_callers): Check
29768 node->can_remove_if_no_direct_calls_and_refs_p.
29769 (growth_likely_positive): Reorganize to call
29770 can_remove_if_no_direct_calls_p later.
29771 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29772 will_be_removed_from_program_if_no_direct_calls_p): Add
29773 will_inline parameter.
29774 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29775 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29776 Handle inliner case correctly.
29777
29778 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29779
29780 PR tree-optimization/63743
29781 * cfgexpand.c (reorder_operands): Also reorder if only second operand
29782 had its definition forwarded by TER.
29783
29784 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29785
29786 PR lto/65316
29787 * ipa-utils.h (types_odr_comparable): Add strict argument.
29788 * ipa-devirt.c: Fix whitespace;
29789 (odr_hasher): Remove.
29790 (odr_name_hasher, odr_vtable_hasher): New hashers.
29791 (can_be_name_hashed_p): New predicate.
29792 (hash_type_name): remove.
29793 (hash_odr_name): New.
29794 (odr_name_hasher::hash): new.
29795 (can_be_vtable_hashed_p): New.
29796 (hash_odr_vtable): New.
29797 (odr_vtable_hasher::hash): New.
29798 (types_same_for_odr): Add strict parameter.
29799 (types_odr_comparable): Likewise.
29800 (odr_name_hasher::equal): New.
29801 (odr_vtable_hasher::equal): New.
29802 (odr_name_hasher::remove): New.
29803 (odr_hash_type): Change to hash_table<odr_name_hasher>.
29804 (odr_vtable_hash_type): New.
29805 (odr_vtable_hash): New.
29806 (odr_subtypes_equivalent_p): Do strict comparsion.
29807 (add_type_duplicate): Merge type names; cleanup; avoid type
29808 duplicates.
29809 (register_odr_type): Initialize vtable hash.
29810 (build_type_inheritance_graph): Likewise
29811 (get_odr_type): Reorg to use two hashes.
29812 (dump_possible_polymorphic_call_targets): Move sanity check after debug
29813 output.
29814 (ipa_devirt): Dump type_inheritance_graph.
29815 (types_same_for_odr): Add strict mode.
29816
29817 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29818
29819 PR ipa/65334
29820 * cgraph.h (symtab_node): Add definition_alignment,
29821 can_increase_alignment_p and increase_alignment.
29822 * symtab.c (symtab_node::can_increase_alignment_p,
29823 increase_alignment_1, symtab_node::increase_alignment,
29824 symtab_node::definition_alignment): New.
29825 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29826 can_increase_alignment_p.
29827 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29828 * tree-vect-stmts.c (ensure_base_align): Likewise.
29829 * varasm.c (function_section_1): Use definition_alignment.
29830 (assemble_start_function): Likewise.
29831 (emit_local): likewise.
29832 (build_constant_desc): Likewsie.
29833 (output_constant_def_contents): Likewise.
29834 (place_block_symbol): Likewise.
29835 (output_object_block): Likewise.
29836
29837 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29838
29839 PR ipa/65316
29840 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29841 when outputting debug.
29842
29843 2015-03-07 Marek Polacek <polacek@redhat.com>
29844 Martin Uecker <uecker@eecs.berkeley.edu>
29845
29846 PR sanitizer/65280
29847 * doc/invoke.texi: Update description of -fsanitize=bounds.
29848
29849 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
29850
29851 * tree-ssa-phiopt.c (neg_replacement): Remove.
29852 (tree_ssa_phiopt_worker): Remove negate optimization.
29853
29854 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29855
29856 PR ipa/65302
29857 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29858
29859 2015-03-06 Richard Biener <rguenther@suse.de>
29860
29861 PR middle-end/64928
29862 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29863 and liveout_obstack members.
29864 (calculate_live_on_exit): Remove.
29865 (calculate_live_ranges): Change declaration.
29866 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29867 (new_tree_live_info): Adjust.
29868 (calculate_live_ranges): Delete livein when not wanted.
29869 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29870 Deal with partly deleted live info.
29871 (loe_visit_block): Remove temporary bitmap by using
29872 bitmap_ior_and_compl_into.
29873 (live_worklist): Adjust accordingly.
29874 (calculate_live_on_exit): Make static.
29875 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29876 we do not need livein.
29877
29878 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
29879
29880 * real.c (real_from_string): Fix typo in assertion.
29881
29882 2015-03-06 Alex Velenko <alex.velenko@arm.com>
29883
29884 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29885 the patch.
29886
29887 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29888
29889 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29890
29891 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
29892
29893 PR target/64342
29894 * lra-assigns.c (find_hard_regno_for): Rename to
29895 find_hard_regno_for_1. Add a new parameter.
29896 (find_hard_regno_for): New function using find_hard_regno_for_1.
29897
29898 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29899
29900 PR rtl-optimization/65067
29901 * expmed.c (store_bit_field, extract_bit_field): Reworked the
29902 strict volatile bitfield handling.
29903
29904 2015-03-05 Martin Liska <mliska@suse.cz>
29905
29906 PR ipa/65318
29907 * ipa-icf.c (sem_variable::equals): Compare variables types.
29908
29909 2015-03-05 Richard Henderson <rth@redhat.com>
29910
29911 PR target/65121
29912 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29913 correctly check weak symbol binding.
29914
29915 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
29916
29917 PR middle-end/65315
29918 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29919 needed alignment.
29920
29921 2015-03-05 Martin Liska <mliska@suse.cz>
29922
29923 * ipa-inline.c (inline_small_functions): Set default value to
29924 prevent warning during bootstrap.
29925 * tree.h: Add pragma guard that ignores false positives during
29926 bootstrap.
29927
29928 2015-03-05 Richard Biener <rguenther@suse.de>
29929
29930 PR tree-optimization/65310
29931 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29932 Properly preserve alignment of the base of the access.
29933
29934 2015-03-05 Richard Biener <rguenther@suse.de>
29935
29936 PR ipa/65270
29937 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29938 Compare dependence info.
29939
29940 2015-03-05 Richard Biener <rguenther@suse.de>
29941
29942 PR middle-end/65233
29943 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29944 tree-into-ssa.h.
29945 (walk_ssa_copies): Revert last chage. Instead do not walk
29946 SSA names registered for SSA update.
29947
29948 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29949
29950 PR ipa/65270
29951 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29952 vtable references for their containing type.
29953 (sem_function::equals_wpa): Compare TYPE_RESTRICT
29954 and type attributes.
29955
29956 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
29957
29958 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29959 before negating it.
29960 * stor-layout.c (finalize_record_size): Revert latest change.
29961
29962 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
29963
29964 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29965
29966 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29967
29968 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29969 for correct comdat handling.
29970 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29971 Likewise.
29972 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
29973 (used_from_object_file_p_worker): Remove.
29974 (cgraph_node::only_called_directly_or_alised): Add
29975 used_from_object_file_p.
29976 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
29977 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
29978 can_remove_if_no_direct_calls_and_refs_p.
29979
29980 2015-03-04 Nick Clifton <nickc@redhat.com>
29981
29982 * config/rl78/rl78.h (enum reg_class): Remove real registers from
29983 General register class.
29984 * config/rl78/rl78-real.md: Replace general register constraints
29985 with real+virtual register constraints.
29986
29987 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29988
29989 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
29990 from checking for -mhtm option.
29991
29992 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29993
29994 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
29995 (struct ipa_sra_check_caller_data): Add has_thunk field.
29996 (ipa_sra_check_caller): Check for thunk.
29997 (ipa_sra_preliminary_function_checks): Give up on function with
29998 thunks.
29999 (ipa_early_sra): Use call_for_symbol_and_aliases.
30000
30001 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
30002
30003 PR target/65249
30004 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
30005 called for __stack_chk_guard symbol.
30006
30007 2015-03-03 DJ Delorie <dj@redhat.com>
30008
30009 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
30010 inc/dec.
30011 (*addhi3_real): Likewise.
30012 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
30013 pattern to match incrementing memory.
30014 * config/rl78/predicates.md (rl78_1_2_operand): New.
30015 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
30016 it's the same and only mem.
30017 (rl78_alloc_physical_registers_op2): If there's effectively only
30018 one MEM, transcode it into HL.
30019 (rl78_far_p): Reject addresses that aren't legitimate.
30020
30021 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30022
30023 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
30024 negating it.
30025
30026 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
30027
30028 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30029
30030 Implement call0 ABI for xtensa
30031 * config/xtensa/constraints.md ("a" constraint): Include stack
30032 pointer in case of call0 ABI.
30033 ("q" constraint): Make empty in case of call0 ABI.
30034 ("D" constraint): Include stack pointer in case of call0 ABI.
30035 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
30036 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
30037 prototypes.
30038 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
30039 variable.
30040 (xtensa_regno_to_class): Make it a local variable in the
30041 function xtensa_regno_to_class.
30042 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
30043 macro, function prototype and implementation.
30044 (reg_nonleaf_alloc_order): Make it a local variable in the
30045 function order_regs_for_local_alloc.
30046 (xtensa_conditional_register_usage): New function.
30047 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
30048 (xtensa_valid_move): Allow direct moves to stack pointer
30049 register in call0 ABI.
30050 (xtensa_setup_frame_addresses): Only spill register windows in
30051 windowed ABI.
30052 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
30053 call0 ABI respectively.
30054 (xtensa_function_arg_1): Only mark a7 register for copying in
30055 windowed ABI.
30056 (xtensa_call_save_reg): New function.
30057 (compute_frame_size): Add space for callee saved register
30058 storage to the frame size in call0 ABI.
30059 (xtensa_expand_prologue): Generate code to set up stack frame
30060 and save callee-saved registers in call0 ABI.
30061 (xtensa_expand_epilogue): New function.
30062 (xtensa_set_return_address): New function.
30063 (xtensa_return_addr): Calculate return address in call0 ABI.
30064 (xtensa_builtin_saveregs): Only mark a7 register for copying and
30065 emit copying code in windowed ABI.
30066 (order_regs_for_local_alloc): Add preferred register allocation
30067 order for non-leaf function in call0 ABI.
30068 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
30069 (xtensa_asm_trampoline_template): Add trampoline generation for
30070 call0 ABI.
30071 (xtensa_trampoline_init): Add trampoline initialization for
30072 call0 ABI.
30073 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
30074 functions.
30075 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
30076 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
30077 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
30078 ABI call-used registers.
30079 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
30080 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
30081 call0 ABI.
30082 (REG_CLASS_CONTENTS): Include all registers into the preferred
30083 reload registers set, adjust the set in the
30084 xtensa_conditional_register_usage.
30085 (xtensa_regno_to_class): Drop variable declaration.
30086 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
30087 function.
30088 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
30089 respectively.
30090 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
30091 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
30092 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
30093 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
30094 location in call0 ABI.
30095 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
30096 stack adjustment size when handling exception.
30097 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
30098 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
30099 definitions.
30100 ("return" pattern): Generate ret.n/ret in call0 ABI.
30101 ("epilogue" pattern): Expand epilogue.
30102 ("nonlocal_goto" pattern): Use default in call0 ABI.
30103 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
30104 emit eh_set_a0_* depending on ABI.
30105 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
30106 ("eh_set_a0_call0", "blockage"): New patterns.
30107
30108 2015-03-03 Martin Liska <mliska@suse.cz>
30109
30110 PR ipa/65287
30111 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
30112
30113 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30114
30115 PR 65138/target
30116 * config/rs6000/rs6000-tables.opt: Regenerate table.
30117
30118 2015-03-03 Renlin Li <renlin.li@arm.com>
30119
30120 * doc/md.texi (@item ^): Change ? into ^.
30121
30122 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
30123
30124 * doc/tm.texi: Regenerated.
30125
30126 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30127
30128 * builtins.c (expand_builtin_return_addr): Add
30129 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
30130 surrounding #ifdef.
30131 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
30132 definition to 1.
30133 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
30134 Likewise.
30135 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
30136 undefined.
30137 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
30138 paragraph.
30139
30140 2015-03-03 Martin Jambor <mjambor@suse.cz>
30141 Eric Botcazou <ebotcazou@adacore.com>
30142
30143 * tree-sra.c (ipa_sra_check_caller_data): New type.
30144 (has_caller_p): Removed.
30145 (ipa_sra_check_caller): New function.
30146 (ipa_sra_preliminary_function_checks): Use it.
30147
30148 2015-03-03 Martin Liska <mliska@suse.cz>
30149
30150 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
30151 instead of if branch.
30152
30153 2015-03-03 Martin Liska <mliska@suse.cz>
30154
30155 PR ipa/65282
30156 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
30157
30158 2015-03-23 Jeff Law <law@redhat.com>
30159
30160 PR tree-optimization/65241
30161 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
30162 hash table if INSERT is true.
30163
30164 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30165
30166 PR target/65296
30167 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
30168
30169 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30170
30171 PR target/64331
30172 * config/avr/avr.c (context.h, tree-pass.h): Include them.
30173 (avr_pass_data_recompute_notes): New static variable.
30174 (avr_pass_recompute_notes): New class.
30175 (avr_register_passes): New static function.
30176 (avr_option_override): Call it.
30177
30178 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30179
30180 Fix various problems with specs file generation.
30181
30182 PR target/65296
30183 * config.gcc (extra_gcc_objs) [avr]: Remove.
30184 * config/avr/driver-avr.c: Remove file.
30185 * config/avr/t-avr (driver-avr.o): Remove rule.
30186 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
30187 INCLUDES to build. Depend on TM_H.
30188 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
30189 build warnings. Fix non-matching types and non-existing %-codes.
30190 (tm.h): Include.
30191 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
30192 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
30193 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
30194 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
30195 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
30196 (LIBGCC_SPEC): Remove definitions.
30197
30198 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30199
30200 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30201 to create a register in testing mode.
30202
30203 2015-03-03 Martin Liska <mliska@suse.cz>
30204 Jan Hubicka <hubicka@ucw.cz>
30205
30206 PR ipa/65263
30207 * cgraph.c (cgraph_node::has_thunk_p): New function.
30208 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30209 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30210 (sem_function::merge): Assert is changed.
30211
30212 2015-03-03 Martin Liska <mliska@suse.cz>
30213 Martin Jambor <mjambor@suse.cz>
30214
30215 PR ipa/65087
30216 * ipa-icf.c (sem_item_optimizer::execute): Change function
30217 return value to boolean.
30218 (sem_item_optimizer::merge_classes): Likewise.
30219 (ipa_icf_driver): Return TODO_remove_functions in case there's
30220 a merge operation processed.
30221 * ipa-icf.h: Change function return value to boolean.
30222
30223 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30224
30225 PR 65138/target
30226 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30227 processor type for 64-bit little endian PowerPC.
30228
30229 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30230 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
30231 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
30232 printing built-in mask so it does not pass NULL pointers.
30233
30234 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30235 -mcpu=powerpc64le.
30236
30237 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
30238
30239 PR target/58158
30240 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30241 !ISA_HAS_FP_CONDMOVE.
30242
30243 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
30244
30245 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30246 reload_completed.
30247
30248 2015-03-02 Ulrich Drepper <drepper@gmail.com>
30249
30250 * doc/invoke.texi (Options for Code Generation Conventions):
30251 Fix URL of DSO paper.
30252
30253 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30254
30255 PR ipa/65130
30256 * ipa-inline.c (check_callers): Looks for recursion.
30257 (inline_to_all_callers): Give up on uninlinable or recursive edges.
30258 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30259 summary of inline clones.
30260 (do_estimate_growth_1): Fix recursion check.
30261
30262 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30263
30264 PR ipa/64988
30265 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30266 comdat groups.
30267
30268 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30269 Aldy Hernandez <aldyh@redhat.com>
30270
30271 PR lto/65276
30272 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30273 when checking TYPE_BINFO.
30274
30275 2015-03-02 Richard Biener <rguenther@suse.de>
30276
30277 PR ipa/65270
30278 * ipa-icf-gimple.c: Include builtins.h.
30279 (func_checker::compare_memory_operand): Compare base alignment.
30280
30281 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30282
30283 PR target/65184
30284 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
30285 passed by reference.
30286
30287 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30288
30289 PR target/65183
30290 * tree-chkp.c (chkp_check_lower): Don't check against
30291 zero bounds for already instrumented functions.
30292 (chkp_check_upper): Likewise.
30293 (chkp_fini): Clean pass local data to avoid wrong reusage.
30294
30295 2015-02-28 Martin Liska <mliska@suse.cz>
30296 Jan Hubicka <hubicka@ucw.cz>
30297
30298 * ipa-icf.c (sem_variable::equals): Improve debug output;
30299 get variable constructor.
30300 (sem_variable::parse): Do not filter out too early; give up on
30301 volatile and register vars.
30302 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30303 variables.
30304 * ipa-icf.h (sem_variable::init): Do not set ctor.
30305 (sem_variable::ctor): Remove.
30306
30307 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
30308
30309 PR middle-end/65233
30310 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30311
30312 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30313
30314 * ipa-icf.c: Include stor-layout.h
30315 (sem_function::compare_cgraph_references): Rename to ...
30316 (sem_item::compare_cgraph_references): ... this one.
30317 (sem_variable::equals_wpa): New function
30318 (sem_variable::equals): Do not check stuff already verified by
30319 equals_wpa.
30320 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30321 * ipa-icf.h (sem_item): Add compare_cgraph_references.
30322 (sem_function): Remove compare_cgraph_references.
30323 (sem_variable): Turns equals_wpa into non-inline.
30324
30325 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30326
30327 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30328 (sem_item::add_expr): New function.
30329 (sem_function::hash_stmt): Handle operands of most statements.
30330 (sem_variable::get_hash): Hash the actual constructor.
30331 * ipa-icf.h (sem_item): Add add_expr.
30332 (sem_function): Update prototype of hash_stmt
30333
30334 2015-02-28 Martin Liska <mliska@suse.cz>
30335 Jan Hubicka <hubicka@ucw.cz>
30336
30337 PR ipa/65245
30338 * ipa-icf-gimple.c (func_checker::compare_function_decl):
30339 Remove.
30340 (func_checker::compare_variable_decl): Skip symtab vars.
30341 (func_checker::compare_cst_or_decl): Update.
30342 * ipa-icf.c (sem_function::parse): Do not consider aliases.
30343 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
30344 use correct symtab predicates.
30345 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
30346 (sem_variable::parse): Update comment.
30347 (sem_item_optimizer::build_graph): Consider ultimate aliases
30348 for references.
30349
30350 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30351
30352 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
30353 of OBJ_TYPE_REF.
30354
30355 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30356
30357 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
30358 (sem_variable::merge) Likewise.
30359
30360 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30361
30362 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
30363 target; also match flag_ipa_devirt.
30364
30365 2015-03-01 Martin Liska <mliska@suse.cz>
30366 Jan Hubicka <hubicka@ucw.cz>
30367
30368 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30369 Validate variable alignment.
30370 * ipa-icf.c (sem_function::equals_private): Be more precise
30371 about non-common function attributes.
30372 (sem_variable::equals): Likewise.
30373
30374 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30375
30376 PR ipa/65237
30377 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30378 across COMDAT group boundary.
30379
30380 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30381
30382 PR ipa/65232
30383 * ipa-icf.c (clear_decl_rtl): New function.
30384 (sem_function::merge): Clear RTL before forming alias.
30385 (sem_variable::merge): Clear RTL before forming alias.
30386
30387 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30388
30389 PR ipa/65236
30390 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30391
30392 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
30393
30394 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30395 to neon_to_gp<q>.
30396
30397 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30398
30399 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30400 a typo in the description.
30401
30402 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30403
30404 PR target/64317
30405 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30406 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30407 * lra-constraints.c: Include "params.h".
30408 (EBB_PROBABILITY_CUTOFF): Use
30409 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30410 (lra_inheritance): Use '<' instead of '<=' for
30411 EBB_PROBABILITY_CUTOFF.
30412 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30413 Document change.
30414
30415 2015-02-27 Martin Liska <mliska@suse.cz>
30416
30417 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30418 vector length condition.
30419
30420 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
30421
30422 * doc/extend.texi (x86 transactional memory intrinsics):
30423 Reorganize discussion of _xbegin. Clarify that the return
30424 value is a bit mask. Expand example and move to end of section.
30425
30426 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30427 Aldy Hernandez <aldyh@redhat.com>
30428
30429 PR rtl-optimization/65220
30430 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30431
30432 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30433
30434 PR target/65032
30435 * lra-remat.c (update_scratch_ops): New.
30436 (do_remat): Call it.
30437 * lra.c (lra_register_new_scratch_op): New. Take code from ...
30438 (remove_scratches): ... here.
30439 * lra-int.h (lra_register_new_scratch_op): New prototype.
30440
30441 2015-02-27 Marek Polacek <polacek@redhat.com>
30442
30443 PR c/65040
30444 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30445 -Wformat-signedness anymore.
30446
30447 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30448
30449 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30450 function.
30451 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30452
30453 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30454
30455 * config/s390/s390.c (enum s390_builtin):
30456 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30457 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30458 (s390_init_builtins): Generate new builtin functions.
30459 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30460 (s390_sfpc, s390_efpc): New pattern definitions.
30461
30462 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30463
30464 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30465 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30466 (s390_builtin_decls): New array.
30467 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30468 (s390_builtin_decl): New function.
30469 (TARGET_BUILTIN_DECL): Define macro.
30470
30471 2015-02-27 Richard Biener <rguenther@suse.de>
30472
30473 PR middle-end/63175
30474 * builtins.c (get_object_alignment_2): Make sure to re-apply
30475 the ANDed mask after recursing to its operand gets us a new
30476 misalignment bit position.
30477
30478 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
30479 Martin Liska <mliska@suse.cz>
30480
30481 PR bootstrap/65150
30482 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30483 Use address_matters_p.
30484 (redirect_all_callers, set_addressable): New functions.
30485 (sem_function::merge): Reorganize and fix merging issues.
30486 (sem_variable::merge): Likewise.
30487 (sem_variable::compare_sections): Remove.
30488 * common.opt (fmerge-all-constants, fmerge-constants): Remove
30489 Optimization flag.
30490 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30491 redirect them.
30492 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30493 decl is used.
30494 (address_matters_1): New function.
30495 (symtab_node::address_matters_p): New function.
30496 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30497 check for merged flag.
30498 * cgraph.h (address_matters_p): Declare.
30499 (symtab_node::address_taken_from_non_vtable_p): Remove.
30500 (symtab_node::address_can_be_compared_p): New method.
30501 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30502 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30503 Remove.
30504 (comdat_can_be_unshared_p_1) Use address_matters_p.
30505 (update_vtable_references): Fix formating.
30506 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30507 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30508 * cgraphclones.c: Preserve merged and icf_merged flags.
30509
30510 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
30511
30512 * doc/extend.texi (Function Attributes): Fix spelling and typos.
30513 (Label Attributes): Likewise.
30514 (Cilk Plus Builtins): Likewise.
30515 (ARC SIMD Built-in Functions): Likewise.
30516 (ARM C Language Extensions (ACLE)): Likewise.
30517 (PowerPC Built-in Functions): Likewise.
30518 (PowerPC Hardware Transactional Memory Built-in Functions):
30519 Likewise.
30520
30521 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30522
30523 PR tree-optimization/65216
30524 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30525 new stmt and new SSA_NAME for lhs whenever the arguments have
30526 changed and weren't just swapped. Fix comment typo.
30527
30528 PR tree-optimization/65215
30529 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30530 for PDP endian targets.
30531 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30532 Fix up formatting issues.
30533 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
30534 size is smaller than the original, adjust MEM_REF offset by the
30535 difference of sizes. Use is_gimple_mem_ref_addr instead of
30536 is_gimple_min_invariant test to avoid adding address temporaries.
30537
30538 2015-02-26 Martin Liska <mliska@suse.cz>
30539 Jan Hubicka <hubicka@ucw.cz>
30540
30541 PR ipa/64693
30542 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30543 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30544 (sem_item_optimizer::process_cong_reduction): Include division by
30545 sensitive references.
30546 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30547 * ipa-ref.c (ipa_ref::address_matters_p): New function.
30548 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30549
30550 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
30551
30552 PR target/65192
30553 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30554 Remove.
30555 * config/avr/avr.c: Same.
30556 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30557 Refuse any constant address not in 0..0xbf.
30558 * config/avr/avr.md (*mov<mode>, *movsf): Remove
30559 tiny_valid_direct_memory_access_range from insn conditions.
30560 (mov<mode>): Don't special-case expansion of avrtiny addresses.
30561
30562 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
30563
30564 PR target/61142
30565 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30566 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30567 * config/sh/predicates.md (const_logical_operand): New predicate.
30568 * config/sh/sh.md: Add new peephole2 patterns.
30569
30570 2015-02-26 Marek Polacek <polacek@redhat.com>
30571
30572 PR ipa/65008
30573 * ipa-inline.c (early_inliner): Recompute inline parameters.
30574
30575 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30576
30577 PR target/65171
30578 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30579 instructions with TImode operands are included in the analysis.
30580
30581 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30582
30583 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30584 of an EDGE_FSM_THREAD.
30585
30586 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
30587
30588 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30589
30590 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
30591
30592 PR debug/46102
30593 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30594
30595 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30596
30597 PR tree-optimization/65048
30598 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30599 (thread_through_all_blocks): Call valid_jump_thread_path.
30600 Remove invalid FSM jump-thread paths.
30601
30602 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30603
30604 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30605 (ipa_write_optimization_summaries): Likewise.
30606 * tree-streamer.h: Include data-streamer.h.
30607 (streamer_mode_table): Declare extern variable.
30608 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30609 * lto-streamer-out.c (lto_output_init_mode_table,
30610 lto_write_mode_table): New functions.
30611 (produce_asm_for_decls): Call lto_write_mode_table when streaming
30612 offloading LTO.
30613 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30614 (lto_create_simple_input_block): Add mode_table argument to the
30615 lto_input_block constructors.
30616 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30617 Likewise.
30618 * data-streamer-in.c (string_for_index): Likewise.
30619 * ipa-inline-analysis.c (inline_read_section): Likewise.
30620 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30621 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30622 * lto-streamer-in.c (lto_read_body_or_constructor,
30623 lto_input_toplevel_asms): Likewise.
30624 (lto_input_mode_table): New function.
30625 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30626 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30627 Use bp_pack_machine_mode.
30628 * real.h (struct real_format): Add name field.
30629 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30630 (class lto_input_block): Add mode_table member.
30631 (lto_input_block::lto_input_block): Add mode_table_ argument,
30632 initialize mode_table.
30633 (struct lto_file_decl_data): Add mode_table field.
30634 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30635 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30636 unpack_ts_decl_common_value_fields,
30637 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30638 * tree-streamer.c (streamer_mode_table): New variable.
30639 * real.c (ieee_single_format, mips_single_format,
30640 motorola_single_format, spu_single_format, ieee_double_format,
30641 mips_double_format, motorola_double_format,
30642 ieee_extended_motorola_format, ieee_extended_intel_96_format,
30643 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30644 ibm_extended_format, mips_extended_format, ieee_quad_format,
30645 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30646 decimal_single_format, decimal_double_format, decimal_quad_format,
30647 ieee_half_format, arm_half_format, real_internal_format): Add name
30648 field.
30649 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30650
30651 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
30652
30653 PR target/65161
30654 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30655 reordering for selective scheduling.
30656
30657 2015-02-26 Terry Guo <terry.guo@arm.com>
30658
30659 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30660 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30661 (arm_arch_no_volatile_ce): Declare new global variable.
30662 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30663 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30664 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30665 (TARGET_NO_VOLATILE_CE): New macro.
30666 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30667 volatile memory access in IT block
30668
30669 2015-02-25 Kai Tietz <ktietz@redhat.com>
30670
30671 PR tree-optimization/61917
30672 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30673 that reduc_def_stmt is null.
30674
30675 2015-02-25 Martin Liska <mliska@suse.cz>
30676
30677 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30678 hard register variables.
30679
30680 2015-02-25 Kai Tietz <ktietz@redhat.com>
30681
30682 PR target/64212
30683 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30684 (symtab::noninterposable_alias): Likewise.
30685
30686 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
30687
30688 PR target/65167
30689 * config/i386/i386.c (ix86_function_arg_regno_p): Support
30690 bounds registers.
30691 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30692
30693 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
30694
30695 PR target/64997
30696 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30697 as split condition; force split via '#' in output pattern.
30698
30699 2015-02-25 Richard Biener <rguenther@suse.de>
30700 Kai Tietz <ktietz@redhat.com>
30701
30702 PR tree-optimization/61917
30703 * tree-vect-loop.c (vectorizable_reduction): Allow
30704 vect_internal_def without reduction to exit graceful.
30705
30706 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30707
30708 PR target/65196
30709 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30710 only with NONDEBUG_INSN_P.
30711
30712 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30713
30714 Use variadic macros with avr-log.c.
30715
30716 * config/avr/avr-protos.h (avr_vdump): New prototype.
30717 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30718 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30719 * config/avr/avr-log.c: Adjust comments.
30720 (avr_vdump): New function.
30721 (avr_vadump): Pass caller as 2nd argument instead of format string.
30722 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30723 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30724
30725 2015-02-25 Jakub Jelinek <jakub@redhat.com>
30726
30727 PR lto/64374
30728 * target.def (target_option_stream_in): New target hook.
30729 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30730 targetm.target_option.post_stream_in if non-NULL.
30731 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30732 * doc/tm.texi: Updated.
30733 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30734 function.
30735 (TARGET_OPTION_POST_STREAM_IN): Redefine.
30736
30737 2015-02-24 Jeff Law <law@redhat.com>
30738
30739 PR target/65117
30740 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30741 of operand 0 and operand 2.
30742 (zero_cost_loop_end, loop_end): Similarly.
30743
30744 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
30745
30746 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30747 CXX_MEM_STAT_INFO.
30748
30749 2015-02-24 DJ Delorie <dj@redhat.com>
30750
30751 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30752 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30753 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30754 instead of hardcoding SImode.
30755
30756 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
30757
30758 * omp-low.c (create_omp_child_function): Tag entrypoint
30759 functions with a special attribute.
30760
30761 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30762
30763 PR target/65058
30764 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30765
30766 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
30767
30768 PR rtl-optimization/65123
30769 * lra-remat.c (operand_to_remat): Check hard regs in insn
30770 definition too.
30771
30772 2015-02-24 Nick Clifton <nickc@redhat.com>
30773
30774 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30775 to the assembler.
30776
30777 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
30778
30779 PR libgomp/64625
30780 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30781 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30782 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30783 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30784 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30785 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30786 (BUILT_IN_GOACC_PARALLEL): Specify as
30787 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30788 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30789 * builtin-types.def
30790 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30791 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30792 Remove function types.
30793 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30794 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30795 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30796 New function types.
30797
30798 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
30799
30800 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30801
30802 2015-02-24 Jakub Jelinek <jakub@redhat.com>
30803
30804 PR tree-optimization/65170
30805 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30806 if val[1] < 0, clear also val[2] and return 3.
30807
30808 2015-02-24 Alan Modra <amodra@gmail.com>
30809
30810 PR target/65172
30811 * config/rs6000/rs6000.c (get_memref_parts): Only return true
30812 when *base is a reg. Handle nested plus addresses. Simplify
30813 pre_modify test.
30814
30815 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
30816
30817 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30818 use natural alignment when optimizing for size.
30819
30820 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
30821
30822 PR target/65153
30823 * config/sh/sh.md (movsicc_true+3): Remove peephole.
30824 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30825 * config/sh/sh.c (replace_n_hard_rtx): Remove.
30826
30827 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
30828
30829 PR fortran/63427
30830 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30831 too big for a wide_int. Implement missing wrapping operation.
30832
30833 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
30834
30835 PR target/65163
30836 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30837 instead of const_int 4294901760.
30838
30839 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
30840
30841 * config/avr/t-avr: Fix typo in comment.
30842
30843 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
30844
30845 * doc/rtl.texi (fma): Clarify documentation.
30846
30847 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
30848
30849 PR debug/58123
30850 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30851 over input_location.
30852
30853 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30854
30855 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30856 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30857 restrict alignments to absolute_biggest_alignment.
30858 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30859 Define.
30860 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30861 * doc/tm.texi: Regenerate.
30862 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30863
30864 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
30865
30866 PR target/64172
30867 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30868
30869 2015-02-20 Richard Biener <rguenther@suse.de>
30870
30871 PR tree-optimization/65136
30872 * tree-ssa-propagate.c: Include cfgloop.h.
30873 (replace_phi_args_in): Avoid replacing loop latch edge PHI
30874 arguments with constants.
30875
30876 2015-02-20 Jakub Jelinek <jakub@redhat.com>
30877 Martin Liska <mliska@suse.cz>
30878
30879 PR target/63892
30880 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30881 don't try to create_thunk if stdarg_p. If
30882 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30883 redirect_callers if possible.
30884 (sem_item_optimizer::execute): Call unregister_hooks here...
30885 (ipa_icf_driver): ... instead of here.
30886
30887 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30888
30889 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30890 Mark operand 0 as earlyclobber in 2nd alternative.
30891 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30892 Write negated shift amount into QI lowpart operand 0 and use it
30893 in the shift step.
30894 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30895
30896 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30897
30898 * cgraph.h (clone_function_name_1): Declare.
30899 * cgraphclones.c (clone_function_name_1): New function.
30900 (clone_function_name): Use it.
30901 * lto-partition.c: Include "stringpool.h".
30902 (must_not_rename, maybe_rewrite_identifier)
30903 (validize_symbol_for_target): New static functions.
30904 (privatize_symbol_name): Use must_not_rename.
30905 (promote_symbol): Call validize_symbol_for_target.
30906 (lto_promote_cross_file_statics): Likewise.
30907 (lto_promote_statics_nonwpa): Likewise.
30908
30909 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
30910
30911 PR target/64452
30912 * config/avr/avr.md (pushhi_insn): New insn.
30913 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30914
30915 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30916 Jakub Jelinek <jakub@redhat.com>
30917
30918 * tree-streamer.c (preload_common_nodes): Don't preload
30919 TI_VA_LIST* for offloading.
30920 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30921 in_lto_p.
30922
30923 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
30924
30925 * config/pa/pa.c (pa_emit_move_sequence): Always force
30926 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
30927 note on insn.
30928
30929 * config/pa/pa.c (pa_reloc_rw_mask): New function.
30930 (TARGET_ASM_RELOC_RW_MASK): Define.
30931 (pa_cannot_force_const_mem): Revert previous change.
30932
30933 2015-02-19 Martin Jambor <mjmabor@suse.cz>
30934 Jan Hubicka <hubicka@ucw.cz>
30935
30936 PR ipa/65028
30937 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30938 across jump functions.
30939
30940 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
30941
30942 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30943
30944 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
30945
30946 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30947
30948 2015-02-19 Richard Henderson <rth@redhat.com>
30949
30950 PR middle-end/65074
30951 * varasm.c (default_binds_local_p_2): Don't test node->definition;
30952 test DECL_EXTERNAL independent of symtab_node.
30953
30954 2015-02-19 Jakub Jelinek <jakub@redhat.com>
30955
30956 PR lto/65012
30957 * varpool.c (varpool_node::get_constructor): Return early
30958 if this->lto_file_data is NULL.
30959
30960 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30961
30962 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30963 (rank_for_schedule_debug): Update.
30964 (ready_sort): Make static. Move sorting logic to ...
30965 (ready_sort_debug, ready_sort_real): New static functions.
30966 (schedule_block): Sort both debug insns and real insns in preparation
30967 for ready list trimming. Improve debug output.
30968 * sched-int.h (ready_sort): Remove global declaration.
30969
30970 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
30971
30972 * ipa-icf.c (sem_function::equals_private): Adjust.
30973 (sem_function::bb_dict_test): Take a vec<int> * instead of
30974 auto_vec<int>.
30975 * ipa-icf.h (bb_dict_test): Likewise.
30976
30977 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30978
30979 PR gcov-profile/64634
30980 * tree-eh.c (frob_into_branch_around): Fix up typos
30981 in function comment.
30982 (lower_catch): Put eh_seq resulting from EH lowering of
30983 the cleanup sequence after the cleanup rather than before it.
30984
30985 2015-02-18 Tom de Vries <tom@codesourcery.com>
30986
30987 * common.opt (fstdarg-opt): New option.
30988 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
30989 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
30990 (@item -fstdarg-opt): New item.
30991
30992 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
30993
30994 PR target/65064
30995 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
30996 for common symbols.
30997
30998 2015-02-18 Jakub Jelinek <jakub@redhat.com>
30999
31000 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
31001 insn-modes.h.
31002 (ALL_HOST_OBJS): Add mkoffload.o.
31003 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
31004
31005 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
31006
31007 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
31008 (compare_virtual_tables): Be smarter about skipping typeinfos;
31009 do sane output on virtual table table mismatch.
31010 (warn_odr): Be ready for forward declarations of enums;
31011 output sane info on base mismatch and virtual table mismatch.
31012 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
31013 when only one type is polymorphic.
31014 (get_odr_type): Fix hashtable corruption.
31015 (dump_odr_type): Dump mangled names.
31016
31017 2015-02-18 Richard Biener <rguenther@suse.de>
31018
31019 PR tree-optimization/65063
31020 * tree-predcom.c (determine_unroll_factor): Return 1 if we
31021 have replaced looparound PHIs.
31022
31023 2015-02-18 Martin Liska <mliska@suse.cz>
31024
31025 * lto-streamer.c (lto_streamer_init): Encapsulate
31026 streamer_check_handled_ts_structures with checking macro.
31027
31028 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31029
31030 PR ipa/65087
31031 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
31032 section if !implicit_section.
31033 (cgraph_node::create_version_clone_with_body): Likewise.
31034 * trans-mem.c (ipa_tm_create_version): Likewise.
31035
31036 2015-02-18 Richard Biener <rguenther@suse.de>
31037
31038 PR tree-optimization/62217
31039 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
31040 into BIVs.
31041
31042 2015-02-18 Marek Polacek <polacek@redhat.com>
31043
31044 PR sanitizer/65081
31045 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
31046 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
31047 is in range [-16K, -1]. Don't issue run-time error if
31048 (ptr > ptr + offset).
31049
31050 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
31051
31052 * doc/install.texi (nvptx-*-none): New section.
31053 * doc/invoke.texi (Nvidia PTX Options): Likewise.
31054 * config/nvptx/nvptx.opt: Update.
31055
31056 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
31057 (access_check): New functions, copied from
31058 config/i386/intelmic-mkoffload.c.
31059 (main): For non-installed testing, look in all COMPILER_PATHs for
31060 GCC_INSTALL_NAME.
31061
31062 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
31063
31064 2015-02-18 Andrew Pinski <apinski@cavium.com>
31065 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31066
31067 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
31068 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
31069
31070 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
31071
31072 * ipa-visibility.c (function_and_variable_visibility): Only
31073 check locality if node is not already local.
31074 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31075 call_for_symbol_and_aliases instead of
31076 call_for_symbol_thunks_and_aliases.
31077 (ipa_inline): Likewise.
31078 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31079 first walk aliases.
31080 * ipa.c (symbol_table::remove_unreachable_nodes): Use
31081 call_for_symbol_and_aliases.
31082 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31083 (ipa_propagate_frequency_1): Use it; use opt_for_fn
31084 (ipa_propagate_frequency): Update.
31085 (ipa_profile): Add opt_for_fn gueards.
31086
31087 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
31088
31089 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
31090 * doc/invoke.texi (SH options): Document it.
31091 * config/sh/sh.c (sh_insn_length_adjustment): Check
31092 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
31093
31094 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
31095
31096 * common.opt (fipa-cp-alignment): New.
31097 * ipa-cp.c (ipcp_store_alignment_results): Check
31098 flag_ipa_cp_alignment.
31099 * opts.c (default_options_table): Enable -fipa-cp-alignment for
31100 -O2.
31101 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
31102 * doc/invoke.texi: Document -fipa-cp-alignment.
31103
31104 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
31105
31106 PR target/64793
31107 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
31108 to nil. Adjust comments.
31109
31110 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
31111
31112 * ipa-visibility.c (function_and_variable_visibility): Only
31113 check locality if node is not already local.
31114 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31115 call_for_symbol_and_aliases instead of
31116 call_for_symbol_thunks_and_aliases.
31117 (ipa_inline): Likewise.
31118 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31119 first walk aliases.
31120 * ipa.c (symbol_table::remove_unreachable_nodes): Use
31121 call_for_symbol_and_aliases.
31122 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31123 (ipa_propagate_frequency_1): Use it; use opt_for_fn
31124 (ipa_propagate_frequency): Update.
31125 (ipa_profile): Add opt_for_fn guards.
31126
31127 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
31128
31129 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
31130 skipping of "strange" tokens.
31131
31132 2015-02-17 Jeff Law <law@redhat.com>
31133
31134 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
31135 obsolete comment.
31136
31137 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
31138
31139 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
31140 as forcing a HARD_DEP between instructions, thereby
31141 disallowing rewriting to break dependencies.
31142
31143 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31144
31145 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
31146 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
31147 variables in boundary that have no inlitalizer encoded and are
31148 not aliases.
31149 * varasm.c (default_binds_local_p_2): External definitions do not
31150 count as definitions here.
31151
31152 2015-02-16 Jeff Law <law@redhat.com>
31153
31154 PR tree-optimization/64823
31155 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
31156 statements.
31157 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31158 threading through blocks with PHIs, but no statements.
31159 (thread_through_normal_block): Distinguish between blocks where
31160 we did not process all the statements and blocks with no statements.
31161
31162 2015-02-16 Jakub Jelinek <jakub@redhat.com>
31163 James Greenhalgh <james.greenhalgh@arm.com>
31164
31165 PR ipa/64963
31166 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
31167 section if not linkonce. Fix up formatting.
31168 (cgraph_node::create_version_clone_with_body): Copy section.
31169 * trans-mem.c (ipa_tm_create_version): Likewise.
31170
31171 2015-02-16 Richard Biener <rguenther@suse.de>
31172
31173 PR tree-optimization/65077
31174 * tree-ssa-structalias.c (get_constraint_for_1): Handle
31175 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
31176 (find_func_aliases): Allow float values to carry pointers again.
31177
31178 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31179
31180 * doc/install.texi (Specific): Reorder targets list to put
31181 aarch64 in alphabetical order. Add a link to aarch64*-*-*
31182 from the top menu.
31183
31184 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31185 David Edelsohn <dje.gcc@gmail.com>
31186
31187 PR target/65058
31188 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
31189 mapping class to external variable or function reference.
31190 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
31191 mapping class.
31192
31193 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
31194
31195 PR target/53348
31196 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
31197 ASM_WEAKEN_DECL if defined.
31198
31199 2015-02-16 Richard Biener <rguenther@suse.de>
31200
31201 PR lto/65015
31202 * varasm.c (default_file_start): For LTO produced units
31203 emit <artificial> as file directive.
31204
31205 2015-02-16 Richard Biener <rguenther@suse.de>
31206
31207 PR tree-optimization/63593
31208 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31209 stmts and releasing SSA names until...
31210 (execute_pred_commoning): ... after processing all chains.
31211
31212 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31213
31214 PR ipa/65059
31215 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31216 external functions.
31217
31218 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
31219
31220 * doc/bugreport.texi: Adjust section titles throughout the file
31221 to use "Title Case".
31222 * doc/extend.texi: Likewise.
31223 * doc/gcov.texi: Likewise.
31224 * doc/implement-c.texi: Likewise.
31225 * doc/implement-cxx.texi: Likewise.
31226 * doc/invoke.texi: Likewise.
31227 * doc/objc.texi: Likewise.
31228 * doc/standards.texi: Likewise.
31229 * doc/trouble.texi: Likewise.
31230
31231 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
31232
31233 * cgraph.h (symtab_node::has_aliases_p): Simplify.
31234 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31235 * tree.c (lookup_binfo_at_offset): Make static.
31236 (get_binfo_at_offset): Do not shadow offset; add explanatory
31237 comment.
31238
31239 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
31240
31241 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31242 for all floading point loads and stores except those using a register
31243 index address.
31244 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31245 to a register.
31246
31247 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31248
31249 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31250 (do_estimate_growth_1): Record if any uninlinable edge was seen.
31251 (estimate_growth): Handle uninlinable edges correctly.
31252 (check_callers): New.
31253 (growth_likely_positive): Handle aliases correctly.
31254
31255 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31256
31257 * ipa-chkp.c: Use iterate_direct_aliases.
31258 * symtab.c (resolution_used_from_other_file_p): Move inline.
31259 (symtab_node::create_reference): Fix formating.
31260 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31261 (symtab_node::iterate_reference): Move inline.
31262 (symtab_node::iterate_referring): Move inline.
31263 (symtab_node::iterate_direct_aliases): Move inline.
31264 (symtab_node::used_from_object_file_p_worker): Inline into ...
31265 (symtab_node::used_from_object_file_p): ... this one; move inline.
31266 (symtab_node::call_for_symbol_and_aliases): Move inline;
31267 use iterate_direct_aliases.
31268 (symtab_node::call_for_symbol_and_aliases_1): New method.
31269 (cgraph_node::call_for_symbol_and_aliases): Move inline;
31270 use iterate_direct_aliases.
31271 (cgraph_node::call_for_symbol_and_aliases_1): New method.
31272 (varpool_node::call_for_node_and_aliases): Rename to ...
31273 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31274 use iterate_direct_aliases.
31275 (varpool_node::call_for_symbol_and_aliases_1): New method.
31276 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31277 (ipa_discover_readonly_nonaddressable_var): Update.
31278 * ipa-devirt.c: Fix formating.
31279 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31280 Move inline.
31281 (cgraph_node::call_for_symbol_and_aliases): Move inline.
31282 (cgraph_node::call_for_symbol_and_aliases_1): New function..
31283 * cgraph.h (used_from_object_file_p_worker): Remove.
31284 (resolution_used_from_other_file_p): Move inline.
31285 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31286 (symtab_node::iterate_reference): Move inline.
31287 (symtab_node::iterate_referring): Move inline.
31288 (symtab_node::iterate_direct_aliases): Move inline.
31289 (symtab_node::used_from_object_file_p_worker): Inline into ...
31290 (symtab_node::used_from_object_file_p): Move inline.
31291 * tree-emutls.c (ipa_lower_emutls): Update.
31292 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31293 (varpool_node::call_for_node_and_aliases): Remove.
31294
31295 2015-02-14 Jakub Jelinek <jakub@redhat.com>
31296
31297 PR tree-optimization/62209
31298 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31299 op == range->exp, insert seq and gimplified code after labels
31300 instead of after the phi.
31301
31302 2015-02-13 Jeff Law <law@redhat.com>
31303
31304 PR bootstrap/65060
31305 Revert my change for tree-optimization/64823.
31306
31307 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31308
31309 PR tree-optimization/65053
31310 * tree-ssa-phiopt.c (value_replacement): When moving assign before
31311 cond, either reset VR on lhs or set it to phi result VR.
31312
31313 2015-02-13 Jeff Law <law@redhat.com>
31314
31315 PR tree-optimization/64823
31316 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31317 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31318 threading through blocks with PHIs, but no statements.
31319 (thread_through_normal_block): Distinguish between blocks where
31320 we did not process all the statements and blocks with no statements.
31321
31322 PR rtl-optimization/47477
31323 * match.pd (convert (plus/minus (convert @0) (convert @1): New
31324 simplifier to narrow arithmetic.
31325
31326 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
31327
31328 PR ipa/65028
31329 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31330 polymorphic call info when type is not known to be preserved.
31331
31332 2015-02-13 Maritn Jambor <mjambor@suse.cz>
31333
31334 PR ipa/65028
31335 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31336 (inline_call): Use it.
31337
31338 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
31339
31340 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
31341 GOMP_DEVICE_NVIDIA_PTX.
31342
31343 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31344
31345 PR ipa/65034
31346 * stmt.c (emit_case_nodes): Use void_type_node instead of
31347 NULL_TREE as LABEL_DECL type.
31348
31349 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
31350
31351 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
31352 constraints.
31353 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
31354 symbolic references to data to be forced to constant memory on the
31355 SOM target.
31356
31357 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
31358
31359 PR tree-optimization/65002
31360 * tree-cfg.c (pass_data_fixup_cfg): Don't update
31361 SSA on start.
31362 * tree-sra.c (some_callers_have_no_vuse_p): New.
31363 (ipa_early_sra): Reject functions whose callers
31364 assume function is read only.
31365
31366 2015-02-13 Richard Biener <rguenther@suse.de>
31367
31368 PR lto/65015
31369 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31370 for LTO produced CUs.
31371
31372 2015-02-13 Bin Cheng <bin.cheng@arm.com>
31373
31374 PR tree-optimization/64705
31375 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31376 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31377 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31378 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31379 expand_simple_operations.
31380
31381 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
31382 Richard Henderson <rth@redhat.com>
31383
31384 PR rtl/32219
31385 * cgraphunit.c (cgraph_node::finalize_function): Set definition
31386 before notice_global_symbol.
31387 (varpool_node::finalize_decl): Likewise.
31388 * varasm.c (default_binds_local_p_2): Rename from
31389 default_binds_local_p_1, add weak_dominate argument. Use direct
31390 returns instead of assigning to local variable. Unify varpool and
31391 cgraph paths via symtab_node. Reject undef weak variables before
31392 testing visibility. Reorder tests for simplicity.
31393 (default_binds_local_p): Use default_binds_local_p_2.
31394 (default_binds_local_p_1): Likewise.
31395 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31396 via symtab_node.
31397 (default_elf_asm_output_external): Emit visibility when specified.
31398
31399 2015-02-13 Alan Modra <amodra@gmail.com>
31400
31401 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31402 code setting up r11 for out-of-line fp restore.
31403
31404 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
31405
31406 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31407 (muser-mode): Likewise.
31408
31409 2015-02-13 Alan Modra <amodra@gmail.com>
31410
31411 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31412 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31413
31414 2015-02-12 David Howells <dhowells@redhat.com>
31415
31416 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31417 warning.
31418 * tree-ssa-uninit.c (dump_predicates): Likewise.
31419 * opts.c (print_filtered_help): Likewise.
31420
31421 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31422
31423 * dwarf2out.c (output_die): Use "%s", name instead of name to
31424 avoid -Wformat-security warning.
31425
31426 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31427 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31428 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31429 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31430
31431 2015-02-12 Jason Merrill <jason@redhat.com>
31432
31433 * common.opt (-flifetime-dse): New.
31434
31435 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31436
31437 PR sanitizer/65019
31438 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31439
31440 PR tree-optimization/65014
31441 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31442 use original second operand of arg0 or arg1 instead of
31443 that adjusted by STRIP_NOPS.
31444
31445 2015-02-11 Jeff Law <law@redhat.com>
31446
31447 PR target/63347
31448 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31449 that needs to be queued, just queue it for a single cycle.
31450
31451 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
31452
31453 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31454 bodies of thunks; comment on why.
31455 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31456 symbols are extern.
31457
31458 2015-02-11 Richard Henderson <rth@redhat.com>
31459
31460 PR sanitize/65000
31461 * tree-eh.c (mark_reachable_handlers): Mark source and destination
31462 regions of __builtin_eh_copy_values.
31463
31464 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31465
31466 PR middle-end/65003
31467 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31468 ultimate alias is MEM with SYMBOL_REF satisfying
31469 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
31470 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31471
31472 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
31473
31474 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31475 "diagnostic-core.h".
31476 (main): Initialize progname, and call diagnostic_initialize.
31477
31478 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31479 instead of __OPENMP_TARGET__.
31480
31481 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31482 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31483 hard-coding PTX_ID.
31484
31485 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
31486
31487 * doc/sourcebuild.texi (pie_enabled): Document.
31488
31489 2015-02-11 Martin Liska <mliska@suse.cz>
31490
31491 PR ipa/64813
31492 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31493 a return value for call to a function that is noreturn.
31494
31495 2015-02-11 Richard Biener <rguenther@suse.de>
31496
31497 PR lto/65015
31498 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31499 and -fresolution.
31500
31501 2015-02-11 Andrew Pinski <apinski@cavium.com>
31502
31503 PR target/64893
31504 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31505 Change the first argument type to size_type_node and add another
31506 size_type_node.
31507 (aarch64_simd_expand_builtin): Handle the new argument to
31508 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31509 print an out when the first two arguments are not
31510 nonzero integer constants.
31511 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31512 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31513
31514 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31515
31516 PR target/61925
31517 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31518 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31519 (ix86_set_current_function): Rewritten.
31520 (ix86_add_new_builtins): Temporarily clear current_target_pragma
31521 when creating builtin fndecls.
31522
31523 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31524
31525 PR ipa/65005
31526 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31527 function.
31528 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31529 have no comdat group.
31530 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31531 (lto_output_varpool_node): Always output alias info.
31532 (output_refs): Output refs of boundary aliases, too.
31533 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31534 (output_symtab): Output call eges in thunks in boundary.
31535 (get_alias_symbol): Remove.
31536 (input_node, input_varpool_node): Do not special case weakrefs.
31537 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31538 alias and thunks targets in the boundary; do not take removed symbols
31539 from their comdat groups.
31540 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31541 (cgraph_node::global_info): Remove.
31542 (cgraph_node::rtl_info): Look through aliases and thunks.
31543 * cgrpah.h (global_info): Remove.
31544 (non_local_p): Remove.
31545
31546 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31547 Sandra Loosemore <sandra@codesourcery.com>
31548
31549 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31550 to inline asm. List dialects in proper order.
31551
31552 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31553 Sandra Loosemore <sandra@codesourcery.com>
31554
31555 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31556
31557 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31558
31559 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31560 modified) reference to Solaris.
31561
31562 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
31563
31564 * doc/extend.texi (Extended Asm): Fix typos.
31565
31566 2015-02-10 Jakub Jelinek <jakub@redhat.com>
31567
31568 PR sanitizer/65004
31569 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31570
31571 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
31572
31573 PR target/64661
31574 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31575 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31576 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31577 * config/sh/constraints.md (Ara, Add): New constraints.
31578 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31579 predicates.
31580 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31581 atomic_mem_operand_0. Don't use force_reg on the memory address.
31582 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31583 Sra constraint. Convert to insn_and_split. Add workaround for
31584 PR 64974.
31585 (atomic_compare_and_swap<mode>_hard): Copy to
31586 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
31587 Use atomic_mem_operand_0 predicate.
31588 (atomic_compare_and_swap<mode>_soft_gusa,
31589 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31590 AraAdd constraints.
31591 (atomic_compare_and_swap<mode>_soft_tcb,
31592 atomic_compare_and_swap<mode>_soft_imask,
31593 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31594 atomic_mem_operand_0 predicate and SraSdd constraints.
31595 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31596 constraint.
31597 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31598 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
31599 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31600 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
31601 force_reg on the memory address.
31602 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31603 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31604 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31605 atomic_mem_operand_1 predicate and Sra constraint.
31606 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31607 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31608 Use atomic_mem_operand_1 predicate.
31609 (atomic_<fetchop_name><mode>_hard): Copy to
31610 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31611 Use atomic_mem_operand_1 predicate.
31612 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31613 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31614 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
31615 insn_and_split. Use atomic_mem_operand_1 predicate.
31616 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31617 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
31618 Use atomic_mem_operand_1 predicate.
31619 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31620 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31621 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31622 in generated insn with original mem operand before emitting the insn.
31623 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31624 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31625 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31626 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31627 Use atomic_mem_operand_1 predicate and AraAdd constraints.
31628 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31629 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31630 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31631 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31632 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31633 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31634 atomic_not_fetch<mode>_soft_tcb,
31635 atomic_<fetchop_name>_fetch<mode>_soft_imask,
31636 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31637 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31638 Use atomic_mem_operand_1 predicate and SraSdd constraints.
31639
31640 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
31641
31642 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31643 and 3 earlyclobber operands.
31644
31645 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31646
31647 * common.opt (fstack-reuse): Mark as optimization.
31648
31649 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31650
31651 PR ipa/64982
31652 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31653
31654 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
31655
31656 PR tree-optimization/64326
31657 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31658
31659 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
31660
31661 PR gcov-profile/61889
31662 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31663
31664 2015-02-10 Richard Biener <rguenther@suse.de>
31665
31666 PR tree-optimization/64995
31667 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31668 value we use is final.
31669 (visit_reference_op_store): Always valueize op.
31670 (visit_use): Properly valueize vuses.
31671
31672 2015-02-10 Richard Biener <rguenther@suse.de>
31673
31674 PR tree-optimization/64909
31675 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31676 pass a scalar-stmt count estimate to the cost model.
31677 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31678
31679 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
31680
31681 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31682 enabled by default together with var-tracking.
31683
31684 2015-02-10 Nick Clifton <nickc@redhat.com>
31685
31686 * config/rl78/rl78.c: Remove DIV attribute code accidentally
31687 included in previous rl78 commit.
31688
31689 2015-02-10 Richard Biener <rguenther@suse.de>
31690
31691 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31692 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31693 return the bitpack.
31694
31695 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31696
31697 PR gcov-profile/61889
31698 * config.in: regenerate.
31699 * configure.in: Likewise.
31700 * configure.ac: Check for ftw.h.
31701 * gcov-tool.c: Check for ftw.h before using nftw.
31702
31703 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31704
31705 PR lto/64076
31706 * ipa-visibility.c (update_visibility_by_resolution_info): Only
31707 assert when not in lto mode.
31708
31709 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31710
31711 * ira-color.c (setup_left_conflict_sizes_p): Simplify
31712 initialization/assignment of conflict_size.
31713
31714 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
31715
31716 PR ipa/64978
31717 * ipa-cp.c (gather_caller_stats): Skip thunks.
31718 (propagate_constants_topo): Skip aliases.
31719
31720 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
31721
31722 PR target/64761
31723 * config/sh/sh.c (sh_option_override): Don't change
31724 -freorder-blocks-and-partition to -freorder-blocks even when
31725 unwinding is enabled.
31726 (sh_can_follow_jump): Return false if the followee jump is
31727 a crossing jump when -freorder-blocks-and-partition is specified.
31728 * config/sh/sh.md (*jump_compact_crossing): New insn.
31729
31730 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
31731 Kaz Kojima <kkojima@gcc.gnu.org>
31732
31733 PR target/64761
31734 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31735 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31736 (sh_can_redirect_branch): Rename to ...
31737 (sh_can_follow_jump): ... this. Constify argument types.
31738 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31739 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31740 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31741 * doc/tm.texi: Regenerate.
31742
31743 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31744
31745 PR sanitizer/64981
31746 * builtins.c (expand_builtin): Call targetm.expand_builtin
31747 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31748
31749 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31750
31751 PR ipa/61548
31752 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31753
31754 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31755
31756 PR ipa/63566
31757 * ipa-icf.c (set_local): New function.
31758 (sem_function::merge): Use it.
31759
31760 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31761
31762 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31763 (add_type_duplicate): Fix comparison of BINFOs.
31764
31765 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31766
31767 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31768 on getting VOID pointer.
31769
31770 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31771
31772 PR target/64979
31773 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31774 va_list escapes.
31775
31776 2015-02-09 Richard Biener <rguenther@suse.de>
31777
31778 * genmatch.c (replace_id): Copy expr_type.
31779
31780 2015-02-09 Richard Biener <rguenther@suse.de>
31781
31782 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31783 (streamer_write_tree_bitfields): Declare.
31784 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31785 properly unpack padding.
31786 (unpack_value_fields): Inline ...
31787 (streamer_read_tree_bitfields): ... here.
31788 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31789 and properly add padding bits.
31790 (streamer_pack_tree_bitfields): Fold into ...
31791 (streamer_write_tree_bitfields): ... this new function,
31792 exposing the bitpack object.
31793 * lto-streamer-out.c (lto_write_tree_1): Call
31794 streamer_write_tree_bitfields.
31795
31796 2015-02-09 Richard Biener <rguenther@suse.de>
31797
31798 PR tree-optimization/54000
31799 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31800 (struct ivopts_data): Add loop_loc member.
31801 (tree_ssa_iv_optimize_loop): Dump loop location.
31802 (create_new_ivs): Likewise, also dump number of IVs generated.
31803
31804 2015-02-09 Martin Liska <mliska@suse.cz>
31805
31806 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31807 just if not yet registered.
31808 (ipa_icf_generate_summary): Register callgraph hooks.
31809
31810 2015-02-08 Andrew Pinski <apinski@cavium.com>
31811
31812 * config/aarch64/aarch64.c (gty_dummy): Delete.
31813
31814 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31815
31816 PR ipa/63566
31817 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31818 (cgraph_node::local_p): Remove thunk related FIXME.
31819
31820 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31821
31822 PR ipa/63566
31823 * i386.c (ix86_function_regparm): Look through aliases to see if callee
31824 is local and optimized.
31825 (ix86_function_sseregparm): Likewise; also use target's SSE math
31826 settings; error out instead of silently generating wrong code
31827 on mismatches.
31828 (init_cumulative_args): Look through aliases.
31829
31830 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31831
31832 PR ipa/63566
31833 * ipa-split.c (execute_split_functions): Split if function has aliases.
31834
31835 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31836
31837 PR ipa/63566
31838 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31839 aliases before trying to expand it.
31840 (cgraph_node::expand_thunk): Fix formating.
31841
31842 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
31843
31844 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31845 (Using Assembly Language with C): Expand introduction.
31846 (Basic Asm): Copy-edit. Add more information about uses of
31847 basic asm.
31848 (Extended Asm): Copy-edit. Document new escape syntax and
31849 %l[label] syntax.
31850 (Global Reg Vars): Copy-edit.
31851 (Local Reg Vars): Likewise.
31852
31853 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
31854
31855 PR debug/2714
31856 PR bootstrap/64256
31857 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31858 (DBX_CONTIN_CHAR): Define.
31859
31860 2015-02-06 Sebastian Pop <s.pop@samsung.com>
31861 Brian Rzycki <b.rzycki@samsung.com>
31862
31863 PR tree-optimization/64878
31864 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31865 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31866 Stop recursion at loop phi nodes after having visited a loop phi node.
31867
31868 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31869
31870 * toplev.c (process_options): Change flag_ipa_ra before creating
31871 optimization_{default,current}_node.
31872
31873 PR ipa/64896
31874 * cgraphunit.c (cgraph_node::expand_thunk): If
31875 restype is not is_gimple_reg_type nor the thunk_fndecl
31876 returns aggregate_value_p, set restmp to a temporary variable
31877 instead of resdecl.
31878
31879 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
31880
31881 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31882
31883 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31884
31885 PR target/64205
31886 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31887 add a general secondary reload handler for SDmode, unless we have
31888 both read/write support for SDmode.
31889
31890 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31891
31892 PR middle-end/64937
31893 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31894 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31895 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31896 1 before, push it to abstract_vec.
31897 (dwarf2out_abstract_function): Adjust caller. Don't call
31898 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31899 DECL_ABSTRACT_P flags for all abstract_vec elts.
31900
31901 2015-02-06 Renlin Li <renlin.li@arm.com>
31902
31903 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31904 complex gimple.
31905 * tree-ssa.c (execute_update_addresses_taken): Likewise.
31906
31907 2015-02-06 Jeff Law <law@redhat.com>
31908
31909 PR target/64889
31910 * config/h8300/h8300.c (push): New argument "in_prologue".
31911 Pass "in_prologue" along to "F".
31912 (h8300_push_pop): Corresponding changes.
31913 (h8300_expand_prologue): Likewise.
31914 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
31915
31916 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31917
31918 PR rtl-optimization/64957
31919 PR debug/64817
31920 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31921 IOR rather than for AND.
31922
31923 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
31924
31925 PR target/62631
31926 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31927 of shift-add and (add + shift) operations. Rename local variable.
31928
31929 2015-02-05 Jeff Law <law@redhat.com>
31930
31931 PR target/17306
31932 * config/h8300/constraints.md (U): Correctly dectect
31933 "eightbit_data" memory addresses.
31934 * config/h8300/h8300.c (eightbit_constant_address_p): Also
31935 handle (const (plus (symbol_ref (x)))) where x is declared
31936 as an 8-bit data memory address.
31937 * config/h8300/h8300.md (call, call_value): Correctly detect
31938 "funcvec" functions.
31939
31940 PR target/43264
31941 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31942 24 to 28 bits for the H8/300.
31943
31944 2015-02-06 Alan Modra <amodra@gmail.com>
31945
31946 PR target/64876
31947 * config/rs6000/rs6000.c (chain_already_loaded): New function.
31948 (rs6000_call_aix): Use it.
31949
31950 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
31951
31952 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31953 check.
31954
31955 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
31956
31957 * config/h8300/constraints.md ("U" constraint): Use strict
31958 variant of REG_OK_FOR_BASE_P after reload has started.
31959
31960 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
31961
31962 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31963 define to zero if !TARGET_NEON.
31964 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31965
31966 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31967 Trevor Saunders <tsaunders@mozilla.com>
31968
31969 PR ipa/61548
31970 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
31971
31972 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31973
31974 PR ipa/61548
31975 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
31976 when removing varpool nodes.
31977
31978 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31979
31980 PR ipa/61548
31981 * varpool.c (varpool_node::remove): Fix order of variables.
31982
31983 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31984
31985 PR ipa/64686
31986 * ipa-inline.c (inline_small_functions): Fix ordering issue between
31987 speculation resolution and key updates.
31988
31989 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31990
31991 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
31992 about not letting any speculative edges unupdated.
31993
31994 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31995
31996 PR gcov/64123
31997 * gcov-io.c (gcov_var): Export.
31998
31999 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32000
32001 PR middle-end/64922
32002 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
32003 edges that become speculative.
32004
32005 2015-02-04 Jakub Jelinek <jakub@redhat.com>
32006
32007 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
32008 or DW_LANG_Fortran08.
32009 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
32010 DW_LANG_Fortran08.
32011 (gen_compile_unit_die): Handle "GNU Fortran2003" and
32012 "GNU Fortran2008" language strings.
32013 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
32014 * langhooks.h (lang_GNU_Fortran): New prototype.
32015 * langhooks.c (lang_GNU_Fortran): New function.
32016 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
32017 lang_GNU_Fortran.
32018
32019 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32020
32021 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
32022 (RTX_OK_FOR_OLO10_P): Likewise.
32023
32024 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32025
32026 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
32027
32028 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32029
32030 PR middle-end/64922
32031 * gimple.c: Include gimple-ssa.h.
32032 (maybe_remove_unused_call_args): New function.
32033 * gimple.h (maybe_remove_unused_call_args): Declare.
32034 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
32035 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32036 * gimple-fold.c (gimple_fold_call): Likewise.
32037
32038 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
32039
32040 PR rtl-optimization/64905
32041 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
32042 pointer alignment if it isn't needed.
32043
32044 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
32045
32046 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
32047 cortex-a72.cortex-a53.
32048 * config/aarch64/aarch64-tune.md: Regenerate.
32049 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
32050
32051 2015-02-04 Nick Clifton <nickc@redhat.com>
32052
32053 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
32054 inside a MEM.
32055
32056 2015-02-04 Jakub Jelinek <jakub@redhat.com>
32057
32058 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
32059 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
32060 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
32061 of DEF_BUILTIN.
32062 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
32063 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
32064 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
32065 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
32066 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
32067 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
32068 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
32069 * tree-core.h (enum built_in_function): In between
32070 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
32071 for builtins that use DEF_BUILTIN_CHKP macro.
32072
32073 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
32074
32075 PR debug/64817
32076 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
32077 operands for tcc_comparison exprs. Fix typos.
32078
32079 PR debug/64817
32080 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
32081 of two XORs that have an intervening AND or IOR.
32082
32083 PR debug/64817
32084 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
32085 simplification of XOR of AND to not allocate new rtx before
32086 committing to a simplification.
32087
32088 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32089
32090 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
32091 manual swaps in all peepholes.
32092
32093 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32094
32095 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
32096 of manual swapping implementation.
32097 (aarch64_expand_vec_perm_const_1): Likewise.
32098
32099 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
32100
32101 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
32102 (generic_addrcost_table): Remove NAMED_PARAM.
32103 (cortexa57_addrcost_table): Likewise.
32104 (xgene1_addrcost_table): Likewise.
32105 (generic_regmove_table): Likewise.
32106 (cortexa53_regmove_table): Likewise.
32107 (xgene1_regmove_table): Likewise.
32108 (generic_vector_table): Likewise.
32109 (cortexa57_vector_table): Likewise.
32110 (xgene1_vector_table): Likewise.
32111 (generic_tunings): Likewise.
32112 (cortexa53_tunings): Likewise.
32113 (cortexa57_tunings): Likewise.
32114 (xgene1_tunings): Likewise.
32115
32116 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
32117
32118 * config/arm/arm-cores.def: Add cortex-a72 and
32119 cortex-a72.cortex-a53.
32120 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
32121 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
32122 * config/arm/arm-tune.md: Regenerate.
32123 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
32124 "cortex-a72.cortex-a53".
32125 * doc/invoke.texi (ARM Options/-mtune): Likewise.
32126
32127 2015-02-04 Nick Clifton <nickc@redhat.com>
32128
32129 PR target/64408
32130 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
32131 of accepted codes.
32132 (nonimmediate_di_operand): Likewise.
32133
32134 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
32135 prefixes of known F5 using MSP430 MCUs.
32136
32137 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32138
32139 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
32140 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
32141 instead of __builtin_sqrt.
32142
32143 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
32144
32145 * varasm.c (do_assemble_alias): Follow transparent alias
32146 chain for target.
32147 (default_assemble_visibility): Follow transparent alias
32148 chain for decl name.
32149
32150 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32151
32152 PR middle-end/62103
32153 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
32154 to compute size of referenced value in the constant case.
32155
32156 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32157
32158 PR rtl-optimization/64756
32159 * cse.c (invalidate_dest): New function.
32160 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
32161 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
32162 invalidate and do not record it.
32163
32164 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32165
32166 PR target/64660
32167 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
32168 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
32169 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
32170 atomic_nand<mode>_soft_tcb): New insns.
32171 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
32172 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
32173 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
32174 Split into atomic_not_fetchsi_hard if operands[0] is unused.
32175 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
32176 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32177 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
32178 atomic_not<mode>_hard if operands[0] is unused.
32179 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
32180 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
32181 if operands[0] is unused.
32182 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
32183 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
32184 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
32185 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32186 unused.
32187 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
32188 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32189 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
32190 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
32191 if operands[0] is unused.
32192 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
32193 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
32194 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
32195 atomic_nand_fetchsi_hard if operands[0] is unused.
32196 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
32197 atomic_nand<mode>_hard if operands[0] is unused.
32198 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
32199 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
32200 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
32201 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32202 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
32203 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32204 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32205 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32206 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
32207 atomic_not<mode>_hard if operands[0] is unused.
32208 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32209 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32210 unused.
32211 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32212 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32213 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
32214 atomic_nand<mode>_hard if operands[0] is unused.
32215 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32216 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32217
32218 2015-02-03 David Malcolm <dmalcolm@redhat.com>
32219
32220 PR jit/64810
32221 * Makefile.in (GCC_OBJS): Add gcc-main.o.
32222 * gcc-main.c: New file, containing "main" taken from gcc.c.
32223 * gcc.c (do_self_spec): Free decoded_options.
32224 (class driver): Move declaration to gcc.h.
32225 (main): Move declaration and implementation to new file
32226 gcc-main.c.
32227 (driver_get_configure_time_options): New function.
32228 * gcc.h (class driver): Move this declaration here, from
32229 gcc.c.
32230 (driver_get_configure_time_options): New declaration.
32231
32232 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
32233
32234 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32235 cross-module inlining.
32236 * cgraph.h (cgraph_node): Add flag merged.
32237 * ipa-icf.c (sem_function::merge): Maintain it.
32238
32239 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
32240
32241 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32242 instead of OBJECT_P.
32243
32244 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
32245
32246 PR target/62631
32247 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32248 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32249 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32250 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32251
32252 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32253
32254 PR other/63504
32255 * combine.c (reg_n_sets_max): New variable.
32256 (can_change_dest_mode, reg_nonzero_bits_for_combine,
32257 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32258 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32259 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32260 (rest_of_handle_combine): Initialize reg_n_sets_max.
32261
32262 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
32263
32264 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32265 if some always_inline was inlined, apply changes before inlining
32266 heuristically.
32267
32268 2015-02-02 David Malcolm <dmalcolm@redhat.com>
32269
32270 PR jit/64810
32271 * config/arm/arm.c (arm_option_override): Set
32272 arm_selected_arch/cpu/tune to NULL on entry.
32273
32274 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
32275 Andrew Pinski <pinskia@gcc.gnu.org>
32276 Jakub Jelinek <jakub@gcc.gnu.org>
32277
32278 PR target/64231
32279 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32280 integer typing for small model. Use IN_RANGE.
32281
32282 2015-02-02 Richard Biener <rguenther@suse.de>
32283
32284 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32285 * tree-vrp.c (vrp_valueize_1): Likewise.
32286
32287 2015-02-02 Alan Modra <amodra@gmail.com>
32288
32289 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32290 than mem for toc_restore.
32291 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32292 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32293 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32294
32295 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
32296
32297 PR target/64047
32298 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32299 explicit default options.
32300
32301 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
32302
32303 PR ipa/64872
32304 * ipa-utils.c (ipa_merge_profiles): Add release argument.
32305 * ipa-icf.c (sem_function::merge): Do not release body when merging.
32306 * ipa-utils.h (ipa_merge_profiles): Update prototype.
32307
32308 2015-02-01 Jakub Jelinek <jakub@redhat.com>
32309
32310 PR debug/64817
32311 * cfgexpand.c (deep_ter_debug_map): New variable.
32312 (avoid_deep_ter_for_debug): New function.
32313 (expand_debug_expr): If TERed SSA_NAME is in
32314 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32315 instead of trying to expand SSA_NAME's def stmt.
32316 (expand_debug_locations): When expanding debug bind
32317 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32318 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32319 value.
32320 (pass_expand::execute): Call avoid_deep_ter_for_debug on
32321 all debug bind stmts. Delete deep_ter_debug_map after
32322 expand_debug_location if non-NULL and clear it.
32323
32324 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
32325
32326 PR target/64851
32327 * config/sh/sync.md (atomic_fetch_notsi_hard,
32328 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32329 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32330 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32331 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32332 atomic_not_fetch<mode>_soft_imask): New insns.
32333
32334 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32335
32336 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32337 (rank_for_schedule_debug): Split from ...
32338 (rank_for_schedule): ... this.
32339 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
32340 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
32341
32342 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32343
32344 * doc/md.texi (Machine Constraints): Alphabetize table by target.
32345 * doc/extend.texi (x86 Variable Attributes): Move section to
32346 correct alphabetization after renaming.
32347 (x86 Type Attributes): Likewise.
32348 (Target Builtins): Re-alphabetize menu.
32349 (x86 Built-in Functions): Move section to correct alphabetization
32350 after renaming.
32351 (x86 transactional memory intrinsics): Likewise.
32352 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
32353 and x86 Windows Options in table and menu.
32354 (x86 Options): Move section to correct alphabetization after
32355 renaming.
32356 (x86 Windows Options): Likewise.
32357
32358 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32359
32360 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
32361 preferred names of the architecture and its 32- and 64-bit
32362 variants.
32363 * doc/invoke.texi: Likewise.
32364 * doc/md.texi: Likewise.
32365
32366 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32367
32368 PR target/64882
32369 * config/i386/predicates.md (address_no_seg_operand): Reject
32370 non-CONST_INT_P operands in invalid mode.
32371
32372 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32373
32374 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32375 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
32376 * config/i386/predicates.md (address_no_seg_operand): Call
32377 address_operand with VOIDmode.
32378 (vsib_address_operand): Ditto.
32379 (address_mpx_no_base_operand): Ditto.
32380 (address_mpx_no_index_operand): Ditto.
32381
32382 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32383
32384 PR target/64688
32385 * lra-constraints.c (original_subreg_reg_mode): New.
32386 (simplify_operand_subreg): Try to simplify subreg of const. Use
32387 original_subreg_reg_mode for it.
32388 (swap_operands): Update original_subreg_reg_mode.
32389 (curr_insn_transform): Set up original_subreg_reg_mode.
32390
32391 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32392
32393 PR target/64617
32394 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32395 function.
32396 (process_alt_operands): Use it.
32397 (curr_insn_transform): Check the optional reload pseudo class is
32398 ok for the mode.
32399
32400 2015-01-30 Joseph Myers <joseph@codesourcery.com>
32401
32402 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32403 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32404 prototype.
32405 * toplev.h (init_asm_output): Update comment on use of
32406 UNKNOWN_LOCATION with fatal_error.
32407 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32408 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32409 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32410 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32411 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32412 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32413 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32414 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32415 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32416 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32417 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32418 fatal_error changed to pass input_location as first argument.
32419
32420 2015-01-30 Martin Liska <mliska@suse.cz>
32421
32422 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32423 in #pragma GCC diagnostic guards.
32424
32425 2015-01-30 Richard Biener <rguenther@suse.de>
32426
32427 PR tree-optimization/64829
32428 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32429 not add a widening conversion pattern but hand off extra
32430 widenings to callers.
32431 (vect_recog_widen_mult_pattern): Handle extra widening produced
32432 by vect_handle_widen_op_by_const.
32433 (vect_recog_widen_shift_pattern): Likewise.
32434 (vect_pattern_recog_1): Remove excess vertical space in dumping.
32435 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32436 (vect_init_vector_1): Likewise.
32437 (vect_get_vec_def_for_operand): Likewise.
32438 (vect_finish_stmt_generation): Likewise.
32439 (vectorizable_load): Likewise.
32440 (vect_analyze_stmt): Likewise.
32441 (vect_is_simple_use): Likewise.
32442
32443 2015-01-29 Jeff Law <law@redhat.com>
32444
32445 * combine.c (try_combine): Fix typo in comment.
32446
32447 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
32448
32449 PR target/64580
32450 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32451 (rs6000_stack_info): Add assert.
32452 (rs6000_output_savres_externs): New function, split off from...
32453 (rs6000_output_function_prologue): ... here. Do not call it for
32454 thunks.
32455
32456 2015-01-29 Jeff Law <law@redhat.com>
32457
32458 PR target/15184
32459 * combine.c (try_combine): If I0 is a memory load and I3 a store
32460 to a related address, increase the "goodness" of doing a 4-insn
32461 combination with I0-I3.
32462 (make_field_assignment): Handle SUBREGs in the ior+and case.
32463
32464 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
32465
32466 PR tree-optimization/64746
32467 * tree-if-conv.c (mask_exists): New function.
32468 (predicate_mem_writes): Save created mask with given size for further
32469 use.
32470 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32471 (ifcvt_repair_bool_pattern): Collect all statements that are root
32472 of bool pattern and use iterative algorithm to remove multiple uses
32473 of predicates, display number of required iterations.
32474
32475 2015-01-29 Richard Biener <rguenther@suse.de>
32476
32477 PR tree-optimization/64853
32478 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32479 stmt will get simulated again.
32480 * tree-ssa-ccp.c (valueize_op_1): Likewise.
32481
32482 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32483
32484 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32485 return_in_pc. Remove redundant assignments.
32486 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32487 (arm_expand_epilogue): Don't compare boolean with true in if condition.
32488
32489 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
32490
32491 * config/i386/i386.c (ix86_mode_after): Make static.
32492
32493 2015-01-29 Richard Biener <rguenther@suse.de>
32494
32495 PR tree-optimization/64844
32496 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32497 dump cost model analysis.
32498 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32499 Do not register adjusted load/store costs here.
32500
32501 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32502 Uros Bizjak <ubizjak@gmail.com>
32503
32504 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32505 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32506 using x86_use_pseudo_pic_reg.
32507 * config/i386/i386.c (ix86_conditional_register_usage): Remove
32508 support for fixed PIC register.
32509 (ix86_use_pseudo_pic_reg): Not static any more.
32510
32511 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32512
32513 PR middle-end/64805
32514 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32515 to avoid error in cgraph node verification.
32516
32517 2015-01-29 Marek Polacek <polacek@redhat.com>
32518
32519 * doc/standards.texi: Reflect that the default for C is gnu11.
32520
32521 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
32522
32523 PR target/64761
32524 * reorg.c (switch_text_sections_between_p): New function.
32525 (relax_delay_slots): Call it when testing if the jump insn
32526 is removable. Use targetm.can_follow_jump when testing if
32527 the conditional branch can follow an unconditional jump.
32528
32529 2015-01-27 Caroline Tice <cmtice@google.com>
32530
32531 Committing VTV Cywin/Ming patch for Patrick Wollgast
32532 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32533 if -fvtable-verify=preinit/std is used.
32534 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32535 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32536 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32537 if -fvtable-verify=preinit/std is used.
32538 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32539 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32540 if -fvtable-verify=preinit/std is used.
32541 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32542 * config/i386/mingw32.h (LIB_SPEC): Likewise.
32543 * varasm.c (assemble_variable): Add code to properly set the comdat
32544 section and name for the .vtable_map_vars section in case the
32545 target is PE or COFF.
32546
32547 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32548
32549 PR ipa/64801
32550 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32551 make sane BB profile.
32552 (cgraph_node::expand_thunk): Make sane BB profile.
32553 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32554 * cgraph.h (init_lowered_empty_function): Update prototype.
32555 * config/i386/i386.c (make_resolver_func): Update call.
32556 * predict.c (gate): Disable branch prediction pass if
32557 profile is already there.
32558
32559 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32560
32561 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32562 * opth-gen.awk: Likewise.
32563 * common.opt: Mark flag_fp_contract_mode as Optimization.
32564
32565 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
32566
32567 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32568 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32569
32570 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
32571
32572 PR target/64659
32573 * config/sh/predicates.md (atomic_arith_operand,
32574 atomic_logical_operand): Remove.
32575 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32576 (atomic_arith_operand_0): New predicate.
32577 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32578 Use atomic_arith_operand_0 for input values.
32579 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32580 atomic_compare_and_swap<mode>_soft_gusa,
32581 atomic_compare_and_swap<mode>_soft_tcb,
32582 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32583 arith_reg_operand instead of register_operand.
32584 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
32585 atomic_arith_operand_0 for newval input.
32586 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32587 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32588 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32589 arith_reg_operand instead of register_operand.
32590 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32591 fetchop_predicate_1, fetchop_constraint_1_llcs,
32592 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32593 fetchop_constraint_1_imask): New code iterator attributes.
32594 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32595 register_operand. Use fetchop_predicate_1.
32596 (atomic_fetch_<fetchop_name>si_hard,
32597 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32598 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32599 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32600 and arith_reg_operand instead of register_operand. Use
32601 fetchop_predicate_1, fetchop_constraint_1_gusa.
32602 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32603 and arith_reg_operand instead of register_operand. Use
32604 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
32605 to allow R0 usage.
32606 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32607 and arith_reg_operand instead of register_operand. Use
32608 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
32609 to allow R0 usage.
32610 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32611 register_operand. Use atomic_logical_operand_1.
32612 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32613 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32614 arith_reg_operand instead of register_operand.
32615 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32616 Use arith_reg_dest and arith_reg_operand instead of register_operand.
32617 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
32618 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32619 register_operand. Use fetchop_predicate_1.
32620 (atomic_<fetchop_name>_fetchsi_hard,
32621 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32622 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32623 fetchop_constraint_1_llcs.
32624 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32625 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32626 fetchop_constraint_1_gusa.
32627 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32628 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32629 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
32630 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32631 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32632 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
32633 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32634 register_operand. Use atomic_logical_operand_1.
32635 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32636 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32637 arith_reg_operand instead of register_operand.
32638 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32639 arith_reg_operand instead of register_operand. Use logical_operand
32640 and K08. Adjust asm sequence to allow R0 usage.
32641 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32642 arith_reg_operand instead of register_operand. Use logical_operand
32643 and K08.
32644
32645 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32646
32647 PR other/63504
32648 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32649 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32650 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32651 only get_full_len HOST_WIDE_INTs from get_val () array rather than
32652 all bits in *val_wide.
32653
32654 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
32655
32656 * varpool.c (tls_model_names): Fix names.
32657 (varpool_node::dump): Dump tls- prefix for tls models.
32658
32659 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
32660 Bernd Schmidt <bernds@codesourcery.com>
32661 Nathan Sidwell <nathan@codesourcery.com>
32662
32663 * config/nvptx/mkoffload.c: New file.
32664 * config/nvptx/t-nvptx: Add build rules for it.
32665 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32666 (extra_programs): Add mkoffload.
32667 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32668 function.
32669 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32670
32671 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
32672
32673 PR middle-end/64809
32674 * cfgexpand.c (reorder_operands): Skip debug gimples.
32675
32676 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
32677
32678 PR tree-optimization/64277
32679 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32680 range info when possible to refine estimation.
32681
32682 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32683
32684 PR tree-optimization/64718
32685 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32686 be a 16bit unsigned integer when n->range is 16.
32687 (bswap_replace): Convert src to that type if necessary for all bswap
32688 sizes. Fix rotation right notation in nearby comment. Use bswap_type
32689 set in pass_optimize_bswap::execute ().
32690
32691 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
32692
32693 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32694 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32695 integer and floating point variants.
32696 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32697
32698 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
32699
32700 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32701 for all vector modes.
32702
32703 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32704
32705 PR bootstrap/64612
32706 * doc/sourcebuild.texi (comdat_group): Document.
32707
32708 2015-01-28 Terry Guo <terry.guo@arm.com>
32709
32710 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32711
32712 2015-01-27 David Malcolm <dmalcolm@redhat.com>
32713
32714 * toplev.c (print_version): Add param "show_global_state", and
32715 only print GGC and plugin information if it is true.
32716 (init_asm_output): Pass in "true" for the new param when calling
32717 print_version.
32718 (process_options): Likewise.
32719 (toplev::main): Likewise.
32720 * toplev.h (print_version): Add new param to decl.
32721
32722 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32723
32724 PR ipa/60871
32725 PR ipa/64139
32726 * tree.c (lookup_binfo_at_offset): New function.
32727 (get_binfo_at_offset): Use it.
32728
32729 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32730
32731 PR ipa/64282
32732 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32733 on vtable being vtable.
32734
32735 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
32736
32737 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32738 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32739 -mhotpatch= option.
32740 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32741 -mno-hotpatch options. Change syntax of -mhotpatch= option.
32742 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32743 Renamed.
32744 (s390_hotpatch_trampoline_halfwords_max): Renamed.
32745 (s390_hotpatch_hw_max): New name.
32746 (s390_hotpatch_trampoline_halfwords): Renamed.
32747 (s390_hotpatch_hw_before_label): New name.
32748 (get_hotpatch_attribute): Removed.
32749 (s390_hotpatch_hw_after_label): New name.
32750 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32751 attribute.
32752 (s390_attribute_table): Ditto.
32753 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32754 (s390_function_num_hotpatch_hw): New name.
32755 Remove special handling of inline functions and hotpatching.
32756 Return number of nops before and after the function label.
32757 (s390_can_inline_p): Removed.
32758 (s390_asm_output_function_label): Emit a configurable number of nops
32759 after the function label.
32760 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32761 (TARGET_CAN_INLINE_P) Removed.
32762 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32763
32764 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32765 Jiong Wang <jiong.wang@arm.com>
32766
32767 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32768 of scratch reg.
32769 (cb<optab><mode>1): Likewise.
32770 * config/aarch64/iterators.md (bcond): New define_code_attr.
32771
32772 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32773
32774 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32775 memory accesses.
32776
32777 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32778
32779 * config/s390/s390.c (s390_register_move_cost): Increase costs for
32780 FPR->GPR moves.
32781
32782 2015-01-27 Richard Biener <rguenther@suse.de>
32783
32784 * tree-vrp.c (update_value_range): Intersect the range with
32785 old recorded SSA name range information.
32786
32787 2015-01-27 Nick Clifton <nickc@redhat.com>
32788
32789 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32790 BC, DE and HL registers directly, not via AX.
32791 When decrementing the stack pointer by a large amount, transfer SP
32792 into AX and perform the subtraction there.
32793 (rl78_expand_epilogue): Perform the inverse of the above
32794 enhancements.
32795
32796 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32797
32798 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32799
32800 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32801 Yury Gribov <y.gribov@samsung.com>
32802
32803 PR ubsan/64741
32804 * ubsan.c (ubsan_source_location): Refactor code.
32805 (ubsan_type_descriptor): Update type size. Refactor code.
32806
32807 2015-01-27 Richard Biener <rguenther@suse.de>
32808
32809 PR tree-optimization/56273
32810 PR tree-optimization/59124
32811 PR tree-optimization/64277
32812 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32813 from the first VRP pass.
32814
32815 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32816
32817 PR ipa/64776
32818 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32819 handle the first argument in the same loop as all the other arguments.
32820
32821 PR rtl-optimization/61058
32822 * jump.c (cleanup_barriers): Update basic block boundaries
32823 if BLOCK_FOR_INSN is non-NULL on PREV.
32824
32825 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
32826
32827 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32828 bounds narrowing, already instrumented calls and calls to
32829 not instrumentable functions.
32830
32831 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32832
32833 PR tree-optimization/64807
32834 * wide-int.cc (wi::divmod_internal): Clear
32835 b_dividend[dividend_blocks_needed].
32836
32837 2015-01-26 DJ Delorie <dj@redhat.com>
32838
32839 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32840 volatile memory references.
32841
32842 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
32843
32844 PR target/49263
32845 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32846 remove_insn.
32847 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32848 shifts if it already fits into K08.
32849
32850 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32851
32852 PR ipa/64730
32853 * ipa-inline.c (inline_small_functions): Print "unknown" even
32854 if edge->call_stmt is non-NULL, but has builtins or unknown
32855 location.
32856
32857 PR middle-end/64421
32858 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32859 with asterisk, skip the first character.
32860
32861 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32862
32863 PR target/64806
32864 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32865 order change.
32866
32867 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
32868
32869 PR target/64795
32870 * config/i386/i386.md (*movdi_internal): Also check operand 0
32871 to determine TYPE_LEA operand.
32872 (*movsi_internal): Ditto.
32873
32874 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32875
32876 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32877 OPTION_MASK_QUAD_MEMORY_ATOMIC.
32878
32879 2015-01-26 Renlin Li <renlin.li@arm.com>
32880
32881 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32882 the comment.
32883 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32884 for higher part.
32885
32886 2015-01-26 Richard Biener <rguenther@suse.de>
32887
32888 PR middle-end/64764
32889 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32890 combining two BIT_AND_EXPR predicates.
32891
32892 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32893
32894 PR bootstrap/64754
32895 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32896
32897 2015-01-26 Terry Guo <terry.guo@arm.com>
32898
32899 * config/arm/arm.c (arm_file_start): Update the assignment of
32900 Tag_ABI_HardFP_use.
32901
32902 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
32903
32904 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32905 pipeline model.
32906 config/arm/arm.md: Include the new Cortex-A57 model.
32907 (generic_sched): Don't use generic_sched when tuning for
32908 Cortex-A57.
32909
32910 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
32911 Uros Bizjak <ubizjak@gmail.com>
32912
32913 * config/i386/i386.c (get_builtin_code_for_version): Add
32914 support for BMI and BMI2 multiversion functions.
32915
32916 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32917
32918 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32919 (extract_bit_field): Likewise.
32920 (extract_low_bits): Likewise.
32921 (expand_mult): Likewise.
32922 (expand_mult_highpart_adjust): Likewise.
32923
32924 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
32925
32926 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32927 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32928 * config/i386/i386.c (processor_model): Add
32929 M_INTEL_COREI7_BROADWELL.
32930 (arch_names_table): Add "broadwell".
32931
32932 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
32933
32934 PR target/49263
32935 PR target/53987
32936 PR target/64345
32937 PR target/59533
32938 PR target/52933
32939 PR target/54236
32940 PR target/51244
32941 * config/sh/sh-protos.h
32942 (sh_extending_set_of_reg::can_use_as_unextended_reg,
32943 sh_extending_set_of_reg::use_as_unextended_reg,
32944 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32945 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32946 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32947 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32948 (sh_treg_insns): New class.
32949 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32950 (scope_counter): New class.
32951 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32952 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32953 sh_extending_set_of_reg::can_use_as_unextended_reg,
32954 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32955 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32956 sh_split_treg_set_expr): New functions.
32957 (addsubcosts): Handle treg_set_expr.
32958 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32959 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32960 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32961 (sh_insn_operands_modified_between_p): Make non-static.
32962 * config/sh/predicates.md (zero_extend_movu_operand): Allow
32963 simple_mem_operand in addition to displacement_mem_operand.
32964 (zero_extend_operand): Don't allow zero_extend_movu_operand.
32965 (treg_set_expr, treg_set_expr_not_const01,
32966 arith_reg_or_treg_set_expr): New predicates.
32967 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32968 arith_or_int_operand instead of logical_operand. Convert to
32969 insn_and_split. Try to optimize constant operand in splitter.
32970 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
32971 (*tstqi_t_zero): Delete.
32972 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
32973 (tstsi_t_and_not): Delete.
32974 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
32975 Convert to insn_and_split.
32976 (unnamed split, tstsi_t_zero_extract_xor,
32977 tstsi_t_zero_extract_subreg_xor_little,
32978 tstsi_t_zero_extract_subreg_xor_big): Delete.
32979 (*tstsi_t_shift_mask): New insn_and_split.
32980 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
32981 to recombine with surrounding insns when splitting.
32982 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
32983 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
32984 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
32985 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
32986 (*cbranch_div0s: Delete.
32987 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32988 Try to recombine with surrounding insns when splitting. Add operand
32989 order variants.
32990 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
32991 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
32992 *addc_r_r_msb, *addc_2r_msb): Delete.
32993 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
32994 order variant.
32995 (*addc_negreg_t): New insn_and_split.
32996 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
32997 Try to recombine with surrounding insns when splitting.
32998 Add operand order variants.
32999 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
33000 insn_and_split patterns.
33001 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
33002 surrounding insns when splitting.
33003 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
33004 (*rotcl): Likewise. Add zero_extract variant.
33005 (*ashrsi2_31): New insn_and_split.
33006 (*negc): Convert to insn_and_split. Use treg_set_expr.
33007 (*zero_extend<mode>si2_disp_mem): Update comment.
33008 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
33009 condition.
33010 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
33011 with surrounding insns when splitting.
33012 (any_treg_expr_to_reg): New insn_and_split.
33013 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
33014 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
33015 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
33016 *zero_extract_2): New single bit zero extract patterns.
33017 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
33018 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
33019 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
33020 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
33021 set destination.
33022 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
33023 register_operand for set source.
33024
33025 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
33026
33027 * i386.opt (prefetch_sse): New targetsave.
33028 * i386.c (ix86_function_specific_save): Save prefetch_sse.
33029 (ix86_function_specific_restore): Restore prefetch_sse and initialize
33030 ix86_cost/ix86_tune_cost.
33031
33032 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33033
33034 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
33035 Support the JIT by using 0 as the language type.
33036
33037 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
33038
33039 PR target/64317
33040 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
33041 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
33042 (mark_regno_live, process_bb_lives): Pass new parameter value to
33043 make_hard_regno_born.
33044
33045 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33046
33047 PR rtl-optimization/63637
33048 PR rtl-optimization/60663
33049 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
33050 if elt->cost is MAX_COST for ASM_OPERANDS.
33051 (find_sets_in_insn): Fix up comment typo.
33052 (cse_insn): Don't set src_volatile for all non-volatile
33053 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
33054 or with "memory" clobber. Set elt->cost to MAX_COST
33055 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
33056 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
33057
33058 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
33059
33060 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
33061 alternative 1.
33062
33063 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
33064
33065 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
33066 libgcc/config/i386/elf-lib.h.
33067
33068 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33069
33070 PR driver/64737
33071 * gcc.c (print_configuration): Don't print a blank line at the end
33072 here...
33073 (run_attempt): ... but here unstead.
33074
33075 PR middle-end/64734
33076 * omp-low.c (scan_sharing_clauses): Don't ignore
33077 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
33078 on target data/update constructs.
33079
33080 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
33081
33082 PR target/50928
33083 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
33084 (DEBUG_RELOAD): Removed define.
33085 (m32c_limit_reload_class): Enable traces with if DEBUG0.
33086 (m32c_function_arg): Added a type cast.
33087 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
33088 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
33089 * config/m32c/bitops.md (andqi3_16): Likewise.
33090 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
33091 (push_a01_l): Likewise.
33092
33093 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33094
33095 PR jit/64721
33096 * main.c (main): Construct toplev instances with init_signals=true.
33097 * toplev.c (general_init): Add param "init_signals", and use it to
33098 conditionalize the calls to signal and host_hooks.extra_signals.
33099 (toplev::toplev): Add param "init_signals".
33100 (toplev::main): When invoking general_init, pass m_init_signals
33101 to control whether signal-handlers are installed.
33102 * toplev.h (toplev::toplev): Add param "init_signals".
33103 (toplev::m_init_signals): New field.
33104
33105 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33106
33107 PR jit/64722
33108 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
33109 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
33110 latter may be affected by the former (e.g. on i686).
33111
33112 2015-01-23 Martin Liska <mliska@suse.cz>
33113
33114 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
33115 false positive during profiledbootstrap.
33116
33117 2015-01-23 Tom de Vries <tom@codesourcery.com>
33118
33119 PR libgomp/64672
33120 * lto-opts.c (lto_write_options): Output non-explicit conservative
33121 -fno-openacc.
33122 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
33123 (append_compiler_options): Pass -fopenacc through.
33124
33125 2015-01-23 Tom de Vries <tom@codesourcery.com>
33126
33127 PR libgomp/64707
33128 * lto-opts.c (lto_write_options): Output non-explicit conservative
33129 -fno-openmp.
33130 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
33131 (append_compiler_options): Pass -fopenmp through.
33132
33133 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33134
33135 PR debug/64511
33136 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
33137 GTY markup.
33138
33139 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
33140 * diagnostic.def (DK_ICE_NOBT): New kind.
33141 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
33142 like DK_ICE, but never print backtrace.
33143 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
33144 (internal_error_no_backtrace): New function.
33145 * gcc.c (execute): Use internal_error_no_backtrace instead of
33146 internal_error.
33147
33148 2015-01-22 Jeff Law <law@redhat.com>
33149
33150 PR target/52076
33151 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
33152 improve code density for small immediate to memory case.
33153 (insv): Better handle bitfield assignments when the field is
33154 being set to all ones.
33155 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
33156 operand predicate.
33157
33158 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33159 Jakub Jelinek <jakub@redhat.com>
33160
33161 PR middle-end/64729
33162 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
33163 for !TARGET_LIBC_PROVIDES_SSP version and
33164 -fstack-protector-{all,strong,explicit} otherwise.
33165 * config/freebsd.h (LINK_SSP_SPEC): Handle
33166 -fstack-protector-{strong,explicit}.
33167
33168 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
33169 H.J. Lu <hongjiu.lu@intel.com>
33170
33171 PR ipa/64694
33172 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
33173 heap.
33174
33175 2015-01-22 Wei Mi <wmi@google.com>
33176
33177 PR rtl-optimization/64557
33178 * dse.c (record_store): Call get_addr for mem_addr.
33179 (check_mem_read_rtx): Likewise.
33180
33181 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
33182
33183 * fold-const.c (const_binop): Add early return for non-tcc_binary.
33184
33185 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
33186
33187 * toplev.c (init_local_tick): Process the failure when read
33188 fails for random_seed.
33189
33190 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
33191 'pretty_name' to avoid memory overflow.
33192
33193 2015-01-22 Richard Biener <rguenther@suse.de>
33194
33195 PR middle-end/64728
33196 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
33197 abnormal coalescing on undefined SSA names.
33198
33199 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
33200
33201 PR target/64688
33202 PR target/64477
33203 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33204 for alternative 3.
33205 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33206
33207 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
33208
33209 PR middle-end/63325
33210 * fold-const.c (fold_checksum_tree): Don't include value of
33211 expr->decl_with_vis.symtab_node in the checksum.
33212
33213 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33214
33215 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33216
33217 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
33218
33219 PR driver/64690
33220 * gcc.c (insert_comments): New function.
33221 (try_generate_repro): Call it.
33222 (append_text): Removed.
33223
33224 2015-01-22 Richard Biener <rguenther@suse.de>
33225
33226 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33227 with IL incompatible options. Properly honor user optimize
33228 attributes.
33229
33230 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
33231
33232 PR rtl-optimization/64682
33233 * combine.c (distribute_notes): When moving a death note for
33234 a register that is set in the new I2, make sure to put it
33235 before that new I2.
33236
33237 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
33238
33239 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33240 not TARGET_DEFAULT.
33241
33242 2015-01-21 Jakub Jelinek <jakub@redhat.com>
33243
33244 PR debug/64511
33245 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33246 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33247 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33248
33249 PR sanitizer/64706
33250 * doc/invoke.texi (-fsanitize=vptr): Document.
33251
33252 PR rtl-optimization/62078
33253 * dse.c: Include cfgcleanup.h.
33254 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33255 anything call purge_all_dead_edges and cleanup_cfg at the end
33256 of the pass.
33257
33258 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
33259
33260 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33261 edges.
33262
33263 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33264
33265 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33266 decl attribute.
33267
33268 2015-01-21 David Sherwood <david.sherwood@arm.com>
33269 Tejas Belagod <Tejas.Belagod@arm.com>
33270
33271 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33272 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33273 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33274 Removed.
33275
33276 2015-01-21 David Sherwood <david.sherwood@arm.com>
33277 Tejas Belagod <Tejas.Belagod@arm.com>
33278
33279 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33280 (aarch64_reverse_mask): New decls.
33281 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33282 (insn_count): New mode_attr.
33283 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33284 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33285 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33286 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33287 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33288 (aarch64_simd_st4): New patterns.
33289 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33290 (aarch64_reverse_mask): New functions.
33291
33292 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33293
33294 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33295 Declare.
33296 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33297 addressing modes for BE.
33298 (aarch64_print_operand): Add 'R' specifier.
33299 (aarch64_simd_disambiguate_copy): Delete.
33300 (aarch64_simd_emit_reg_reg_move): New function.
33301 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33302 in define_splits for structural moves.
33303 (mov<mode>): Use less restrictive predicates.
33304 (*aarch64_mov<mode>): Simplify and only allow for LE.
33305 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33306
33307 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33308
33309 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33310
33311 2015-01-21 Richard Henderson <rth@redhat.com>
33312
33313 PR target/64669
33314 * ccmp.c (used_in_cond_stmt_p): Remove.
33315 (expand_ccmp_expr): Don't use it.
33316
33317 2015-01-21 Nick Clifton <nickc@redhat.com>
33318
33319 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33320 PARALLELs.
33321
33322 2015-01-21 Richard Biener <rguenther@suse.de>
33323
33324 PR middle-end/64313
33325 * tree-core.h (builtin_info, builtin_info_type): Turn from
33326 an object with two arrays into an array of an object with
33327 decl and two flags, implicit_p and declared_p.
33328 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33329 set_builtin_decl, set_builtin_decl_implicit_p,
33330 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33331 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33332 * builtins.c (builtin_info): Adjust.
33333 * gimplify.c (gimplify_addr_expr): References to builtins
33334 that have been declared by the user makes them eligible for
33335 use by the compiler. Call set_builtin_decl_implicit_p on them.
33336
33337 2015-01-20 Jeff Law <law@redhat.com>
33338
33339 PR target/59946
33340 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
33341 allow pc-relative addresses in operand predicates or constraints.
33342
33343 2015-01-21 Bin Cheng <bin.cheng@arm.com>
33344
33345 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
33346 neon on aarch32 processors for stringops.
33347
33348 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33349
33350 PR ipa/63576
33351 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
33352
33353 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33354
33355 PR lto/45375
33356 * ipa-inline.c: Include lto-streamer.h
33357 (report_inline_failed_reason): Output source file differences and
33358 flags on optimization/target node mismatch.
33359 (can_inline_edge_p): Consider caller to be the outer inline function;
33360 be less restrictive about matching opimize and optimize_size attributes.
33361 (inline_account_function_p): Break out from ...
33362 (inline_small_functions): ... here.
33363 * ipa-inline-transform.c (clone_inlined_nodes): Use
33364 inline_account_function_p.
33365 (inline_call): Use optimize attribution; use inline_account_function_p.
33366 (inline_transform): Use opt_for_fn.
33367 * ipa-inline.h (inline_account_function_p): Declare.
33368
33369 2015-01-20 Jakub Jelinek <jakub@redhat.com>
33370
33371 PR debug/64663
33372 * dwarf2out.c (decl_piece_node): Don't put bitsize into
33373 mode if bitsize <= 0.
33374 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33375 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33376 sizes and positions.
33377
33378 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
33379
33380 * config/nios2/nios2.c (nios2_asm_file_end): Implement
33381 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33382 needed.
33383 (TARGET_ASM_FILE_END): Define.
33384
33385 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33386
33387 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33388 (struct tune_params): Use the enum.
33389 * arm.c (arm_*_tune): Update.
33390 (arm_option_override): Update.
33391
33392 2015-01-20 Richard Biener <rguenther@suse.de>
33393
33394 PR ipa/64684
33395 * ipa-reference.c (add_static_var): Inline ...
33396 (analyze_function): ... here after splitting out from ...
33397 (is_proper_for_analysis): ... this.
33398
33399 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
33400
33401 PR target/64149
33402 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33403 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33404 replace the conditional with it's true branch.
33405 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33406 (arm_lra_p): Remove.
33407
33408 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
33409
33410 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33411
33412 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33413
33414 * config/tilegx/mul-tables.c: Move symtab.h include after
33415 coretypes.h include.
33416 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33417 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33418 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33419 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33420 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33421
33422 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
33423
33424 PR bootstrap/64676
33425 Revert:
33426 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33427
33428 PR rtl-optimization/64081
33429 * loop-iv.c (def_pred_latch_p): New function.
33430 (latch_dominating_def): Allow specific cases with non-single
33431 definitions.
33432 (iv_get_reaching_def): Likewise.
33433 (check_complex_exit_p): New function.
33434 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33435 with exits not executing on any iteration.
33436
33437 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33438
33439 PR lto/45375
33440 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33441 to set branch cost.
33442
33443 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33444
33445 PR lto/45375
33446 * i386.c (gate): Check flag_expensive_optimizations and
33447 optimize_size.
33448 (ix86_option_override_internal): Drop optimize_size condition
33449 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33450 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33451 MASK_PREFER_AVX128.
33452 (ix86_avx256_split_vector_move_misalign,
33453 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33454 * sse.md (all uses of TARGET_PREFER_AVX128): Add
33455 optimize_insn_for_speed_p check.
33456
33457 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
33458
33459 * config/mips/mips.h (FP_ASM_SPEC): New define.
33460 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33461 instead.
33462
33463 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
33464
33465 PR target/53988
33466 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33467 nullptr for insn when reaching the first insn.
33468 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33469 (sh_insn_operands_modified_between_p): Add nullptr check.
33470 (sh_find_extending_set_of_reg): Fix log message. Don't accept
33471 sign extending mem load if the insn contains any UNSPEC or
33472 UNSPEC_VOLATILE.
33473
33474 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33475
33476 * params.def (inline-unit-growth): Drop to 15%.
33477 * invoke.texi (inline-unit-growth): Document change.
33478
33479 2015-01-19 Martin Liska <mliska@suse.cz>
33480
33481 PR ipa/64668
33482 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33483 function for second argument of OBJ_TYPE_REF.
33484
33485 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33486
33487 PR ipa/64218
33488 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33489 whether function is an alias.
33490
33491 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33492
33493 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33494 cases.
33495
33496 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
33497
33498 PR rtl-optimization/64671
33499 * lra-remat.c (operand_to_remat): Don't consider jump and call
33500 insns.
33501
33502 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
33503
33504 PR target/59828
33505 * config/rs6000/default64.h: Include rs6000-cpus.def.
33506 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33507 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33508 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33509 and POWER8.
33510 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33511 POWER8.
33512 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33513 pseudo-op to specify assembler dialect.
33514
33515 2015-01-19 Martin Liska <mliska@suse.cz>
33516
33517 PR ipa/64664
33518 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33519 Handle safe potentially removed nodes during filtering.
33520
33521 2015-01-19 Martin Liska <mliska@suse.cz>
33522
33523 * doc/extend.texi (no_icf): Add new attribute description.
33524 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33525 where the pass attempts to merge a function with no_icf attribute.
33526
33527 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33528
33529 PR target/64532
33530 * doc/md.texi (ARM Options): Document register constraints.
33531
33532 2015-01-19 Jiong Wang <jiong.wang@arm.com>
33533 Andrew Pinski <apinski@cavium.com>
33534
33535 PR target/64304
33536 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33537 (ashl<mode>3): Don't expand if operands[2] is not constant.
33538
33539 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33540
33541 PR target/64448
33542 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33543 Match xor-and-xor RTL pattern.
33544
33545 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33546
33547 PR rtl-optimization/64081
33548 * loop-iv.c (def_pred_latch_p): New function.
33549 (latch_dominating_def): Allow specific cases with non-single
33550 definitions.
33551 (iv_get_reaching_def): Likewise.
33552 (check_complex_exit_p): New function.
33553 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33554 with exits not executing on any iteration.
33555
33556 2015-01-19 Jakub Jelinek <jakub@redhat.com>
33557
33558 * common.opt (fgraphite): Fix a typo.
33559
33560 2015-01-19 Felix Yang <felix.yang@huawei.com>
33561
33562 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33563 pattern.
33564 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33565 uminp, smax_nanp, smin_nanp): New builtins.
33566 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33567 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33568 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33569 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33570 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33571 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33572 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33573 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33574 vpminnms_f32): Rewrite using builtin functions.
33575
33576 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
33577
33578 PR libgomp/64625
33579 * omp-low.c (offload_symbol_decl): Remove variable.
33580 (get_offload_symbol_decl): Remove function.
33581 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33582 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33583 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33584 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33585 BUILT_IN_GOACC_UPDATE don't pass it at all.
33586
33587 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33588
33589 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33590 callers.
33591
33592 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33593
33594 * ipa-chkp.c (chkp_produce_thunks): Add early param
33595 to split thunks production into two passes. Keep
33596 'always_inline' function bodies after the first pass.
33597 (pass_data_ipa_chkp_early_produce_thunks): New.
33598 (pass_ipa_chkp_early_produce_thunks): New.
33599 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33600 chkp_produce_thunks signature.
33601 (make_pass_ipa_chkp_early_produce_thunks): New.
33602 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33603 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33604 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33605
33606 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33607
33608 * cgraph.c (cgraph_node::dump): Dump profile flags.
33609
33610 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
33611
33612 PR target/64652
33613 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33614 reg appear first in the parallel.
33615
33616 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33617
33618 * ipa-reference.c (set_reference_optimization_summary,
33619 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33620 disabled.
33621 (ignore_module_statics): New static var.
33622 (propagate_bits): If ipa-reference is disabled, do not look into local
33623 properties.
33624 (analyze_function): Disable analysis when ipa_reference is disabled.
33625 (generate_summary): Do not dump when reference is disabled;
33626 collect vars accessed from functions with ipa-reference disabled.
33627 (get_read_write_all_from_node): When ipa-reference is disabled, use the
33628 node flags.
33629 (gate): Enable for LTO.
33630 (ignore_edge_p): New function.
33631 (propagate): Skip functions w/o ipa-reference analysis.
33632 * optc-save-gen.awk: Handle optimize_debug correctly.
33633 * opth-gen.awk: Likewise.
33634 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33635 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33636 fira-share-save-slots, fira-share-spill-slots,
33637 fmodulo-sched-allow-regmoves, fpartial-inlining,
33638 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33639 ftracer, ftree-parallelize-loops, fassociative-math,
33640 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33641 Optimization
33642 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33643 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33644 Optimization.
33645 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33646 Fix for IPA.
33647
33648 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33649
33650 PR ipa/64378
33651 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33652 flag correctly.
33653 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33654
33655 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
33656
33657 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33658 Remove duplicate option listings.
33659
33660 2015-01-18 Felix Yang <felix.yang@huawei.com>
33661
33662 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33663 (autofdo_source_profile::get_callsite_total_count,
33664 function_instance::get_function_instance_by_decl,
33665 string_table::get_index, string_table::get_index_by_decl,
33666 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33667 Fix comment typos. Reformatting and minor code rearrangement.
33668
33669 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33670
33671 * config/rs6000/rs6000.md (probe_stack): Delete.
33672 (probe_stack_address): New.
33673
33674 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33675
33676 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33677 to test for 32-bit ABIs, not !TARGET_POWERPC64.
33678
33679 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33680
33681 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33682 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
33683 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
33684 snafu.
33685 (rs6000_libcall_value): Use the new function.
33686
33687 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
33688
33689 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33690
33691 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
33692
33693 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33694 implement a more precise life analysis for it during backward scan.
33695
33696 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
33697
33698 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33699
33700 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
33701
33702 PR rtl-optimization/52773
33703 * calls.c (emit_library_call_value): When pushing arguments use
33704 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33705 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
33706 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33707
33708 2015-01-17 Jeff Law <law@redhat.com>
33709
33710 PR rtl-optimization/32790
33711 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33712 not ZERO_EXTEND in SET_DESTs.
33713
33714 2015-01-17 Alan Modra <amodra@gmail.com>
33715
33716 * cprop.c (do_local_cprop): Revert last change.
33717
33718 2015-01-16 DJ Delorie <dj@redhat.com>
33719 Nick Clifton <nickc@redhat.com>
33720
33721 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33722 (addhi3_real): Likewise. Fix [HL+0] syntax.
33723 (subqi3_real): Likewise.
33724 (subhi3_real): Likewise.
33725 (cbranchqi4_real): Likewise. Allow saddr,#imm.
33726 (cbranchhi4_real): Likewise.
33727 (cbranchhi4_real_inverted): Likewise.
33728 (cbranchsi4_real_lt): Likewise.
33729 (cbranchsi4_real_ge): Likewise.
33730 (cbranchsi4_real_ge): Likewise.
33731 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33732 (sub<mode>3_virt): Likewise.
33733 (cbranchqi4_virt): Likewise.
33734 (cbranchhi4_virt): Likewise.
33735 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33736 always use '[reg+imm]' even when imm is zero.
33737 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33738 (rl78_general_operand): New.
33739 (rl78_nonimmediate_operand): New.
33740 (rl78_nonfar_operand): Use them.
33741 (rl78_nonfar_nonimm_operand): Likewise.
33742 (rl78_stack_based_mem): Fix.
33743 * config/rl78/constraints.md (Ibqi): New.
33744 (IBqi): New.
33745 (Wsa): New.
33746 (Wsf): New.
33747 (Cs1): Fix.
33748 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33749 (iorqi3): Likewise.
33750 (xorqi3): Likewise.
33751 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33752
33753 * config/rl78/constrains (Qs8): New constraint.
33754 * config/rl78/rl78.c (rl78_flags_already_set): New function.
33755 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33756 * config/rl78/rl78-real.md (update_Z): New attribute.
33757 Update patterns to set it.
33758 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33759 shorter compare and branch sequence can be used.
33760 (cbranchhi4_real): Likewise.
33761 (cbranchhi4_real_inverted): Likewise.
33762
33763 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33764 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33765 address space.
33766 * config/rl78/rl78.c (rl78_get_name_encoding): New.
33767 (rl78_option_override): Allow -mes0 only if C.
33768 (characterize_address): Support subregs of symbol_refs.
33769 (rl78_addr_space_address_mode): Move. Add __near.
33770 (rl78_far_p): Likewise.
33771 (rl78_addr_space_pointer_mode): Likewise.
33772 (rl78_as_legitimate_address): Likewise.
33773 (rl78_addr_space_subset_p): Likewise.
33774 (rl78_addr_space_convert): Likewise.
33775 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33776 symbols with -mes0.
33777 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
33778 addressing.
33779 (rl78_alloc_physical_registers_op1): Change logic to prefer
33780 symbol[BC] addressing.
33781 (frodata_section): New.
33782 (rl78_asm_init_sections): Initialize it.
33783 (rl78_select_section): Put __far readonly symbols in .frodata.
33784 (rl78_make_type_far): New.
33785 (rl78_insert_attributes): Force all readonly symbols to be
33786 __far when -mes0.
33787 (rl78_asm_out_integer): New.
33788 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33789 * config/rl78/rl78.opt (-mes0): New.
33790
33791 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33792 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33793 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33794 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33795 (rl78_saddr_p): New.
33796 (rl78_output_aligned_common): New.
33797 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33798 (rl78_handle_saddr_attribute): New.
33799 (rl78_handle_naked_attribute): New.
33800 (rl78_attribute_table): Add saddr.
33801 (rl78_print_operand_1): Don't print '!' on saddr operands.
33802 (rl78_print_operand_1): Strip encodings.
33803 (rl78_sfr_p): New.
33804 (rl78_strip_name_encoding): New.
33805 (rl78_attrlist_to_encoding): New.
33806 (rl78_encode_section_info): New.
33807 (rl78_asm_init_sections): New.
33808 (rl78_select_section): New.
33809 (rl78_output_labelref): New.
33810 (rl78_output_aligned_common): New.
33811 (rl78_asm_out_integer): New.
33812 (rl78_asm_ctor_dtor): New.
33813 (rl78_asm_constructor): New.
33814 (rl78_asm_destructor): New.
33815
33816 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33817 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33818 (transcode_memory_rtx): Update.
33819 (rl78_expand_epilogue): Use A_REG instead of 0.
33820
33821 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33822
33823 * config/arm/arm-protos.h (struct tune_params): New field
33824 sched_autopref_queue_depth.
33825 * config/arm/arm.c (sched-int.h): Include header.
33826 (arm_first_cycle_multipass_dfa_lookahead_guard,)
33827 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33828 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33829 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33830 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33831 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33832 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33833 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33834 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
33835 * config/arm/t-arm (arm.o): Update.
33836 * haifa-sched.c (update_insn_after_change): Update.
33837 (rank_for_schedule): Use auto-prefetcher model, if requested.
33838 (autopref_multipass_init): New static function.
33839 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33840 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33841 variable for debug dumps.
33842 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33843 (autopref_multipass_dfa_lookahead_guard): New global function that
33844 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33845 (init_h_i_d): Update.
33846 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33847 * sched-int.h (enum autopref_multipass_data_status): New const enum.
33848 (autopref_multipass_data_): Structure for auto-prefetcher data.
33849 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33850 (struct _haifa_insn_data:autopref_multipass_data): New field.
33851 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33852 (autopref_multipass_dfa_lookahead_guard): Declare.
33853
33854 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33855
33856 * rtlanal.c (get_base_term): Handle SCRATCH.
33857
33858 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33859
33860 * config/aarch64/aarch64.c
33861 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33862 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33863 * config/arm/arm.c
33864 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33865 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33866
33867 2015-01-17 Alan Modra <amodra@gmail.com>
33868
33869 * cprop.c (do_local_cprop): Disallow replacement of fixed
33870 hard registers.
33871
33872 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33873
33874 PR target/62066
33875 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33876 early return 0.
33877
33878 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
33879
33880 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33881 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33882
33883 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33884
33885 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33886 * config/arm/thumb1.md: ... Here.
33887
33888 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33889
33890 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33891 TImode for TARGET_32BIT.
33892
33893 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33894
33895 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33896 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33897 as ...
33898 (rs6000_abi_word_mode): New function.
33899
33900 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33901
33902 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33903 instead of UNITS_PER_WORD to describe the size of stack slots.
33904
33905 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33906
33907 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33908 as rs6000_promote_function_mode. Move comment to there.
33909 (rs6000_promote_function_mode): New function.
33910
33911 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33912
33913 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33914 -mpowerpc64 is active.
33915
33916 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33917
33918 PR middle-end/64353
33919 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33920 virtuals on start.
33921
33922 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33923
33924 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33925 introduced in revision 219724.
33926
33927 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33928 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33929
33930 PR target/64263
33931 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33932 destination is not a GP reg.
33933 (*movdi_aarch64): Likewise.
33934
33935 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
33936
33937 PR target/64623
33938 * config/rs6000/default64.h: Revert ISA change.
33939
33940 2015-01-16 Richard Biener <rguenther@suse.de>
33941
33942 PR middle-end/64614
33943 * tree-ssa-uninit.c: Include tree-cfg.h.
33944 (MAX_SWITCH_CASES): New define.
33945 (convert_control_dep_chain_into_preds): Handle switch statements.
33946 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33947 (normalize_one_pred_1): Do not split bit-manipulations.
33948 Record (x & CST).
33949
33950 2015-01-16 Richard Biener <rguenther@suse.de>
33951
33952 PR tree-optimization/64568
33953 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33954 complex load rewriting for TARGET_MEM_REFs.
33955
33956 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
33957
33958 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33959
33960 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
33961
33962 PR target/64149
33963 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33964 variable.
33965 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33966 (aarch64_lra_p): Remove.
33967
33968 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33969
33970 PR target/64363
33971 * ipa-chkp.h (chkp_instrumentable_p): New.
33972 * ipa-chkp.c: Include tree-inline.h.
33973 (chkp_instrumentable_p): New.
33974 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
33975 Fix processing of not instrumentable functions.
33976 (chkp_versioning): Use chkp_instrumentable_p. Warn about
33977 not instrumentable functions.
33978 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
33979 chkp_instrumentable_p.
33980 * tree-inline.h (copy_forbidden): New.
33981 * tree-inline.c (copy_forbidden): Not static anymore.
33982
33983 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33984
33985 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
33986 ptr1, ptr2 unused.
33987
33988 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33989
33990 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
33991 type OP_OUT to OP_INOUT.
33992
33993 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
33994
33995 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
33996 (high x) y) to y if x and y have the same base.
33997
33998 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33999
34000 * config/arm/cortex-a57.md: New.
34001 * config/aarch64/aarch64.md: Include it.
34002 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
34003 * config/aarch64/aarch64-tune.md: Regenerate.
34004
34005 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
34006
34007 PR target/64015
34008 * ccmp.c (expand_ccmp_next): New function.
34009 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
34010 and compare insn sequence.
34011 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
34012 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
34013 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
34014 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
34015 (*ccmp_ior): Changed to ccmp_ior<mode>.
34016 (cmp<mode>): New pattern.
34017 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
34018 parameters.
34019 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
34020
34021 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
34022
34023 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
34024 _mm256_bsrli_epi128): New.
34025 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
34026
34027 2015-01-15 Jiong Wang <jiong.wang@arm.com>
34028
34029 * expmed.c (store_bit_field_using_insv): Improve warning message.
34030 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
34031
34032 2015-01-15 Jiong Wang <jiong.wang@arm.com>
34033
34034 PR rtl-optimization/64011
34035 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
34036 there is partial overflow.
34037
34038 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34039
34040 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
34041 prototype.
34042 (nds32_expand_epilogue_v3pop): Likewise.
34043 * config/nds32/nds32.md (sibcall): Define this for sibling call
34044 optimization.
34045 (sibcall_register): Likewise.
34046 (sibcall_immediate): Likewise.
34047 (sibcall_value): Likewise.
34048 (sibcall_value_register): Likewise.
34049 (sibcall_value_immediate): Likewise.
34050 (sibcall_epilogue): Likewise.
34051 (epilogue): Pass false to indicate this is not a sibcall epilogue.
34052 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
34053 (nds32_expand_epilogue_v3pop): Likewise.
34054
34055 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34056
34057 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
34058 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
34059 (return_internal): New.
34060 (return): Define this named pattern.
34061 (simple_return): Define this named pattern.
34062 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
34063 pattern instead of unspec_volatile_func_return.
34064 (nds32_expand_epilogue_v3pop): Likewise.
34065 (nds32_can_use_return_insn): New function.
34066
34067 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34068
34069 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
34070 * config/nds32/nds32.md (pop25return): New.
34071 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
34072 pop25return pattern.
34073
34074 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34075
34076 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
34077 -mforbid-fp-as-gp, and -mex9 options.
34078
34079 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34080
34081 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
34082 remove -mgp-direct option.
34083
34084 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34085
34086 * doc/invoke.texi (--param early-inlining-insns): Update default value.
34087 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
34088
34089 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34090
34091 * ipa-inline.c (inline_small_functions): Work around hints
34092 cache issue.
34093
34094 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
34095
34096 PR target/59710
34097 * doc/invoke.texi (Option Summary): Document new Nios II
34098 -mgpopt= syntax.
34099 (Nios II Options): Likewise.
34100 * config/nios2/nios2.opt: Add -mgpopt= option support.
34101 Modify existing -mgpopt and -mno-gpopt options to be aliases.
34102 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
34103 * config/nios2/nios2.c (nios2_option_override): Adjust
34104 -mgpopt defaulting.
34105 (nios2_in_small_data_p): Return true for explicit small data
34106 sections even with -G0.
34107 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
34108 option choices.
34109
34110 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34111
34112 PR ipa/64612
34113 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
34114 of comdat locals.
34115 (inline_call): Fix removal of aliases.
34116
34117 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34118
34119 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
34120 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
34121 * opts.c (common_handle_option): Add -fsanitize=vptr.
34122 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
34123 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
34124 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
34125 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
34126 (ubsan_expand_vptr_ifn): New prototype.
34127 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
34128 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
34129 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
34130 expand_LOOP_VECTORIZED): Make argument nameless, remove
34131 ATTRIBUTE_UNUSED.
34132 (expand_UBSAN_VPTR): New function.
34133 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
34134 in fn spec.
34135 (UBSAN_VPTR): New internal function.
34136 * sanopt.c (tree_map_traits): Renamed to ...
34137 (sanopt_tree_map_traits): ... this.
34138 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
34139 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
34140 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
34141 (maybe_optimize_ubsan_vptr_ifn): New function.
34142 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
34143 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
34144 -fsanitize=vptr.
34145 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
34146 internal calls like pure functions for aliasing, even when they
34147 have other side-effects that prevent making them ECF_PURE.
34148 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
34149 (ubsan_expand_vptr_ifn): New function.
34150
34151 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
34152
34153 PR rtl-optimization/64110
34154 * stmt.c (parse_output_constraint): Process '^' and '$'.
34155 (parse_input_constraint): Ditto.
34156 * lra-constraints.c (process_alt_operands): Process the new
34157 constraints.
34158 * ira-costs.c (record_reg_classes): Process the new constraint
34159 '^'.
34160 * genoutput.c (indep_constraints): Add '^' and '$'.
34161 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
34162 * doc/md.texi: Add description of the new constraints.
34163
34164 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
34165 Bernd Schmidt <bernds@codesourcery.com>
34166 Cesar Philippidis <cesar@codesourcery.com>
34167 James Norris <jnorris@codesourcery.com>
34168 Tom de Vries <tom@codesourcery.com>
34169 Ilmir Usmanov <i.usmanov@samsung.com>
34170 Dmitry Bocharnikov <dmitry.b@samsung.com>
34171 Evgeny Gavrin <e.gavrin@samsung.com>
34172 Jakub Jelinek <jakub@redhat.com>
34173
34174 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
34175 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34176 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34177 New function types.
34178 * builtins.c: Include "gomp-constants.h".
34179 (expand_builtin_acc_on_device): New function.
34180 (expand_builtin, is_inexpensive_builtin): Handle
34181 BUILT_IN_ACC_ON_DEVICE.
34182 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
34183 New macros.
34184 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
34185 flag_openmp.
34186 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
34187 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
34188 i386/intelmic-offload.h.
34189 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
34190 to libgomp and its dependencies.
34191 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
34192 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
34193 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
34194 * config/ia64/hpux.h (LIB_SPEC): Likewise.
34195 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34196 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
34197 * doc/generic.texi: Update for OpenACC changes.
34198 * doc/gimple.texi: Likewise.
34199 * doc/invoke.texi: Likewise.
34200 * doc/sourcebuild.texi: Likewise.
34201 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34202 GF_OMP_FOR_KIND_OACC_LOOP.
34203 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34204 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34205 GF_OMP_TARGET_KIND_OACC_UPDATE,
34206 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34207 Dump more data.
34208 * gimple.c: Update comments for OpenACC changes.
34209 * gimple.def: Likewise.
34210 * gimple.h: Likewise.
34211 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34212 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34213 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34214 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34215 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34216 appropriate place.
34217 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34218 * gimplify.c: Include "gomp-constants.h".
34219 Update comments for OpenACC changes.
34220 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34221 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34222 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34223 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34224 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34225 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34226 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34227 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34228 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34229 OMP_CLAUSE_SEQ.
34230 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34231 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34232 OMP_CLAUSE_SET_MAP_KIND.
34233 (gimplify_oacc_cache): New function.
34234 (gimplify_omp_for): Handle OACC_LOOP.
34235 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34236 OACC_DATA.
34237 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34238 OACC_EXIT_DATA, OACC_UPDATE.
34239 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34240 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34241 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34242 (gimplify_body): Consider flag_openacc next to flag_openmp.
34243 * lto-streamer-out.c: Include "gomp-constants.h".
34244 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34245 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34246 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34247 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34248 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34249 (BUILT_IN_ACC_ON_DEVICE): New builtins.
34250 * omp-low.c: Include "gomp-constants.h".
34251 Update comments for OpenACC changes.
34252 (struct omp_context): Add reduction_map, gwv_below, gwv_this
34253 members.
34254 (extract_omp_for_data, use_pointer_for_field, install_var_field)
34255 (new_omp_context, delete_omp_context, scan_sharing_clauses)
34256 (create_omp_child_function, scan_omp_for, scan_omp_target)
34257 (check_omp_nesting_restrictions, lower_reduction_clauses)
34258 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34259 Update for OpenACC changes.
34260 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34261 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34262 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34263 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34264 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34265 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
34266 OMP_CLAUSE_MAP_*.
34267 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34268 Handle GF_OMP_FOR_KIND_OACC_LOOP.
34269 (expand_omp_target, lower_omp_target): Handle
34270 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34271 GF_OMP_TARGET_KIND_OACC_UPDATE,
34272 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34273 GF_OMP_TARGET_KIND_OACC_DATA.
34274 (pass_expand_omp::execute, execute_lower_omp)
34275 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34276 flag_openmp.
34277 (offload_symbol_decl): New variable.
34278 (oacc_get_reduction_array_id, oacc_max_threads)
34279 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34280 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34281 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34282 (oacc_gimple_assign, oacc_initialize_reduction_data)
34283 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34284 functions.
34285 (is_targetreg_ctx): Remove function.
34286 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34287 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34288 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34289 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34290 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34291 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34292 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34293 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34294 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34295 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34296 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34297 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34298 * tree-core.h: Update comments for OpenACC changes.
34299 (enum omp_clause_map_kind): Remove.
34300 (struct tree_omp_clause): Change type of map_kind member from enum
34301 omp_clause_map_kind to unsigned char.
34302 * tree-inline.c: Update comments for OpenACC changes.
34303 * tree-nested.c: Likewise. Include "gomp-constants.h".
34304 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34305 (convert_tramp_reference_stmt, convert_gimple_call): Update for
34306 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34307 OMP_CLAUSE_SET_MAP_KIND.
34308 * tree-pretty-print.c: Include "gomp-constants.h".
34309 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34310 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34311 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34312 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34313 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34314 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
34315 instead of OMP_CLAUSE_MAP_*.
34316 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34317 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34318 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34319 * tree-streamer-in.c: Include "gomp-constants.h".
34320 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34321 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
34322 * tree-streamer-out.c: Include "gomp-constants.h".
34323 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34324 OMP_CLAUSE_MAP_*.
34325 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34326 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34327 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34328 * tree.c (omp_clause_num_ops): Update accordingly.
34329 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34330 Likewise.
34331 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34332 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34333 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34334 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34335 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34336 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34337 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34338 (OMP_CLAUSE_SET_MAP_KIND): New macro.
34339 * varpool.c (varpool_node::get_create): Consider flag_openacc next
34340 to flag_openmp.
34341 * config/i386/intelmic-offload.h: New file.
34342 * config/nvptx/offload.h: Likewise.
34343
34344 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34345
34346 * explow.h: Remove duplicate contents.
34347 * dojump.h: Likewise.
34348
34349 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
34350
34351 * arm.c (arm_xgene_tune): Add default initializer for instruction
34352 fusion.
34353
34354 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34355
34356 PR ipa/64068
34357 PR ipa/64559
34358 * ipa.c (symbol_table::remove_unreachable_nodes):
34359 Do not put abstract origins into boundary.
34360
34361 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
34362
34363 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
34364 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
34365
34366 2015-01-15 Steve Ellcey <sellcey@mips.com>
34367
34368 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34369 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34370 builtins.def, and chkp-builtins.def.
34371
34372 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
34373
34374 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34375 ISA 2.7 (POWER8).
34376
34377 2015-01-15 Richard Biener <rguenther@suse.de>
34378
34379 PR tree-optimization/61743
34380 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34381 information on PHIs for some simple cases.
34382
34383 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34384
34385 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34386 Include xgene1.md.
34387 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34388 * config/arm/arm-cores.def (xgene1): New entry.
34389 * config/arm/arm-tables.opt: Regenerate.
34390 * config/arm/arm-tune.md: Regenerate.
34391 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34392
34393 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34394
34395 * tree-if-conv.c: Include hash-map.h.
34396 (aggressive_if_conv): New variable.
34397 (fold_build_cond_expr): Add simplification of non-zero condition.
34398 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34399 destination block is not always executed.
34400 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34401 than two predecessors if AGGRESSIVE_IF_CONV is true.
34402 (if_convertible_stmt_p): Fix commentary.
34403 (all_preds_critical_p): New function.
34404 (has_pred_critical_p): New function.
34405 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34406 BB can have more than two predecessors and all incoming edges can be
34407 critical.
34408 (predicate_bbs): Skip predication for loop exit block, use build2_loc
34409 to compute predicate for true edge.
34410 (find_phi_replacement_condition): Delete this function.
34411 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34412 Allow interchange PHI arguments if EXTENDED is false.
34413 Change check that block containing reduction statement candidate
34414 is predecessor of phi-block since phi may have more than two arguments.
34415 (phi_args_hash_traits): New helper structure.
34416 (struct phi_args_hash_traits): New type.
34417 (phi_args_hash_traits::hash): New function.
34418 (phi_args_hash_traits::equal_keys): New function.
34419 (gen_phi_arg_condition): New function.
34420 (predicate_scalar_phi): Add handling of phi nodes with more than two
34421 arguments, delete COND and TRUE_BB arguments, insert body of
34422 find_phi_replacement_condition to predicate ordinary phi nodes.
34423 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34424 delete call of find_phi_replacement_condition and invoke
34425 predicate_scalar_phi with two arguments.
34426 (insert_gimplified_predicates): Add assert that non-predicated block
34427 don't have statements to insert.
34428 (ifcvt_split_critical_edges): New function.
34429 (ifcvt_split_def_stmt): Likewise.
34430 (ifcvt_walk_pattern_tree): Likewise.
34431 (stmt_is_root_of_bool_pattern): Likewise.
34432 (ifcvt_repair_bool_pattern): Likewise.
34433 (ifcvt_local_dce): Likewise.
34434 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34435 is copy of inner or outer loop force_vectorize field, invoke
34436 ifcvt_split_critical_edges, ifcvt_local_dce and
34437 ifcvt_repair_bool_pattern for aggressive if-conversion.
34438
34439 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
34440
34441 * config/aarch64/aarch64.md: Include xgene1.md.
34442 * config/aarch64/xgene1.md: New file.
34443
34444 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34445
34446 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34447 xgene1 (APM XGene-1) core definition.
34448 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34449 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34450 * doc/invoke.texi: Document -mcpu=xgene1.
34451
34452 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34453
34454 * dojump.h: New header file.
34455 * explow.h: Likewise.
34456 * expr.h: Remove includes.
34457 Move expmed.c prototypes to expmed.h.
34458 Move dojump.c prototypes to dojump.h.
34459 Move alias.c prototypes to alias.h.
34460 Move explow.c prototypes to explow.h.
34461 Move calls.c prototypes to calls.h.
34462 Move emit-rtl.c prototypes to emit-rtl.h.
34463 Move varasm.c prototypes to varasm.h.
34464 Move stmt.c prototypes to stmt.h.
34465 (saved_pending_stack_adjust): Move to dojump.h.
34466 (adjust_address): Move to explow.h.
34467 (adjust_address_nv): Move to emit-rtl.h.
34468 (adjust_bitfield_address): Likewise.
34469 (adjust_bitfield_address_size): Likewise.
34470 (adjust_bitfield_address_nv): Likewise.
34471 (adjust_automodify_address_nv): Likewise.
34472 * explow.c (expr_size): Move to expr.c.
34473 (int_expr_size): Likewise.
34474 (tree_expr_size): Likewise.
34475 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34476 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34477 * genemit.c (main): Generate includes statistics.h, real.h,
34478 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34479 stmt.h.
34480 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34481 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34482 explow.h, emit-rtl.h, stmt.h.
34483 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34484 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34485 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34486 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34487 emit-rtl.h, varasm.h, stmt.h.
34488 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34489 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34490 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34491 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34492 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34493 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34494 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34495 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34496 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34497 tm.h tree.h varasm.h vec.h wide-int.h.
34498 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34499 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34500 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34501 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34502 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34503 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34504 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34505 * loop-iv.c: Likewise.
34506 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34507 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34508 statistics.h stmt.h tree.h varasm.h wide-int.h.
34509 * lra-constraints.c: Likewise.
34510 * lra-eliminations.c: Likewise.
34511 * lra-lives.c: Likewise.
34512 * lra-remat.c: Likewise.
34513 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34514 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34515 statistics.h stmt.h tree.h varasm.h wide-int.h.
34516 * hw-doloop.c: Likewise.
34517 * ira-color.c: Likewise.
34518 * ira-emit.c: Likewise.
34519 * loop-doloop.c: Likewise.
34520 * loop-invariant.c: Likewise.
34521 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34522 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34523 statistics.h stmt.h tree.h varasm.h wide-int.h.
34524 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34525 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34526 statistics.h stmt.h tree.h varasm.h wide-int.h.
34527 * combine-stack-adj.c: Likewise.
34528 * cse.c: Likewise.
34529 * ddg.c: Likewise.
34530 * ifcvt.c: Likewise.
34531 * ira-costs.c: Likewise.
34532 * jump.c: Likewise.
34533 * lra-coalesce.c: Likewise.
34534 * lra-spills.c: Likewise.
34535 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34536 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34537 stmt.h varasm.h wide-int.h.
34538 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34539 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34540 varasm.h.
34541 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34542 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34543 statistics.h stmt.h varasm.h wide-int.h.
34544 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34545 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34546 varasm.h wide-int.h.
34547 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34548 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34549 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34550 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34551 statistics.h stmt.h.
34552 * config/tilepro/tilepro.c: Likewise.
34553 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34554 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34555 * config/pdp11/pdp11.c: Likewise.
34556 * config/xtensa/xtensa.c: Likewise.
34557 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34558 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34559 varasm.h.
34560 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34561 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34562 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34563 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34564 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34565 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34566 * rtl-chkp.c: Likewise.
34567 * tree-chkp-opt.c: Likewise.
34568 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34569 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34570 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34571 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34572 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34573 statistics.h stmt.h.
34574 * tree-vect-data-refs.c: Likewise.
34575 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34576 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34577 rtl.h statistics.h stmt.h varasm.h.
34578 * internal-fn.c: Likewise.
34579 * ipa-icf-gimple.c: Likewise.
34580 * lto-section-out.c: Likewise.
34581 * tree-data-ref.c: Likewise.
34582 * tree-nested.c: Likewise.
34583 * tree-outof-ssa.c: Likewise.
34584 * tree-predcom.c: Likewise.
34585 * tree-pretty-print.c: Likewise.
34586 * tree-scalar-evolution.c: Likewise.
34587 * tree-ssa-strlen.c: Likewise.
34588 * tree-vect-loop.c: Likewise.
34589 * tree-vect-patterns.c: Likewise.
34590 * tree-vect-slp.c: Likewise.
34591 * tree-vect-stmts.c: Likewise.
34592 * tsan.c: Likewise.
34593 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34594 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34595 stmt.h.
34596 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34597 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34598 statistics.h stmt.h varasm.h.
34599 * loop-unroll.c: Likewise.
34600 * ubsan.c: Likewise.
34601 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34602 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34603 stmt.h varasm.h.
34604 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34605 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34606 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34607 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34608 statistics.h stmt.h.
34609 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34610 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34611 statistics.h stmt.h varasm.h.
34612 * gimple-match-head.c: Likewise.
34613 * lto-cgraph.c: Likewise.
34614 * lto-section-in.c: Likewise.
34615 * lto-streamer-in.c: Likewise.
34616 * lto-streamer-out.c: Likewise.
34617 * tree-affine.c: Likewise.
34618 * tree-cfg.c: Likewise.
34619 * tree-cfgcleanup.c: Likewise.
34620 * tree-if-conv.c: Likewise.
34621 * tree-into-ssa.c: Likewise.
34622 * tree-ssa-alias.c: Likewise.
34623 * tree-ssa-copyrename.c: Likewise.
34624 * tree-ssa-dse.c: Likewise.
34625 * tree-ssa-forwprop.c: Likewise.
34626 * tree-ssa-live.c: Likewise.
34627 * tree-ssa-math-opts.c: Likewise.
34628 * tree-ssa-pre.c: Likewise.
34629 * tree-ssa-sccvn.c: Likewise.
34630 * tree-tailcall.c: Likewise.
34631 * tree-vect-generic.c: Likewise.
34632 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34633 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34634 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34635 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34636 * varasm.c: Likewise.
34637 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34638 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34639 varasm.h.
34640 * init-regs.c: Likewise.
34641 * ira.c: Likewise.
34642 * omp-low.c: Likewise.
34643 * stack-ptr-mod.c: Likewise.
34644 * tree-ssa-reassoc.c: Likewise.
34645 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34646 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34647 varasm.h.
34648 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34649 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34650 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34651 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34652 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34653 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34654 * tree-ssa-phiopt.c: Likewise.
34655 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34656 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34657 * config/fr30/fr30.c: Likewise.
34658 * config/frv/frv.c: Likewise.
34659 * expr.c: Likewise.
34660 * final.c: Likewise.
34661 * optabs.c: Likewise.
34662 * passes.c: Likewise.
34663 * simplify-rtx.c: Likewise.
34664 * stmt.c: Likewise.
34665 * toplev.c: Likewise.
34666 * var-tracking.c: Likewise.
34667 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34668 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34669 * lower-subreg.c: Likewise.
34670 * postreload-gcse.c: Likewise.
34671 * ree.c: Likewise.
34672 * reginfo.c: Likewise.
34673 * store-motion.c: Likewise.
34674 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34675 fixed-value.h hashtab.h real.h stmt.h varasm.h.
34676 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34677 fixed-value.h hashtab.h statistics.h stmt.h.
34678 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34679 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34680 * except.c: Likewise.
34681 * explow.c: Likewise.
34682 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34683 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34684 varasm.h.
34685 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34686 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34687 * tree-ssa-structalias.c: Likewise.
34688 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34689 fixed-value.h insn-config.h real.h statistics.h.
34690 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34691 fixed-value.h insn-config.h real.h statistics.h stmt.h.
34692 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34693 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34694 * cfgbuild.c: Likewise.
34695 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34696 fixed-value.h real.h rtl.h statistics.h stmt.h.
34697 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34698 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34699 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34700 fixed-value.h real.h statistics.h stmt.h.
34701 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34702 fixed-value.h real.h statistics.h stmt.h varasm.h.
34703 * cprop.c: Likewise.
34704 * modulo-sched.c: Likewise.
34705 * postreload.c: Likewise.
34706 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34707 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34708 statistics.h stmt.h varasm.h.
34709 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34710 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34711 rtl.h statistics.h stmt.h varasm.h.
34712 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34713 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34714 varasm.h.
34715 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34716 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34717 varasm.h.
34718 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34719 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34720 varasm.h.
34721 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34722 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34723 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34724 function.h real.h statistics.h stmt.h varasm.h.
34725 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34726 insn-config.h real.h statistics.h stmt.h.
34727 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34728 statistics.h stmt.h.
34729 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34730 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34731 statistics.h stmt.h varasm.h.
34732 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34733 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34734 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34735 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34736 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34737 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34738 statistics.h stmt.h varasm.h.
34739 * ipa-polymorphic-call.c: Likewise.
34740 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34741 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34742 statistics.h stmt.h.
34743 * config/c6x/c6x.c: Likewise.
34744 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34745 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34746 statistics.h stmt.h varasm.h.
34747 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34748 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34749 stmt.h varasm.h.
34750 * ipa-split.c: Likewise.
34751 * tree-eh.c: Likewise.
34752 * tree-ssa-dce.c: Likewise.
34753 * tree-ssa-loop-niter.c: Likewise.
34754 * tree-vrp.c: Likewise.
34755 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34756 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34757 stmt.h.
34758 * config/nds32/nds32-fp-as-gp.c: Likewise.
34759 * config/nds32/nds32-intrinsic.c: Likewise.
34760 * config/nds32/nds32-isr.c: Likewise.
34761 * config/nds32/nds32-md-auxiliary.c: Likewise.
34762 * config/nds32/nds32-memory-manipulation.c: Likewise.
34763 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34764 * config/nds32/nds32-predicates.c: Likewise.
34765 * config/nds32/nds32.c: Likewise.
34766 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34767 fixed-value.h hashtab.h real.h statistics.h.
34768 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34769 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34770 * config/arm/arm.c: Likewise.
34771 * config/avr/avr.c: Likewise.
34772 * config/bfin/bfin.c: Likewise.
34773 * config/h8300/h8300.c: Likewise.
34774 * config/i386/i386.c: Likewise.
34775 * config/ia64/ia64.c: Likewise.
34776 * config/iq2000/iq2000.c: Likewise.
34777 * config/m32c/m32c.c: Likewise.
34778 * config/m32r/m32r.c: Likewise.
34779 * config/m68k/m68k.c: Likewise.
34780 * config/mcore/mcore.c: Likewise.
34781 * config/mep/mep.c: Likewise.
34782 * config/mips/mips.c: Likewise.
34783 * config/mn10300/mn10300.c: Likewise.
34784 * config/moxie/moxie.c: Likewise.
34785 * config/pa/pa.c: Likewise.
34786 * config/rl78/rl78.c: Likewise.
34787 * config/rx/rx.c: Likewise.
34788 * config/s390/s390.c: Likewise.
34789 * config/sh/sh.c: Likewise.
34790 * config/sparc/sparc.c: Likewise.
34791 * config/spu/spu.c: Likewise.
34792 * config/stormy16/stormy16.c: Likewise.
34793 * config/v850/v850.c: Likewise.
34794 * config/vax/vax.c: Likewise.
34795 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34796 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34797 * config/msp430/msp430.c: Likewise.
34798 * predict.c: Likewise.
34799 * value-prof.c: Likewise.
34800 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34801 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34802 * config/microblaze/microblaze.c: Likewise.
34803 * config/nios2/nios2.c: Likewise.
34804 * config/rs6000/rs6000.c: Likewise.
34805 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34806 insn-config.h real.h rtl.h statistics.h stmt.h.
34807 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34808 insn-config.h real.h statistics.h stmt.h.
34809 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34810 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34811 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34812 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34813 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34814 fixed-value.h real.h statistics.h stmt.h.
34815 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34816 fixed-value.h statistics.h stmt.h.
34817 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34818 stmt.h.
34819
34820 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34821
34822 * gengtype.c (create_user_defined_type): Workaround
34823 -Wmaybe-uninitialized false positives.
34824 * cse.c (fold_rtx): Likewise.
34825 * loop-invariant.c (gain_for_invariant): Likewise.
34826
34827 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
34828
34829 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34830 set the memory attributes in all cases but clear MEM_EXPR if need be.
34831
34832 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34833
34834 PR tree-optimization/64434
34835 * cfgexpand.c (reorder_operands): New function.
34836 (expand_gimple_basic_block): Insert call of reorder_operands if
34837 optimized is true.
34838
34839 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
34840
34841 * config/mips/micromips.md (*swp): Remove explicit parallel.
34842 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34843 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34844 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34845 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34846 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34847 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34848 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34849 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34850 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34851 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34852 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34853 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34854 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34855 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34856 (mips_wrdsp): Likewise.
34857 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34858 parallel.
34859 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34860 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34861 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34862 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34863 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34864 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34865 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34866 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34867 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34868
34869 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34870
34871 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34872 (mips_print_operand): Support 'y' to print exact log2 in decimal
34873 of a const_int.
34874 * config/mips/mips.h (ISA_HAS_LSA): New define.
34875 (ISA_HAS_DLSA): Likewise.
34876 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34877 * config/mips/predicates.md (const_immlsa_operand): New predicate.
34878
34879 2015-01-15 Martin Liska <mliska@suse.cz>
34880
34881 PR target/64377
34882 * optc-save-gen.awk: Add support for array types.
34883
34884 2015-01-15 Richard Biener <rguenther@suse.de>
34885
34886 PR middle-end/64365
34887 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34888 for MEM_REF access functions with the same base can never partially
34889 overlap.
34890
34891 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
34892
34893 * common.opt: New option -fstack-protector-explicit.
34894 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34895 (stack_protect_decl_phase): Handle stack_protect attribute for
34896 explicit stack protection requests.
34897 (expand_used_vars): Similarly.
34898 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34899 * doc/extend.texi: Add documentation for "stack_protect" attribute.
34900 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34901
34902 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
34903
34904 PR target/53988
34905 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34906 reg-reg copies.
34907 (sh_extending_set_of_reg): New struct.
34908 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34909 sh_remove_reg_dead_or_unused_notes): New Declarations.
34910 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34911 sh_find_extending_set_of_reg, sh_split_tst_subregs,
34912 sh_extending_set_of_reg::use_as_extended_reg): New functions.
34913 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34914 convert to insn_and_split and use new function sh_split_tst_subregs.
34915
34916 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
34917
34918 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34919 option.
34920 (Optimization Options): Move -fuse-ld documentation to...
34921 (Link Options): ...here.
34922
34923 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34924
34925 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34926 offsets.
34927 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34928 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34929 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34930 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34931 instead of ZR for the memory operand of LL/SC.
34932 (compare_and_swap_12, sync_add<mode>): Likewise.
34933 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34934 (sync_new_<optab>_12, sync_nand_12): Likewise.
34935 (sync_old_nand_12, sync_new_nand_12): Likewise.
34936 (sync_sub<mode>, sync_old_add<mode>): Likewise.
34937 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34938 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34939 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34940 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34941 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34942 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34943 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34944 * doc/md.texi (ZC): Update description.
34945
34946 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34947
34948 * builtins.c (expand_builtin_atomic_exchange): Remove error when
34949 memory model is CONSUME.
34950 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34951 expand_builtin_atomic_store): Change invalid memory model errors to
34952 warnings.
34953 (expand_builtin_atomic_clear): Change invalid model errors to warnings
34954 and issue warning for CONSUME.
34955
34956 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
34957
34958 * lto-cgraph: Update function comments for
34959 lto_symtab_encoder_encode_*.
34960
34961 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34962
34963 * Makefile.in (site.exp): Do not set ENABLE_LTO.
34964
34965 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34966
34967 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34968 * lto-cgraph.c (select_what_to_stream): Remove argument, use
34969 lto_stream_offload_p instead.
34970 * lto-streamer.h (select_what_to_stream): Remove argument.
34971 * passes.c (ipa_write_summaries): Likewise.
34972 * tree-pass.h (ipa_write_summaries): Likewise.
34973
34974 2015-01-14 Richard Biener <rguenther@suse.de>
34975
34976 PR tree-optimization/59354
34977 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
34978 groups larger than the slp group size as having gaps.
34979
34980 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34981
34982 PR middle-end/59448
34983 * builtins.c (get_memmodel): Promote consume to acquire always.
34984
34985 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34986
34987 PR target/64386
34988 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
34989 V32HImode.
34990
34991 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
34992
34993 PR target/64393
34994 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
34995 Enable AVX512BW.
34996 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
34997 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
34998 AVX512VBMI, as it implies AVX512BW.
34999
35000 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35001
35002 PR target/64387
35003 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
35004 (vec_unpacks_hi_v16sf): Ditto.
35005
35006 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35007
35008 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
35009 is not available.
35010
35011 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35012
35013 * doc/invoke.texi (mapcs): Mention deprecation.
35014 (mapcs-frame): Likewise.
35015
35016 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
35017
35018 PR target/64453
35019 * config/arm/arm.c (callee_saved_reg_p): Define.
35020 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
35021 register is callee saved instead of !call_used_regs[reg].
35022 (thumb1_compute_save_reg_mask): Likewise.
35023
35024 2015-01-14 Hale Wang <hale.wang@arm.com>
35025
35026 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
35027 Cortex-M7.
35028
35029 2015-01-14 Richard Biener <rguenther@suse.de>
35030
35031 PR lto/64415
35032 * tree-inline.c (insert_debug_decl_map): Check destination
35033 function MAY_HAVE_DEBUG_STMTS.
35034 (insert_init_debug_bind): Likewise.
35035 (insert_init_stmt): Remove redundant check.
35036 (remap_gimple_stmt): Drop debug stmts if the destination
35037 function has var-tracking assignments disabled.
35038
35039 2015-01-14 Martin Liska <mliska@suse.cz>
35040
35041 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
35042 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
35043
35044 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35045
35046 PR target/64460
35047 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
35048 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
35049
35050 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
35051
35052 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
35053 level from an ARCH; do not inject the default.
35054 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
35055 MIPS_ISA_LEVEL_SPEC.
35056 (MIPS_ISA_NAN2008_SPEC): Update comment.
35057 (BASE_DRIVER_SELF_SPECS): Likewise.
35058 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
35059 MIPS_DEFAULT_ISA_LEVEL_SPEC.
35060 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
35061 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
35062 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
35063
35064 2015-01-14 Richard Biener <rguenther@suse.de>
35065
35066 PR tree-optimization/64493
35067 PR tree-optimization/64495
35068 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
35069 assign the proper vectorized PHI to the inner loop exit PHIs.
35070
35071 2015-01-14 Joey Ye <joey.ye@arm.com>
35072
35073 * config/arm/arm.c (arm_compute_save_reg_mask):
35074 Do not save lr in case of tail call.
35075 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
35076
35077 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
35078
35079 * tree-vrp.c (check_array_ref): Emit more warnings
35080 for warn_array_bounds >= 2.
35081 * common.opt: New option -Warray-bounds=.
35082 * doc/invoke.texi: Document -Warray-bounds=.
35083
35084 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
35085
35086 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
35087 (mforbid-fp-as-gp): Remove.
35088 (mex9): Remove.
35089 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
35090 (nds32_symbol_load_store_p): Remove.
35091 (nds32_fp_as_gp_check_available): Clean up implementation.
35092 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
35093 cases.
35094 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
35095 fp-as-gp and ex9 cases.
35096
35097 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35098
35099 * tree-profile.c (init_ic_make_global_vars): Drop workaround
35100 for bintuils bug 14342.
35101 (init_ic_make_global_vars): Likewise.
35102 (gimple_init_edge_profiler): Likewise.
35103 (gimple_gen_ic_func_profiler): Likewise.
35104
35105 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35106
35107 * ipa-inline.c (inline_small_functions): Swap the operands in
35108 enum.
35109
35110 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35111
35112 PR ipa/64481
35113 * ipa-inline-analysis.c (node_growth_cache): Remove.
35114 (initialize_growth_caches): Do not initialize it.
35115 (free_growth_caches): Do not free it.
35116 (do_estimate_growth): Rename to ...
35117 (estimate_growth): ... this one; drop growth cache code.
35118 (growth_likely_positive): Always go the heuristics way.
35119 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
35120 (reset_edge_caches): Do not reset node growth.
35121 (heap_edge_removal_hook): Do not maintain cache.
35122 (inline_small_functions): Likewise; strenghten sanity check.
35123 (ipa_inline): Do not maintain caches.
35124 * ipa-inline.h (node_growth_cache): Remove.
35125 (do_estimate_growth): Remove to ...
35126 (estimate_growth): this one; remove inline version.
35127 (reset_node_growth_cache): Remove.
35128
35129 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35130
35131 PR ipa/64565
35132 * ipa-inline.c (inline_small_functions): Update callee keys after
35133 resolving speculation
35134 (inline_small_functions): Always check monotonicity of the queue.
35135
35136 2015-01-13 Marek Polacek <polacek@redhat.com>
35137
35138 PR middle-end/64391
35139 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
35140
35141 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35142
35143 PR rtl-optimization/64286
35144 * ree.c (combine_reaching_defs): Move part of comment earlier,
35145 remove !SCALAR_INT_MODE_P check.
35146 (add_removable_extension): Don't add vector mode
35147 extensions if all uses of the source register aren't the same
35148 vector extensions.
35149
35150 2015-01-13 Renlin Li <renlin.li@arm.com>
35151
35152 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
35153 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
35154
35155 2015-01-13 Martin Liska <mliska@suse.cz>
35156
35157 * ipa-icf.c (sem_function::equals_private): Call new functions
35158 cl_target_option_print_diff and cl_optimization_print_diff.
35159 * optc-save-gen.awk (cl_target_option_print_diff): New function.
35160 (cl_optimization_print_diff): Likewise.
35161 * opth-gen.awk: Likewise.
35162
35163 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
35164
35165 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
35166 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
35167 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
35168 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
35169 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
35170 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
35171
35172 2015-01-13 Andrew Pinski <apinski@cavium.com>
35173
35174 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
35175 instead of src mode.
35176
35177 2015-01-13 Richard Biener <rguenther@suse.de>
35178
35179 PR lto/64373
35180 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
35181 DECL_CONTEXT.
35182
35183 2015-01-13 Andrew Pinski <apinski@cavium.com>
35184
35185 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
35186 volatile mems.
35187 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
35188
35189 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35190
35191 PR middle-end/63974
35192 * cfgexpand.c (expand_computed_goto): Don't call
35193 convert_memory_address here.
35194
35195 2015-01-13 Richard Biener <rguenther@suse.de>
35196
35197 PR tree-optimization/64406
35198 * tree-loop-distibution.c (pass_loop_distribution::execute):
35199 Reset the SCEV hashtable if we distributed anything.
35200
35201 2015-01-13 Richard Biener <rguenther@suse.de>
35202
35203 PR tree-optimization/64404
35204 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35205 SLP types for CSEd loads.
35206
35207 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35208
35209 PR tree-optimization/64436
35210 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35211 merge of two symbolic numbers for a bitwise OR to ...
35212 (perform_symbolic_merge): This. Also fix computation of the range and
35213 end of the symbolic number corresponding to the result of a bitwise OR.
35214
35215 2015-01-13 Richard Biener <rguenther@suse.de>
35216
35217 PR tree-optimization/64568
35218 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35219 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35220
35221 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35222
35223 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35224 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35225
35226 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35227
35228 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35229 target-specific symbol_ref flag.
35230 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35231 resides in rodata section.
35232 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35233 (nds32_encode_section_info): New function.
35234
35235 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35236
35237 * config/nds32/nds32.md (call): Use pseudo instruction bal which
35238 clobbers TA_REGNUM if large code model is specified.
35239 (call_register): Likewise.
35240 (call_immediate): Likewise.
35241 (call_value): Likewise.
35242 (call_value_register): Likewise.
35243 (call_value_immediate): Likewise.
35244
35245 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35246
35247 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35248 (TARGET_CMODEL_MEDIUM): New macro.
35249 (TARGET_CMODEL_LARGE): New macro.
35250 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35251 code model setting in assembly code.
35252
35253 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35254
35255 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35256 Remove MASK_GP_DIRECT flag.
35257 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35258 one of the multilib default options.
35259 * config/nds32/nds32.opt (mgp-direct): Remove.
35260 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35261 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
35262
35263 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35264
35265 * config/nds32/nds32.opt (mcmodel): Add new option.
35266 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35267 to describe code model.
35268
35269 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
35270
35271 PR target/64479
35272 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35273
35274 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
35275
35276 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35277 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35278 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35279 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35280 __builtin_sh_set_fpscr.
35281
35282 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35283
35284 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35285 after a funtion name just to indicate it is a function.
35286 ([-fsanitize-undefined-trap-on-error]): Likewise.
35287 ([-fdbg-cnt=]): Likewise.
35288 ([-mmemcpy]): Likewise.
35289 ([-mflush-func]): Likewise.
35290 ([-msynci]): Likewise.
35291
35292 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35293
35294 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35295 example.
35296
35297 2015-01-12 Jakub Jelinek <jakub@redhat.com>
35298
35299 PR tree-optimization/64563
35300 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35301 instead of != VR_VARYING.
35302
35303 PR target/64513
35304 * config/i386/i386.c (ix86_expand_prologue): Add
35305 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35306
35307 PR tree-optimization/64454
35308 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35309 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35310 for signed or [0, op1 - 1] for unsigned modulo.
35311 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35312 even if op1 does not satisfy integer_pow2p.
35313
35314 PR other/64370
35315 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35316
35317 2015-01-12 Jeff Law <law@redhat.com>
35318
35319 PR target/64461
35320 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35321 (trunchiqi2, truncsihi2): Similarly.
35322
35323 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35324 rather than calling F.
35325
35326 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
35327
35328 * tsan.c (instrument_expr): Use force_gimple_operand.
35329 Use may_be_nonaddressable_p instead of is_gimple_addressable.
35330
35331 2015-01-12 Richard Biener <rguenther@suse.de>
35332
35333 PR tree-optimization/64530
35334 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35335 back dr1.
35336
35337 2015-01-12 Richard Biener <rguenther@suse.de>
35338
35339 PR middle-end/64357
35340 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
35341 latches properly.
35342
35343 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35344
35345 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
35346 Cortex-A17 tuning parameters.
35347 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
35348
35349 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35350
35351 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
35352 * config/arm/arm.c (arm_macro_fusion_p): New function.
35353 (arm_macro_fusion_pair_p): Likewise.
35354 (TARGET_SCHED_MACRO_FUSION_P): Define.
35355 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
35356 (ARM_FUSE_NOTHING): Likewise.
35357 (ARM_FUSE_MOVW_MOVT): Likewise.
35358 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
35359 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
35360 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
35361 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
35362 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
35363 arm_cortex_a5_tune): Specify fuseable_ops value.
35364
35365 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
35366
35367 PR bootstrap/64561
35368 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35369 test for PIE with copy reloc.
35370 * configure: Regenerated.
35371
35372 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35373
35374 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35375 in gen_rtx_REG.
35376 (arm_tls_descseq_addr): Likewise.
35377 (arm_gen_movmemqi): Likewise.
35378 (arm_expand_epilogue_apcs_frame): Likewise.
35379 (arm_expand_epilogue): Likewise.
35380 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
35381 in gen_rtx_REG.
35382
35383 2015-01-12 Martin Liska <mliska@suse.cz>
35384
35385 PR ipa/64550
35386 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35387 volatility for correct operands.
35388
35389 2015-01-12 Martin Liska <mliska@suse.cz>
35390
35391 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35392 indication that a function is not leaf.
35393 (sem_function::compare_polymorphic_p): Likewise.
35394
35395 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35396
35397 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35398 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35399 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35400 fold-const.h, tree-check.h.
35401
35402 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35403
35404 PR ipa/63967
35405 PR ipa/64425
35406 * ipa-inline.c (compute_uninlined_call_time,
35407 compute_inlined_call_time): Use counts for extra precision when
35408 needed possible.
35409 (big_speedup_p): Fix formating.
35410 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35411 (relative_time_benefit): Remove.
35412 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35413 merge guessed and read profile paths.
35414 (inline_small_functions): Count only !optimize_size functions into
35415 initial size; be more lax about sanity check when profile is used;
35416 be sure to update inlined function profile when profile is read.
35417
35418 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35419
35420 PR ipa/63470
35421 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35422 cost when edge becomes direct.
35423 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35424 is resolved or when introducing new speculation.
35425
35426 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
35427
35428 PR ipa/64551
35429 PR ipa/64552
35430 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35431 '||' to fix typo issue.
35432
35433 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
35434 accept and return NULL.
35435
35436 2015-01-12 Martin Liska <mliska@suse.cz>
35437
35438 * cgraph.c (cgraph_edge::remove_callee): Move function to header
35439 file for being inlined.
35440 (cgraph_set_edge_callee): Delete.
35441 (cgraph_edge::redirect_callee): Move function to header file
35442 for being inlined.
35443 (cgraph_edge::make_direct): Use new function.
35444 (cgraph_edge::dump_edge_flags): New function created from
35445 static dump_edge_flags function.
35446 (cgraph_node::dump): Use new function.
35447 (cgraph_edge::verify_count_and_frequency): New function created
35448 from verify_edge_count_and_frequency.
35449 (cgraph_edge::verify_corresponds_to_fndecl): New function created
35450 from verify_edge_corresponds_to_fndecl.
35451 (verify_edge_corresponds_to_fndecl): Delete.
35452 (cgraph_node::verify_node): Use new function.
35453 * cgraph.h (cgraph_edge::set_callee): New function.
35454 (cgraph_edge::dump_edge_flags): Likewise.
35455 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35456
35457 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
35458
35459 * ipa-utils.c (estimate_function_body_sizes): Do not
35460 free node params when called late with early=true.
35461
35462 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
35463
35464 * doc/md.texi (Instruction Patterns): Rewrite text for
35465 clarity.
35466 (Example): Likewise.
35467
35468 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
35469
35470 * doc/invoke.texi (Option Summary): Break long lines.
35471 [(-fdiagnostics-color)]: Put long literal in @smallexample
35472 instead of inline.
35473 [(-fsanitize-recover)]: Likewise.
35474 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35475 [(-ffast-math)]: Likewise.
35476 [(--param max-inline-insns-recursive)]: Likewise.
35477 [(--param max-inline-recursive-depth)]: Likewise.
35478 [(-mno-text-section-literals)]: Likewise.
35479
35480 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
35481
35482 * doc/install.texi: Update for libgomp being renamed from "GNU
35483 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35484 Runtime Library".
35485 * doc/sourcebuild.texi: Likewise.
35486
35487 2015-01-10 Anthony Green <green@moxielogic.com>
35488
35489 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35490 mul.x availability for moxiebox configuration.
35491
35492 2015-01-09 Anthony Green <green@moxielogic.com>
35493
35494 * config/moxie/moxie.md: Tabify assembly output.
35495
35496 2015-01-09 Anthony Green <green@moxielogic.com>
35497
35498 * config/moxie/moxie.md (CC_REG): Correct register definition.
35499
35500 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
35501
35502 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35503 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
35504 of log files.
35505
35506 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35507
35508 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35509
35510 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
35511 Jakub Jelinek <jakub@redhat.com>
35512
35513 PR middle-end/64412
35514 * lto-streamer.h (lto_stream_offload_p): New declaration.
35515 * lto-streamer.c (lto_stream_offload_p): New variable.
35516 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35517 at the same time as section_name_prefix.
35518 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35519 if lto_stream_offload_p.
35520 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35521 stream TREE_TARGET_OPTION if lto_stream_offload_p.
35522 (write_ts_function_decl_tree_pointers): Don't
35523 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35524 * tree-streamer-in.c (unpack_value_fields): Don't stream
35525 TREE_TARGET_OPTION in if ACCEL_COMPILER.
35526 (lto_input_ts_function_decl_tree_pointers): Don't stream
35527 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35528 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35529 instead of section_name_prefix string comparisons.
35530
35531 2015-01-09 Jakub Jelinek <jakub@redhat.com>
35532
35533 PR rtl-optimization/64536
35534 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35535 tablejumps.
35536
35537 2015-01-09 Michael Collison <michael.collison@linaro.org>
35538
35539 PR tree-optimization/64322
35540 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35541 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35542
35543 2015-01-09 Tom de Vries <tom@codesourcery.com>
35544
35545 PR rtl-optimization/64539
35546 * regcprop.c (kill_clobbered_values): Factor out of ...
35547 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
35548 instead of note_stores with kill_clobbered_value.
35549
35550 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35551
35552 * ginclude/unwind-arm-common.h: Revert previous commit.
35553
35554 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35555
35556 * config.gcc (arm*-*-freebsd*): New configuration.
35557 * config/arm/freebsd.h: New file.
35558 * config.host: Add extra components for arm*-*-freebsd*.
35559 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35560 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35561
35562 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35563
35564 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35565 for -mcpu=e6500.
35566 * config/rs6000/t-rtems: Add e6500 multilibs.
35567
35568 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35569
35570 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35571 MPC8540.
35572
35573 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35574
35575 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35576 MULTILIB_EXCEPTIONS.
35577
35578 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35579
35580 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35581 MULTILIB_EXCEPTIONS.
35582
35583 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35584
35585 * config/arm/t-rtems-eabi: Rename to...
35586 * config/arm/t-rtems: ...this.
35587 * config/arm/rtems-eabi.h: Rename to...
35588 * config/arm/rtems.h: ...this.
35589 * config.gcc (arm*-*-rtems*): Reflect changes above.
35590
35591 2015-01-09 Richard Biener <rguenther@suse.de>
35592
35593 PR tree-optimization/64410
35594 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35595 on the LHS.
35596 (execute_update_addresses_taken): Deal with that.
35597 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35598 loads/stores for complex variables.
35599
35600 2015-01-09 Martin Liska <mliska@suse.cz>
35601
35602 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35603 name comparison.
35604 (func_checker::compare_memory_operand): New function.
35605 (func_checker::compare_operand): Split case to newly
35606 added functions.
35607 (func_checker::compare_cst_or_decl): New function.
35608 (func_checker::compare_gimple_call): Identify
35609 memory operands.
35610 (func_checker::compare_gimple_assign): Likewise.
35611 * ipa-icf-gimple.h: New function.
35612
35613 2015-01-09 Martin Liska <mliska@suse.cz>
35614
35615 PR ipa/64503
35616 * sreal.c (sreal::dump): Change unsigned format to signed for
35617 m_exp value.
35618 (sreal::to_double): Replace exp2 with scalbln.
35619
35620 2015-01-09 Martin Liska <mliska@suse.cz>
35621
35622 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35623 * ipa-icf.c (sem_function::equals_private): Add support for target and
35624 (sem_item_optimizer::merge_classes): Remove redundant function
35625 optimization flags comparison.
35626 * tree.h (target_opts_for_fn): New function.
35627
35628 2015-01-09 Tom de Vries <tom@codesourcery.com>
35629
35630 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35631
35632 2015-01-09 Kito Cheng <kito@0xlab.org>
35633
35634 PR rtl-optimization/64348
35635 * lra-constraints.c (split_reg): Fix caller-save store/restore
35636 instruction generation.
35637
35638 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
35639
35640 PR gcov-profile/61790
35641 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35642 long long. Fallback to int64_t if host doesn't have long long and
35643 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
35644
35645 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35646
35647 PR tree-optimization/63989
35648 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35649 from 1000 to 10000.
35650 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35651 (get_stridx): If we don't have a record for certain SSA_NAME,
35652 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35653 constant offset, call get_stridx_plus_constant.
35654 (get_stridx_plus_constant): New function.
35655 (zero_length_string): Don't use get_stridx here.
35656
35657 PR target/55023
35658 PR middle-end/64388
35659 * dse.c (struct insn_info): Mention frame_read set also
35660 before reload for tail calls on some targets.
35661 (scan_insn): Revert 2014-12-22 change. Set frame_read
35662 also before reload for tail calls if
35663 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
35664 instead of add_non_frame_wild_read for non-const/memset
35665 tail calls after reload.
35666
35667 2015-01-08 Jason Merrill <jason@redhat.com>
35668
35669 * ubsan.c (do_ubsan_in_current_function): New.
35670 (pass_ubsan::gate): Use it.
35671 * ubsan.h: Declare it.
35672 * convert.c (convert_to_integer): Use it.
35673
35674 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35675
35676 PR target/64338
35677 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35678 compare_code when it is unconditionally overwritten afterwards.
35679 Use ix86_reverse_condition instead of reverse_condition. Don't
35680 change code if *reverse_condition* returned UNKNOWN and don't
35681 swap ct/cf and negate diff in that case.
35682
35683 2015-01-08 Mike Stump <mikestump@comcast.net>
35684
35685 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35686 (pass_tsan_O0::gate): Likewise.
35687 * extend.texi (Function Attributes): Add no_sanitize_thread
35688 documentation.
35689
35690 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
35691
35692 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35693 for registering builtins.
35694 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35695 add -fopenmp to the argv_obstack used when invoking
35696 compile_for_target.
35697
35698 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35699 add "-m32" or "-m64" to argv_obstack.
35700 (generate_host_descr_file): Likewise, when invoking host_compiler.
35701 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35702 ld.
35703
35704 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35705
35706 * config/sh/sh-mem.cc: Use constant as second operand when emitting
35707 tstsi_t insns.
35708
35709 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35710
35711 PR target/55212
35712 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35713 constant load if constant operand fits into I08.
35714
35715 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35716
35717 PR sanitizer/64336
35718 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35719 and TREE_THIS_VOLATILE for MEM_REFs.
35720 (build5_stat): Fix up initialization of TREE_READONLY and
35721 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35722
35723 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
35724
35725 PR target/64533
35726 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35727 of r for the second alternative of the destination operand.
35728
35729 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
35730
35731 PR target/36557
35732 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35733
35734 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35735
35736 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35737 keywords.
35738 ([-fivar-visibility], [-fvisibility]): Likewise.
35739
35740 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35741
35742 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35743 the file where @code, @command, etc is more appropriate.
35744
35745 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
35746
35747 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35748 of -mrecip= documentation.
35749
35750 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35751
35752 PR target/64505
35753 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35754 correct reload handler if -m32 -mpowerpc64 is used.
35755
35756 2015-01-06 Tom de Vries <tom@codesourcery.com>
35757
35758 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35759
35760 2015-01-08 Christian Bruel <christian.bruel@st.com>
35761
35762 PR target/64507
35763 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35764
35765 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35766
35767 PR tree-optimization/63259
35768 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35769 if optab exists for 16bit byteswap.
35770
35771 2015-01-06 Jakub Jelinek <jakub@redhat.com>
35772
35773 * opts.c (common_handle_option): Add support for
35774 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35775 * doc/invoke.texi: Document -fno-sanitize=all,
35776 -f{,no-}sanitize-recover=all. Document that
35777 -fsanitize=float-cast-overflow is not enabled
35778 by -fsanitize=undefined. Fix up documentation
35779 of -f{,no-}sanitize-recover.
35780
35781 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
35782
35783 * config.gcc: Add Visium support.
35784 * configure.ac: Likewise.
35785 * configure: Regenerate.
35786 * doc/extend.texi (interrupt attribute): Add Visium.
35787 * doc/invoke.texi: Document Visium options.
35788 * doc/install.texi: Document Visium target.
35789 * doc/md.texi: Document Visium constraints.
35790 * common/config/visium: New directory.
35791 * config/visium: Likewise.
35792
35793 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35794
35795 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35796 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35797
35798 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35799
35800 * combine.c (combine_validate_cost): Do not count the cost of a
35801 split I2 twice. Do not display it twice in the dump, either.
35802
35803 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35804
35805 Revert parts of r219199.
35806 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35807 <inttypes.h>.
35808 ([-Wtraditional]): Restore markup on <limits.h>.
35809
35810 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
35811
35812 PR c++/31397
35813 * doc/invoke.texi: Document -Wsuggest-override.
35814
35815 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
35816
35817 PR rtl-optimization/64287
35818 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35819 (process_options): Disable flag_ipa_ra if profiling.
35820
35821 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
35822
35823 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35824
35825 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
35826
35827 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35828 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35829 put under #if TARGET_LOOPS guard.
35830
35831 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
35832
35833 * config/i386/i386.c (output_387_binary_op): Use std::swap.
35834
35835 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
35836
35837 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35838 * rtl.h (refers_to_regno_p): Add overload.
35839 * cse.c: Use it.
35840 * bt-load.c: Likewise.
35841 * combine.c: Likewise.
35842 * df-scan.c: Likewise.
35843 * sched-deps.c: Likewise.
35844 * config/s390/s390.c: Likewise.
35845 * config/m32r/m32r.c: Likewise.
35846 * config/rs6000/spe.md: Likewise.
35847 * config/rs6000/rs6000.c: Likewise.
35848 * config/pa/pa.c: Likewise.
35849 * config/stormy16/stormy16.c: Likewise.
35850 * config/cris/cris.c: Likewise.
35851 * config/arc/arc.md: Likewise.
35852 * config/arc/arc.c: Likewise.
35853 * config/sh/sh.md: Likewise.
35854 * config/sh/sh.c: Likewise.
35855 * config/frv/frv.c: Likewise.
35856
35857 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35858
35859 PR sanitizer/64265
35860 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35861 call as cleanup of the whole body.
35862 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35863 * tsan.c (replace_func_exit): New function.
35864 (instrument_func_exit): Moved earlier.
35865 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35866 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35867 been found.
35868 (tsan_pass): Don't call instrument_func_exit.
35869 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35870 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35871 inlining.
35872
35873 PR sanitizer/64344
35874 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35875 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35876 it to libubsan handler instead of EXPR. Fold comparisons earlier,
35877 if the result is integer_zerop, return NULL_TREE.
35878 * convert.c (convert_to_integer): Pass expr as ARG.
35879
35880 PR tree-optimization/64465
35881 * tree-inline.c (redirect_all_calls): During inlining
35882 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35883 changed the stmt to a non-throwing call.
35884
35885 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35886
35887 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35888 etc markup throughout the file.
35889
35890 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35891
35892 Enable experimental TSAN support for Ada.
35893 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35894
35895 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35896
35897 PR tree-optimization/64494
35898 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35899 clear SSA_NAME_ANTI_RANGE_P flag.
35900
35901 2015-01-05 Marek Polacek <polacek@redhat.com>
35902
35903 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35904
35905 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35906
35907 Update copyright years.
35908
35909 * gcc.c (process_command): Update copyright notice dates.
35910 * gcov-dump.c: Ditto.
35911 * gcov.c: Ditto.
35912 * doc/cpp.texi: Bump @copying's copyright year.
35913 * doc/cppinternals.texi: Ditto.
35914 * doc/gcc.texi: Ditto.
35915 * doc/gccint.texi: Ditto.
35916 * doc/gcov.texi: Ditto.
35917 * doc/install.texi: Ditto.
35918 * doc/invoke.texi: Ditto.
35919
35920 * auto-profile.c, auto-profile.h: Fix up Copyright line.
35921
35922 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
35923
35924 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35925 verb tense, etc.
35926 ([-fvtable-verify], [-fvtv-debug]): Likewise.
35927 ([-Wabi]): Likewise.
35928 ([-fmessage-length]): Likewise.
35929 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35930 ([-Wno-discarded-qualifiers]): Likewise.
35931 ([-Wnodiscarded-array-qualifiers]): Likewise.
35932 ([-Wno-virtual-move-assign]): Likewise.
35933 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35934 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35935 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35936 ([-fsanitize-undefined-trap-on-error]): Likewise.
35937 ([-floop-interchange]): Likewise.
35938 ([-ftree-coalesce-inlined-vars]): Likewise.
35939 ([-fvect-cost-model]): Likewise.
35940 ([-flto]): Likewise.
35941 ([--param]): Likewise.
35942 (Spec Files): Likewise.
35943 ([-mstrict-align]): Likewise.
35944 ([-mfix-cortex-a53-835769]): Likewise.
35945 ([-march], [-mtune]): Likewise.
35946 ([-mpic-register]): Likewise.
35947 ([-munaligned-access]): Likewise.
35948 ([-msp8]): Likewise.
35949 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35950 (AVR Built-in Macros): Likewise.
35951 ([-mpreferred-stack-boundary]): Likewise.
35952 ([-mtune-crtl]): Likewise.
35953 ([-mashf]): Likewise.
35954 ([-mmcu=]): Likewise.
35955 ([-minrt]): Likewise.
35956 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35957 ([-mupper-regs]): Likewise.
35958 ([-matomic-model]): Likewise.
35959 ([-mdiv]): Likewise.
35960 ([-mzdcbranch]): Likewise.
35961 ([-mdisable-callt]): Likewise.
35962 ([-msoft-float]): Likewise.
35963 ([-m8byte-align]): Likewise.
35964 ([-fstack-reuse]): Likewise.
35965
35966 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35967
35968 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35969 Fix markup, light copy-editing.
35970 ([-fauto-profile]): Rewrite to fix formatting and content
35971 problems.
35972
35973 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35974
35975 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
35976 Copy-edit description.
35977 ([-fisolate-erroneous-paths-attribute]): Likewise.
35978 * common.opt (fisolate-erroneous-paths-dereference):
35979 Copy-edit description.
35980 (fisolate-erroneous-paths-attribute): Likewise.
35981
35982 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35983
35984 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
35985 tidy grammar.
35986
35987 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35988
35989 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
35990 ([-fvtv-debug]): Likewise.
35991 ([-Wc++-compat]): Likewise.
35992 ([-Wc++11-compat]): Likewise.
35993 ([-Wc++14-compat]): Likewise.
35994 ([-Wno-sized-deallocation]): Likewise.
35995 ([-femit-class-debug-always]): Likewise.
35996 ([-femit-struct-debug-detailed]): Likewise.
35997 ([-fno-keep-inline-dllexport]): Likewise.
35998 ([-fira-algorithm]): Likewise.
35999 ([-fira-region]): Likewise.
36000 ([-flra-remat]): Likewise.
36001 ([-fipa-ra]): Likewise.
36002 ([-fhoist-adjacent-loads]): Likewise.
36003 ([-fisolate-erroneous-paths-dereference]): Likewise.
36004 ([-fisolate-erroneous-paths-attribute]): Likewise.
36005 ([-ftree-switch-conversion]): Likewise.
36006 ([-ftree-tail-merge]): Likewise.
36007 ([-ftree-loop-if-convert]): Likewise.
36008 ([-ftree-loop-if-convert-stores]): Likewise.
36009 ([-ftree-loop-distribution]): Likewise.
36010 ([-ftree-loop-distribute-patterns]): Likewise.
36011 ([-flto-compression-level]): Likewise.
36012 ([-flto-report]): Likewise.
36013 ([-flto-report-wpa]): Likewise.
36014 ([-fuse-linker-plugin]): Likewise.
36015 ([-mfix-cortex-a53-835769]): Likewise.
36016 ([-mno-fix-cortex-a53-835769]): Likewise.
36017 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
36018 explicit listing; add a note to the discussion indicating they
36019 exist. Reorder table to group similar options. Add missing
36020 @opindex entries. Add @need commands throughout the table to
36021 allow it to be split across multiple pages.
36022 ([-m8bit-idiv]): Fix @opindex.
36023 ([-mavx256-split-unaligned-load]): Likewise.
36024 ([-mavx256-split-unaligned-store]): Likewise.
36025 ([-mstack-protector-guard]): Likewise.
36026 ([-mcpu=]): Likewise.
36027 ([-mcpu]): Likewise.
36028 ([-mpointer-size=]): Likewise.
36029
36030 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
36031
36032 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
36033 instead of `m' constraint. Likewise for unnamed movb comparison
36034 patterns using reg_before_reload_operand predicate.
36035 * config/pa/predicates.md (reg_before_reload_operand): Tighten
36036 predicate to reject register index and LO_SUM DLT memory forms
36037 after reload.
36038
36039 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
36040
36041 * doc/invoke.texi (Option Summary): Fix spelling of
36042 -fdevirtualize-at-ltrans.
36043 ([-fdevirtualize]): Fix markup.
36044 ([-fdevirtualize-speculatively]): Fix typo.
36045 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
36046 implementor-speaky.
36047 * common.opt (fdevirtualize-at-ltrans): Likewise.
36048 * ipa-devirt.c: Fix typos in comments throughout the file.
36049 (ipa_devirt): Fix typos in format strings for dump output.
36050
36051 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
36052
36053 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
36054 discussion of defaults, light copy-editing.
36055
36056 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
36057
36058 * tsan.c (instrument_expr): corrected previous checkin.
36059
36060 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
36061
36062 Instrument bit field and unaligned accesses for TSAN.
36063 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
36064 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
36065 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
36066 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
36067 unaligned memory regions.
36068
36069 2015-01-01 Anthony Green <green@moxielogic.com>
36070
36071 * config/moxie/predicates.md (moxie_general_movsrc_operand):
36072 Restrict move source register offsets to 16 bits.
36073 \f
36074 Copyright (C) 2015 Free Software Foundation, Inc.
36075
36076 Copying and distribution of this file, with or without modification,
36077 are permitted in any medium without royalty provided the copyright
36078 notice and this notice are preserved.