1 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2 Sebastian Pop <s.pop@samsung.com>
4 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5 Remove use of parameter_rename_map.
7 (copy_internal_parameters): Remove.
8 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
9 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
10 (free_sese_info): Do not free parameter_rename_map.
11 (set_rename): Do not use parameter_rename_map.
12 (rename_uses): Update call to set_rename.
13 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
14 * sese.h (parameter_rename_map_t): Remove.
15 (struct sese_info_t): Remove field parameter_rename_map.
17 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
18 Sebastian Pop <s.pop@samsung.com>
20 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
21 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
22 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
24 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
25 (isl_id_for_pbb): Use a buffer of size 10.
26 (isl_id_for_ssa_name): Same.
27 * sese.c (set_rename): Add more dumps.
29 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
31 * omp-low.c (struct omp_context): Remove reduction_map field.
32 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
33 (new_omp_context, delete_omp_context, scan_omp_target): Remove
34 reduction_map handling.
35 (lower_omp_target): Remove obsolete openacc reduction handling.
37 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
39 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
41 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
42 Cesar Philippidis <cesar@codesourcery.com>
44 * config/nvptx/nvptx.c: Include gimple headers.
45 (worker_red_size, worker_red_align, worker_red_name,
47 (nvptx_option_override): Initialize worker reduction buffer.
48 (nvptx_file_end): Write out worker reduction buffer var.
49 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
50 nvptx_expand_cmp_swap): New builtin expanders.
51 (enum nvptx_builtins): New.
52 (nvptx_builtin_decls): New.
53 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
54 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
55 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
56 nvptx_lockless_update): New helpers.
57 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
58 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
59 (nvptx_goacc_reduction): New.
60 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
61 TARGET_BUILTIN_DECL): Override.
62 (TARGET_GOACC_REDUCTION): Override.
64 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
65 Cesar Philippidis <cesar@codesourcery.com>
67 * internal-fn.def (GOACC_REDUCTION): New.
68 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
69 * internal-fn.c (expand_GOACC_REDUCTION): New.
70 * target.def (goacc.reduction): New OpenACC hook.
71 * targhooks.h (default_goacc_reduction): Declare.
72 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
73 * doc/tm.texi: Rebuilt.
74 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
75 scan_sharing_clauses): Remove oacc reduction handling here.
76 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
77 (oacc_lower_reduction_var_helper): Delete.
78 (lower_oacc_reductions): New.
79 (lower_reduction_clauses): Don't handle OpenACC reductions here.
80 (lower_oacc_head_tail): Call lower_oacc_reductions.
81 (oacc_gimple_assign, oacc_init_reduction_array,
82 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
83 oacc_process_reduction_data): Delete.
84 (lower_omp_target): Remove old OpenACC reduction handling. Insert
85 dummy OpenACC gang reduction for reductions at outer level.
86 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
87 (default_goacc_reduction): New.
88 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
90 2015-11-04 Martin Liska <mliska@suse.cz>
92 * cgraphunit.c (cgraph_node::expand_thunk): Call
93 allocate_struct_function before init_function_start.
94 (cgraph_node::expand): Use push_cfun and pop_cfun.
95 * config/i386/i386.c (ix86_code_end): Call
96 allocate_struct_function before init_function_start.
97 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
98 * function.c (init_function_start): Move preamble to all
100 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
101 (execute_one_pass): Handle newly added TODO_discard_function.
102 (execute_pass_list_1): Terminate if cfun equals to NULL.
103 (execute_pass_list): Do not push and pop cfun, expect that
105 * tree-pass.h (TODO_discard_function): Define.
107 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
109 * cfganal.c (inverted_post_order_compute): Remove conditional
110 compilation, use flag_checking.
111 * config.in: Regenerate.
112 * configure: Regenerate.
113 * configure.ac: Remove ENABLE_CHECKING.
114 * genconditions.c: Do not #undef ENABLE_CHECKING.
115 * sese.h (bb_in_region): Comment out broken check.
116 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
117 conditional compilation, use flag_checking.
119 2015-11-04 Tom de Vries <tom@codesourcery.com>
121 PR tree-optimization/67742
122 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
124 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
125 (create_variable_info_for_1): Add and handle handle_param parameter.
126 Add restrict handling.
127 (create_variable_info_for): Call create_variable_info_for_1 with extra
129 (make_param_constraints): Drop restrict_name parameter. Ignore
130 vi->only_restrict_pointers.
131 (intra_create_variable_infos): Call create_variable_info_for_1 with
132 extra arg. Remove restrict handling. Call make_param_constraints with
135 2015-11-04 Tom de Vries <tom@codesourcery.com>
137 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
140 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
142 * config/arm/coff.h: Remove.
144 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
146 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
147 check for aggregate types and beef up comment for mode check.
149 2015-11-03 Richard Biener <rguenther@suse.de>
151 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
152 data references here.
153 * tree-vect-loop.c: Include cgraph.h.
154 (vect_analyze_loop_2): Collect data references here.
155 * tree-vect-slp.c (find_bb_location): Inline ...
156 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
157 Factor in vect_slp_transform_bb.
158 (vect_slp_transform_bb): Removed.
159 (vect_slp_analyze_bb_1): Collect data references here.
160 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
162 * tree-vectorizer.h (vect_slp_bb): Declare.
163 (vect_slp_analyze_bb): Remove.
164 (vect_slp_transform_bb): Remove.
165 (find_bb_location): Remove.
166 (vect_analyze_data_refs): Remove stmt count reference parameter.
168 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
170 * multiple_target.c (create_dispatcher_calls): Add target check
172 (create_target_clone): Change assembler name for versioned declarations.
174 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
175 Chung-Lin Tang <cltang@codesourcery.com>
177 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
178 * omp-low.c (check_omp_nesting_restrictions): Allow
179 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
182 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
184 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
185 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
186 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
188 (vmulxq_f32): Likewise.
190 (vmulxq_f64): Rewrite to call fmulx builtin.
191 (vmulxs_f32): Likewise.
192 (vmulxd_f64): Likewise.
193 (vmulx_lane_f32): Remove.
194 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
196 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
198 * config/aarch64/aarch64.md (*movhf_aarch64): Use
199 aarch64_reg_or_fp_zero for second operand.
201 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
203 * gimple-expr.c: Include hash-set.h and rtl.h.
204 (mark_addressable_queue): New var.
205 (mark_addressable): Factor actual marking into...
206 (mark_addressable_1): ... this. Queue it up during expand.
207 (mark_addressable_2): New.
208 (flush_mark_addressable_queue): New.
209 * gimple-expr.h (flush_mark_addressable_queue): Declare.
210 * cfgexpand.c: Include gimple-expr.h.
211 (pass_expand::execute): Flush mark_addressable queue.
213 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
215 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
216 bb_no_side_effects_p tests...
217 (tree_ssa_ifcombine_bb): ... here.
219 PR tree-optimization/68083
220 * tree-ssa-ifcombine.c: Include tree-ssa.h.
221 (bb_no_side_effects_p): Test for undefined uses too.
222 * tree-ssa.c (gimple_uses_undefined_value_p): New.
223 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
225 2015-11-02 Jeff Law <jeff@redhat.com>
227 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
228 cases where the loop latch edge is in the middle of an FSM path.
230 2015-11-03 Tom de Vries <tom@codesourcery.com>
232 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
233 (make_param_constraints): ... this. Add and handle restrict_name
234 parameter. Handle is_full_var case.
235 (intra_create_variable_infos): Use make_param_constraints.
237 2015-11-03 Tom de Vries <tom@codesourcery.com>
239 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
240 make_copy_constraint call with make_constraint_from call.
242 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
244 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
247 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
249 * builtins.h (fold_fma): Move to fold-const-call.h.
250 * builtins.c: Include fold-const-call.h.
251 (mathfn_built_in_2): New function, split out from...
252 (mathfn_built_in_1): ...here.
253 (do_real_to_int_conversion, fold_const_builtin_pow)
254 (fold_const_builtin_logb, fold_const_builtin_significand)
255 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
256 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
257 (fold_builtin_sincos): Use fold_const_call to handle constants.
258 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
259 checks for ERROR_MARK. Use fold_const_call to handle constant
260 folds for math functions.
261 (fold_fma): Move to fold-const-call.c.
262 * fold-const.c: Include fold-const-call.h.
263 * Makefile.in (OBJS): Add fold-const-call.o.
264 (PLUGIN_HEADERS): Add fold-const-call.h.
265 * realmpfr.h (real_from_mpfr): Allow the format to be specified
267 * realmpfr.c (real_from_mpfr): Likewise.
268 * fold-const-call.h, fold-const-call.c: New files.
270 2015-11-02 Julian Brown <julian@codesourcery.com>
272 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
273 brackets and semicolon.
275 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
278 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
280 PR tree-optimization/65963
281 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
282 LSHIFT_EXPRs as equivalent MULT_EXPRs.
284 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
287 * fold-const.c: Include "md5.h".
289 2015-11-01 Jeff Law <jeff@redhat.com>
291 * vmsdbgout.c: Revert unused header file reduction patch.
293 * config/mcore/mcore.c: Include regs.h.
295 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
297 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
299 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
301 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
302 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
303 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
305 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
307 * ggc-common.c: Restore needed header for checking=release.
309 2015-10-31 Tom de Vries <tom@codesourcery.com>
311 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
313 2015-10-31 Tom de Vries <tom@codesourcery.com>
315 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
316 existing varinfo for arguments.
318 2015-10-31 Tom de Vries <tom@codesourcery.com>
320 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
321 create_function_info_for. Dump constraints generated during
322 create_function_info_for. Move intra_create_variable_infos call and
323 function-return-values-escape bit to ...
324 (create_function_info_for): ... here, and merge
325 intra_create_variable_infos call with argument loop. Add and handle
326 nonlocal_p parameter.
328 2015-10-31 Tom de Vries <tom@codesourcery.com>
330 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
331 updating is alap, and seperated from preceding code. Make sure
332 insert_vi_for_tree is seperated from surrounding code.
334 2015-10-31 Tom de Vries <tom@codesourcery.com>
336 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
338 2015-10-30 Jeff Law <jeff@redhat.com>
339 Nathan Sidwell <nathan@acm.org>
341 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
343 (MOVE_MAX): Set to 8.
345 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
347 * cgraph.c: Include context.h for offloading.
348 * varpool.c: Include context.h and omp-low.h.
350 2015-10-30 Anatoly Sokolov <aesok@post.ru>
352 * rtl.h (contains_symbol_ref_p): Declare.
353 (SYMBOL_REF_P): Define.
354 * rtlanal.c (contains_symbol_ref_p: New function.
355 * lra-constraints.c (contains_symbol_ref_p): Remove.
356 * var-tracking.c (contains_symbol_ref): Remove.
357 (track_expr_p): Use contains_symbol_ref_p instead of
360 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
362 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
363 * fold-const.c (get_array_ctor_element_at_index): New.
364 (fold): Remove binary-search through CONSTRUCTOR, call previous.
366 * fold-const.h (get_array_ctor_element_at_index): New.
368 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
370 * Makefile.in (OBJS): Add multiple_target.o.
371 * attrib.c (make_attribute): Moved from config/i386/i386.c
372 * config/i386/i386.c (make_attribute): Deleted.
373 * multiple_target.c (create_dispatcher_calls): New.
374 (get_attr_len): Ditto.
375 (get_attr_str): Ditto.
376 (separate_attrs): Ditto.
377 (is_valid_asm_symbol): Ditto.
378 (create_new_asm_name): Ditto.
379 (create_target_clone): Ditto.
380 (expand_target_clones): Ditto.
381 (ipa_target_clone): Ditto.
382 (ipa_dispatcher_calls): Ditto.
383 * passes.def (pass_target_clone): Two new ipa passes.
384 * tree-pass.h (make_pass_target_clone): Ditto.
385 * doc/extend.texi (target_clones): New attribute description.
387 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
389 PR rtl-optimization/68106
390 * lra-remat.c (input_regno_present_p): Process hard regs
391 explicitly present in machine description insns.
392 (call_used_input_regno_present_p): Ditto.
393 (calculate_gen_cands): Ditto.
396 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
398 * config/arm/neon-testgen.ml: Fix comment typo.
400 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
402 * rtlanal.c (reg_set_p): Expand function comment.
404 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
406 * alias.c: Remove unused headers.
408 * attribs.c: Likewise.
409 * auto-inc-dec.c: Likewise.
410 * auto-profile.c: Likewise.
411 * bb-reorder.c: Likewise.
412 * bitmap.c: Likewise.
413 * bt-load.c: Likewise.
414 * builtins.c: Likewise.
415 * caller-save.c: Likewise.
419 * cfganal.c: Likewise.
420 * cfgbuild.c: Likewise.
421 * cfgcleanup.c: Likewise.
422 * cfgexpand.c: Likewise.
423 * cfghooks.c: Likewise.
424 * cfgloop.c: Likewise.
425 * cfgloopanal.c: Likewise.
426 * cfgloopmanip.c: Likewise.
427 * cfgrtl.c: Likewise.
428 * cgraph.c: Likewise.
429 * cgraphbuild.c: Likewise.
430 * cgraphclones.c: Likewise.
431 * cgraphunit.c: Likewise.
432 * cilk-common.c: Likewise.
433 * combine-stack-adj.c: Likewise.
434 * combine.c: Likewise.
435 * compare-elim.c: Likewise.
436 * convert.c: Likewise.
437 * coverage.c: Likewise.
438 * cppbuiltin.c: Likewise.
441 * cselib.c: Likewise.
442 * data-streamer-in.c: Likewise.
443 * data-streamer-out.c: Likewise.
444 * data-streamer.c: Likewise.
445 * dbxout.c: Likewise.
449 * df-core.c: Likewise.
450 * df-problems.c: Likewise.
451 * df-scan.c: Likewise.
453 * dojump.c: Likewise.
454 * dominance.c: Likewise.
455 * domwalk.c: Likewise.
456 * double-int.c: Likewise.
458 * dumpfile.c: Likewise.
459 * dwarf2asm.c: Likewise.
460 * dwarf2cfi.c: Likewise.
461 * dwarf2out.c: Likewise.
462 * emit-rtl.c: Likewise.
463 * except.c: Likewise.
464 * explow.c: Likewise.
465 * expmed.c: Likewise.
468 * fixed-value.c: Likewise.
469 * fold-const.c: Likewise.
470 * function.c: Likewise.
471 * fwprop.c: Likewise.
473 * generic-match-head.c: Likewise.
474 * ggc-common.c: Likewise.
475 * gimple-builder.c: Likewise.
476 * gimple-expr.c: Likewise.
477 * gimple-fold.c: Likewise.
478 * gimple-iterator.c: Likewise.
479 * gimple-low.c: Likewise.
480 * gimple-match-head.c: Likewise.
481 * gimple-pretty-print.c: Likewise.
482 * gimple-ssa-isolate-paths.c: Likewise.
483 * gimple-ssa-strength-reduction.c: Likewise.
484 * gimple-streamer-in.c: Likewise.
485 * gimple-streamer-out.c: Likewise.
486 * gimple-walk.c: Likewise.
487 * gimple.c: Likewise.
488 * gimplify-me.c: Likewise.
489 * gimplify.c: Likewise.
490 * godump.c: Likewise.
492 * graphds.c: Likewise.
493 * haifa-sched.c: Likewise.
494 * hw-doloop.c: Likewise.
496 * init-regs.c: Likewise.
497 * internal-fn.c: Likewise.
498 * ipa-chkp.c: Likewise.
499 * ipa-comdats.c: Likewise.
500 * ipa-cp.c: Likewise.
501 * ipa-devirt.c: Likewise.
502 * ipa-icf-gimple.c: Likewise.
503 * ipa-icf.c: Likewise.
504 * ipa-inline-analysis.c: Likewise.
505 * ipa-inline-transform.c: Likewise.
506 * ipa-inline.c: Likewise.
507 * ipa-polymorphic-call.c: Likewise.
508 * ipa-profile.c: Likewise.
509 * ipa-prop.c: Likewise.
510 * ipa-pure-const.c: Likewise.
511 * ipa-ref.c: Likewise.
512 * ipa-reference.c: Likewise.
513 * ipa-split.c: Likewise.
514 * ipa-utils.c: Likewise.
515 * ipa-visibility.c: Likewise.
517 * ira-build.c: Likewise.
518 * ira-color.c: Likewise.
519 * ira-conflicts.c: Likewise.
520 * ira-costs.c: Likewise.
521 * ira-emit.c: Likewise.
522 * ira-lives.c: Likewise.
525 * langhooks.c: Likewise.
528 * loop-doloop.c: Likewise.
529 * loop-init.c: Likewise.
530 * loop-invariant.c: Likewise.
531 * loop-iv.c: Likewise.
532 * loop-unroll.c: Likewise.
533 * lower-subreg.c: Likewise.
534 * lra-assigns.c: Likewise.
535 * lra-coalesce.c: Likewise.
536 * lra-constraints.c: Likewise.
537 * lra-eliminations.c: Likewise.
538 * lra-lives.c: Likewise.
539 * lra-remat.c: Likewise.
540 * lra-spills.c: Likewise.
542 * lto-cgraph.c: Likewise.
543 * lto-compress.c: Likewise.
544 * lto-opts.c: Likewise.
545 * lto-section-in.c: Likewise.
546 * lto-section-out.c: Likewise.
547 * lto-streamer-in.c: Likewise.
548 * lto-streamer-out.c: Likewise.
549 * lto-streamer.c: Likewise.
551 * mode-switching.c: Likewise.
552 * modulo-sched.c: Likewise.
553 * optabs.c: Likewise.
554 * opts-global.c: Likewise.
555 * passes.c: Likewise.
556 * plugin.c: Likewise.
557 * postreload-gcse.c: Likewise.
558 * postreload.c: Likewise.
559 * predict.c: Likewise.
560 * print-tree.c: Likewise.
561 * profile.c: Likewise.
563 * realmpfr.c: Likewise.
566 * reg-stack.c: Likewise.
567 * regcprop.c: Likewise.
568 * reginfo.c: Likewise.
569 * regrename.c: Likewise.
570 * regstat.c: Likewise.
571 * reload.c: Likewise.
572 * reload1.c: Likewise.
574 * resource.c: Likewise.
575 * rtl-chkp.c: Likewise.
576 * rtl-error.c: Likewise.
577 * rtlanal.c: Likewise.
578 * rtlhooks.c: Likewise.
579 * sanopt.c: Likewise.
580 * sched-deps.c: Likewise.
581 * sched-ebb.c: Likewise.
582 * sched-rgn.c: Likewise.
583 * sdbout.c: Likewise.
584 * sel-sched-dump.c: Likewise.
585 * sel-sched-ir.c: Likewise.
586 * sel-sched.c: Likewise.
588 * shrink-wrap.c: Likewise.
589 * simplify-rtx.c: Likewise.
590 * stack-ptr-mod.c: Likewise.
591 * statistics.c: Likewise.
593 * stor-layout.c: Likewise.
594 * store-motion.c: Likewise.
595 * stringpool.c: Likewise.
596 * symtab.c: Likewise.
597 * target-globals.c: Likewise.
598 * targhooks.c: Likewise.
599 * toplev.c: Likewise.
600 * tracer.c: Likewise.
601 * trans-mem.c: Likewise.
602 * tree-affine.c: Likewise.
603 * tree-call-cdce.c: Likewise.
604 * tree-cfg.c: Likewise.
605 * tree-cfgcleanup.c: Likewise.
606 * tree-chkp-opt.c: Likewise.
607 * tree-chkp.c: Likewise.
608 * tree-chrec.c: Likewise.
609 * tree-complex.c: Likewise.
610 * tree-data-ref.c: Likewise.
611 * tree-dfa.c: Likewise.
612 * tree-diagnostic.c: Likewise.
613 * tree-dump.c: Likewise.
614 * tree-eh.c: Likewise.
615 * tree-emutls.c: Likewise.
616 * tree-if-conv.c: Likewise.
617 * tree-inline.c: Likewise.
618 * tree-into-ssa.c: Likewise.
619 * tree-iterator.c: Likewise.
620 * tree-loop-distribution.c: Likewise.
621 * tree-nested.c: Likewise.
622 * tree-nrv.c: Likewise.
623 * tree-object-size.c: Likewise.
624 * tree-outof-ssa.c: Likewise.
625 * tree-parloops.c: Likewise.
626 * tree-phinodes.c: Likewise.
627 * tree-predcom.c: Likewise.
628 * tree-pretty-print.c: Likewise.
629 * tree-profile.c: Likewise.
630 * tree-scalar-evolution.c: Likewise.
631 * tree-sra.c: Likewise.
632 * tree-ssa-address.c: Likewise.
633 * tree-ssa-alias.c: Likewise.
634 * tree-ssa-ccp.c: Likewise.
635 * tree-ssa-coalesce.c: Likewise.
636 * tree-ssa-copy.c: Likewise.
637 * tree-ssa-dce.c: Likewise.
638 * tree-ssa-dse.c: Likewise.
639 * tree-ssa-forwprop.c: Likewise.
640 * tree-ssa-ifcombine.c: Likewise.
641 * tree-ssa-live.c: Likewise.
642 * tree-ssa-loop-ch.c: Likewise.
643 * tree-ssa-loop-im.c: Likewise.
644 * tree-ssa-loop-ivcanon.c: Likewise.
645 * tree-ssa-loop-ivopts.c: Likewise.
646 * tree-ssa-loop-manip.c: Likewise.
647 * tree-ssa-loop-niter.c: Likewise.
648 * tree-ssa-loop-prefetch.c: Likewise.
649 * tree-ssa-loop-unswitch.c: Likewise.
650 * tree-ssa-loop.c: Likewise.
651 * tree-ssa-math-opts.c: Likewise.
652 * tree-ssa-operands.c: Likewise.
653 * tree-ssa-phiopt.c: Likewise.
654 * tree-ssa-phiprop.c: Likewise.
655 * tree-ssa-pre.c: Likewise.
656 * tree-ssa-propagate.c: Likewise.
657 * tree-ssa-reassoc.c: Likewise.
658 * tree-ssa-scopedtables.c: Likewise.
659 * tree-ssa-sink.c: Likewise.
660 * tree-ssa-strlen.c: Likewise.
661 * tree-ssa-structalias.c: Likewise.
662 * tree-ssa-tail-merge.c: Likewise.
663 * tree-ssa-ter.c: Likewise.
664 * tree-ssa-threadupdate.c: Likewise.
665 * tree-ssa-uncprop.c: Likewise.
666 * tree-ssa-uninit.c: Likewise.
667 * tree-ssa.c: Likewise.
668 * tree-ssanames.c: Likewise.
669 * tree-stdarg.c: Likewise.
670 * tree-streamer-in.c: Likewise.
671 * tree-streamer-out.c: Likewise.
672 * tree-streamer.c: Likewise.
673 * tree-switch-conversion.c: Likewise.
674 * tree-tailcall.c: Likewise.
675 * tree-vect-data-refs.c: Likewise.
676 * tree-vect-generic.c: Likewise.
677 * tree-vect-loop-manip.c: Likewise.
678 * tree-vect-loop.c: Likewise.
679 * tree-vect-patterns.c: Likewise.
680 * tree-vect-slp.c: Likewise.
681 * tree-vect-stmts.c: Likewise.
682 * tree-vectorizer.c: Likewise.
683 * tree-vrp.c: Likewise.
687 * value-prof.c: Likewise.
688 * var-tracking.c: Likewise.
689 * varasm.c: Likewise.
690 * varpool.c: Likewise.
691 * vmsdbgout.c: Likewise.
692 * vtable-verify.c: Likewise.
694 * wide-int-print.cc: Likewise.
695 * wide-int.cc: Likewise.
696 * xcoffout.c: Likewise.
698 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
700 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
701 between pass numbering and execution order.
703 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
705 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
706 check for dependencies.
708 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
710 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
713 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
715 * real.h (format_helper): New.
716 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
717 (real_from_target, real_nan, real_2expN, real_value_truncate)
718 (significand_size, real_from_string2, exact_real_inverse)
719 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
720 (real_round, real_isinteger, real_from_integer): Replace
721 machine_mode arguments with format_helper arguments.
722 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
723 (real_from_integer, real_nan, real_2expN, real_convert)
724 (real_value_truncate, exact_real_truncate, real_to_target)
725 (real_from_target, significand_size, real_powi, real_trunc)
726 (real_floor, real_ceil, real_round, real_isinteger): Replace
727 machine_mode arguments with format_helper arguments.
728 (real_to_target_fmt, real_from_target_fmt): Delete.
729 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
730 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
731 argument with real_format.
732 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
734 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
736 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
737 (fixed_to_decimal, fixed_convert_from_real)
738 (real_convert_from_fixed): Fix mode arguments to real_2expN.
740 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
742 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
745 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
747 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
748 (completely_scalarize): Comment zero-length arrays.
749 (get_access_replacement): Correct comment re. precondition.
751 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
753 * config/i386/i386.c (get_builtin_code_for_version): Set priority
754 for PROCESSOR_ZNVER1.
755 (enum processor_model): Add M_AMDFAM17H_znver1.
756 (struct arch_names_table): Likewise.
757 * doc/extend.texi: ADD znver1.
759 2015-10-30 Richard Biener <rguenther@suse.de>
761 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
762 fold () on single RHSs. Allow CONSTRUCTORS with trailing
763 zeros to be folded to VECTOR_CSTs.
764 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
765 * fold-const.c (fold): Use build_vector_from_ctor.
767 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
769 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
770 "mov %0.h[0], %1.h[0] to "neon_move".
771 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
772 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
774 (*cmovsi_insn_uxtw): Likewise.
776 2015-10-30 Tom de Vries <tom@codesourcery.com>
778 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
779 unsigned, and initialize, and use initial value instead of hardcoded
780 constant. Add generic constraints dumping section. Don't dump global
781 initializers constraints dumping section if empty. Don't update
782 variable from if unused.
784 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
786 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
787 flag_checking and/or CHECKING_P to eliminate conditional compilation
789 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
790 * config/bfin/bfin.c (hwloop_optimize): Likewise.
791 * config/i386/i386.c (ix86_print_operand_address): Likewise.
792 (output_387_binary_op): Likewise.
793 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
794 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
795 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
797 * config/rs6000/rs6000.h: Likewise.
798 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
800 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
802 * config/sh/sh.opt (mfdpic): Add missing period.
804 2015-08-29 Anatoly Sokolov <aesok@post.ru>
806 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
807 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
808 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
809 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
810 mcore_base_register_rtx_p, mcore_legitimate_index_p,
811 mcore_legitimate_address_p): New functions.
812 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
814 2015-10-29 Jeff Law <law@redhat.com>
816 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
818 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
819 * tree-ssa-threadedge.c
820 (record_temporary_equivalences_from_stmts_at_dest): Remove
821 backedge_seen argument and associated code which invalidated
822 equivalences based on the value of that argument.
823 (thread_through_normal_block): Corresponding changes.
825 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
827 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
828 function earlier in the file.
829 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
832 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
834 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
837 2015-10-29 Richard Henderson <rth@redhat.com>
841 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
842 sse check to the exact conditions of PR 67609.
844 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
846 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
847 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
848 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
849 of the traditional names that TFmode uses for handling IEEE
850 extended double. If -mfloat128, add KFmode functions for all of
851 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
852 make TFmode use the same emulation functions as KFmode.
853 (init_float128_ibm): Likewise.
854 (init_float128_ieee): Likewise.
855 (rs6000_generate_compare): For IEEE 128-bit floating point
856 comparisons, call the unordered comparison function instead of the
857 ordered comparison function.
858 (rs6000_expand_float128_convert): Deal with operands that are
859 memory operands. Restructure the code to use a switch statement on
860 the mode. Add support for TFmode defaulting to either IBM extended
861 double or IEEE 128-bit floating point. If the underlying types are
862 the same, use a move instead of a conversion function.
863 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
864 use for IEEE 128-bit floating point constants with -mfloat128.
865 (rs6000_c_mode_for_suffix): Likewise.
866 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
867 128-bit floating point with IBM extended double floating point.
868 (rs6000_invalid_binary_op): Likewise.
869 (rs6000_gen_le_vsx_permute): On little endian systems generate a
870 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
871 types that can go in vector registers.
872 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
873 point types that can go in vector registers on little endian
875 (mark_swaps_for_removal): Likewise.
876 (rs6000_analyze_swaps): Likewise.
877 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
879 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
880 rework IEEE 128-bit floating point insns to deal with TFmode being
881 either IBM extended double or IEEE 128-bit floating point.
883 (IBM128): Update iterator to add condition that the mode is IBM
885 (IEEE128): New iterator for IEEE 128-bit floating point.
886 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
887 (FLOAT128): Likewise.
888 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
890 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
891 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
892 instead of hard coding TFmode or KFmode.
893 (negtf2_internal): Likewise.
894 (neg<mode>2_internal): Likewise.
895 (abs<mode>2): Likewise.
896 (abstf2_internal): Likewise.
897 (abs<mode>2_internal): Likewise.
898 (ieee_128bit_neg<mode>2): Likewise.
899 (ieee_128bit_neg<mode>2_internal): Likewise.
900 (ieee_128bit_abs<mode>2): Likewise.
901 (ieee_128bit_abs<mode>2_internal): Likewise.
902 (ieee_128bit_nabs<mode>2): Likewise.
903 (ieee_128bit_nabs<mode>2_internal): Likewise.
904 (extendiftf2): Add explicit conversions between 128-bit floating
905 point types. Drop the old conversions that had become unwieldy.
906 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
907 (extendifkf2): Likewise.
908 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
909 (extendtfkf2): Likewise.
910 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
911 (trunciftf2): Likewise.
912 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
913 (truncifkf2): Likewise.
914 (float<SDI:mode><IFKF:mode>2): Likewise.
915 (trunckftf2): Likewise.
916 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
917 (trunctfif2): Likewise.
918 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
919 (extenddftf2): Rework 128-bit floating point conversions to
920 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
921 KFmode expanders into one function.
922 (extenddf<mode>2): Likewise.
923 (extenddftf2_fprs): Likewise.
924 (extenddf<mode>2_fprs): Likewise.
925 (extenddftf2_vsx): Likewise.
926 (extenddf<mode>2_vsx): Likewise.
927 (extendsftf2): Likewise.
928 (extendsf<mode>2): Likewise.
929 (trunctfdf2): Likewise.
930 (trunc<mode>df2): Likewise.
931 (trunctfdf2_internal1): Likewise.
932 (trunc<mode>df2_internal1): Likewise.
933 (trunctfdf2_internal2): Likewise.
934 (trunc<mode>df2_internal2): Likewise.
935 (trunctfsf2): Likewise.
936 (trunc<mode>sf2): Likewise.
937 (trunctfsf2_fprs): Likewise.
938 (trunc<mode>sf2_fprs): Likewise.
939 (floatsit2f): Likewise.
940 (floatsi<mode>2): Likewise.
941 (fix_trunc_helper): Likewise.
942 (fix_trunc_helper<mode>): Likewise.
943 (fix_trunctfsi2): Likewise.
944 (fix_trunc<mode>si2): Likewise.
945 (fix_trunctfsi2_fprs): Likewise.
946 (fix_trunc<mode>si2_fprs): Likewise.
947 (fix_trunctfsi2_internal): Likewise.
948 (fix_trunc<mode>si2_internal): Likewise.
949 (fix_trunctfdi2): Likewise.
950 (fix_trunc<mode>di2): Likewise.
951 (fixuns_trunctf<mode>2): Likewise.
952 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
953 (floatditf2): Likewise.
954 (floatdi<mode>2): Likewise.
955 (floatuns<mode>tf2): Likewise.
956 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
957 (cmptf_internal1): Use a mode iterator to add support for both
958 types (IFmode, TFmode) that support IBM extended double.
959 (cmp<mode>_internal1): Likewise.
960 (cmptf_internal2): Likewise.
961 (cmp<mode>_internal2): Likewise.
963 * doc/extend.texi (Floating Types): Document __ibm128 and
964 __float128 on PowerPC.
966 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
967 -mfloat128 and -mno-float128.
969 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
971 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
972 floating point modes that can go in vector registers.
973 (MODES_TIEABLE_P): Move tests for vector modes before tests for
974 scalar floating point, so that IEEE 128-bit floating point that
975 can go in vector registers bind with vectors and not FP.
976 (struct rs6000_args): Add libcall field.
978 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
979 and -mfloat128-software switches. Replace them with a binary
981 (-mfloat128): Likewise.
983 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
984 128-bit floating point types in GPRs, even if the appropriate
985 option enabling the type was not used.
986 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
988 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
989 pre-decrement on IEEE 128-bit floating point values.
990 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
991 is IEEE 128-bit floating point.
992 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
993 128-bit floating point types that can go in vector registers.
994 (rs6000_option_override_internal): Change -mfloat128-none and
995 -mfloat128-software to -mfloat128, and move code to be near other
997 (rs6000_option_override_internal): Disable -mfloat128 if we don't
998 have the Altivec ABI.
999 (rs6000_init_builtins): Don't make TFmode use either IFmode or
1000 KFmode floating point nodes. Instead, have three separate nodes.
1001 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
1002 eventually moving the long double default to IEEE 128-bit floating
1004 (rs6000_opt_masks): Add -mfloat128.
1005 (struct rs6000_opt_var): Fix typo in comment.
1006 (init_cumulative_args): Initialize libcall field in
1008 (rs6000_function_arg): Treat library functions as if they had
1009 prototypes to prevent IEEE 128-bit support functions from passing
1010 arguments in both GPRs and vector registers.
1011 (rs6000_arg_partial_bytes): Likewise.
1013 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
1014 an option that can be turned on via -mcpu=<xxx>.
1016 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
1019 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1020 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
1021 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
1022 double is IBM extended double.
1024 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
1027 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
1029 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
1030 * genconditions.c: Define CHECKING_P in the generated code.
1031 * genextract.c: Use flag_checking in insn_extract.
1032 * gengtype.c (main): Remove conditional compilation.
1033 * gengtype.h: Likewise.
1035 2015-10-29 Jeff Law <law@redhat.com>
1037 PR tree-optimization/67892
1038 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
1040 (thread_through_normal_block): If we have seen a backedge, then
1041 do nothing. No longer call find_jump_threads_backwards here.
1042 (thread_across_edge): Use find_jump_threads_backwards to find
1043 jump threads if the old style threader was not successful.
1044 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
1045 gsi_last_nondebug_bb. Return NULL if the block does not end
1046 with a control statement.
1047 (find_jump_threads_backwards): Setup code moved here from
1048 tree-ssa-threadedge.c::thread_through_normal_block. Accept
1049 single edge argument instead of name & block.
1050 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
1053 2015-10-29 Tom de Vries <tom@codesourcery.com>
1055 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
1058 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
1060 * omp-low.c (lower_omp_target): Remove unreachable code & merge
1063 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
1065 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
1067 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
1069 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
1070 guard_bb0 and use guard_bb throughout.
1072 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
1074 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
1077 2015-10-29 Richard Biener <rguenther@suse.de>
1080 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
1083 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
1085 * alias.c: Reorder #include statements and remove duplicates.
1087 * attribs.c: Likewise.
1088 * auto-inc-dec.c: Likewise.
1089 * auto-profile.c: Likewise.
1090 * bb-reorder.c: Likewise.
1091 * bt-load.c: Likewise.
1092 * builtins.c: Likewise.
1093 * caller-save.c: Likewise.
1094 * calls.c: Likewise.
1097 * cfganal.c: Likewise.
1098 * cfgbuild.c: Likewise.
1099 * cfgcleanup.c: Likewise.
1100 * cfgexpand.c: Likewise.
1101 * cfghooks.c: Likewise.
1102 * cfgloop.c: Likewise.
1103 * cfgloopanal.c: Likewise.
1104 * cfgloopmanip.c: Likewise.
1105 * cfgrtl.c: Likewise.
1106 * cgraph.c: Likewise.
1107 * cgraphbuild.c: Likewise.
1108 * cgraphclones.c: Likewise.
1109 * cgraphunit.c: Likewise.
1110 * cilk-common.c: Likewise.
1111 * combine-stack-adj.c: Likewise.
1112 * combine.c: Likewise.
1113 * compare-elim.c: Likewise.
1114 * convert.c: Likewise.
1115 * coverage.c: Likewise.
1116 * cppbuiltin.c: Likewise.
1117 * cprop.c: Likewise.
1119 * cselib.c: Likewise.
1120 * data-streamer-in.c: Likewise.
1121 * data-streamer-out.c: Likewise.
1122 * data-streamer.c: Likewise.
1123 * dbxout.c: Likewise.
1126 * debug.c: Likewise.
1127 * df-core.c: Likewise.
1128 * df-problems.c: Likewise.
1129 * df-scan.c: Likewise.
1131 * dojump.c: Likewise.
1132 * dominance.c: Likewise.
1133 * double-int.c: Likewise.
1135 * dumpfile.c: Likewise.
1136 * dwarf2asm.c: Likewise.
1137 * dwarf2cfi.c: Likewise.
1138 * dwarf2out.c: Likewise.
1139 * emit-rtl.c: Likewise.
1140 * except.c: Likewise.
1141 * explow.c: Likewise.
1142 * expmed.c: Likewise.
1144 * final.c: Likewise.
1145 * fixed-value.c: Likewise.
1146 * fold-const.c: Likewise.
1147 * function.c: Likewise.
1148 * fwprop.c: Likewise.
1150 * generic-match-head.c: Likewise.
1151 * ggc-common.c: Likewise.
1152 * gimple-builder.c: Likewise.
1153 * gimple-expr.c: Likewise.
1154 * gimple-fold.c: Likewise.
1155 * gimple-iterator.c: Likewise.
1156 * gimple-low.c: Likewise.
1157 * gimple-match-head.c: Likewise.
1158 * gimple-pretty-print.c: Likewise.
1159 * gimple-ssa-isolate-paths.c: Likewise.
1160 * gimple-ssa-strength-reduction.c: Likewise.
1161 * gimple-streamer-in.c: Likewise.
1162 * gimple-streamer-out.c: Likewise.
1163 * gimple-walk.c: Likewise.
1164 * gimple.c: Likewise.
1165 * gimplify-me.c: Likewise.
1166 * gimplify.c: Likewise.
1167 * godump.c: Likewise.
1168 * graph.c: Likewise.
1169 * graphite-poly.c: Likewise.
1170 * haifa-sched.c: Likewise.
1171 * hw-doloop.c: Likewise.
1172 * ifcvt.c: Likewise.
1173 * incpath.c: Likewise.
1174 * init-regs.c: Likewise.
1175 * internal-fn.c: Likewise.
1176 * ipa-chkp.c: Likewise.
1177 * ipa-comdats.c: Likewise.
1178 * ipa-cp.c: Likewise.
1179 * ipa-devirt.c: Likewise.
1180 * ipa-icf-gimple.c: Likewise.
1181 * ipa-icf.c: Likewise.
1182 * ipa-inline-analysis.c: Likewise.
1183 * ipa-inline-transform.c: Likewise.
1184 * ipa-inline.c: Likewise.
1185 * ipa-polymorphic-call.c: Likewise.
1186 * ipa-profile.c: Likewise.
1187 * ipa-prop.c: Likewise.
1188 * ipa-pure-const.c: Likewise.
1189 * ipa-ref.c: Likewise.
1190 * ipa-reference.c: Likewise.
1191 * ipa-split.c: Likewise.
1192 * ipa-utils.c: Likewise.
1193 * ipa-visibility.c: Likewise.
1195 * ira-build.c: Likewise.
1196 * ira-color.c: Likewise.
1197 * ira-conflicts.c: Likewise.
1198 * ira-costs.c: Likewise.
1199 * ira-emit.c: Likewise.
1200 * ira-lives.c: Likewise.
1203 * langhooks.c: Likewise.
1205 * lists.c: Likewise.
1206 * loop-doloop.c: Likewise.
1207 * loop-init.c: Likewise.
1208 * loop-invariant.c: Likewise.
1209 * loop-iv.c: Likewise.
1210 * loop-unroll.c: Likewise.
1211 * lower-subreg.c: Likewise.
1212 * lra-assigns.c: Likewise.
1213 * lra-coalesce.c: Likewise.
1214 * lra-constraints.c: Likewise.
1215 * lra-eliminations.c: Likewise.
1216 * lra-lives.c: Likewise.
1217 * lra-remat.c: Likewise.
1218 * lra-spills.c: Likewise.
1220 * lto-cgraph.c: Likewise.
1221 * lto-compress.c: Likewise.
1222 * lto-opts.c: Likewise.
1223 * lto-section-in.c: Likewise.
1224 * lto-section-out.c: Likewise.
1225 * lto-streamer-in.c: Likewise.
1226 * lto-streamer-out.c: Likewise.
1227 * lto-streamer.c: Likewise.
1228 * mode-switching.c: Likewise.
1229 * modulo-sched.c: Likewise.
1230 * omp-low.c: Likewise.
1231 * optabs.c: Likewise.
1232 * opts-global.c: Likewise.
1233 * passes.c: Likewise.
1234 * plugin.c: Likewise.
1235 * postreload-gcse.c: Likewise.
1236 * postreload.c: Likewise.
1237 * predict.c: Likewise.
1238 * print-tree.c: Likewise.
1239 * profile.c: Likewise.
1241 * realmpfr.c: Likewise.
1242 * recog.c: Likewise.
1244 * reg-stack.c: Likewise.
1245 * regcprop.c: Likewise.
1246 * reginfo.c: Likewise.
1247 * regrename.c: Likewise.
1248 * regstat.c: Likewise.
1249 * reload.c: Likewise.
1250 * reload1.c: Likewise.
1251 * reorg.c: Likewise.
1252 * resource.c: Likewise.
1253 * rtl-chkp.c: Likewise.
1254 * rtl-error.c: Likewise.
1255 * rtlanal.c: Likewise.
1256 * rtlhooks.c: Likewise.
1257 * sanopt.c: Likewise.
1258 * sched-deps.c: Likewise.
1259 * sched-ebb.c: Likewise.
1260 * sched-rgn.c: Likewise.
1262 * shrink-wrap.c: Likewise.
1263 * simplify-rtx.c: Likewise.
1264 * stack-ptr-mod.c: Likewise.
1265 * statistics.c: Likewise.
1267 * stor-layout.c: Likewise.
1268 * store-motion.c: Likewise.
1269 * stringpool.c: Likewise.
1270 * symtab.c: Likewise.
1271 * target-globals.c: Likewise.
1272 * targhooks.c: Likewise.
1273 * toplev.c: Likewise.
1274 * tracer.c: Likewise.
1275 * trans-mem.c: Likewise.
1276 * tree-affine.c: Likewise.
1277 * tree-call-cdce.c: Likewise.
1278 * tree-cfg.c: Likewise.
1279 * tree-cfgcleanup.c: Likewise.
1280 * tree-chkp-opt.c: Likewise.
1281 * tree-chkp.c: Likewise.
1282 * tree-chrec.c: Likewise.
1283 * tree-complex.c: Likewise.
1284 * tree-data-ref.c: Likewise.
1285 * tree-dfa.c: Likewise.
1286 * tree-diagnostic.c: Likewise.
1287 * tree-dump.c: Likewise.
1288 * tree-eh.c: Likewise.
1289 * tree-emutls.c: Likewise.
1290 * tree-if-conv.c: Likewise.
1291 * tree-inline.c: Likewise.
1292 * tree-into-ssa.c: Likewise.
1293 * tree-iterator.c: Likewise.
1294 * tree-loop-distribution.c: Likewise.
1295 * tree-nested.c: Likewise.
1296 * tree-nrv.c: Likewise.
1297 * tree-object-size.c: Likewise.
1298 * tree-outof-ssa.c: Likewise.
1299 * tree-parloops.c: Likewise.
1300 * tree-phinodes.c: Likewise.
1301 * tree-predcom.c: Likewise.
1302 * tree-pretty-print.c: Likewise.
1303 * tree-profile.c: Likewise.
1304 * tree-scalar-evolution.c: Likewise.
1305 * tree-sra.c: Likewise.
1306 * tree-ssa-address.c: Likewise.
1307 * tree-ssa-alias.c: Likewise.
1308 * tree-ssa-ccp.c: Likewise.
1309 * tree-ssa-coalesce.c: Likewise.
1310 * tree-ssa-copy.c: Likewise.
1311 * tree-ssa-dce.c: Likewise.
1312 * tree-ssa-dom.c: Likewise.
1313 * tree-ssa-dse.c: Likewise.
1314 * tree-ssa-forwprop.c: Likewise.
1315 * tree-ssa-ifcombine.c: Likewise.
1316 * tree-ssa-live.c: Likewise.
1317 * tree-ssa-loop-ch.c: Likewise.
1318 * tree-ssa-loop-im.c: Likewise.
1319 * tree-ssa-loop-ivcanon.c: Likewise.
1320 * tree-ssa-loop-ivopts.c: Likewise.
1321 * tree-ssa-loop-manip.c: Likewise.
1322 * tree-ssa-loop-niter.c: Likewise.
1323 * tree-ssa-loop-prefetch.c: Likewise.
1324 * tree-ssa-loop-unswitch.c: Likewise.
1325 * tree-ssa-loop.c: Likewise.
1326 * tree-ssa-math-opts.c: Likewise.
1327 * tree-ssa-operands.c: Likewise.
1328 * tree-ssa-phiopt.c: Likewise.
1329 * tree-ssa-phiprop.c: Likewise.
1330 * tree-ssa-pre.c: Likewise.
1331 * tree-ssa-propagate.c: Likewise.
1332 * tree-ssa-reassoc.c: Likewise.
1333 * tree-ssa-sccvn.c: Likewise.
1334 * tree-ssa-scopedtables.c: Likewise.
1335 * tree-ssa-sink.c: Likewise.
1336 * tree-ssa-strlen.c: Likewise.
1337 * tree-ssa-structalias.c: Likewise.
1338 * tree-ssa-tail-merge.c: Likewise.
1339 * tree-ssa-ter.c: Likewise.
1340 * tree-ssa-threadedge.c: Likewise.
1341 * tree-ssa-threadupdate.c: Likewise.
1342 * tree-ssa-uncprop.c: Likewise.
1343 * tree-ssa-uninit.c: Likewise.
1344 * tree-ssa.c: Likewise.
1345 * tree-ssanames.c: Likewise.
1346 * tree-stdarg.c: Likewise.
1347 * tree-streamer-in.c: Likewise.
1348 * tree-streamer-out.c: Likewise.
1349 * tree-streamer.c: Likewise.
1350 * tree-switch-conversion.c: Likewise.
1351 * tree-tailcall.c: Likewise.
1352 * tree-vect-data-refs.c: Likewise.
1353 * tree-vect-generic.c: Likewise.
1354 * tree-vect-loop-manip.c: Likewise.
1355 * tree-vect-loop.c: Likewise.
1356 * tree-vect-patterns.c: Likewise.
1357 * tree-vect-slp.c: Likewise.
1358 * tree-vect-stmts.c: Likewise.
1359 * tree-vectorizer.c: Likewise.
1360 * tree-vrp.c: Likewise.
1363 * ubsan.c: Likewise.
1364 * value-prof.c: Likewise.
1365 * var-tracking.c: Likewise.
1366 * varasm.c: Likewise.
1367 * varpool.c: Likewise.
1368 * vtable-verify.c: Likewise.
1370 * wide-int-print.cc: Likewise.
1371 * wide-int.cc: Likewise.
1372 * xcoffout.c: Likewise.
1374 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
1376 * Makefile.in (NO_PIE_CFLAGS): New.
1377 (NO_PIE_FLAG): Likewise.
1378 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1379 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1380 (BUILD_NO_PIE_CFLAGS): Likewise.
1381 (BUILD_NO_PIE_FLAG): Likewise.
1382 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
1383 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
1384 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
1385 $(BUILD_NO_PIE_CFLAGS).
1386 (BUILD_CXXFLAGS): Likewise.
1387 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
1388 $(BUILD_NO_PIE_FLAG).
1389 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
1390 (BUILD_NO_PIE_FLAG): Likewise.
1391 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
1392 (NO_PIE_FLAG_FOR_BUILD): Likewise.
1393 * configure: Regenerated.
1395 2015-10-29 Richard Biener <rguenther@suse.de>
1398 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
1399 unsigned conditonal negation to ABS_EXPR.
1401 2015-10-29 Richard Biener <rguenther@suse.de>
1403 * gimple-match-head.c (gimple_simplify): Remove premature checking
1404 of builtin_decl_implicit of function calls we simplify.
1406 2015-10-29 Bin Cheng <bin.cheng@arm.com>
1408 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
1409 (get_computation_cost_at): Ditto.
1410 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
1413 2015-10-28 Tom de Vries <tom@codesourcery.com>
1415 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
1418 2015-10-28 Jason Merrill <jason@redhat.com>
1420 * Makefile.in (TAGS): Include libcpp and libiberty.
1422 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1424 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
1425 (extract_omp_for_data): Remove OpenACC special handling of
1428 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
1429 (struct parallel): Update comment.
1430 (nvptx_reorg): Likewise.
1431 (nvptx_neuter): Cleanup whitespace.
1433 2015-10-28 Richard Henderson <rth@redhat.com>
1435 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
1437 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1440 * config/avr/predicates.md (low_io_address_operand): Don't
1441 consider MODE when computing upper bound.
1442 (io_address_operand): Likewise.
1444 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
1446 * fold-const.c (operand_equal_p): Do not verify that types are
1447 compatible for MEM_REFs.
1449 2015-10-28 Richard Biener <rguenther@suse.de>
1451 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
1452 in simplifying VEC_COND_EXPR conditions.
1454 2015-10-28 Tom de Vries <tom@codesourcery.com>
1456 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
1457 into vi_next of a full_var.
1459 2015-10-28 Tom de Vries <tom@codesourcery.com>
1461 * tree-ssa-structalias.c (new_var_info, make_heapvar)
1462 (make_constraint_from_restrict, make_constraint_from_global_restrict)
1463 (create_function_info_for, create_variable_info_for_1)
1464 (create_variable_info_for): Add and handle add_id parameter.
1465 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
1466 (init_base_vars): Add extra argument to calls to new_var_info.
1467 (get_vi_for_tree): Add extra argument to call to
1468 create_variable_info_for.
1469 (process_constraint, do_deref, process_all_all_constraints): Add extra
1470 argument to calls to new_scalar_tmp_constraint_exp.
1471 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
1472 argument to calls to make_heapvar.
1473 (make_restrict_var_constraints): Add extra argument to call to
1474 make_constraint_from_global_restrict.
1475 (intra_create_variable_infos): Add extra argument to call to
1476 create_variable_info_for_1.
1477 (ipa_pta_execute): Add extra argument to call to
1478 create_function_info_for.
1480 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1482 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
1483 (sibcall_value): Likewise.
1485 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
1487 * config/nvptx/nvptx.h (struct machine_function): Add
1489 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
1490 nvptx_expand_oacc_join): Declare.
1491 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
1492 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
1493 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
1494 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
1495 UNSPECV_JOINING, UNSPECV_JOIN): New.
1496 (BITS, BITD): New mode iterators.
1497 (br_true_uni, br_false_uni): New.
1498 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
1499 (oacc_dim_size, oacc_dim_pos): New.
1500 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
1501 (oacc_fork, oacc_join): New.
1502 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
1503 (worker_load<mode>, worker_store<mode>): New.
1504 (nvptx_barsync): New.
1505 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
1506 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
1507 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
1508 worker_bcast_sym): New.
1509 (nvptx_option_override): Initialize worker broadcast buffer.
1510 (nvptx_emit_forking, nvptx_emit_joining): New.
1511 (nvptx_init_axis_predicate): New.
1512 (nvptx_declare_function_name): Init axis predicates.
1513 (nvptx_expand_call): Add fork/join markers around routine call.
1514 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
1515 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
1516 (nvptx_gen_vcast): New.
1517 (struct wcast_data_t): New.
1518 (enum propagate_mask): New.
1519 (nvptx_gen_wcast): New.
1520 (nvptx_print_operand): Add 'S' case.
1521 (struct parallel): New.
1522 (parallel::parallel, parallel::~parallel): New.
1523 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
1524 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
1525 nvptx_find_par, nvptx_discover_pars): New.
1526 (nvptx_propagate): New.
1527 (vprop_gen, nvptx_vpropagate): New.
1528 (wprop_gen, nvptx_wpropagate): New.
1530 (nvptx_single, nvptx_skip_par): New.
1531 (nvptx_process_pars, nvptx_neuter_pars): New.
1532 (ntptx_reorg): Split blocks, generate parallel structure, apply
1534 (nvptx_cannot_copy_insn_p): New.
1535 (nvptx_file_end): Emit worker broadcast decl.
1536 (nvptx_goacc_fork_join): New.
1537 (TARGET_CANNOT_COPY_INSN_P): Override.
1538 (TARGET_GOACC_FORK_JOIN): Override.
1540 2015-10-28 Richard Biener <rguenther@suse.de>
1542 * fold-const.c (negate_expr_p): Adjust the division case to
1543 properly avoid introducing undefined overflow.
1544 (fold_negate_expr): Likewise.
1546 2015-10-28 Richard Biener <rguenther@suse.de>
1548 PR tree-optimization/65962
1549 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1550 Avoid creating loop carried dependences also for outer loops
1551 of the loop a use to replace is in.
1553 2015-10-28 Richard Biener <rguenther@suse.de>
1555 * common.opt (fchecking): New flag controlling flag_checking.
1556 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
1557 * timevar.c (timer::print): Adjust output.
1558 * doc/invoke.texi (fchecking): Document.
1560 2015-10-28 Richard Biener <rguenther@suse.de>
1563 * fold-const.c (negate_expr_p): We cannot negate plus or minus
1564 if overflow is not wrapping. Likewise multiplication unless
1565 one operand is constant and not power of two.
1566 (fold_negate_expr): Adjust accordingly.
1568 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1570 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
1572 (is_oacc_parallel, is_oacc_kernels): New.
1573 (enclosing_target_ctx): May return NULL.
1574 (ctx_in_oacc_kernels_region): New.
1575 (check_oacc_kernel_gwv): New.
1576 (oacc_loop_or_target_p): Delete.
1577 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
1578 operands. Strip reductions fro kernels.
1579 (scan_omp_target): Don't calculate gwv mask.
1580 (lower_oacc_head_mark, lower_oacc_loop_marker,
1581 lower_oacc_head_tail): New.
1582 (struct oacc_collapse): New.
1583 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
1584 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1585 Remove OpenACC handling.
1586 (expand_oacc_for): New.
1587 (expand_omp_for): Call expand_oacc_for.
1588 (lower_omp_for): Call lower_oacc_head_tail.
1590 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
1592 * attribs.c (check_attribute_tables): New function, broken out from...
1593 (init_attributes): Use it.
1594 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
1595 gcc_checking_assert and checking_* functions to eliminate
1596 ENABLE_CHECKING conditionals.
1597 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
1598 (pass_expand::execute): Likewise.
1599 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
1600 * cgraphunit.c (mark_functions_to_output): Likewise.
1601 (cgraph_node::expand_thunk): Likewise.
1602 (symbol_table::compile): Likewise.
1603 * ddg.c (add_cross_iteration_register_deps): Likewise.
1604 (create_ddg_all_sccs): Likewise.
1605 * df-core.c (df_finish_pass, df_analyze): Likewise.
1606 * diagnostic-core.h: Likewise.
1607 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
1608 * dominance.c (calculate_dominance_info): Likewise.
1609 * dwarf2out.c (add_AT_die_ref): Likewise.
1610 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
1611 (loc_list_from_tree, gen_lexical_block_die): Likewise.
1612 gen_type_die_with_usage, gen_type_die): Likewise.
1613 (dwarf2out_decl): Likewise.
1614 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
1615 * except.c (duplicate_eh_regions): Likewise.
1616 * fwprop.c (register_active_defs, update_df_init): Likewise.
1617 (fwprop_init, fwprop_done): Likewise.
1618 (update_uses): Likewise.
1619 * ggc-page.c (ggc_grow): Likewise.
1620 * gimplify.c (gimplify_body): Likewise.
1621 (gimplify_hasher::equal): Likewise.
1622 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
1623 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
1625 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
1626 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
1627 * hash-table.h (::find_empty_slot_for_expand): Likewise.
1628 * ifcvt.c (if_convert): Likewise.
1629 * ipa-cp.c (ipcp_propagate_stage): Likewise.
1630 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
1631 (odr_type_p, odr_types_equivalent_p): Likewise.
1632 (add_type_duplicate, get_odr_type): Likewise.
1633 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
1634 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
1635 (sem_item_optimizer::verify_classes): Likewise.
1636 (sem_item_optimizer::traverse_congruence_split): Likewise.
1637 (sem_item_optimizer::checking_verify_classes): New.
1638 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
1640 * cfgrtl.c (commit_edge_insertions): Likewise.
1641 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
1642 (rtl_flow_call_edges_add): Likewise.
1643 * cgraph.c (symbol_table::create_edge): Likewise.
1644 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
1645 * cgraph.h (symtab_node): Likewise.
1646 (symtab_node::checking_verify_symtab_nodes): Define.
1647 (cgraph_node::checking_verify_cgraph_nodes): Define.
1648 * cfghooks.h (checking_verify_flow_info): Define.
1649 * cfgloop.h (checking_verify_loop_structure): Define.
1650 * dominance.h (checking_verify_dominators): Define.
1651 * et-forest.c: Fix comment.
1652 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
1653 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1654 ENABLE_CHECKING conditionals.
1655 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1656 * ipa-inline.c (inline_small_functions): Likewise.
1657 (early_inliner): Likewise.
1658 * ipa-inline.h (estimate_edge_growth): Likewise.
1659 * ipa-visibility.c (function_and_variable_visibility): Likewise.
1660 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1661 (ipa_single_use): Likewise.
1662 * ira-int.h: Likewise.
1663 * ira.c (ira): Likewise.
1664 * loop-doloop.c (doloop_optimize_loops): Likewise.
1665 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
1666 * loop-invariant.c (move_loop_invariants): Likewise.
1667 * lra-assigns.c (lra_assign): Likewise.
1668 * lra-constraints.c (lra_constraints): Likewise.
1669 * lra-eliminations.c (lra_eliminate): Likewise.
1670 * lra-int.h (struct lra_reg): Likewise.
1671 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
1672 (lra_create_live_ranges_1): Likewise.
1673 * lra-remat.c (create_remat_bb_data): Likewise.
1674 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
1676 (check_rtl): Always define. Remove incorrect guard around
1677 extract_constrain_insn call.
1678 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
1679 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1680 ENABLE_CHECKING conditionals.
1681 * lto-streamer-out.c (DFS::DFS): Likewise.
1682 (lto_output): Likewise.
1683 * lto-streamer.c (lto_streamer_init): Likewise.
1684 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
1685 expand_omp_target, execute_expand_omp): Likewise.
1686 (lower_omp_target): Likewise.
1687 * passes.c (execute_function_todo): Likewise.
1688 (execute_todo, execute_one_pass): Likewise.
1689 (verify_curr_properties): Always define.
1690 * predict.c (tree_estimate_probability: Use flag_checking,
1691 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
1692 ENABLE_CHECKING conditionals.
1693 (propagate_freq): Likewise.
1694 * pretty-print.c (pp_format): Likewise.
1695 * real.c (real_to_decimal_for_mode): Likewise.
1696 * recog.c (split_all_insns): Likewise.
1697 * regcprop.c (kill_value_one_regno): Likewise.
1698 (copy_value): Likewise.
1699 (validate_value_data): Define unconditionally.
1700 * reload.c: Fix comment.
1701 * timevar.c: Include options.h
1702 * tree-ssa.h (checking_verify_ssa): Define.
1703 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
1704 * sched-deps.c (CHECK): Remove unused macro.
1705 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
1706 gcc_checking_assert and checking_* functions to eliminate
1707 ENABLE_CHECKING conditionals.
1708 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
1709 * sel-sched.c (struct moveop_static_params): Likewise.
1710 (find_best_reg_for_expr, move_cond_jump): Likewise.
1711 (move_op_orig_expr_not_found): Likewise.
1712 (code_motion_process_successors, move_op): Likewise.
1713 * ssa-iterators.h (first_readonly_imm_use): Likewise.
1714 (next_readonly_imm_use): Likewise.
1715 * store-motion.c (compute_store_table): Likewise.
1716 * symbol-summary.h (function_summary::function_summary): Likewise.
1717 * target.h (cumulative_args_t): Likewise.
1718 (get_cumulative_args, pack_cumulative_args): Likewise.
1719 * timevar.c: (timer::print): Likewise.
1720 * trans-mem.c (ipa_tm_execute): Likewise.
1721 * tree-cfg.c (move_stmt_op): Likewise.
1722 (move_sese_region_to_fn): Likewise.
1723 (gimple_flow_call_edges_add): Likewise.
1724 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
1726 * tree-eh.c (remove_unreachable_handlers): Likewise.
1727 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
1728 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
1729 * tree-into-ssa.c (update_ssa): Likewise.
1730 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
1731 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
1732 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
1733 * tree-predcom.c (suitable_component_p): Likewise.
1734 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
1735 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
1736 * tree-ssa-live.c (verify_live_on_entry): Likewise.
1737 * tree-ssa-live.h (register_ssa_partition): Likewise.
1738 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
1739 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
1740 (tree_transform_and_unroll_loop): Likewise.
1741 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
1742 * tree-ssa-operands.c (get_expr_operands): Likewise.
1743 * tree-ssa-propagate.c (replace_exp_1): Likewise.
1744 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
1745 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1746 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
1747 * tree-ssanames.c (release_ssa_name_fn): Likewise.
1748 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
1749 * tree-vect-loop-manip.c
1750 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
1751 (slpeel_checking_verify_cfg_after_peeling): Likewise.
1752 (vect_do_peeling_for_loop_bound): Likewise.
1753 (vect_do_peeling_for_alignment): Likewise.
1754 * tree-vrp.c (supports_overflow_infinity): Likewise.
1755 (set_value_range): Likewise.
1756 * tree.c (free_lang_data_in_cgraph): Likewise.
1757 * value-prof.c (gimple_remove_histogram_value): Likewise.
1758 (free_hist): Likewise.
1759 * var-tracking.c (canonicalize_values_star): Likewise.
1760 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
1762 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1764 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
1765 IFN_GOACC_LOOP): New.
1766 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
1767 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
1768 IFN_UNIQUE_OACC_TAIL_MARK.
1769 (enum ifn_goacc_loop_kind): New.
1770 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
1771 IFN_UNIQUE_OACC_JOIN cases.
1772 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
1773 (expand_GOACC_LOOP): New.
1774 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
1775 * omp-low.c: Include gimple-pretty-print.h.
1776 (struct oacc_loop): New.
1777 (enum oacc_loop_flags): New.
1778 (oacc_thread_numbers): New.
1779 (oacc_xform_loop): New.
1780 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
1781 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
1782 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
1783 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
1784 oacc_loop_discovery): New.
1785 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
1786 oacc_loop_process): New.
1787 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
1788 (execute_oacc_device_lower): Discover & process loops. Process
1790 * target.def (goacc.fork_join): Change sense of hook, clarify
1792 * doc/tm.texi: Regenerated.
1794 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1796 * target-insns.def (oacc_fork, oacc_join): Define.
1797 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
1798 (goacc.fork_join): New GOACC hook.
1799 * targhooks.h (default_goacc_fork_join): Declare.
1800 * omp-low.c (default_goacc_forkjoin): New.
1801 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
1802 * doc/tm.texi: Regenerate.
1804 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1806 * omp-low.c (oacc_init_rediction_array): New.
1807 (oacc_initialize_reduction_data): Initialize array.
1809 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1811 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
1813 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
1815 * internal-fn.c (expand_UNIQUE): New.
1816 * internal-fn.h (enum ifn_unique_kind): New.
1817 * internal-fn.def (IFN_UNIQUE): New.
1818 * target-insns.def (unique): Define.
1819 * gimple.h (gimple_call_internal_unique_p): New.
1820 * gimple.c (gimple_call_same_target_p): Check internal fn
1822 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
1823 * tree-ssa-threadedge.c
1824 (record_temporary_equivalences_from_stmts): Likewise.
1825 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
1827 2015-10-27 Richard Henderson <rth@redhat.com>
1830 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
1831 narrowing subregs on SSE and MMX registers.
1832 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
1833 appear to be sub-words of multi-register pseudos must be rejected.
1834 * doc/tm.texi: Regenerate.
1836 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1839 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
1840 operands[0] is a reg before taking its REGNO in split condition.
1841 (*movdi_aarch64): Likewise.
1843 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1845 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
1846 Handle floating point inner modes properly.
1848 2015-10-27 Alan Hayward <alan.hayward@arm.com>
1851 (vectorizable_live_operation): Change iterator.
1853 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1854 Aditya Kumar <aditya.k7@samsung.com>
1856 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
1857 function to schedule based on isl_schedule_node.
1858 (get_schedule_map_st): New schedule optimizer based on
1860 (scop_get_domains): New. Return the isl_union_set containing the
1861 domains of all the pbbs.
1862 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
1864 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
1867 * calls.c (prepare_call_address): Don't handle -fno-plt here.
1868 * config/i386/i386.c (ix86_expand_call): Generate indirect call
1869 via GOT for -fno-plt. Support indirect call via GOT for x32.
1870 * config/i386/predicates.md (sibcall_memory_operand): Allow
1873 2015-10-27 Richard Biener <rguenther@suse.de>
1875 PR tree-optimization/68104
1876 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
1877 strided access check ...
1878 (vect_compute_data_refs_alignment): ... here.
1880 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
1881 Joseph Myers <joseph@codesourcery.com>
1882 Mark Shinwell <shinwell@codesourcery.com>
1883 Andrew Stubbs <ams@codesourcery.com>
1884 Rich Felker <dalias@libc.org>
1886 * config.gcc: Handle --enable-fdpic.
1887 * config/sh/constraints.md (Ccl): New constraint.
1888 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
1889 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
1891 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
1893 * config/sh/sh-protos.h (function_symbol_result): New struct.
1894 (function_symbol): Return function_symbol_result.
1895 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
1897 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
1899 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
1900 (sh_option_override): Force -fPIC if FDPIC is in effect.
1901 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
1902 UNSPEC_GOTOFFFUNCDESC cases.
1903 (prepare_move_operands): Use FDPIC initial GOT register for
1904 TLS-related GOT access; inhibit cross-section address offset constants
1906 (sh_assemble_integer): New function.
1907 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
1908 PC-relative call sites.
1909 (expand_ashiftrt): Adapt invocation of function_symbol.
1910 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
1911 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
1912 UNSPEC_GOTOFFFUNCDESC.
1913 (legitimize_pic_address): Resolve function symbols to function
1914 descriptors for FDPIC. Do not use GOT-relative addressing for local
1915 data that may be read-only on FDPIC.
1916 (sh_emit_storesi, sh_emit_storehi): New functions.
1917 (sh_trampoline_init): Generate FDPIC trampolines.
1918 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
1919 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
1920 (sh_output_mi_thunk): Generate FDPIC call.
1921 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
1922 FDPIC, generate call site labels to use PC-relative addressing rather
1923 than GOT-relative addressing.
1924 (sh_conditional_register_usage): Make PIC register fixed and call used
1925 when FDPIC is in effect.
1926 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
1927 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
1928 sh_get_fdpic_reg_initial_val): New functions.
1929 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
1931 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
1932 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
1933 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
1934 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
1936 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
1937 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
1938 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
1939 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
1941 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
1942 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
1943 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
1944 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
1945 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
1946 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
1947 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
1948 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
1949 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1950 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
1951 block_move_real, block_lump_real, block_move_real_i4,
1952 block_lump_real_i4): Add support for FDPIC calls.
1953 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
1954 call_value_pop): Adjust for new function_symbol signature.
1955 * config/sh/sh.opt (-mfdpic): New option.
1956 * doc/install.texi (Options specification): Document --enable-fdpic.
1957 * doc/invoke.texi (SH Options): Document -mfdpic.
1960 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1962 PR tree-optimization/65963
1963 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1964 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1966 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1969 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
1970 * config/arm/constraints.md (Dp): Update callsite.
1971 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
1973 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1975 * builtins.c (fold_builtin_load_exponent): Rename to...
1976 (fold_const_builtin_load_exponent): ...this and only handle
1978 (fold_builtin_2): Update accordingly.
1979 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
1981 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1983 * builtins.c (fold_builtin_logb): Rename to...
1984 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
1985 (fold_builtin_significand): Rename to...
1986 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
1987 (fold_builtin_1): Update accordingly.
1989 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
1991 * builtins.c (fold_builtin_fmin_fmax): Delete.
1992 (fold_builtin_2): Handle constant fmin and fmax arguments here.
1993 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
1995 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
1997 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
1998 for register extension into sign and zero register extension.
1999 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
2000 for sign and zero register extension.
2001 (cortexa57_addrcost_table): Likewise.
2002 (xgene1_addrcost_table): Likewise.
2004 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2006 * fold-const.c (fold_minmax): Delete.
2007 (fold_binary_loc): Don't call it.
2008 * match.pd: Add rules previously handled by fold_minmax.
2010 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2012 * builtins.c (fold_builtin_fma): Remove constant handling.
2013 (fold_builtin_3): Handle constant fma arguments here.
2015 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2017 * builtins.c (fold_builtin_fabs): Remove constant handling.
2018 (fold_builtin_abs): Likewise.
2020 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2022 * builtins.c (fold_builtin_copysign): Delete.
2023 (fold_builtin_2): Handle constant copysign arguments here.
2024 * match.pd: Add rules previously handled by fold_builtin_copysign.
2026 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2028 * builtins.c (fold_builtin_signbit): Delete.
2029 (fold_builtin_2): Handle constant signbit arguments here.
2030 * match.pd: Add rules previously handled by fold_builtin_signbit.
2032 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2034 * match.pd: Handle sqrt(x) cmp 0 specially.
2036 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
2038 * tree-vect-generic.c (expand_vector_operations_1): Check
2039 optab type before using it.
2041 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2043 * config/aarch64/aarch64-protos.h
2044 (struct tune_params): Add autoprefetcher_model field.
2045 * config/aarch64/aarch64.c: Include params.h
2046 (generic_tunings): Specify autoprefetcher_model value.
2047 (cortexa53_tunings): Likewise.
2048 (cortexa57_tunings): Likewise.
2049 (cortexa72_tunings): Likewise.
2050 (thunderx_tunings): Likewise.
2051 (xgene1_tunings): Likewise.
2052 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
2053 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
2054 (aarch64_override_options_internal): Set
2055 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
2057 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2059 * builtins.c (fold_builtin_exponent): Delete.
2060 (fold_builtin_2): Handle constant expN arguments here.
2061 * match.pd: Fold expN(logN(x)) -> x.
2063 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2065 * builtins.c (fold_builtin_powi): Delete.
2066 (fold_builtin_2): Handle constant powi arguments here.
2067 * match.pd: Add rules previously handled by fold_builtin_powi.
2069 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2071 * builtins.c (fold_builtin_pow): Delete in favor of...
2072 (fold_const_builtin_pow): ...this new function. Only handle constant
2074 (fold_builtin_2): Update accordingly.
2075 * match.pd: Add rules previously handled by fold_builtin_pow.
2077 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2079 * builtins.c (fold_builtin_hypot): Delete.
2080 (fold_builtin_2): Handle constant hypot arguments here.
2081 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
2082 hypot(x, x) to fabs(x)*sqrt(2).
2084 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
2086 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
2087 instead of make_ssa_name if not yet in SSA form.
2089 2015-10-27 Richard Biener <rguenther@suse.de>
2091 * cfg.c (free_edge): Add function argument and use it instead of cfun.
2092 (clear_edges): Likewise.
2093 * cfg.h (clear_edges): Adjust prototype.
2094 * cfgexpand.c (pass_expand::execute): Adjust.
2095 * cfgloop.c (release_recorded_exits): Add function argument and use
2097 * cfgloop.h (release_recorded_exits): Adjust prototype.
2098 (loops_state_satisfies_p): Add overload with function argument.
2099 (loops_state_set): Likewise.
2100 (loops_state_clear): Likewise.
2101 (struct loop_iterator): Add function argument to constructor
2102 and iterator and use it instead of cfun.
2103 (FOR_EACH_LOOP_FN): New macro.
2104 (loop_optimizer_finalize): Add overload with function argument.
2105 * loop-init.c (loop_optimizer_init): Adjust.
2106 (fix_loop_structure): Likewise.
2107 (loop_optimizer_finaliz): Add function argument and use it
2109 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
2110 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
2111 * cgraph.c (release_function_body): Do not push/pop cfun.
2112 * final.c (rest_of_clean_state): Adjust.
2113 * graphite.c (graphite_finalize): Likewise.
2114 * tree-ssa-copy.c (fini_copy_prop): Likewise.
2115 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2116 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
2117 (tree_unroll_loops_completely): Likewise.
2118 (pass_complete_unrolli::execute): Likewise.
2119 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
2120 Add function argument and use it instead of cfun.
2121 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
2123 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
2124 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
2126 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
2127 * tree-ssanames.c (fini_ssanames): Add function argument and use it
2129 * tree-ssanames.c (fini_ssanames): Adjust prototype.
2130 * tree-vrp.c (execute_vrp): Adjust.
2131 * value-prof.c (free_histograms): Add function argument and use it
2133 * value-prof.h (free_histograms): Adjust prototype.
2135 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2137 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
2138 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
2139 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
2141 2015-10-27 Tom de Vries <tom@codesourcery.com>
2143 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
2146 2015-10-27 Bin Cheng <bin.cheng@arm.com>
2148 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
2149 (inv_can_prop_to_addr_use): New function.
2150 (record_use): Call can_prop_to_addr_uses, set the new field.
2151 (get_inv_cost): Count cost if inv can't be propagated into its
2154 2015-10-26 Doug Evans <dje@google.com>
2156 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
2158 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
2160 * match.pd (fold_widened_comparison): Apply simplifications to all
2163 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
2165 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
2166 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
2167 * doc/tm.texi: Regenerated.
2168 * reorg.c (dbr_schedule): Use new hook.
2169 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
2171 2015-10-26 Jeff Law <law@redhat.com>
2173 PR tree-optimization/68013
2174 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2175 Make sure the first block in the path is in VISITED_BBs.
2177 2015-10-26 Richard Biener <rguenther@suse.de>
2178 Dominik Vogt <vogt@linux.vnet.ibm.com>
2181 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
2182 Properly prune ref->ref for accesses outside of ref.
2184 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2186 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
2187 new statements to be inserted if inplace. Allow calls to have
2190 2015-10-26 Richard Biener <rguenther@suse.de>
2192 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
2193 (do_valueize): New function.
2194 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
2196 * tree-ssa-threadedge.c: Remove builtins.h include, include
2198 (fold_assignment_stmt): Remove.
2199 (threadedge_valueize): New function.
2200 (record_temporary_equivalences_from_stmts): Use
2201 gimple_fold_stmt_to_constant_1, note additional cleanup
2204 2015-10-26 Richard Biener <rguenther@suse.de>
2206 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
2207 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
2209 2015-10-26 Alan Hayward <alan.hayward@arm.com>
2211 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2212 VEC_COND_EXPR types.
2214 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2216 * auto-inc-dec.c (insert_move_insn_before): Delete.
2217 (attempt_change): Remember to cost the simple move in the
2218 FORM_PRE_ADD and FORM_POST_ADD cases.
2220 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
2223 * config/sh/sh.c (sh_vector_mode_supported_p): Use
2224 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
2226 2015-10-26 Tom de Vries <tom@codesourcery.com>
2228 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
2230 (intra_create_variable_infos): ... here.
2232 2015-10-26 Tom de Vries <tom@codesourcery.com>
2234 * tree-ssa-structalias.c (intra_create_variable_infos): Add
2235 restrict_pointer_p and recursive_restrict_p variables.
2237 2015-10-26 Tom de Vries <tom@codesourcery.com>
2239 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
2240 get_vi_for_tree call.
2242 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2245 * optabs.c (expand_atomic_compare_and_swap): Handle case when
2246 ptarget_oval or ptarget_bool are const0_rtx.
2248 2015-10-26 Christian Bruel <christian.bruel@st.com>
2250 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
2251 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
2252 * cp/method.c (implicitly_declare_fn): Likewise.
2253 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
2254 * java/class.c (add_method_1): Likewise.
2256 2015-10-26 Richard Biener <rguenther@suse.de>
2258 * alloc-pool.h (base_pool_allocator): Use placement new.
2259 (base_pool_allocator::remove): Likewise. Compute size outside of
2262 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2264 * builtins.c (do_real_to_int_conversion): New function.
2265 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
2266 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
2268 * match.pd: Add rules previously handled by fold_fixed_mathfn
2269 and fold_builtin_int_roundingfn.
2271 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
2273 * match.pd: Use macros to define built-in operator lists.
2275 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
2276 Richard Biener <rguenther@suse.de>
2278 * genmatch.c (dt_simplify::gen): Skip captures that are
2280 (parser::parse_expr): Allow captures in results too.
2281 * builtins.c (fold_builtin_cexp): Delete.
2282 (fold_builtin_1): Handle constant cexp arguments here.
2283 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
2285 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
2287 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
2288 conditional compilation.
2289 (base_pool_allocator::remove): Use flag_checking.
2291 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
2293 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
2296 * dojump.c (do_compare_and_jump): Canonicalize both function and
2299 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
2302 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
2305 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2308 * ipa-polymorphic-call.c
2309 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
2310 instance offset with offset of outer type.
2312 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2314 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
2316 2015-10-23 Caroline Tice <cmtice@google.com>
2318 (from Richard Biener
2319 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
2320 call to iterative_hash_host_wide_int.
2322 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2324 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
2327 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2329 * tree-vect-generic.c (expand_vector_operations_1): Check
2330 optab exists before use it.
2332 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2334 * tree-vect-generic.c (expand_vector_condition): Avoid
2335 uninitialized variable warning.
2337 2015-10-23 Jeff Law <law@redhat.com>
2339 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
2341 (execute_todo): Call it here.
2342 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
2344 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
2346 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2347 Szabolcs Nagy <szabolcs.nagy@arm.com>
2349 * config.gcc (enable_secureplt): Add *-linux*-musl*.
2351 2015-10-23 Jeff Law <law@redhat.com>
2353 PR tree-optimization/67830
2354 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
2355 Explicitly verify the mask has no bits outside the type of
2356 the innermost operands.
2358 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
2359 Szabolcs Nagy <szabolcs.nagy@arm.com>
2361 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
2362 (MUSL_DYNAMIC_LINKER64): Define.
2363 (GNU_USER_DYNAMIC_LINKER32): Update.
2364 (GNU_USER_DYNAMIC_LINKER64): Update.
2365 (CHOOSE_DYNAMIC_LINKER): Update.
2367 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
2368 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
2369 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2370 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2371 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2372 (CHOOSE_DYNAMIC_LINKER): Update.
2373 (INCLUDE_DEFAULTS): Redefine.
2375 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
2377 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2379 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
2380 comparing addresses.
2382 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
2384 * fold-const.c (operand_equal_p): Handle matching of vector
2387 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
2389 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
2391 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
2392 Andrew Pinski <apinski@cavium.com>
2394 PR rtl-optimization/67736
2395 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
2398 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2401 * tree.c (build_truth_vector_type): Support BLK mode
2402 returned for boolean vector.
2404 2015-10-23 Alan Hayward <alan.hayward@arm.com>
2406 PR tree-optimization/65947
2408 (vect_is_simple_reduction_1): Find condition reductions.
2409 (vect_model_reduction_cost): Add condition reduction costs.
2410 (get_initial_def_for_reduction): Add condition reduction initial var.
2411 (vect_create_epilog_for_reduction): Add condition reduction epilog.
2412 (vectorizable_reduction): Condition reduction support.
2413 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
2414 * doc/sourcebuild.texi (Vector-specific attributes): Document
2417 2015-10-23 Richard Biener <rguenther@suse.de>
2419 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
2422 2015-10-23 Richard Biener <rguenther@suse.de>
2423 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2425 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
2426 into (A ^ B) - B to match.pd
2427 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
2429 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
2431 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
2433 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
2435 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
2437 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
2438 INTEGER_CST@1)): New simplifier.
2440 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
2442 * builtins.c (integer_valued_real_p): Move to fold-const.c.
2443 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
2444 (fold_builtin_ceil, fold_builtin_round): Delete.
2445 (fold_builtin_1): Handle constant trunc, floor, ceil and round
2447 * convert.c (convert_to_real): Remove narrowing of rounding
2449 * fold-const.h (integer_valued_real_unary_p)
2450 (integer_valued_real_binary_p, integer_valued_real_call_p)
2451 (integer_valued_real_single_p, integer_valued_real_p): Declare.
2452 * fold-const.c (tree_single_nonnegative_warnv_p): Move
2453 name_registered_for_update_p check to SSA_NAME case statement.
2454 Don't call tree_simple_nonnegative_warnv_p for SSA names.
2455 (integer_valued_real_unary_p, integer_valued_real_binary_p)
2456 (integer_valued_real_call_p, integer_valued_real_single_p)
2457 (integer_valued_real_invalid_p): New functions.
2458 (integer_valued_real_p): Move from fold-const.c and rework
2459 to call the functions above. Handle SSA names.
2460 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
2461 * gimple-fold.c (gimple_assign_integer_valued_real_p)
2462 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
2463 (gimple_stmt_integer_valued_real_p): New functions.
2464 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
2465 Fold f(x)->x for the same f if x is known to be integer-valued.
2466 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
2467 the result. Canonicalize floor(x) as trunc(x) if x is
2470 2015-10-23 Tom de Vries <tom@codesourcery.com>
2472 * tree-ssa-structalias.c (intra_create_variable_infos): Use
2473 make_constraint_from.
2475 2015-10-23 Tom de Vries <tom@codesourcery.com>
2477 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
2478 setting of is_full_var in case of a single field.
2480 2015-10-22 Martin Sebor <msebor@redhat.com>
2483 * config/i386/i386.opt: Add missing periods to the ends of sentences.
2484 * config/msp430/msp430.opt: Same.
2486 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2488 * doc/extend.exp (Global Register Variables): Rewrite.
2490 2015-10-22 Jeff Law <law@redhat.com>
2492 * genattrtab.c (main): If we do not have any annul-true or annul-false
2493 slots, then write out a dummy eligible_for_annul_true or
2494 eligible_for_annul_false as needed.
2496 2015-10-22 Nick Clifton <nickc@redhat.com>
2498 * config/msp430/msp430.opt: Add -msilicon-errata and
2499 -msilicon-errata-warn.
2500 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
2502 * doc/invoke.texi: Document new options.
2504 2015-10-22 Richard Biener <rguenther@suse.de>
2506 PR tree-optimization/58497
2507 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
2508 (expand_vector_operations_1): Use it. Lower operations on
2509 all uniform vectors to scalar operations if the HW supports it.
2511 2015-10-22 Richard Biener <rguenther@suse.de>
2513 PR tree-optimization/19049
2514 PR tree-optimization/65962
2515 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
2516 to strided accesses if single-element interleaving doesn't work.
2518 2015-10-22 Richard Biener <rguenther@suse.de>
2522 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
2523 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
2524 (expand_unop): Likewise.
2526 2015-10-22 Richard Biener <rguenther@suse.de>
2528 * fold-const.c (fold_addr_of_array_ref_difference): Properly
2529 convert operands before folding a MINUS_EXPR.
2530 (fold_binary_loc): Move simplification of MINUS_EXPR on
2531 converted POINTER_PLUS_EXPRs ...
2532 * match.pd: ... here.
2534 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2536 * builtins.c (fold_builtin_tan): Delete.
2537 (fold_builtin_1): Handle constant tan arguments here.
2538 * match.pd: Simplify (tan (atan x)) to x.
2540 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
2542 * builtins.c (fold_builtin_cproj): Delete.
2543 (fold_builtin_1): Handle constant arguments here.
2544 (build_complex_cproj): Move and rename to...
2545 * tree.c: (build_complex_inf): ...this.
2546 * tree.h (build_complex_inf): Declare.
2547 * match.pd: Fold cproj(x)->x if x has no infinity.
2548 Use build_complex_inf for existing cproj rules.
2550 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2553 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
2554 already have a comparison result.
2556 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2559 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
2560 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
2561 (aarch64_classify_address): Likewise.
2562 (aarch64_secondary_reload): Likewise.
2563 (aarch64_override_options_after_change_1): Adjust.
2564 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
2565 Use aarch64_nopcrelative_literal_loads.
2566 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2567 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2570 2015-10-21 Martin Sebor <msebor@redhat.com>
2573 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
2574 (print_filtered_help): Reference aliased option's name and encourage
2575 readers to use it in preference to the alias if the former is not
2576 documented. Mention when using an option is diagnosed.
2577 * gcc.c (display_help): End each sentence with a period.
2579 * common.opt: End each sentence that describes an option with
2581 * config/aarch64/aarch64.opt: Same.
2582 * config/alpha/alpha.opt: Same.
2583 * config/arc/arc.opt: Same.
2584 * config/arm/arm.opt: Same.
2585 * config/avr/avr.opt: Same.
2586 * config/bfin/bfin.opt: Same.
2587 * config/c6x/c6x.opt: Same.
2588 * config/cr16/cr16.opt: Same.
2589 * config/cris/cris.opt: Same.
2590 * config/cris/linux.opt: Same.
2591 * config/darwin.opt: Same.
2592 * config/epiphany/epiphany.opt: Same.
2593 * config/fr30/fr30.opt: Same.
2594 * config/frv/frv.opt: Same.
2595 * config/ft32/ft32.opt: Same.
2596 * config/g.opt: Same.
2597 * config/h8300/h8300.opt: Same.
2598 * config/i386/cygming.opt: Same.
2599 * config/i386/djgpp.opt: Same.
2600 * config/i386/i386.opt: Same.
2601 * config/i386/interix.opt: Same.
2602 * config/i386/mingw-w64.opt: Same.
2603 * config/i386/mingw.opt: Same.
2604 * config/ia64/ia64.opt: Same.
2605 * config/ia64/ilp32.opt: Same.
2606 * config/iq2000/iq2000.opt: Same.
2607 * config/linux.opt: Same.
2608 * config/lm32/lm32.opt: Same.
2609 * config/lynx.opt: Same.
2610 * config/m32c/m32c.opt: Same.
2611 * config/m32r/m32r.opt: Same.
2612 * config/m68k/ieee.opt: Same.
2613 * config/m68k/m68k.opt: Same.
2614 * config/mcore/mcore.opt: Same.
2615 * config/mep/mep.opt: Same.
2616 * config/microblaze/microblaze.opt: Same.
2617 * config/mips/mips.opt: Same.
2618 * config/mmix/mmix.opt: Same.
2619 * config/mn10300/mn10300.opt: Same.
2620 * config/moxie/moxie.opt: Same.
2621 * config/msp430/msp430.opt: Same.
2622 * config/nios2/elf.opt: Same.
2623 * config/nios2/nios2.opt: Same.
2624 * config/nvptx/nvptx.opt: Same.
2625 * config/pa/pa-hpux.opt: Same.
2626 * config/pa/pa-hpux1010.opt: Same.
2627 * config/pa/pa-hpux1111.opt: Same.
2628 * config/pa/pa-hpux1131.opt: Same.
2629 * config/pa/pa.opt: Same.
2630 * config/pa/pa64-hpux.opt: Same.
2631 * config/pdp11/pdp11.opt: Same.
2632 * config/rl78/rl78.opt: Same.
2633 * config/rs6000/476.opt: Same.
2634 * config/rs6000/aix64.opt: Same.
2635 * config/rs6000/darwin.opt: Same.
2636 * config/rs6000/linux64.opt: Same.
2637 * config/rs6000/rs6000.opt: Same.
2638 * config/rs6000/sysv4.opt: Same.
2639 * config/s390/s390.opt: Same.
2640 * config/s390/tpf.opt: Same.
2641 * config/sh/sh.opt: Same.
2642 * config/sol2.opt: Same.
2643 * config/sparc/long-double-switch.opt: Same.
2644 * config/sparc/sparc.opt: Same.
2645 * config/spu/spu.opt: Same.
2646 * config/stormy16/stormy16.opt: Same.
2647 * config/tilegx/tilegx.opt: Same.
2648 * config/tilepro/tilepro.opt: Same.
2649 * config/v850/v850.opt: Same.
2650 * config/vax/vax.opt: Same.
2651 * config/visium/visium.opt: Same.
2652 * config/vms/vms.opt: Same.
2653 * config/vxworks.opt: Same.
2654 * config/xtensa/xtensa.opt: Same.
2656 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2657 Sebastian Pop <s.pop@samsung.com>
2659 * graphite-scop-detection.c (parameter_index_in_region): Update call to
2660 invariant_in_sese_p_rec.
2661 * graphite-sese-to-poly.c (extract_affine): Same.
2662 * sese.c (invariant_in_sese_p_rec): Pass in an extra
2663 parameter has_vdefs.
2664 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
2665 variable depends on virtual definitions in the current region.
2666 * sese.h (invariant_in_sese_p_rec): Update declaration.
2668 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2669 Sebastian Pop <s.pop@samsung.com>
2671 * graphite-scop-detection.c (build_scops): Do not handle scops
2672 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
2673 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
2675 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
2677 * config.in: Regenerate.
2678 * configure: Regenerate.
2679 * configure.ac (CHECKING_P): Define.
2680 * system.h: Use CHECKING_P.
2682 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2685 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
2686 is negative we don't know the type.
2687 (check_stmt_for_type_change): Skip constructors of non-polymorphic
2688 types as those won't help devirutalization.
2690 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2692 * fold-const.c (operand_equal_p): Add code matching empty constructors.
2694 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
2696 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
2698 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
2699 Add comments on sign of the result.
2700 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
2701 Recurse on operand #1 instead of operand #0.
2702 <CEIL_MOD_EXPR>: Do not recurse.
2703 <ROUND_MOD_EXPR>: Likewise.
2705 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2707 * cfgrtl.c (pass_free_cfg::execute): Adjust.
2708 * final.c (dbr_sequence_length): Always define.
2709 (shorten_branches): Adjust.
2710 * genattr-common.c (main): Always define DELAY_SLOTS.
2711 * genattr.c (main): Unconditionally declare functions and define
2712 macros related to delay slots.
2713 * genattrtab.c (write_eligible_delay): Adjust.
2714 (main): Always write out delay slot functions.
2715 * opts.c (default_options_table): Adjust.
2716 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
2717 (redirect_with_delay_list_safe_p): Likewise.
2718 (fill_simple_delay_slots): Likewise.
2719 (fill_slots_from_thread): Likewise.
2720 (make_return_insns): Likewise.
2721 (dbr_schedule): Likewise.
2722 (rest_of_handle_delay_slots): Likewise.
2723 (pass_delay_slots::gate): Likewise.
2724 * toplev.c (process_options): Likewise.
2726 2015-10-21 Richard Henderson <rth@redhat.com>
2728 * targhooks.c (default_addr_space_pointer_mode): Remove check
2729 for generic address space.
2730 (default_addr_space_address_mode): Likewise.
2731 (default_addr_space_valid_pointer_mode): Likewise.
2732 (default_addr_space_legitimate_address_p): Likewise.
2733 (default_addr_space_legitimize_address): Likewise.
2734 * target.def (addr_space.pointer_mode): Update documentation
2735 of default behavior.
2736 (addr_space.address_mode): Likewise.
2739 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
2742 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2744 * builtins.c (fold_builtin_cabs): Delete.
2745 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2746 * match.pd: Add rules previously handled by fold_builtin_cabs.
2748 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2750 * fold-const.h (fold_strip_sign_ops): Delete.
2751 * fold-const.c (fold_strip_sign_ops): Likewise.
2752 (fold_unary_loc, fold_binary_loc): Remove calls to it.
2753 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
2754 (fold_builtin_ccos): Delete.
2755 (fold_builtin_pow): Don't call fold_strip_sign_ops.
2756 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
2757 Remove fndecl argument.
2758 (fold_builtin_1): Update calls accordingly. Handle constant
2759 cos, cosh, ccos and ccosh here.
2761 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2763 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
2764 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
2765 * common.opt (fssa-backprop): New option.
2766 * fold-const.h (negate_mathfn_p): Declare.
2767 * fold-const.c (negate_mathfn_p): Make public.
2768 * timevar.def (TV_TREE_BACKPROP): New.
2769 * tree-pass.h (make_pass_backprop): Declare.
2770 * passes.def (pass_backprop): Add.
2771 * gimple-ssa-backprop.c: New file.
2773 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2774 Sebastian Pop <s.pop@samsung.com>
2776 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
2777 Do not call create_empty_if_region_on_edge when cond_expr is true.
2778 (translate_isl_ast_node_for): Check whether a guard has been generated.
2780 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2782 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
2783 (operator=): Removed.
2784 (dr_info): Make alias_set number the last argument with default
2785 value of invalid_alias_set.
2786 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
2788 (rewrite_reductions_out_of_ssa): Iterate only through the
2789 basic blocks which are inside region.
2790 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2791 * sese.h (struct sese_l): Removed assignment operator.
2792 (split_region_for_bb): Removed dead code.
2794 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
2796 * graphite-poly.h (struct dr_info): Removed conversion constructor.
2797 (struct scop): Renamed scop::region to scop::scop_info
2798 (scop_set_region): Same.
2799 (SCOP_REGION): Removed
2800 (SCOP_CONTEXT): Removed.
2801 (POLY_SCOP_P): Removed.
2802 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2803 Rename scop->region to scop->scop_info.
2804 (add_parameters_to_ivs_params): Same.
2805 (graphite_regenerate_ast_isl): Same.
2806 * graphite-poly.c (new_scop): Same.
2808 (print_scop_params): Same.
2809 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
2810 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
2811 (dot_all_scops_1): Rename scop->region to scop->scop_info.
2812 (scop_detection::nb_pbbs_in_loops): Same.
2813 (find_scop_parameters): Same.
2814 (try_generate_gimple_bb): Same.
2815 (gather_bbs::before_dom_children): Same.
2816 (gather_bbs::after_dom_children): Same.
2817 (build_scops): Same.
2818 * graphite-sese-to-poly.c (build_scop_scattering): Same.
2819 (extract_affine_chrec): Same.
2820 (extract_affine): Same.
2821 (set_scop_parameter_dim): Same.
2822 (build_loop_iteration_domains): Same.
2823 (create_pw_aff_from_tree): Same.
2824 (add_param_constraints): Same.
2825 (build_scop_iteration_domain): Same.
2826 (build_scop_drs): Same.
2827 (analyze_drs_in_stmts): Same.
2828 (insert_out_of_ssa_copy_on_edge): Same.
2829 (rewrite_close_phi_out_of_ssa):Same.
2830 (rewrite_reductions_out_of_ssa):Same.
2831 (handle_scalar_deps_crossing_scop_limits):Same.
2832 (rewrite_cross_bb_scalar_deps):Same.
2833 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
2834 (build_poly_scop):Same.
2835 (build_alias_set): Use pointer to dr_info.
2836 * graphite.c (print_graphite_scop_statistics):
2837 (graphite_transform_loops):
2838 * sese.h (struct sese_l): Remove conversion constructor.
2840 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2843 * tree.c (verify_type): Verify that TYPE_MODE match
2844 between TYPE_CANONICAL and type.
2845 * expr.c (store_expr_with_bounds): Revert my previous change.
2846 * expmed.c (store_bit_field_1): Revert prevoius change.
2847 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
2848 to match for all types.
2850 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
2852 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
2855 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2857 * doc/tm.texi: Regenerated.
2858 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
2859 * stor-layout.c (layout_type): Use mode to get vector mask size.
2860 * target.def (get_mask_mode): New.
2861 * targhooks.c (default_get_mask_mode): New.
2862 * targhooks.h (default_get_mask_mode): New.
2863 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
2865 * tree.c (MAX_BOOL_CACHED_PREC): New.
2866 (nonstandard_boolean_type_cache): New.
2867 (build_nonstandard_boolean_type): New.
2868 (make_vector_type): Vector mask has no canonical type.
2869 (build_truth_vector_type): New.
2870 (build_same_sized_truth_vector_type): New.
2871 (truth_type_for): Support vector masks.
2872 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
2873 (build_truth_vector_type): New.
2874 (build_same_sized_truth_vector_type): New.
2875 (build_nonstandard_boolean_type): New.
2876 * tree-cfg.c (verify_gimple_comparison) Require boolean
2877 vector type for vector comparison.
2878 (verify_gimple_assign_ternary): Likewise.
2879 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
2881 * tree-vect-stmts.c (vectorizable_condition): Use boolean
2882 vector type for vector comparison.
2883 * tree-vect-generic.c (elem_op_func): Add new operand to hold
2885 (do_unop): Adjust to modified function type.
2886 (do_binop): Likewise.
2887 (do_plus_minus): Likewise.
2888 (do_negate); Likewise.
2889 (expand_vector_piecewise): Likewise.
2890 (do_cond): Likewise.
2891 (do_compare): Use comparison instead of condition.
2892 (expand_vector_divmod): Use boolean vector type for comparison.
2893 (expand_vector_operations_1): Skip scalar mask operations.
2895 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2897 * omp-low.c (simd_clone_create): Set in_other_partition
2900 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
2902 * doc/extend.exp (Local Register Variables): Rewrite.
2904 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
2906 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
2907 and x*x in cases where the operands are sign ops. Extend these
2908 rules to handle copysign as a sign op (including for cos, cosh
2909 and pow, which already treated negate and abs as sign ops).
2911 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
2914 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
2915 for 64-bit MS_ABI targets also when default incoming stack boundary
2918 2015-10-21 Richard Biener <rguenther@suse.de>
2920 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
2921 cond stmts, enhanced and split out from ...
2922 (vn_phi_eq): ... here.
2924 2015-10-21 Richard Biener <rguenther@suse.de>
2927 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
2928 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
2929 (tree_single_nonnegative_warnv_p): ... here. For SSA names
2930 make sure they are not registered for update.
2932 2015-10-21 Richard Biener <rguenther@suse.de>
2934 PR tree-optimization/68026
2935 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
2936 unsigned VARYING values.
2938 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2940 * asan.c (asan_emit_stack_protection): Don't pass local stack to
2941 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
2942 NULL and use local stack than.
2943 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
2944 in addition to __asan_init.
2945 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
2946 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
2947 * asan.h (asan_intercepted_p): Handle new string builtins.
2948 * ubsan.c (ubsan_use_new_style_p): New function.
2949 (ubsan_instrument_float_cast): If location is unknown, assign
2950 input_location to loc. Propagate loc to ubsan_create_data if
2951 ubsan_use_new_style_p returned true.
2953 2015-10-21 Jeff Law <law@redhat.com>
2955 * Makefile.in (OBJS): Remove sched-vis.c
2956 * sched-vis.c: Removed. Code moved into...
2957 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
2958 * rtl.h: Remove prototypes for functions now living in print-rtl.c
2959 * print-rtl.h Add prototypes for new functions in print-rtl.c.
2960 * auto-inc-dec.c: Include print-rtl.h
2961 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
2962 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
2964 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
2967 2015-10-21 Richard Biener <rguenther@suse.de>
2968 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2970 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
2972 Move (a * (1 << b)) is (a << b) to match.pd.
2973 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
2974 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
2975 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
2977 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
2979 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
2980 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
2981 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
2983 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
2985 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
2987 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
2988 Szabolcs Nagy <szabolcs.nagy@arm.com>
2989 Alan Modra <amodra@gmail.com>
2991 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
2992 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
2993 (LINK_SPEC): Add %(link_secure_plt).
2994 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
2995 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
2997 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
2998 Szabolcs Nagy <szabolcs.nagy@arm.com>
3000 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
3001 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
3003 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3005 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
3007 (fusion_load_store): Use it.
3008 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
3009 ldp and stp in VD modes.
3010 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
3011 (store_pair<mode>, VD): Likewise.
3013 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
3015 PR rtl-optimization/67609
3016 * lra-splill.c (lra_final_code_change): Don't remove all
3019 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3021 * simplify-rtx.c (simplify_binary_operation): If either operand was
3022 a constant pool reference use them if all other simplifications failed.
3024 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3026 * config/aarch64/aarch64.md
3027 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
3028 * config/aarch64/aarch64-simd.md
3029 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
3030 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
3031 (aarch64_fpconst_pow_of_2): New function.
3032 (aarch64_vec_fpconst_pow_of_2): Likewise.
3033 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
3035 (aarch64_vec_fpconst_pow_of_2): Likewise.
3036 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
3037 (aarch64_fp_vec_pow2): Likewise.
3039 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
3041 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
3042 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
3043 * config/alpha/alpha.c (alpha_function_arg_advance): Update
3044 ALPHA_ARG_SIZE usage.
3045 (alpha_arg_partial_bytes): Ditto.
3047 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3050 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
3051 error_mark_node decls.
3053 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
3057 * common/config/i386/i386-common.c (ix86_handle_option): Remove
3058 OPT_miamcu handling.
3059 * config/i386/i386.c (PTA_NO_80387): New macro.
3060 (processor_alias_table): Add PTA_NO_80387 to lakemont.
3061 (ix86_option_override_internal): Update MASK_80387 from
3062 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
3063 SSE math only if 80387 is supported. Don't change
3065 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
3067 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
3068 if TARGET_80387 is true and TARGET_IAMCU is false.
3069 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
3070 is true and TARGET_IAMCU_P is false.
3072 2015-10-20 Richard Biener <rguenther@suse.de>
3074 PR tree-optimization/68017
3075 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
3077 2015-10-20 Martin Liska <mliska@suse.cz>
3079 * cgraphclones.c (cgraph_node::create_virtual_clone):
3080 Verify cgraph_node.local.versionable instead of calling
3081 tree_versionable_function_p.
3082 * ipa-cp.c (determine_versionability): Save the information
3083 to ipa_node_params summary.
3084 (ipcp_versionable_function_p): Use it.
3085 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
3086 (ipcp_generate_summary): Do not compute cgraph_node
3088 * ipa-inline-analysis.c (inline_generate_summary): Compute
3089 versionability for all cgraph nodes.
3090 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
3091 ipa_node_params::versionability.
3092 * ipa-prop.h (struct ipa_node_params): Declare it.
3094 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3097 * varasm.c (assemble_variable): Move special vtv handling to..
3098 (handle_vtv_comdat_sections): .. here. New function.
3099 (output_object_block): Handle vtv sections.
3101 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
3104 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
3106 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
3108 * doc/extend.texi: Update documentation WRT inline functions.
3110 2015-10-20 Alan Modra <amodra@gmail.com>
3113 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
3114 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
3115 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3117 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
3119 PR rtl-optimization/66790
3120 * df.h (DF_MIR): New macro.
3121 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
3122 (DF_MIR_INFO_BB): New macro.
3123 (DF_MIR_IN, DF_MIR_OUT): New macros.
3124 (struct df_mir_bb_info): New.
3125 (df_mir): New macro.
3126 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
3128 (df_mir_get_bb_info): New.
3129 * df-problems.c (struct df_mir_problem_data): New.
3130 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
3131 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
3132 df_mir_confluence_0, df_mir_confluence_n,
3133 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
3134 df_mir_bottom_dump, df_mir_verify_solution_start,
3135 df_mir_verify_solution_end): New.
3137 (df_mir_add_problem, df_mir_simulate_one_insn): New.
3138 * timevar.def (TV_DF_MIR): New.
3139 * ree.c: Include bitmap.h
3140 (add_removable_extension): Add an INIT_REGS parameter. Use it
3141 to skip zero-extensions that may get an uninitialized register.
3142 (find_removable_extensions): Compute must-initialized registers
3143 using the MIR dataflow problem. Update the call to
3144 add_removable_extension.
3145 (find_and_remove_re): Call df_mir_add_problem.
3147 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
3149 * common/config/mn10300/mn10300-common.c
3150 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
3151 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
3153 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
3155 * doc/extend.texi (Explicit Register Variables): Simplify and
3156 avoid unnecessary and confusion abbreviations. Update cross
3158 doc/implement-c.tex: Update cross reference.
3160 2015-10-19 Jeff Law <law@redhat.com>
3162 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
3163 that create irreducible loops unless the path elimiantes a multiway
3166 2015-10-19 Richard Biener <rguenther@suse.de>
3168 PR tree-optimization/67975
3169 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
3170 * tree-cfg.c (extract_true_false_controlled_edges): Split out
3171 core worker from ...
3172 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
3173 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
3174 instead of block number for PHIs with two or one args.
3175 (vn_phi_eq): Compare edge predicates of PHIs that are in different
3178 2015-10-19 Richard Biener <rguenther@suse.de>
3180 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
3181 (gimple_stmt_nonnegative_warnv_p): Use it.
3182 * match.pd (CPROJ): New operator list.
3183 (cproj (complex ...)): Move simplifications from ...
3184 * builtins.c (fold_builtin_cproj): ... here.
3186 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3188 * config/i386/i386.c (ix86_expand_vector_move): Use
3189 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
3192 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3194 * doc/invoke.texi: Replace @optindex with @opindex.
3196 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
3199 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
3200 arch= is set, clear all bits in x_ix86_isa_flags, except for
3201 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
3203 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
3206 * common.opt (fkeep-static-functions): New option.
3207 * doc/invoke.texi: Document it.
3208 * cgraphunit.c (cgraph_node::finalize_function): Use it.
3210 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3212 * sched-int.h (struct autopref_multipass_data_): Remove offset
3213 field. Add min_offset, max_offset, multi_mem_insn_p fields.
3214 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
3215 (autopref_multipass_init): Use it. Handle PARALLEL sets.
3216 (autopref_rank_data): New function.
3217 (autopref_rank_for_schedule): Use it.
3218 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
3220 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
3223 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
3225 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3227 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
3228 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
3229 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
3230 (STANDARD_STARTFILE_PREFIX_1): New.
3231 (STANDARD_STARTFILE_PREFIX_2): New.
3233 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3235 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
3236 (darwin_driver_init): Note a version-min when provided on the c/l.
3237 * config/darwin.h (%darwin_minversion): Remove.
3238 * config/i386/darwin.h: Likewise.
3239 * config/rs6000/darwin.h: Likewise.
3240 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
3241 rather than an arbitrary constant.
3243 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3245 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
3246 PPC, detect conflicts between -arch and multilib settings. Detect
3247 and warn about conflicts between multiple -arch definitions.
3249 2015-10-18 Iain Sandoe <iain@codesourcery.com>
3251 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
3253 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3255 * lra-constraints.c (add_next_usage_insn): Change argument type
3256 from rtx to rtx_insn *.
3258 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
3260 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
3263 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
3265 * config/tilepro/gen-mul-tables.cc: Adjust include files.
3266 * config/tilegx/mul-tables.c: Regenerate.
3267 * config/tilepro/mul-tables.c: Regenerate.
3269 * config/tilegx/tilegx-c.c: Adjust include files.
3270 * config/tilegx/tilegx.c: Likewise.
3271 * config/tilepro/tilepro-c.c: Likewise.
3272 * config/tilepro/tilepro.c: Likewise.
3273 * config/aarch64/aarch64-builtins.c: Likewise.
3274 * config/aarch64/aarch64.c: Likewise.
3275 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3276 * config/alpha/alpha.c: Likewise.
3277 * config/arc/arc.c: Likewise.
3278 * config/arm/aarch-common.c: Likewise.
3279 * config/arm/arm-builtins.c: Likewise.
3280 * config/arm/arm-c.c: Likewise.
3281 * config/arm/arm.c: Likewise.
3282 * config/avr/avr-c.c: Likewise.
3283 * config/avr/avr-devices.c: Likewise.
3284 * config/avr/avr-log.c: Likewise.
3285 * config/avr/avr.c: Likewise.
3286 * config/bfin/bfin.c: Likewise.
3287 * config/c6x/c6x.c: Likewise.
3288 * config/cr16/cr16.c: Likewise.
3289 * config/cris/cris.c: Likewise.
3290 * config/darwin-c.c: Likewise.
3291 * config/darwin-driver.c: Likewise.
3292 * config/darwin.c: Likewise.
3293 * config/default-c.c: Likewise.
3294 * config/epiphany/epiphany.c: Likewise.
3295 * config/epiphany/mode-switch-use.c: Likewise.
3296 * config/epiphany/resolve-sw-modes.c: Likewise.
3297 * config/fr30/fr30.c: Likewise.
3298 * config/frv/frv.c: Likewise.
3299 * config/ft32/ft32.c: Likewise.
3300 * config/glibc-c.c: Likewise.
3301 * config/h8300/h8300.c: Likewise.
3302 * config/i386/host-cygwin.c: Likewise.
3303 * config/i386/host-mingw32.c: Likewise.
3304 * config/i386/i386-c.c: Likewise.
3305 * config/i386/i386.c: Likewise.
3306 * config/i386/msformat-c.c: Likewise.
3307 * config/i386/winnt-cxx.c: Likewise.
3308 * config/i386/winnt-stubs.c: Likewise.
3309 * config/i386/winnt.c: Likewise.
3310 * config/ia64/ia64-c.c: Likewise.
3311 * config/ia64/ia64.c: Likewise.
3312 * config/iq2000/iq2000.c: Likewise.
3313 * config/lm32/lm32.c: Likewise.
3314 * config/m32c/m32c-pragma.c: Likewise.
3315 * config/m32c/m32c.c: Likewise.
3316 * config/m32r/m32r.c: Likewise.
3317 * config/mcore/mcore.c: Likewise.
3318 * config/mep/mep-pragma.c: Likewise.
3319 * config/mep/mep.c: Likewise.
3320 * config/microblaze/microblaze-c.c: Likewise.
3321 * config/microblaze/microblaze.c: Likewise.
3322 * config/mips/mips-tables.opt
3323 * config/mips/mips.c: Likewise.
3324 * config/mmix/mmix.c: Likewise.
3325 * config/mn10300/mn10300.c: Likewise.
3326 * config/moxie/moxie.c: Likewise.
3327 * config/msp430/msp430-c.c: Likewise.
3328 * config/msp430/msp430.c: Likewise.
3329 * config/nds32/nds32-cost.c: Likewise.
3330 * config/nds32/nds32-fp-as-gp.c: Likewise.
3331 * config/nds32/nds32-intrinsic.c: Likewise.
3332 * config/nds32/nds32-isr.c: Likewise.
3333 * config/nds32/nds32-md-auxiliary.c: Likewise.
3334 * config/nds32/nds32-memory-manipulation.c: Likewise.
3335 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3336 * config/nds32/nds32-predicates.c: Likewise.
3337 * config/nds32/nds32.c: Likewise.
3338 * config/nios2/nios2.c: Likewise.
3339 * config/nvptx/mkoffload.c: Likewise.
3340 * config/nvptx/nvptx.c: Likewise.
3341 * config/pa/pa.c: Likewise.
3342 * config/pdp11/pdp11.c: Likewise.
3343 * config/rl78/rl78-c.c: Likewise.
3344 * config/rl78/rl78.c: Likewise.
3345 * config/rs6000/host-darwin.c: Likewise.
3346 * config/rs6000/rs6000-c.c: Likewise.
3347 * config/rs6000/rs6000-linux.c: Likewise.
3348 * config/rs6000/rs6000.c: Likewise.
3349 * config/rx/rx.c: Likewise.
3350 * config/s390/s390-c.c: Likewise.
3351 * config/s390/s390.c: Likewise.
3352 * config/sh/sh-c.c: Likewise.
3353 * config/sh/sh-mem.cc: Likewise.
3354 * config/sh/sh.c: Likewise.
3355 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3356 * config/sh/sh_treg_combine.cc: Likewise.
3357 * config/sol2-c.c: Likewise.
3358 * config/sol2-cxx.c: Likewise.
3359 * config/sol2-stubs.c: Likewise.
3360 * config/sol2.c: Likewise.
3361 * config/sparc/sparc-c.c: Likewise.
3362 * config/sparc/sparc.c: Likewise.
3363 * config/spu/spu-c.c: Likewise.
3364 * config/spu/spu.c: Likewise.
3365 * config/stormy16/stormy16.c: Likewise.
3366 * config/v850/v850-c.c: Likewise.
3367 * config/v850/v850.c: Likewise.
3368 * config/vax/vax.c: Likewise.
3369 * config/visium/visium.c: Likewise.
3370 * config/vms/vms-c.c: Likewise.
3371 * config/vms/vms.c: Likewise.
3372 * config/vxworks.c: Likewise.
3373 * config/winnt-c.c: Likewise.
3374 * config/xtensa/xtensa.c: Likewise.
3376 2015-10-16 Christian Bruel <christian.bruel@st.com>
3379 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
3380 (FUNCTION_BOUNDARY_P): New macro:
3381 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
3383 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
3384 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
3385 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
3386 * function.c (allocate_struct_function): Call
3387 relayout_function hook.
3388 * passes.c (rest_of_decl_compilation): Likewise.
3390 2015-10-16 Christian Bruel <christian.bruel@st.com>
3393 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
3394 * config/arm/arm.c (arm_option_override_internal): Call
3395 arm_override_options_after_change_1.
3396 (arm_override_options_after_change): New function.
3397 (arm_override_options_after_change_1): Likewise.
3398 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
3400 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3403 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3406 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
3408 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
3409 argument is an ADDR_EXPR.
3411 2015-10-16 Richard Biener <rguenther@suse.de>
3413 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
3414 and get rid of force_gimple_operand_gsi.
3415 (gimple_fold_builtin_memory_chk): Likewise.
3416 (gimple_fold_builtin_stxcpy_chk): Likewise.
3417 (rewrite_to_defined_overflow): Likewise.
3418 (gimple_convert_to_ptrofftype): New function.
3419 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
3421 2015-10-16 Richard Biener <rguenther@suse.de>
3423 * tree-nested.h (build_addr): Adjust prototype.
3424 * tree-nested.c (build_addr): Remove context argument and use
3426 (get_static_chain): Adjust calls to build_addr.
3427 (convert_nl_goto_reference): Likewise.
3428 (convert_tramp_reference_op): Likewise.
3429 (finalize_nesting_tree_1): Likewise.
3430 * value-prof.c (gimple_ic): Likewise.
3431 * gimple-low.c (lower_builtin_setjmp): Likewise.
3432 * tree-parloops.c (take_address_of): Likewise.
3433 (create_call_for_reduction_1): Likewise.
3434 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
3435 (gimple_gen_ic_func_profiler): Likewise.
3437 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
3439 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
3442 2015-10-16 Michael Collison <michael.collison@linaro.org>
3443 Andrew Pinski <andrew.pinski@caviumnetworks.com>
3445 * match.pd ((x < y) && (x < z) -> x < min (y,z),
3446 (x > y) and (x > z) -> x > max (y,z))
3448 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
3449 Szabolcs Nagy <szabolcs.nagy@arm.com>
3451 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
3452 (DYNAMIC_LINKER): Renamed to ...
3453 (GLIBC_DYNAMIC_LINKER): This.
3454 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
3456 2015-10-15 Marek Polacek <polacek@redhat.com>
3458 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
3459 gimple_call_builtin instead of is_gimple_call.
3461 2015-10-15 Richard Biener <rguenther@suse.de>
3463 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
3465 2015-10-15 Richard Biener <rguenther@suse.de>
3467 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
3468 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
3469 * tree-vect-loop.c (get_initial_def_for_induction): Drop
3470 use of force_gimple_operand in favor of gimple_build.
3471 Use vect_get_new_ssa_name.
3472 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
3473 (vectorizable_mask_load_store): Likewise.
3474 (vectorizable_call): Likewise.
3475 (vectorizable_store): Likewise.
3476 (vectorizable_load): Likewise.
3477 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
3479 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
3481 PR tree-optimization/67945
3482 * tree-pass.h (PROP_gimple_opt_math): New property flag.
3483 * generic-match-head.c (canonicalize_math_p): New function.
3484 * gimple-match-head.c: Include tree-pass.h.
3485 (canonicalize_math_p): New function.
3486 * match.pd: Group math built-in rules into simplifications
3487 and canonicalizations. Guard the latter with canonicalize_math_p.
3488 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
3489 PROP_gimple_opt_math property.
3491 2015-10-15 Marek Polacek <polacek@redhat.com>
3493 PR tree-optimization/67953
3494 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
3496 2015-10-15 Jiong Wang <jiong.wang@arm.com>
3498 * config.gcc: Recognize "." in architecture base name for AArch64.
3500 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3502 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
3504 * config/mips/mips.c (mips_setup_incoming_varargs): Use
3505 ROUND_DOWN to calculate off.
3506 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
3507 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
3510 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
3512 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
3514 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
3515 Torvald Riegel <triegel@redhat.com>
3518 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
3519 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3520 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
3521 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
3522 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
3523 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
3524 trechkpt, treclaim, tsr, ttest): New define_expands.
3525 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3526 __TM_FENCE__ for htm.
3527 * doc/extend.texi: Update documentation for htm builtins.
3529 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
3532 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
3533 REG_CFA_EXPRESSION to aligned SSE stores.
3535 2015-10-14 Jeff Law <law@redhat.com>
3537 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
3538 num_threaded_edges for successful FSM threads too.
3540 2015-10-14 Richard Biener <rguenther@suse.de>
3542 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
3543 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
3544 (vect_get_vec_def_for_operand): Remove unused parameter.
3545 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
3546 (vect_create_epilog_for_reduction): Likewise.
3547 (vectorizable_reduction): Likewise.
3548 (vectorizable_live_operation): Likewise.
3549 * tree-vect-patterns.c (type_conversion_p): Likewise.
3550 (vect_recog_vector_vector_shift_pattern): Likewise.
3551 (check_bool_pattern): Likewise.
3552 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
3553 (vect_analyze_slp_cost_1): Likewise.
3554 * tree-vect-stmts.c (process_use): Likewise.
3555 (vect_get_vec_def_for_operand): Do not handle reductions.
3556 (vect_get_vec_defs): Adjust.
3557 (vectorizable_mask_load_store): Likewise.
3558 (vectorizable_call): Likewise.
3559 (vectorizable_simd_clone_call): Likewise.
3560 (vect_get_loop_based_defs): Likewise.
3561 (vectorizable_conversion): Likewise.
3562 (vectorizable_assignment): Likewise.
3563 (vectorizable_shift): Likewise.
3564 (vectorizable_operation): Likewise.
3565 (vectorizable_store): Likewise.
3566 (vectorizable_load): Likewise.
3567 (vect_is_simple_cond): Likewise.
3568 (vectorizable_condition): Likewise.
3569 (vect_is_simple_use): Remove unused parameters.
3570 (vect_is_simple_use_1): Adjust and rename.
3572 2015-10-14 Richard Biener <rguenther@suse.de>
3574 PR tree-optimization/67915
3575 * match.pd: Handle comparisons of addresses of STRING_CSTs.
3576 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
3577 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
3578 stmt folding in favor of GIMPLE one.
3580 2015-10-14 Marek Polacek <polacek@redhat.com>
3582 PR tree-optimization/67815
3583 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
3584 (reassociate_bb): Call it.
3586 2015-10-14 Richard Biener <rguenther@suse.de>
3588 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3589 Reset info at start.
3590 (vect_analyze_group_access_1): Add debug print.
3591 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
3592 (vect_compute_single_scalar_iteration_cost): ... to this.
3593 (vect_analyze_loop_2): Adjust.
3594 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
3595 * tree-vectorizer.h: ... here.
3596 (add_stmt_info_to_vec): Remove.
3597 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
3599 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
3601 * targhooks.c (default_target_option_pragma_parse): Do not warn if
3602 called on behalf of "#pragma GCC pop_options".
3604 2015-10-14 Tom de Vries <tom@codesourcery.com>
3606 * cfganal.c (verify_no_unreachable_blocks): New function.
3607 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
3608 verify_no_unreachable_blocks.
3609 cfganal.h (verify_no_unreachable_blocks): Declare.
3611 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
3613 * common.opt: Add flag_checking.
3614 * system.h (CHECKING_P): Define.
3616 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3617 Aldy Hernandez <aldyh@redhat.com>
3618 Ilya Verbin <ilya.verbin@intel.com>
3620 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
3621 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
3622 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
3623 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
3624 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
3625 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
3626 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
3627 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
3628 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
3629 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
3630 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
3631 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
3632 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
3633 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
3634 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
3635 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
3636 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
3637 (struct cgraph_simd_clone_arg): Adjust comment.
3638 * coretypes.h (struct gomp_ordered): New forward decl.
3639 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
3640 set critical clauses to it.
3641 (gimple_build_omp_ordered): Return gomp_ordered * instead of
3642 gimple *. Add CLAUSES argument, set ordered clauses to it.
3643 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
3645 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
3646 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
3647 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
3648 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
3649 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
3650 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
3651 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
3652 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
3654 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
3655 (gomp_critical): Add clauses field.
3656 (gomp_ordered): New struct.
3657 (is_a_helper <gomp_ordered *>::test): New inline.
3658 (gimple_build_omp_critical): Add CLAUSES argument.
3659 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
3660 instead of gimple *.
3661 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
3662 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
3663 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
3664 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
3666 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
3667 (dump_gimple_omp_target): Handle enter data and exit data.
3668 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
3669 (dump_gimple_omp_critical): Print clauses.
3670 (dump_gimple_omp_ordered): New function.
3671 (dump_gimple_omp_task): Handle taskloop.
3672 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
3674 * gimple-walk.c (walk_gimple_op): Walk clauses on
3675 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
3676 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
3677 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
3678 (struct gimplify_omp_ctx): Add loop_iter_var,
3679 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
3680 and target_firstprivatize_array_bases fields.
3681 (delete_omp_context): Release loop_iter_var.
3682 (gimplify_bind_expr): Handle ORT_NONE.
3683 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
3684 ORT_COMBINED_TARGET.
3685 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
3686 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
3687 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
3688 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
3689 ctx->target_map_scalars_firstprivate.
3690 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
3691 data sharing clauses. For data sharing clause with VLA decl
3692 on omp target/target data don't add firstprivate for the pointer.
3693 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
3694 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
3695 the addition of ORT_COMBINED_TARGET.
3696 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
3697 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
3698 pointers as zero length array sections and
3699 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
3701 (omp_check_private): Handle omp_member_access_dummy_var vars.
3702 (find_decl_expr): New function.
3703 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
3704 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
3705 Handle OMP_CLAUSE_GANG separately. Handle
3706 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3707 clauses. Diagnose linear clause on combined
3708 distribute {, parallel for} simd construct, unless it is the loop
3709 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
3710 Handle map clauses with COMPONENT_REF. Initialize
3711 ctx->target_map_scalars_firstprivate,
3712 ctx->target_firstprivatize_array_bases and
3713 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
3714 linear clause even to target region if combined. Remove
3715 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
3716 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
3717 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
3718 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
3719 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
3720 For linear clause on worksharing loop combined with parallel add
3721 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
3722 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
3723 omp_member_access_dummy_var vars. Add lastprivate clause to outer
3725 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
3726 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
3727 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
3729 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
3730 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
3731 in target body. Handle removal of struct mapping if struct is not
3732 seen in target body. Remove GOMP_MAP_STRUCT map clause on
3733 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
3734 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
3735 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
3736 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
3737 clause appear together. Handle
3738 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
3739 clause if it has map-type-modifier always. Handle
3740 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
3742 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
3743 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
3745 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
3746 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
3747 iterators in doacross loops.
3748 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
3749 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
3750 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
3751 for the addition of ORT_COMBINED_TARGET.
3752 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
3753 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
3754 and OMP_TARGET_EXIT_DATA.
3755 (gimplify_omp_ordered): New function.
3756 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
3757 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
3758 Gimplify clauses on OMP_CRITICAL.
3759 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
3760 expand_GOMP_SIMD_ORDERED_END): New functions.
3761 * internal-fn.def (GOMP_SIMD_ORDERED_START,
3762 GOMP_SIMD_ORDERED_END): New internal functions.
3763 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
3764 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
3765 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
3766 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
3767 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
3768 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
3769 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
3770 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
3771 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
3772 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
3773 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
3774 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
3775 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
3776 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
3778 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
3779 GOMP_target_data_41, adjust type.
3780 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
3781 GOMP_target_update_41, adjust type.
3782 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
3784 (struct omp_for_data): Add ordered and simd_schedule fields.
3785 (omp_member_access_dummy_var, unshare_and_remap_1,
3786 unshare_and_remap, is_taskloop_ctx): New functions.
3787 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
3788 (extract_omp_for_data): Handle taskloops and doacross loops
3789 and simd schedule modifier.
3790 (omp_adjust_chunk_size): New function.
3791 (get_ws_args_for): Use it.
3792 (lookup_sfield): Change first argument to splay_tree_key,
3793 add overload with first argument tree.
3794 (maybe_lookup_field): Likewise.
3795 (use_pointer_for_field): Handle omp_member_access_dummy_var.
3796 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
3797 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
3798 (build_outer_var_ref): Add LASTPRIVATE argument, handle
3799 taskloops and omp_member_access_dummy_var vars.
3800 (build_sender_ref): Change first argument to splay_tree_key,
3801 add overload with first argument tree.
3802 (install_var_field): For mask & 8 use &DECL_UID as key instead
3804 (fixup_child_record_type): Const qualify *.omp_data_i.
3805 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
3806 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
3807 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
3808 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
3809 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
3810 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
3811 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
3813 (add_taskreg_looptemp_clauses): New function.
3814 (scan_omp_parallel): Use it.
3815 (scan_omp_task): Likewise.
3816 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3817 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
3818 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3819 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
3820 sandwiched taskloop constructs. Type check
3821 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
3822 region. Diagnose depend(source) or depend(sink:...) on
3823 target constructs or task/taskloop.
3824 (handle_simd_reference): Use get_name.
3825 (lower_rec_input_clauses): Likewise. Ignore all
3826 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
3827 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
3828 before passing it to omp_clause_{default,copy}_ctor. Handle
3829 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
3830 lastprivate_firstprivate flag for linear that needs copyin and
3831 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
3832 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
3833 on taskloop lookup decl in outer context. Pass true to
3834 build_outer_var_ref lastprivate argument. Handle
3835 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
3836 outside of outer taskloop for.
3837 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
3839 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
3840 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
3841 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
3842 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
3843 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
3844 abstract origin. Handle omp_member_access_dummy_var vars.
3845 (expand_parallel_call): Use expand_omp_build_assign.
3846 (expand_task_call): Handle taskloop construct expansion. Add
3847 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
3848 integers. Add priority argument to GOMP_task* calls. Or in
3849 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
3851 (expand_omp_build_assign): Add prototype. Add AFTER
3852 argument, if true emit statements after *GSI_P and continue linking.
3853 (expand_omp_taskreg): Adjust expand_task_call caller.
3854 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
3855 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
3856 zero_iter2_bb and first_zero_iter2 arguments, handle computation
3857 of counts even for ordered loops.
3858 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
3859 (expand_omp_ordered_source, expand_omp_ordered_sink,
3860 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
3862 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
3863 clauses on worksharing loop. Handle DOACROSS loop expansion.
3864 (expand_omp_for_static_nochunk): Handle linear clauses on
3865 worksharing loop. Adjust expand_omp_for_init_counts
3867 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
3868 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
3869 expand_omp_for_init_counts callers.
3870 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
3872 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
3873 Handle doacross loops.
3874 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3875 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
3876 GOMP_target_{41,update_41,enter_exit_data} libcalls.
3877 (expand_omp): Don't expand ordered depend constructs here, record
3878 ord_stmt instead for later expand_omp_for_generic.
3879 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3880 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3881 clause as stand-alone directive.
3882 (lower_omp_ordered_clauses): New function.
3883 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
3884 don't lower anything.
3885 (lower_omp_for_lastprivate): Use last _looptemp_ clause
3886 on taskloop for comparison.
3887 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
3888 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
3889 expansion for linear adjustments.
3890 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
3891 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
3892 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
3893 to tree * pointing to the stmt's clauses.
3894 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
3895 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
3896 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
3897 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
3898 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
3899 clauses. Always use short kind and 8-bit align shift.
3900 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
3901 (struct lower_omp_regimplify_operands_data): New type.
3902 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
3904 (lower_omp_1): Use lower_omp_regimplify_operands instead of
3905 gimple_regimplify_operands.
3906 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
3907 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
3908 clause as stand-alone directive.
3909 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
3910 (simd_clone_mangle): Mangle the various linear kinds
3912 (simd_clone_adjust_argument_types): Handle
3913 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
3914 (simd_clone_init_simd_arrays): Don't do anything for uval.
3915 (simd_clone_adjust): Handle
3916 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
3917 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
3918 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
3919 * omp-low.h (omp_member_access_dummy_var): New prototype.
3920 * passes.def (pass_simduid_cleanup): Schedule another copy of the
3921 pass after all optimizations.
3922 * tree.c (omp_clause_code_name): Add entries for
3923 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3924 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3925 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
3926 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
3927 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
3928 OMP_CLAUSE_REDUCTION 5 arguments. Handle
3929 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3930 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
3932 * tree-core.h (enum omp_clause_linear_kind): New.
3933 (struct tree_omp_clause): Change type of map_kind
3934 from unsigned char to unsigned int. Add subcode.if_modifier
3935 and subcode.linear_kind fields.
3936 (enum omp_clause_code): Add
3937 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
3938 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
3939 (OMP_CLAUSE_REDUCTION): Document
3940 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3941 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
3942 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
3943 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
3945 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
3947 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
3949 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
3950 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
3952 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
3953 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
3954 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
3955 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
3956 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
3957 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
3958 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
3959 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
3960 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
3961 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
3962 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
3963 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
3964 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
3965 * tree-inline.c (remap_gimple_stmt): Handle clauses on
3966 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
3967 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
3968 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
3969 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3970 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3971 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
3972 (convert_local_omp_clauses): Likewise.
3973 * tree-pretty-print.c (dump_omp_clause): Handle
3974 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
3975 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
3976 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
3977 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
3978 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
3979 GOMP_MAP_FORCE_DEALLOC. Handle
3980 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
3981 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
3982 and clauses on OMP_ORDERED and OMP_CRITICAL.
3983 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
3984 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
3985 (vectorize_loops): Adjust comments.
3986 (pass_simduid_cleanup::execute): Likewise.
3987 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
3988 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
3989 * wide-int.h (wi::gcd): New.
3991 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
3993 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
3994 (ix86_function_arg_advance): Ditto.
3995 (ix86_function_arg): Ditto.
3996 (ix86_gimplify_va_arg): Ditto.
3997 (ix86_class_max_nregs): Ditto.
3998 (inline_memory_move_cost): Ditto.
3999 (ix86_set_reg_reg_cost): Ditto.
4000 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
4002 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
4005 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
4007 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
4009 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
4010 ROUND_UP macro and UNITS_PER_WORD * 2.
4011 * config/sparc/sparc.c (sparc_compute_frame_size):
4012 Use ROUND_UP and ROUND_DOWN macros where applicable.
4013 (function_arg_record_value, function_arg_record_value_1)
4014 (function_arg_record_value_1): Ditto.
4015 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
4016 alignment to double-word.
4017 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
4018 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
4021 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
4023 * rtl.h (print_insn): Fix prototype.
4025 2015-10-13 Tom de Vries <tom@codesourcery.com>
4027 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
4028 -1. Add assert that returned entry matches phi argument.
4029 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
4030 free_stmt_vec_info_vec ...
4031 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
4034 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
4036 PR tree-optimization/67909, 67947
4037 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
4038 really skip the inner loop.
4040 2015-10-13 Jeff Law <law@redhat.com>
4042 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4043 Allow single block jump threading paths.
4045 2015-10-13 Tom de Vries <tom@codesourcery.com>
4047 PR tree-optimization/67476
4048 * doc/invoke.texi (@item parloops-schedule): New item.
4049 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
4050 * tree-parloops.c: Include params-enum.h.
4051 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
4053 2015-10-13 Tom de Vries <tom@codesourcery.com>
4055 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
4056 * params-enum.h: New file.
4057 * opts.c (handle_param): Handle case that param arg is a string.
4058 * params-list.h: Handle DEFPARAMENUM5 in params.def.
4059 * params.c (find_param): New function, factored out of ...
4060 (set_param_value): ... here.
4061 (param_string_value_p): New function.
4062 * params.h (struct param_info): Add value_names field.
4063 (find_param, param_string_value_p): Declare.
4065 2015-10-13 Tom de Vries <tom@codesourcery.com>
4067 PR tree-optimization/67476
4068 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
4070 2015-10-13 Richard Biener <rguenther@suse.de>
4072 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
4073 the data dependence vector.
4074 (vect_peeling_hash_insert): Get the peeling hash table as argument.
4075 (vect_peeling_hash_get_lowest_cost): Likewise.
4076 (vect_enhance_data_refs_alignment): Adjust.
4077 (struct _vect_peel_info, struct _vect_peel_extended_info,
4078 struct peel_info_hasher): Move from ...
4079 * tree-vectorizer.h: ... here.
4080 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
4081 (LOOP_VINFO_PEELING_HTAB): Likewise.
4082 (struct _loop_vec_info): Remove min_profitable_iters and
4083 peeling_htab members.
4084 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
4086 (destroy_loop_vec_info): Adjust.
4087 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
4088 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
4089 to estimate alias versioning cost.
4090 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
4092 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
4094 * real.h (real_isinteger): Declare.
4095 * real.c (real_isinteger): New function.
4096 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
4097 if y is an even integer.
4099 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4102 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4103 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4104 counts when these are more informative.
4106 2015-10-12 Jeff Law <law@redhat.com>
4108 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
4109 (fsm_find_control_stmt_paths): Change name of first argument to
4110 more accurately relfect what it really is. Handle simplification
4111 of GIMPLE_COND after finding a thread path for NAME.
4112 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
4113 nontrivial conditions to be handled by FSM threader.
4114 (thread_through_normal_block): Extract the name to looup via
4115 FSM threader from COND_EXPR.
4117 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
4118 restriction that traced SSA_NAME is a user variable.
4120 2015-10-12 Tom de Vries <tom@codesourcery.com>
4122 PR tree-optimization/67476
4123 * omp-low.c (expand_omp_for_generic): Add missing phis.
4125 2015-10-12 Tom de Vries <tom@codesourcery.com>
4127 PR tree-optimization/67476
4128 * omp-low.c (expand_omp_for_generic): Handle simple latch.
4130 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
4132 * config/aarch64/aarch64-simd-builtins.def: Update builtins
4133 tables: add tbl3 and tbx4.
4134 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
4135 (aarch64_tbx4v8qi): New.
4136 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
4137 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
4138 Rewrite using builtin functions.
4139 * config/aarch64/iterators.md (UNSPEC_TBX): New.
4141 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
4143 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
4145 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
4146 Use ROUND_UP and ROUND_DOWN macros where applicable.
4147 (rs6000_darwin64_record_arg_flush): Ditto.
4148 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
4149 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
4152 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
4154 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
4155 (AARCH64_ROUND_DOWN): Ditto.
4156 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
4158 2015-10-12 Richard Biener <rguenther@suse.de>
4161 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
4162 code that analyzes IVs on each stmt but in a cheaper way avoiding
4165 2015-10-12 Nick Clifton <nickc@redhat.com>
4167 * config/msp430/msp430.c (msp430_mcu_names): Rename to
4168 msp430_mcu_data, add fields for ISA and hardware multiply
4169 support. Import latest data from the devices.csv file.
4170 (msp430_override_option): Use the data from the new array.
4171 (msp430_use_f5_series_hwmult): Likewise.
4172 (use_32bit_hwmult): Likewise.
4173 (msp430_no_hwmult): Likewise.
4174 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
4176 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
4177 not recognised then no hardware multiply support is assumed and
4178 that only the MSP430 ISA is allowed.
4180 2015-10-12 Richard Biener <rguenther@suse.de>
4182 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
4184 (vect_analyze_loop_2): ... here.
4186 2015-10-11 Jason Merrill <jason@redhat.com>
4189 * expr.c (store_field): Call store_constructor directly when
4190 storing a CONSTRUCTOR into a target smaller than its type.
4191 Guard against unsafe bitwise copy.
4193 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4195 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
4196 counts when these are more informative.
4198 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4200 * tree-profile.c (tree_profiling): Do not clear
4201 pure/const when not instrumenting.
4202 (pass tree_profile): Add dump of symtab.
4204 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4206 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
4208 (fold_addr_of_array_ref_difference): Likewise.
4210 2015-10-11 Jeff Law <law@redhat.com>
4212 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
4213 tree-ssa-threadbackward.c.
4214 (fsm_find_control_statement_thread_paths): Likewise.
4215 (thread_through_normal_block): Break out FSM bits and move them
4216 into a new function in tree-ssa-threadbackward.c. Call new function
4218 Minimize header file usage.
4219 * tree-ssa-threadbackward.h: New file.
4220 * tree-ssa-threadbackward.c: Likewise.
4221 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
4223 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
4225 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
4227 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
4229 PR rtl-optimization/67864
4230 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
4231 fallthrough edges for conditional jumps. Don't sort candidate
4232 edges if not optimizing for speed.
4234 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4236 * defaults.h (REVERSE_CONDITION): New default definition.
4237 * jump.c (reversed_comparison_code_parts): Adjust.
4239 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4241 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
4242 check HARD_FRAME_POINTER_IS_ARG_POINTER.
4244 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4246 * defaults.h (FRAME_ADDR_RTX): New default definition.
4247 * builtins.c (expand_builtin_return_addr): Adjust.
4249 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4251 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
4252 * builtins.c (expand_builtin_return_addr): Adjust.
4254 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4256 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
4257 * builtins.c (expand_builtin_return_addr): Adjust.
4258 * doc/tm.texi: Likewise.
4259 * doc/tm.texi.in: Likewise.
4260 * except.c (expand_builtin_unwind_init): Likewise.
4262 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4264 * builtins.c (expand_builtin_return_addr): Adjust.
4265 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
4267 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4269 * tree.c (type_with_interoperable_signedness): New.
4270 (gimple_canonical_types_compatible_p): Use it.
4271 * tree.h (type_with_interoperable_signedness): Declare
4273 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
4275 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
4276 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
4277 when OEP_ADDRESS_OF is se.
4279 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4280 Sebastian Pop <s.pop@samsung.com>
4282 * graphite-dependences.c (scop_get_dependences): Add dump of the
4283 data dependence graph.
4284 * graphite-poly.c (print_isl_union_map): New.
4285 (debug_isl_union_map): New.
4286 * graphite-poly.h (print_isl_union_map): Declare.
4287 (debug_isl_union_map): Declare.
4289 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
4290 Sebastian Pop <s.pop@samsung.com>
4292 * graphite-poly.c (print_iteration_domain): Remove verbosity.
4293 Remove OpenScop formatting.
4294 (print_iteration_domains): Same.
4295 (debug_iteration_domain): Same.
4296 (debug_iteration_domains): Same.
4299 (dump_gbb_cases): Same.
4300 (dump_gbb_conditions): Same.
4303 (print_pbb_body): Same.
4305 (print_scop_params): Same.
4306 (print_scop_context): Same.
4308 (debug_pbb_domain): Same.
4310 (debug_scop_context): Same.
4312 (debug_scop_params): Same.
4313 * graphite-poly.h: Same.
4314 * graphite.c (graphite_transform_loops): Same.
4316 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4318 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
4319 call that isn't needed.
4321 2015-10-09 Jeff Law <law@redhat.com>
4323 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
4324 rather than moving each name to the freelist individually.
4326 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
4328 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
4329 * frame-header-opt.c: New file.
4330 * config/mips/mips-proto.h (mips_register_frame_header_opt):
4332 * config/mips/mips.c (mips_compute_frame_info): Check
4333 optimize_call_stack flag.
4334 (mips_option_override): Register new frame_header_opt pass.
4335 (mips_frame_info, mips_int_mask, mips_shadow_set,
4336 machine_function): Move these types to...
4337 * config/mips/mips.h: here.
4338 (machine_function): Add does_not_use_frame_header and
4339 optimize_call_stack fields.
4340 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
4341 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
4343 * config/mips/mips.opt (mframe-header-opt): Add new option.
4345 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
4347 * config/i386/i386.c
4348 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
4349 ROUND_DOWN where applicable.
4351 2015-10-09 Jeff Law <law@redhat.com>
4353 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
4356 2015-10-09 Renlin Li <renlin.li@arm.com>
4358 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
4359 operands[0] and operands[2].
4360 (neon_vtrn<mode>_insn): Likewise.
4361 (neon_vzip<mode>_insn): Likewise.
4363 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
4365 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
4366 ((X & C2) << C1): Expand to...
4367 (X {&,^,|} C2 << C1): ...This.
4368 ((X & C2) >> C1): Expand to...
4369 (X {&,^,|} C2 >> C1): ...This.
4371 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
4374 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
4375 Adjust embedded rounding/SAE specifier position.
4376 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
4377 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
4378 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
4379 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
4380 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
4382 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
4384 2015-10-09 Martin Jambor <mjambor@suse.cz>
4386 tree-optimization/67794
4387 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
4388 between types of state,ents but accept original definitions as a
4390 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
4391 iterate over definitions.
4393 2015-10-09 James Norris <jnorris@codesourcery.com>
4395 * config/rs6000/rs6000.c (rs6000_offload_options): New.
4396 (TARGET_OFFLOAD_OPTIONS): New.
4398 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
4401 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
4404 * function.c (expand_function_end): Move return value
4405 promotion past the handling of PARALLELs and CONCATs.
4407 PR rtl-optimization/67828
4408 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
4409 (tree_may_unswitch_on): Don't unswitch on expressions
4410 involving undefined values.
4412 2015-10-09 Richard Biener <rguenther@suse.de>
4414 * genmatch.c (print_operand): Fix formatting.
4415 (dt_node::append_simplify): Warn for multiple simplifiers
4416 that match the same pattern.
4417 * match.pd (log (exp @0)): Remove duplicates.
4419 2015-10-09 Richard Biener <rguenth@suse.de>
4422 * gimple-fold.c (optabs-query.h): Include
4423 (gimple_fold_builtin_memory_op): Allow unaligned stores
4424 when movmisalign_optabs are available.
4426 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4429 * config/arm/arm.md (movmisalign<mode>): New.
4430 * config/arm/iterators.md (HSI): New.
4432 2015-10-09 Richard Biener <rguenther@suse.de>
4434 PR tree-optimization/67891
4435 * gimple-match.h (gimple_simplified_result_is_gimple_val):
4437 (gimple_resimplify1): Declare.
4438 (gimple_resimplify2): Likewise.
4439 (gimple_resimplify3): Likewise.
4440 * gimple-match-head.c (gimple_resimplify1): Export.
4441 (gimple_resimplify2): Likewise.
4442 (gimple_resimplify3): Likewise.
4443 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
4444 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
4445 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
4446 to avoid creating stmts without VN info.
4448 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
4450 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
4453 2015-10-08 Jeff Law <law@redhat.com>
4455 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
4456 and release_ssa_name in two places.
4457 (gimple_stringop_fixed_value): Similarly.
4459 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
4462 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
4463 unlink_stmt_vdef and release_ssa_name_fn.
4465 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
4468 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
4470 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
4471 SSE register save area to 16 bytes only if the incoming stack
4472 boundary is no less than 16 bytes.
4474 2015-10-08 Jeff Law <law@redhat.com>
4476 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
4477 release_ssa_name. Fix typo in comment.
4479 2015-10-08 Nathan Sidwell <nathan@acm.org>
4481 * config/nvptx/nvptx.h (struct machine_function): Add comment.
4482 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
4483 may return pointer as well as in memory.
4484 (nvptx_output_return): Likewise.
4486 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4488 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
4489 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4490 * match.pd: Add rules previously handled by fold_builtin_sqrt
4491 and fold_builtin_cbrt.
4493 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
4495 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
4496 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
4497 * fold-const.h (tree_unary_nonnegative_warnv_p)
4498 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4499 (tree_expr_nonnegative_warnv_p): Add depth parameters.
4500 * fold-const.c: Include gimple-fold.h and params.h.
4501 (tree_ssa_name_nonnegative_warnv_p): New function.
4502 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
4503 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
4504 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
4505 Add a depth parameter and increment it for recursive calls to
4506 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
4507 to handle SSA names.
4508 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
4509 (gimple_stmt_nonnegative_warnv_p): Declare.
4510 * tree-vrp.c (remove_range_assertions): Remove assert that condition
4511 cannot be proven false.
4512 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
4513 (gimple_stmt_nonnegative_warnv_p): Move to...
4514 * gimple-fold.c: ...here. Add depth parameters and pass them
4515 down to the tree routines. Accept statements that aren't
4516 assignments or calls but just return false for them.
4517 (gimple_val_nonnegative_real_p): Delete.
4518 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
4519 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
4520 Check HONOR_NANs first.
4522 2015-10-08 Martin Jambor <mjambor@suse.cz>
4524 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
4527 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4529 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
4530 in the tail of outer-loop.
4532 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
4534 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
4537 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
4539 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
4540 "cfghooks.h", add prototypes for introduced new functions.
4541 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
4542 checks on ability of loop unswitching to tree_unswitch_single_loop;
4543 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
4544 on innermost loop check.
4545 (tree_unswitch_single_loop): Add all required checks on ability of
4546 loop unswitching under zero recursive level guard.
4547 (tree_unswitch_outer_loop): New function.
4548 (find_loop_guard): Likewise.
4549 (empty_bb_without_guard_p): Likewise.
4550 (used_outside_loop_p): Likewise.
4551 (get_vop_from_header): Likewise.
4552 (hoist_guard): Likewise.
4553 (check_exit_phi): Likewise.
4555 2015-10-08 Marek Polacek <polacek@redhat.com>
4557 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
4560 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4563 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
4564 create_tmp_var_raw instead of create_tmp_var.
4566 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
4568 * expr.c (store_expr_with_bounds): Handle aggregate moves from
4570 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
4571 to define gimple type system; compare aggregates only by size.
4573 2015-10-07 Jeff Law <law@redhat.com>
4575 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
4576 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
4577 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
4580 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4581 Sebastian Pop <s.pop@samsung.com>
4583 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
4584 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
4585 (generate_isl_schedule): Same.
4586 * graphite-optimize-isl.c (scop_get_domains): Same.
4587 (apply_schedule_map_to_scop): Same.
4588 * graphite-poly.c (print_iteration_domains): Same.
4589 (remove_gbbs_in_scop): Same.
4593 * graphite-poly.h (struct scop): Rename bbs to pbbs.
4595 * graphite-scop-detection.c (compare_bb_depths): Remove.
4596 (graphite_sort_dominated_info): Remove.
4597 (try_generate_gimple_bb): Move out of scop_detection.
4598 (all_non_dominated_preds_marked_p): Remove.
4599 (build_scop_bbs_1): Remove.
4600 (build_scop_bbs): Remove.
4601 (nb_pbbs_in_loops): Do not use SCOP_BBS.
4602 (find_scop_parameters): Same.
4603 (sese_dom_walker): Rename gather_bbs.
4604 (before_dom_children): Call try_generate_gimple_bb and collect gbb
4606 (build_scops): Call gather_bbs.
4607 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
4608 (add_conditions_to_constraints): Same.
4609 (build_scop_iteration_domain): Same.
4610 (build_scop_drs): Same.
4611 (new_pbb_from_pbb): Same.
4612 * sese.c (new_sese_info): Create bbs.
4613 * sese.h (struct sese_info_t): Add bbs.
4615 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
4617 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4618 encoding in 64-bit mode.
4620 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
4623 * config/i386/i386.c (ix86_option_override_internal): Always use
4624 8-byte minimum stack boundary in 64-bit mode.
4625 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
4626 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
4627 Add a REG_CFA_EXPRESSION note if needed.
4628 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
4629 (ix86_handle_force_align_arg_pointer_attribute): New.
4630 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
4631 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
4632 with ix86_handle_force_align_arg_pointer_attribute.
4633 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
4635 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4636 Sebastian Pop <s.pop@samsung.com>
4638 * graphite-scop-detection.c (parameter_index_in_region): Remove
4639 use of SESE_ADD_PARAMS.
4640 (find_scop_parameters): Same.
4641 * sese.c (new_sese_info): Same.
4642 * sese.h (struct sese_info_t): Remove add_params.
4643 (SESE_ADD_PARAMS): Remove.
4645 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
4646 Sebastian Pop <s.pop@samsung.com>
4648 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
4651 (copy_internal_parameters): Same.
4652 (translate_isl_ast_to_gimple): Use an sese_l.
4653 (build_iv_mapping): Same.
4654 * graphite-poly.c (new_sese): Rename new_sese_info.
4655 (free_sese): Rename free_sese_info.
4656 * graphite-poly.h (struct scop): Use an sese_info_p.
4657 (scop_set_region): Same.
4658 * graphite-scop-detection.c (struct sese_l): Moved...
4659 (get_entry_bb): Moved...
4660 (get_exit_bb): Moved...
4661 (parameter_index_in_region_1): Use an sese_info_p.
4662 (parameter_index_in_region): Same.
4663 (scan_tree_for_params): Same.
4664 (find_params_in_bb): Same.
4665 (sese_dom_walker): Use an sese_l.
4666 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
4667 (reduction_phi_p): Same.
4668 (parameter_index_in_region_1): Use an sese_info_p.
4669 (propagate_expr_outside_region): Use an sese_l.
4670 * graphite.c: Replace uses of SCOP_REGION.
4671 * sese.c (sese_record_loop): Use an sese_info_p.
4672 (build_sese_loop_nests): Same.
4673 (sese_build_liveouts_use): Same.
4674 (sese_build_liveouts_bb): Same.
4675 (sese_build_liveouts_bb): Same.
4676 (sese_bad_liveouts_use): Same.
4677 (sese_reset_debug_liveouts_bb): Same.
4678 (sese_build_liveouts): Same.
4679 (new_sese): Renamed new_sese_info.
4680 (free_sese): Renamed free_sese_info.
4681 (set_rename): Use an sese_info_p.
4682 (graphite_copy_stmts_from_block): Same.
4683 (copy_bb_and_scalar_dependences): Same.
4684 (outermost_loop_in_sese_1): Use an sese_l.
4685 (outermost_loop_in_sese): Same.
4686 (if_region_set_false_region): Use an sese_info_p.
4687 (move_sese_in_condition): Same.
4688 (scalar_evolution_in_region): Use an sese_l.
4689 * sese.h (struct sese_l): ... here.
4690 (SESE_ENTRY): Remove.
4691 (SESE_ENTRY_BB): Remove.
4692 (SESE_EXIT): Remove.
4693 (SESE_EXIT_BB): Remove.
4694 (sese_contains_loop): Use an sese_info_p.
4695 (sese_nb_params): Same.
4696 (bb_in_sese_p): Use an sese_l.
4697 (stmt_in_sese_p): Same.
4698 (defined_in_sese_p): Same.
4699 (loop_in_sese_p): Same.
4700 (sese_loop_depth): Same.
4701 (struct ifsese_s): Use an sese_info_p.
4702 (gbb_loop_at_index): Use an sese_l.
4703 (nb_common_loops): Same.
4704 (scev_analyzable_p): Same.
4706 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4708 * config/i386/i386.c (ix86_conditional_register_usage): Use
4709 CALL_USED_REGISTERS_MASK.
4710 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
4712 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4715 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
4716 * configure: Regenerated.
4718 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
4721 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
4722 (ix86_set_current_function): This.
4723 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
4725 2015-10-07 Richard Biener <rguenther@suse.de>
4727 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
4728 (vinfo_for_stmt): Adjust.
4729 (set_vinfo_for_stmt): Likewise.
4730 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
4731 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
4732 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
4734 (vect_analyze_loop_1): Remove.
4735 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
4736 inner loop when vectorizing an outer loop by splitting out from ...
4737 (vect_analyze_loop_form): ... here.
4739 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4742 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
4743 Use create_tmp_var_raw instead of create_tmp_var.
4745 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
4747 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
4748 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
4749 * real.c (CACHED_FRACTION): New helper macro.
4750 (dconst_third_ptr): Use it.
4751 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
4752 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
4754 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
4756 2015-10-06 Jeff Law <law@redhat.com>
4758 PR tree-optimization/67816
4759 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
4760 from remove_jump_threads_starting_at. Accept an edge rather than
4762 * tree-ssa-threadupdate.c (removed_edges): New hash table.
4763 (remove_jump_threads_including): Note edges that get removed from
4764 the CFG for later pruning of jump threading paths including them.
4765 (thread_through_all_blocks): Remove paths which include edges that
4767 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
4768 on each outgoing edges when optimizing away a control statement.
4770 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4772 * reorg.c (emit_delay_sequence): Store list of delay slot insns
4773 in a vector instead of rtx_insn_list.
4774 (add_to_delay_list): Likewise.
4775 (delete_from_delay_slot): Likewise.
4776 (optimize_skip): Likewise.
4777 (redirect_with_delay_list_safe_p): Likewise.
4778 (check_annul_list_true_false): Likewise.
4779 (steal_delay_list_from_target): Likewise.
4780 (steal_delay_list_from_fallthrough): Likewise.
4781 (redundant_insn): Likewise.
4782 (fill_simple_delay_slots): Likewise.
4783 (fill_slots_from_thread): Likewise.
4784 (fill_eager_delay_slots): Likewise.
4785 (relax_delay_slots): Likewise.
4787 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
4789 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
4790 For -mgpopt=local, also exclude unintialized common symbols.
4791 * doc/invoke.texi (Nios II Options): Document the change.
4793 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4795 * config/aarch64/iterators.md (vwcore): Add missing cases for
4798 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4799 Sebastian Pop <s.pop@samsung.com>
4801 * graphite-poly.c (new_scop): Initialize drs.
4802 * graphite-poly.h (struct dr_info): New.
4803 (struct scop): Add drs.
4804 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
4805 (pdr_add_memory_accesses): Same.
4806 (build_poly_dr): Same.
4807 (build_alias_set): Same.
4808 (build_scop_drs): Same.
4809 (build_pbb_drs): Remove.
4810 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
4811 * tree-data-ref.h (data_reference): Remove alias_set.
4813 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4814 Sebastian Pop <s.pop@samsung.com>
4816 * graphite-poly.c (free_data_refs_aux): Remove.
4817 (free_gimple_poly_bb): Do not call free_data_refs_aux.
4818 * graphite-poly.h (struct base_alias_pair): Remove.
4819 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
4820 base_alias_pair and dr->aux.
4821 (build_alias_set): Same.
4822 * tree-data-ref.c (create_data_ref): Initialize alias_set.
4823 * tree-data-ref.h (data_reference): Add alias_set.
4825 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
4826 Sebastian Pop <s.pop@samsung.com>
4828 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
4829 Do not set PDR_BASE_OBJECT_SET.
4830 * graphite-poly.h (poly_dr): Same.
4831 (PDR_BASE_OBJECT_SET): Remove.
4832 (new_poly_dr): Update decl.
4833 * graphite-sese-to-poly.c (build_poly_dr): Update call to
4835 (write_alias_graph_to_ascii_dimacs): Remove.
4836 (write_alias_graph_to_ascii_dot): Remove.
4837 (write_alias_graph_to_ascii_ecc): Remove.
4838 (dr_same_base_object_p): Remove.
4839 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
4841 (build_base_obj_set_for_drs): Remove.
4842 (dump_alias_graphs): Remove.
4843 (build_scop_drs): Remove dead code.
4845 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
4846 Peter Bergner <bergner@vnet.ibm.com>
4849 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
4850 allow registers, but provide insns for the combiner to create for
4851 loads from memory. Separate VSX code from non-VSX code. For
4852 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
4853 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
4854 so that registers come before memory operations. Drop support from
4855 converting DFmode to TFmode, if the DFmode value is in a GPR
4857 (extenddftf2_fprs): Likewise.
4858 (extenddftf2_internal): Likewise.
4859 (extenddftf2_vsx): Likewise.
4860 (extendsftf2): In the expander, only allow registers, but provide
4861 insns for the combiner to create for stores and loads.
4863 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4865 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
4866 from the decl parameter.
4868 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
4871 * gimple-fold.c (gimple_fold_builtin): Add break after
4872 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
4874 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
4876 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
4877 to scop->isl_context.
4879 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
4881 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
4882 (output_probe_stack_range): Rotate the loop and simplify.
4883 (thumb1_expand_prologue): Tweak sorry message.
4884 * config/arm/arm.md (probe_stack): Use bare string.
4886 2015-10-06 Nick Clifton <nickc@redhat.com>
4888 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
4890 2015-10-06 Nick Clifton <nickc@redhat.com>
4892 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
4893 (ATTR_PERSIST): New constant.
4894 (msp430_data_attr): New function - verifies an attribute that only
4895 applies to variables.
4896 (msp430_attributes): Add noinit and persistent attributes.
4897 (noinit_section): New variable.
4898 (presis_section): New variable.
4899 (TARGET_ASM_INIT_SECTIONS): Define.
4900 (msp430_init_sections): New function - initialises the noinit and
4901 persist section variables.
4902 (msp430_select_section): Add support for noinit and persist
4904 (msp430_section_type_flags): Likewise.
4905 * doc/extend.texi: Document the reent, critical, wakeup, noinit
4906 and persistent attributes.
4908 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4909 Sebastian Pop <s.pop@samsung.com>
4911 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
4912 (no_violations): Remove.
4913 (subtract_commutative_associative_deps): Remove.
4914 (compute_deps): Do not call subtract_commutative_associative_deps.
4915 (transform_is_safe): Remove.
4916 (graphite_legal_transform): Remove.
4917 * graphite-poly.h (graphite_legal_transform): Remove.
4919 2015-10-05 Aditya Kumar <hiraditya@msn.com>
4921 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
4922 which are in this region are passed so gcc_assert and remove redundant
4924 * sese.c (sese_build_liveouts): Pass only those bbs which are not
4926 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
4927 gcc_assert on that and remove unnecessary computation.
4928 (sese_build_liveouts_use): Same.
4930 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
4932 * graphite-dependences.c (scop_get_reads): Renamed scop->context
4933 to scop->param_context.
4934 (scop_get_must_writes): Same.
4935 (scop_get_may_writes): Same.
4936 (scop_get_original_schedule): Same.
4937 (scop_get_transformed_schedule): Same.
4938 (subtract_commutative_associative_deps): Same.
4939 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
4940 (generate_isl_context): Same.
4941 (generate_isl_schedule): Same.
4942 (scop_to_isl_ast): Same.
4943 (graphite_regenerate_ast_isl): Same.
4944 * graphite-optimize-isl.c (scop_get_domains): Same.
4945 (optimize_isl): Renamed scop->context to scop->param_context.
4946 * graphite-poly.c (new_poly_bb): Change the type of argument to
4948 (new_scop): Renamed scop->context to scop->param_context.
4950 (print_scop_context): Same.
4951 * graphite-poly.h (new_poly_dr): Change the type of argument from
4952 void* to data_reference_p.
4953 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
4954 (new_poly_bb): Change the type of argument from void* to
4956 (pbb_set_black_box): Same.
4957 (struct scop): Rename context to param_context, ctx to isl_context.
4958 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
4959 Move declarations closer to assignment.
4960 (find_params_in_bb): Same.
4961 (find_scop_parameters): Same.
4962 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
4963 Global to be used for statement IDs.
4964 (isl_id_for_pbb): Use ssa_name_version_typesize.
4965 (simple_copy_phi_p): Move declarations closer to assignment.
4966 (build_pbb_scattering_polyhedrons): Same.
4967 (build_scop_scattering): Same.
4968 (isl_id_for_ssa_name): Same.
4969 (extract_affine_name): Same.
4970 (extract_affine_int): Same.
4971 (extract_affine): Same.
4972 (set_scop_parameter_dim): Use renamed member.
4973 (build_loop_iteration_domains): Same.
4974 (add_param_constraints): Same.
4975 (build_scop_iteration_domain): Same.
4976 (pdr_add_data_dimensions): Same.
4977 (build_poly_dr): Same.
4978 (build_scop_drs): Move declarations closer to assignment.
4979 (analyze_drs_in_stmts): Same.
4980 (insert_out_of_ssa_copy): Same.
4981 (insert_out_of_ssa_copy_on_edge): Same.
4982 (propagate_expr_outside_region): Same.
4983 (rewrite_phi_out_of_ssa): Same.
4984 (rewrite_degenerate_phi): Same.
4985 (rewrite_reductions_out_of_ssa): Same.
4986 (rewrite_cross_bb_scalar_dependence): Same.
4987 (handle_scalar_deps_crossing_scop_limits): Same.
4988 (rewrite_cross_bb_scalar_deps): Same.
4989 * graphite.c (graphite_transform_loops): Use renamed member.
4991 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
4994 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
4995 create_tmp_var_raw instead of create_tmp_var.
4997 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5000 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
5001 Use create_tmp_var_raw instead of create_tmp_var.
5003 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
5006 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
5007 split for upper-bank registers when target does not support
5009 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
5010 split when target does not support AVX512VL.
5012 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
5015 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
5016 Adjust to use create_tmp_var_raw instead of create_tmp_var.
5018 2015-10-06 Nick Clifton <nickc@redhat.com>
5020 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
5023 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
5025 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
5026 (case ${target}): Add znver1.
5027 * config/i386/cpuid.h(bit_CLZERO): Define.
5028 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
5029 -march=native recognize znver1 processors.
5030 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5031 znver1, clzero def_and_undef.
5032 * config/i386/i386.c (struct processor_costs znver1_cost): New.
5033 (m_znver1): New definition.
5034 (m_AMD_MULTIPLE): Includes m_znver1.
5035 (processor_target_table): Add znver1 entry.
5036 (ix86_target_string) : Add clzero entry.
5037 (static const char *const cpu_names): Add znver1 entry.
5038 (ix86_option_override_internal): Add znver1 instruction sets.
5039 (PTA_CLZERO) : New definition.
5040 (ix86_option_override_internal): Handle new clzerooption.
5041 (ix86_issue_rate): Add znver1.
5042 (ix86_adjust_cost): Add znver1.
5043 (ia32_multipass_dfa_lookahead): Add znver1.
5044 (has_dispatch): Add znver1.
5045 * config/i386/i386.h (TARGET_znver1): New definition.
5046 (TARGET_CLZERO): Define.
5047 (TARGET_CLZERO_P): Define.
5048 (struct ix86_size_cost): Add TARGET_ZNVER1.
5049 (enum processor_type): Add PROCESSOR_znver1.
5050 * config/i386/i386.md (define_attr "cpu"): Add znver1.
5051 (set_attr znver1_decode): New definitions for znver1.
5052 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
5054 * config/i386/mmx.md (set_attr znver1_decode): New definitions
5056 * config/i386/sse.md (set_attr znver1_decode): Likewise.
5057 * config/i386/x86-tune.def: Add znver1 tunings.
5058 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
5059 * doc/invoke.texi: Add details about znver1
5061 2015-10-06 Richard Biener <rguenther@suse.de>
5063 PR tree-optimization/67859
5064 * tree-ssa-pre.c (create_expression_by_pieces): Properly
5065 discard not inserted stmts.
5067 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
5069 * doc/extend.texi (Template Instantiation): Reorder options and
5070 de-emphasize -frepo.
5071 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
5072 example instead of -frepo.
5074 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
5077 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
5078 use create_tmp_var_raw rather than create_tmp_var.
5080 2015-10-06 Richard Biener <rguenther@suse.de>
5082 * tree-vectorizer.h (vec_info): New base class for...
5083 (_loop_vec_info): ... this and ...
5084 (_bb_vec_info): ... this.
5085 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
5086 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
5087 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
5088 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
5089 vect_destroy_datarefs): Adjust interface to take a vec_info *
5090 rather than both a loop_vec_info and a bb_vec_info argument.
5091 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
5092 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
5093 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
5094 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
5096 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
5097 (destroy_loop_vec_info, vect_analyze_loop_2,
5098 vect_is_simple_reduction_1, get_initial_def_for_induction,
5099 vect_create_epilog_for_reduction, vectorizable_reduction,
5100 vectorizable_live_operation, vect_transform_loop): Adjust.
5101 * tree-vect-patterns.c (type_conversion_p,
5102 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
5103 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
5104 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
5105 check_bool_pattern, vect_recog_bool_pattern,
5106 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
5107 * tree-vect-slp.c (vect_get_and_check_slp_defs,
5108 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
5109 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
5110 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
5111 (new_bb_vec_info): Initialize base classs.
5112 * tree-vect-stmts.c (record_stmt_cost, process_use,
5113 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
5114 vectorizable_mask_load_store, vectorizable_call,
5115 vectorizable_simd_clone_call, vectorizable_conversion,
5116 vectorizable_assignment, vectorizable_shift,
5117 vectorizable_operation, vectorizable_store,
5118 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
5119 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
5120 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
5122 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
5125 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
5126 create_tmp_var_raw rather than create_tmp_var.
5128 2015-10-05 Marek Polacek <polacek@redhat.com>
5130 * tree-ssa-loop-im.c
5131 (move_computations_dom_walker::before_dom_children): Don't set
5132 SSA_NAME_ANTI_RANGE_P.
5133 * tree-ssa-phiopt.c (value_replacement): Likewise.
5135 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5136 Sebastian Pop <s.pop@samsung.com>
5138 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
5140 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5141 Sebastian Pop <s.pop@samsung.com>
5143 * graphite-poly.c (new_gimple_poly_bb): ... here.
5144 (free_data_refs_aux): ... here.
5145 (free_gimple_poly_bb): ... here.
5146 (remove_gbbs_in_scop): ... here.
5147 (new_scop): Call new_sese.
5148 (free_scop): Call remove_gbbs_in_scop and free_sese.
5149 * graphite-poly.h (base_alias_pair): ... here.
5150 (new_gimple_poly_bb): Declare.
5151 (free_gimple_poly_bb): Declare.
5152 * graphite-scop-detection.c (parameter_index_in_region_1):
5153 (parameter_index_in_region): ... here.
5154 (scan_tree_for_params): ... here.
5155 (find_params_in_bb): ... here.
5156 (find_scop_parameters): ... here.
5157 (build_scops): Call find_scop_parameters.
5158 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
5159 (free_scops): Move...
5160 (single_pred_cond_non_loop_exit): Move...
5161 (sese_dom_walker::before_dom_children): Move...
5162 (sese_dom_walker::after_dom_children): Move...
5163 (build_poly_scop): Move...
5164 * graphite-sese-to-poly.h (base_alias_pair): Move...
5165 * graphite.c (free_scops): ... here.
5167 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
5168 Sebastian Pop <s.pop@samsung.com>
5170 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
5171 (trivially_empty_bb_p): Move...
5172 (same_close_phi_node): Move...
5173 (new_gimple_poly_bb): Move...
5174 (compare_bb_depths): Move...
5175 (graphite_sort_dominated_info): Move...
5176 (remove_duplicate_close_phi): Move...
5177 (make_close_phi_nodes_unique): Move...
5178 (canonicalize_loop_closed_ssa): Move...
5179 (canonicalize_loop_closed_ssa_form): Move...
5180 (loop_ivs_can_be_represented): Move...
5181 (single_pred_cond_non_loop_exit): Move...
5182 (graphite_can_represent_init): Move...
5183 (graphite_can_represent_scev): Move...
5184 (stmt_has_simple_data_refs_p): Move...
5185 (stmt_has_side_effects): Move...
5186 (graphite_can_represent_stmt): Move...
5187 (scop_detection): ... here.
5188 (sese_dom_walker): ... and here.
5189 (build_scops): Call all moved functions.
5190 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
5191 (all_non_dominated_preds_marked_p): Move...
5192 (build_scop_bbs_1): Move...
5193 (build_scop_bbs): Move...
5194 (set_scop_parameter_dim): Move...
5195 (nb_pbbs_in_loops): Move...
5196 (build_poly_scop): Do not call all the moved functions.
5198 2015-10-05 Martin Jambor <mjambor@suse.cz>
5199 Jan Hubicka <hubicka@ucw.cz>
5201 * ipa-cp.c (ipcp_alignment_lattice): New type.
5202 (ipcp_param_lattices): Use the above to represent alignment.
5203 (ipcp_alignment_lattice::print): New function.
5204 (print_all_lattices): Use it to print alignment information.
5205 (ipcp_alignment_lattice::top_p): New function.
5206 (ipcp_alignment_lattice::bottom_p): Likewise.
5207 (ipcp_alignment_lattice::set_to_bottom): Likewise.
5208 (ipcp_alignment_lattice::meet_with_1): Likewise.
5209 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
5210 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
5211 (initialize_node_lattices): Likewise.
5212 (propagate_alignment_accross_jump_function): Work with the new class
5213 for alignment lattices.
5214 (propagate_constants_accross_call): Pass only the alignment lattice to
5215 propagate_alignment_accross_jump_function.
5216 (ipcp_store_alignment_results): Work with the new class for alignment
5219 2015-10-05 Marek Polacek <polacek@redhat.com>
5221 PR tree-optimization/67821
5222 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
5224 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
5227 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
5229 (mkoffload_cleanup): ... this. Adjust all users.
5230 (maybe_unlink): Look at save_temps and verbose flags instead of
5232 (main): Parse "-save-temps" flag.
5233 (generate_target_descr_file, generate_target_offloadend_file)
5234 (generate_host_descr_file, prepare_target_image): Pass it on.
5235 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
5236 (mkoffload_cleanup): New function.
5237 (maybe_unlink): Look at save_temps and verbose flags instead of
5239 (main): Instead of calling utils_cleanup, register atexit handler
5240 for mkoffload_cleanup.
5241 (main): Parse "-save-temps" flag.
5242 (compile_native, main): Pass it on.
5243 * lto-wrapper.c (compile_offload_image): Likewise.
5245 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5247 * gimple.h (gimple_op_ptr): Require a non const gimple *.
5248 (gimple_assign_lhs_ptr): Likewise.
5249 (gimple_assign_rhs1_ptr): Likewise.
5250 (gimple_assign_rhs2_ptr): Likewise.
5251 (gimple_assign_rhs3_ptr): Likewise.
5252 (gimple_call_lhs_ptr): Likewise.
5253 (gimple_call_fn_ptr): Likewise.
5254 (gimple_call_chain_ptr): Likewise.
5255 (gimple_call_arg_ptr): Likewise.
5256 (gimple_cond_lhs_ptr): Likewise.
5257 (gimple_cond_rhs_ptr): Likewise.
5258 (gimple_switch_index_ptr): Likewise.
5259 (gimple_return_retval_ptr): Likewise.
5261 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5263 * gimple.h (gimple_asm_input_op_ptr): Remove.
5264 (gimple_asm_output_op_ptr): Likewise.
5266 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5268 * gimple.h (gimple_location_ptr): Remove.
5269 * tree-vrp.c (check_all_array_refs): Adjust.
5271 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5273 * tree-ssa-operands.c (build_uses): store tree * instead of
5275 (finalize_ssa_uses): Adjust.
5276 (append_use): Likewise.
5277 (verify_ssa_operands): Likewise.
5279 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5281 * real.h (build_real_truncate): Declare.
5282 * tree.c (build_real_truncate): New function.
5283 (strip_float_extensions): Use it.
5284 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
5285 (fold_builtin_hypot, fold_builtin_pow): Likewise.
5286 * match.pd: Likewise.
5288 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
5289 Jiong Wang <jiong.wang@arm.com>
5291 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
5293 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5295 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
5296 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
5297 (aarch64_print_operand, aarch64_float_const_representable_p)
5298 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
5299 instead of REAL_VALUE_FROM_CONST_DOUBLE.
5300 * config/arc/arc.c (arc_print_operand): Likewise.
5301 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
5302 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
5303 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
5305 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
5306 (consttable_16): Likewise.
5307 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
5308 * config/avr/avr.c (avr_print_operand): Likewise.
5309 * config/bfin/bfin.md: Likewise (in a define_split).
5310 * config/c6x/c6x.md: Likewise (in a define_split).
5311 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
5312 (cr16_print_operand): Likewise.
5313 * config/cris/cris.c (cris_print_operand): Likewise.
5314 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
5315 * config/fr30/fr30.c (fr30_print_operand): Likewise.
5316 (fr30_const_double_is_zero): Likewise.
5317 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
5318 * config/frv/frv.md: Likewise (in a define_split).
5319 * config/frv/predicates.md (int_2word_operand): Likewise.
5320 * config/h8300/h8300.c (h8300_print_operand): Likewise.
5321 * config/i386/i386.c (standard_80387_constant_p): Likewise.
5322 (ix86_print_operand, ix86_split_to_parts): Likewise.
5323 * config/i386/i386.md: Likewise (in a define_split).
5324 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
5325 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
5326 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
5327 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
5328 (print_operand): Likewise.
5329 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
5330 * config/mep/mep.md: Likewise (in define_split).
5331 * config/microblaze/microblaze.c (microblaze_const_double_ok)
5332 (print_operand): Likewise.
5333 * config/mips/mips.md (consttable_float): Likewise.
5334 * config/mmix/mmix.c (mmix_intval): Likewise.
5335 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
5336 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
5337 * config/pa/pa.c (pa_singlemove_string): Likewise.
5338 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
5339 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
5340 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
5341 (output_toc): Likewise.
5342 * config/rs6000/rs6000.md: Likewise (in define_splits).
5343 * config/rx/rx.c (rx_print_operand): Likewise.
5344 * config/s390/s390.c (s390_output_pool_entry): Likewise.
5345 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5346 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
5347 (and also in define_splits).
5348 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
5349 (fp_high_losum_p): Likewise.
5350 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
5351 (*movsf_high): Likewise.
5352 * config/spu/spu.c (const_double_to_hwint): Likewise.
5353 * config/v850/v850.c (const_double_split): Likewise.
5354 * config/vax/vax.c (vax_float_literal): Likewise.
5355 * config/visium/visium.c (visium_expand_copysign): Likewise.
5356 * config/visium/visium.md: Likewise (in define_split).
5357 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5358 * config/xtensa/xtensa.c (print_operand): Likewise.
5359 (xtensa_output_literal): Likewise.
5360 * cprop.c (implicit_set_cond_p): Likewise.
5361 * dwarf2out.c (insert_float): Likewise.
5362 * expmed.c (expand_mult, make_tree): Likewise.
5363 * expr.c (compress_float_constant): Likewise.
5364 * rtlanal.c (split_double): Likewise.
5365 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5366 (simplify_const_unary_operation, simplify_binary_operation_1)
5367 (simplify_const_binary_operation): Likewise.
5368 (simplify_const_relational_operation): Likewise.
5369 * varasm.c (output_constant_pool_2): Likewise.
5371 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5373 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
5374 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5375 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
5376 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
5377 instead of CONST_DOUBLE_FROM_REAL_VALUE.
5378 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
5379 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
5380 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
5381 (ix86_emit_swsqrtsf): Likewise.
5382 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
5383 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
5384 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5385 * config/pa/pa.c (pa_expand_builtin): Likewise.
5386 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
5387 (rs6000_scale_v2df): Likewise.
5388 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
5389 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
5390 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
5391 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
5392 (vec_ctul): Likewise.
5393 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
5394 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
5395 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
5396 * cse.c (fold_rtx): Likewise.
5397 * emit-rtl.c (immed_double_const): Likewise (in comments).
5398 (init_emit_once): Likewise.
5399 * expr.c (compress_float_constant, expand_expr_real_1)
5400 (const_vector_from_tree): Likewise.
5401 * optabs.c (expand_float, expand_fix): Likewise.
5402 * reg-stack.c (reg_to_stack): Likewise.
5403 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
5404 (simplify_const_unary_operation, simplify_binary_operation_1)
5405 (simplify_const_binary_operation, simplify_relational_operation)
5406 (simplify_immed_subreg): Likewise.
5408 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5410 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
5411 * doc/tm.texi: Regenerate.
5412 * real.h (REAL_ARITHMETIC): Delete.
5413 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
5414 (ix86_expand_round_sse4): Use real_arithmetic instead of
5416 * config/i386/sse.md (round<mode>2): Likewise.
5417 * rtl.h (rtx_to_tree_code): Likewise (in comment).
5418 * explow.c (rtx_to_tree_code): Likewise (in comment).
5419 * match.pd: Likewise.
5420 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5421 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5422 (expand_pow_as_sqrts): Likewise.
5423 * tree-pretty-print.c (dump_generic_node): Remove code that
5424 was conditional on REAL_ARITHMETIC being undefined.
5426 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5428 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
5429 * doc/tm.texi: Regenerate.
5430 * real.h (real_less): Declare.
5431 (REAL_VALUES_LESS): Delete.
5432 * real.c (real_less): New function.
5433 (real_compare): Use it.
5434 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
5435 of REAL_VALUES_LESS.
5436 * config/microblaze/microblaze.c (microblaze_const_double_ok):
5438 * fold-const.c (fold_convert_const_int_from_real): Likewise.
5439 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
5440 (simplify_const_relational_operation): Likewise.
5441 * tree-call-cdce.c (check_pow): Likewise.
5442 (gen_conditions_for_pow_cst_base): Likewise.
5444 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5446 * real.h (REAL_VALUES_IDENTICAL): Delete.
5447 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
5448 instead of REAL_VALUES_IDENTICAL.
5449 * fold-const.c (operand_equal_p): Likewise.
5450 * ipa-icf.c (sem_variable::equals): Likewise.
5451 * tree-complex.c (some_nonzerop): Likewise.
5452 (expand_complex_multiplication): Likewise.
5453 * tree.c (simple_cst_equal): Likewise.
5454 * varasm.c (compare_constant): Likewise.
5456 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
5458 * real.h (real_equal): Declare.
5459 (REAL_VALUES_EQUAL): Delete.
5460 * real.c (real_equal): New function.
5461 (real_compare): Use it.
5462 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
5463 * doc/tm.texi: Regenerate.
5464 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
5465 real_equal instead of REAL_VALUES_EQUAL.
5466 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
5467 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
5468 (fp_const_from_val): Likewise.
5469 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
5470 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
5471 (floating_exact_log2): Likewise.
5472 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
5473 * config/vax/vax.c (vax_float_literal): Likewise.
5474 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
5475 * cprop.c (implicit_set_cond_p): Likewise.
5476 * expmed.c (expand_mult): Likewise.
5477 * fold-const.c (const_binop): Likewise.
5478 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5479 (simplify_const_binary_operation): Likewise.
5480 (simplify_const_relational_operation): Likewise.
5481 * tree-call-cdce.c (check_pow): Likewise.
5482 (gen_conditions_for_pow_cst_base): Likewise.
5483 * tree-inline.c (estimate_num_insns): Likewise.
5484 * tree-ssa-dom.c (record_equality): Likewise.
5485 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
5486 (gimple_expand_builtin_pow): Likewise.
5487 (pass_optimize_widening_mul::execute): Likewise.
5488 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
5489 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
5490 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
5492 2015-10-05 Richard Biener <rguenther@suse.de>
5495 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
5496 consider loop header PHI defs as IVs.
5498 2015-10-05 Richard Biener <rguenther@suse.de>
5500 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
5502 (create_expression_by_pieces): ... here and build GIMPLE
5503 calls directly. Use gimple_build API and avoid force_gimple_operand.
5504 (insert_into_preds_of_block): Simplify.
5505 (do_regular_insertion): Add comment.
5507 2015-10-04 Jason Merrill <jason@redhat.com>
5509 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
5511 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
5513 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
5514 check for general register.
5515 (ix86_emit_save_regs): Ditto.
5516 (ix86_emit_save_regs_using_mov): Ditto.
5517 (ix86_emit_restore_regs_using_pop): Ditto.
5518 (ix86_emit_restore_regs_using_mov): Ditto.
5520 2015-10-03 Marek Polacek <polacek@redhat.com>
5522 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
5523 (insn-dfatab.o): Likewise.
5525 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
5527 * config.gcc (xtensa*-*-uclinux*): New configuration.
5528 * config/xtensa/uclinux.h: New file.
5529 * config/xtensa/uclinux.opt: New file.
5531 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
5533 * doc/cpp.texi (Standard Predefined Macros): Document value of
5534 __cplusplus for C++14.
5536 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
5538 * gcc.c (process_command): Use spec_machine rather than
5539 spec_host_machine to build tooldir_prefix2.
5541 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5542 Bernd Schmidt <bernds@codesourcery.com>
5544 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
5545 (Token, Stmt): Remove structs.
5546 (decls, vars, fns): Remove variables.
5547 (alloc_comment, append_stmt, is_keyword): Remove macros.
5548 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
5549 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
5550 (parse_init, parse_file): Remove functions.
5551 (read_file): Accept a pointer to a length and store into it.
5552 (process): Don't try to parse the input file, just write it out as
5553 a string, but looking for maps. Also write out the length.
5554 (main): Don't use "-S" to compile PTX code.
5556 2015-10-02 Jeff Law <law@redhat.com>
5558 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
5561 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5564 * config/nvptx/mkoffload.c (main): Scan the argument vector for
5565 -fopenmp, and skip generating an offloading image if specified.
5567 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
5569 * system.h (ROUND_UP): New macro definition.
5570 (ROUND_DOWN): Ditto.
5571 * ggc-page.c (ROUND_UP): Remove local macro definition.
5572 (PAGE_ALIGN): Implement using ROUND_UP macro.
5574 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
5575 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
5577 (ix86_compute_frame_layout): Ditto.
5578 (ix86_expand_prologue): Ditto.
5579 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
5580 to round down values.
5581 (expand_set_or_movmem_via_rep): Ditto.
5583 2015-10-02 Marek Polacek <polacek@redhat.com>
5585 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
5587 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
5589 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
5590 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
5591 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
5592 (free_gimple_bb): Renamed free_gimple_poly_bb.
5593 (try_generate_gimple_bb): Hoist loop invariant code.
5594 (analyze_drs_in_stmts): Same.
5595 (build_scop_drs): Call renamed functions.
5596 (new_pbb_from_pbb): Same.
5597 (scop_ivs_can_be_represented): Delete as functionality now moved to
5598 graphite-scop-detection.c
5599 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
5601 2015-10-02 Aditya Kumar <hiraditya@msn.com>
5603 * graphite-scop-detection.c (stmt_has_side_effects): New function
5604 outlined from stmt_simple_for_scop_p.
5605 (graphite_can_represent_stmt): Same.
5606 (stmt_simple_for_scop_p): Moved code out of this function for better
5609 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5611 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
5613 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
5615 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5617 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
5619 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
5621 PR rtl-optimization/67756
5622 * lra-constraints.c (match_reload): Add a new parameter. Use it
5623 for creating a pseudo with the same value.
5624 (curr_insn_transform): Pass a new argument to match_reload.
5626 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5628 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
5629 (expand_vec_perm_even_odd_1): Handle V64QImode.
5630 (ix86_expand_vec_perm_const_1): Try expansion with
5631 expand_vec_perm_even_odd_trunc as well.
5632 * config/i386/sse.md (VI124_AVX512F): Rename to ...
5633 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
5635 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
5636 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
5638 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
5639 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
5640 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
5641 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
5642 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
5643 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
5645 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
5647 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
5648 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
5650 2015-10-02 Jason Merrill <jason@redhat.com>
5653 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
5654 (diagnose_tm_1_op): Also diagnose volatile accesses in
5655 transaction_safe function.
5657 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
5659 * system.h (malloc.h): Don't include obsolete header.
5661 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5663 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
5664 (TLS_SECTION_ASM_FLAG): Delete.
5666 2015-10-02 Marek Polacek <polacek@redhat.com>
5669 * doc/invoke.texi: Document -Wduplicated-cond.
5670 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
5671 (insn-dfatab.o): Likewise.
5672 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
5675 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
5677 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
5680 2015-10-02 Renlin Li <renlin.li@arm.com>
5682 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
5684 2015-10-02 Renlin Li <renlin.li@arm.com>
5687 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
5689 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5691 PR rtl-optimization/67786
5692 PR rtl-optimization/67787
5693 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
5694 it modifies a reg used in the condition calculation.
5696 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
5698 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
5699 alternatives for reads from memory and moves from general-purpose
5701 (*aarch64_combinez_be<mode>): Likewise.
5703 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
5706 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
5707 selectany within this function without need to keep attribute.
5708 (i386_pe_encode_section_info): Remove selectany-code.
5710 2015-10-02 Richard Biener <rguenther@suse.de>
5712 * tree-ssa-sccvn.c (has_VN_INFO): New function.
5713 (free_scc_vn): Use it.
5714 (visit_use): Remove dead code and refactor to use gassign
5715 and use less indentation.
5717 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5721 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
5722 (rs6000_cannot_copy_insn_p): New function.
5723 * config/rs6000/rs6000.md (cannot_copy): New attribute.
5724 (load_toc_v4_PIC_1_normal): Set cannot_copy.
5725 (load_toc_v4_PIC_1_476): Ditto.
5727 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5729 * graphite-scop-detection.c (struct sese_l): New conversion constructor
5730 so that this type can be pushed into a vec.
5731 (class scop_builder): use sese_l to collect scops.
5732 (get_scops): New getter function.
5733 (remove_intersecting_scops): Use sese_l instead of scops_p.
5737 (remove_subscops): Same.
5738 (build_scops): Add scops to vec<scops_p> once all the scops have been
5741 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
5743 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5744 Renamed type from gimple_bb_p to gimple_poly_bb_p.
5745 (translate_isl_ast_node_user): Same.
5746 * graphite-poly.c (new_poly_bb): Same.
5747 * graphite-poly.h (gbb_from_bb): Same.
5749 * graphite-sese-to-poly.c (new_gimple_bb):
5750 gimple_bb_p -> gimple_poly_bb_p
5751 (build_scop_scattering): Same.
5752 (find_params_in_bb): Same.
5753 (add_conditions_to_domain): Same.
5754 (sese_dom_walker::before_dom_children): Same.
5755 (analyze_drs_in_stmts): Same.
5756 (new_pbb_from_pbb): Same.
5757 (free_data_refs_aux): New pointer to type base_alias_pair.
5758 * graphite-sese-to-poly.h: Same.
5759 * sese.c (if_region_set_false_region): Fixed Indentation.
5760 (move_sese_in_condition): Same.
5762 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5763 Aditya Kumar <aditya.k7@samsung.com>
5765 PR tree-optimization/66980
5766 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
5767 when data reference analysis has failed.
5769 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5770 Aditya Kumar <aditya.k7@samsung.com>
5772 PR tree-optimization/67754
5773 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
5774 scev analysis on the same loop nest as analyze_drs_in_stmts.
5775 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
5777 (try_generate_gimple_bb): Call outermost_loop_in_sese.
5778 (analyze_drs_in_stmts): Same.
5779 * sese.c (outermost_loop_in_sese): ...here.
5781 2015-10-01 Sebastian Pop <s.pop@samsung.com>
5782 Aditya Kumar <aditya.k7@samsung.com>
5784 PR tree-optimization/67754
5785 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
5786 recursion on the inner loops.
5788 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5790 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
5791 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
5792 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
5793 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
5794 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
5796 2015-10-01 Marek Polacek <polacek@redhat.com>
5799 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
5800 create_tmp_var_raw rather than create_tmp_var.
5802 2015-10-01 Marek Polacek <polacek@redhat.com>
5804 PR tree-optimization/67769
5805 * tree-ssa-phiopt.c (conditional_replacement): Call
5806 reset_flow_sensitive_info_in_bb.
5807 (minmax_replacement): Likewise.
5808 (abs_replacement): Likewise.
5810 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
5812 * builtins.c: Don't include gomp-constants.h.
5813 (fold_builtin_1): Don't fold acc_on_device here.
5814 * gimple-fold.c: Include gomp-constants.h.
5815 (gimple_fold_builtin_acc_on_device): New.
5816 (gimple_fold_builtin): Call it.
5818 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
5820 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
5821 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
5823 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
5825 * config/arm/aarch-common-protos.h
5826 (aarch_accumulator_forwarding): New.
5827 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5828 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
5829 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
5830 * config/arm/cortex-a53.md: Rewrite.
5832 2015-10-01 Richard Biener <rguenther@suse.de>
5834 * gimple-match.h (mprts_hook): Declare.
5835 * gimple-match.head.c (mprts_hook): Define.
5836 (maybe_push_res_to_seq): Use new hook.
5837 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5838 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
5839 (vn_ssa_aux::has_constants): Remove.
5840 * tree-ssa-sccvn.c: Include gimple-match.h.
5841 (VN_INFO_GET): Assert we don't re-use SSA names.
5842 (vn_get_expr_for): Remove.
5843 (expr_has_constants): Likewise.
5844 (stmt_has_constants): Likewise.
5845 (simplify_binary_expression): Likewise.
5846 (simplify_unary_expression): Likewise.
5847 (vn_lookup_simplify_result): New hook.
5848 (visit_copy): Adjust.
5849 (visit_reference_op_call): Likewise.
5850 (visit_phi): Likewise.
5851 (visit_use): Likewise.
5852 (process_scc): Likewise.
5853 (init_scc_vn): Likewise.
5854 (visit_reference_op_load): Likewise. Use match-and-simplify and
5855 a gimple seq for inserted expressions.
5856 (try_to_simplify): Remove GENERIC stmt combining code.
5857 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
5858 * tree-ssa-pre.c (eliminate_insert): Adjust.
5859 (eliminate_dom_walker::before_dom_children): Likewise.
5861 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5863 * doc/invoke.texi (Optimization Options): Add
5864 -freorder-blocks-algorithm=.
5865 (Optimize Options) <-O>: Add -freorder-blocks.
5866 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
5867 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
5868 <-freorder-blocks>: Also enabled at levels -O and -Os.
5869 <-freorder-blocks-algorithm=>: Document new option.
5871 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5873 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
5874 with flag_reorder_blocks_algorithm.
5875 * common.opt (freorder-blocks-algorithm=): New flag.
5876 (reorder_blocks_algorithm): New enum.
5877 * flag-types.h (reorder_blocks_algorithm): New enum.
5878 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
5879 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
5881 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5883 * bb-reorder.c: Add intro comment.
5884 (reorder_basic_blocks_software_trace_cache): Print a header to
5886 (edge_order): New function.
5887 (reorder_basic_blocks_simple): New function.
5888 (reorder_basic_blocks): Choose between the STC and the simple
5889 algorithms (always choose the former).
5891 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
5893 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
5894 function, factored out from ...
5895 (reorder_basic_blocks): ... here.
5897 2015-10-01 Tom de Vries <tom@codesourcery.com>
5899 * tree-cfg.c (dump_function_to_file): Dump function attributes using
5900 __attribute__(()) string. Move dumping of function attributes to before
5903 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
5906 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5907 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
5908 based on gold linker version.
5909 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
5910 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
5911 * configure, config.in: Regenerate.
5913 2015-10-01 Alan Modra <amodra@gmail.com>
5915 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
5916 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
5917 (rs6000_output_mi_thunk): Likewise.
5919 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5921 * config/nvptx/mkoffload.c (process): Change offload data format.
5923 2015-09-30 Jeff Law <law@redhat.com>
5925 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
5926 with constant conditions.
5927 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
5928 (remove_ctrl_stmt_and_useless_edges): No longer static.
5929 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
5930 (remove_ctrl_stmt_and_useless_edges): Likewise.
5932 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5933 Cesar Philippidis <cesar@codesourcery.com>
5935 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
5936 (TARGET_GOACC_VALIDATE_DIMS): Override.
5937 * target.def (TARGET_GOACC): New target hook prefix.
5938 (validate_dims): New hook.
5939 * targhooks.h (default_goacc_validate_dims): New.
5940 * omp-low.c (oacc_validate_dims): New.
5941 (execute_oacc_device_lower): New.
5942 (default_goacc_validate_dims): New.
5943 (pass_data_oacc_device_lower): New.
5944 (pass_oacc_device_lower): New pass.
5945 (make_pass_oacc_device_lower): New.
5946 * tree-pass.h (make_pass_oacc_device_lower): Declare.
5947 * passes.def (pass_oacc_device_lower): Add it.
5948 * doc/tm.texi: Rebuilt.
5949 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
5950 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
5952 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5954 PR rtl-optimization/67037
5955 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
5957 2015-09-30 Bernd Schmidt <bernds@redhat.com>
5959 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
5960 * passes.c: Include tree-ssanames.h.
5961 (execute_function_todo): Flush the pending free SSA_NAMEs after
5962 eliminating unreachable basic blocks.
5963 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
5964 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
5965 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
5966 (flush_ssanames_freelist): New function.
5967 (release_ssaname_fn): Put released names on the queue.
5968 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
5969 * tree-ssanames.h (flush_ssanames_freelist): Declare.
5971 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5973 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
5974 (generate_target_descr_file, generate_target_offloadend_file)
5975 (generate_host_descr_file, prepare_target_image): Pass it on.
5976 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
5977 (compile_native, main): Pass it on.
5978 * lto-wrapper.c (compile_offload_image): Likewise.
5980 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5981 Ilya Verbin <ilya.verbin@intel.com>
5982 Andrey Turetskiy <andrey.turetskiy@intel.com>
5984 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
5985 (prepare_target_image, main): Refactor argv building to use
5988 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5990 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
5991 * config/spu/spu.c (spu_expand_atomic_op): New function.
5992 * config/spu/spu.md (AINT): New mode iterator.
5993 (ATOMIC): New code iterator.
5994 (atomic_name, atomic_pred): New code predicates.
5995 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
5996 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
5997 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
5998 "atomic_<atomic_name>_fetch<mode>"): Likewise.
6000 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
6002 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
6004 (scalar_chain::convert_reg): Likewise.
6006 2015-09-30 Richard Biener <rguenther@suse.de>
6008 * builtins.c: Add comment that no new simplifications should
6011 2015-09-30 Marek Polacek <polacek@redhat.com>
6013 PR tree-optimization/67690
6014 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
6015 reset_flow_sensitive_info_in_bb.
6016 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
6017 * tree-ssanames.c: Include "gimple-iterator.h".
6018 (reset_flow_sensitive_info_in_bb): New function.
6019 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
6021 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6023 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
6024 variable, replacing it with...
6025 (offload_abi): ... this new variable. Adjust all users.
6026 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
6028 2015-09-30 Matthias Klose <doko@ubuntu.com>
6030 * configure.ac: Remove extraneous ;;.
6031 * configure: Regenerate.
6033 2015-09-29 James Bowman <james.bowman@ftdichip.com>
6035 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
6036 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
6037 predicate, disallow register for operand 2.
6039 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
6041 * graphite-dependences.c (scop_get_dependences): Moved in down
6042 in order to be visible to its caller.
6043 * graphite-poly.h: Removed compute_deps, and extend_schedule.
6045 2015-09-29 Sebastian Pop <s.pop@samsung.com>
6046 Aditya Kumar <aditya.k7@samsung.com>
6048 PR tree-optimization/67754
6049 * graphite-optimize-isl.c (optimize_isl): Call
6050 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
6052 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6054 * builtins.c (expand_builtin_acc_on_device): Delete.
6055 (expand_builtin): Don't call it.
6056 (fold_builtin_1): Fold acc_on_device.
6058 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
6060 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
6061 (ix86_nsaved_sseregs): Likewise.
6063 2015-09-29 Jeff Law <law@redhat.com>
6065 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
6066 computation of unused value.
6068 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
6069 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
6070 inline macro expansion.
6072 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
6074 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
6075 (gen_shl_sext): Likewise.
6076 * config/sh/sh.md (divsi3): Likewise.
6077 (imm->ext_dest_operand splitter): Likewise.
6079 2015-09-29 Sebastian Pop <s.pop@samsung.com>
6080 Aditya Kumar <aditya.k7@samsung.com>
6082 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
6083 (nb_data_writes_in_bb): Remove.
6084 (split_pbb): Remove.
6085 (split_reduction_stmt): Remove.
6086 (is_reduction_operation_p): Remove.
6087 (phi_contains_arg): Remove.
6088 (follow_ssa_with_commutative_ops): Remove.
6089 (detect_commutative_reduction_arg): Remove.
6090 (detect_commutative_reduction_assign): Remove.
6091 (follow_inital_value_to_phi): Remove.
6092 (edge_initial_value_for_loop_phi): Remove.
6093 (initial_value_for_loop_phi): Remove.
6094 (used_outside_reduction): Remove.
6095 (detect_commutative_reduction): Remove.
6096 (translate_scalar_reduction_to_array_for_stmt): Remove.
6097 (remove_phi): Remove.
6098 (dr_indices_valid_in_loop): Remove.
6099 (close_phi_written_to_memory): Remove.
6100 (translate_scalar_reduction_to_array): Remove.
6101 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
6102 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
6103 (rewrite_commutative_reductions_out_of_ssa): Remove.
6104 (build_poly_scop): Remove call to
6105 rewrite_commutative_reductions_out_of_ssa.
6107 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
6109 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
6110 Add new insn types for vector load and store pairs.
6111 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
6112 types "neon_ldp{,_q}".
6113 * config/arm/cortex-a57.md (neon_load_c): Add insn types
6115 (neon_store_complex): Add insn types "neon_stp{,_q}".
6116 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
6119 2015-09-29 Jeff Law <law@redhat.com>
6121 * config/rx/constraints.md (Int08): Fix undefined left shift
6123 (Sint08, Sint16, Sint24): Likewise.
6124 * config/rx/rx.c (rx_get_stack_layout): Likewise.
6126 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
6129 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
6130 left shift behaviour.
6131 * config/msp430/constraints.md ('L' constraint): Similarly.
6132 ('Ys' constraint): Similarly.
6134 2015-09-29 Richard Biener <rguenther@suse.de>
6136 PR tree-optimization/67170
6137 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
6138 the translate function pointer parameter to get the
6139 bool whether to disambiguate only by reference.
6140 (walk_non_aliased_vuses): Likewise.
6141 * tree-ssa-alias.c (maybe_skip_until): Adjust.
6142 (get_continuation_for_phi_1): Likewise.
6143 (get_continuation_for_phi): Likewise.
6144 (walk_non_aliased_vuses): Likewise.
6145 * tree-ssa-sccvn.c (const_parms): New bitmap.
6146 (vn_reference_lookup_3): Adjust for interface change.
6147 Disambiguate parameters pointing to readonly memory.
6148 (free_scc_vn): Free const_parms.
6149 (run_scc_vn): Initialize const_parms from a fn spec attribute.
6151 2015-09-29 Richard Biener <rguenther@suse.de>
6153 PR tree-optimization/67741
6154 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
6155 builtin calls with correct signature.
6157 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
6160 * config/i386/i386.c: Include dbgcnt.h.
6161 (has_non_address_hard_reg): New.
6162 (convertible_comparison_p): New.
6163 (scalar_to_vector_candidate_p): New.
6164 (remove_non_convertible_regs): New.
6165 (scalar_chain): New.
6166 (scalar_chain::scalar_chain): New.
6167 (scalar_chain::~scalar_chain): New.
6168 (scalar_chain::add_to_queue): New.
6169 (scalar_chain::mark_dual_mode_def): New.
6170 (scalar_chain::analyze_register_chain): New.
6171 (scalar_chain::add_insn): New.
6172 (scalar_chain::build): New.
6173 (scalar_chain::compute_convert_gain): New.
6174 (scalar_chain::replace_with_subreg): New.
6175 (scalar_chain::replace_with_subreg_in_insn): New.
6176 (scalar_chain::emit_conversion_insns): New.
6177 (scalar_chain::make_vector_copies): New.
6178 (scalar_chain::convert_reg): New.
6179 (scalar_chain::convert_op): New.
6180 (scalar_chain::convert_insn): New.
6181 (scalar_chain::convert): New.
6182 (convert_scalars_to_vector): New.
6183 (pass_data_stv): New.
6185 (make_pass_stv): New.
6186 (ix86_option_override): Created and register stv pass.
6187 (flag_opts): Add -mstv.
6188 (ix86_option_override_internal): Likewise.
6189 * config/i386/i386.md (SWIM1248x): New.
6190 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
6191 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
6192 (*anddi3_doubleword): New.
6193 (*zext<mode>_doubleword): New.
6194 (*zextsi_doubleword): New.
6195 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
6196 (*<code>di3_doubleword): New.
6197 * config/i386/i386.opt (mstv): New.
6198 * dbgcnt.def (stv_conversion): New.
6200 2015-09-29 Tom de Vries <tom@codesourcery.com>
6202 * tree-cfg.c (dump_function_to_file): Dump function attributes.
6204 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
6207 * config/sh/sh.c (sh_override_options_after_change): New.
6208 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6209 (sh_option_override): Move align_loops, align_jumps and
6210 align_functions handling into sh_override_options_after_change.
6212 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6214 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
6215 (nvptx_record_offload_symbol): Record function execution geometry.
6216 * config/nvptx/mkoffload.c (process): Include launch geometry in
6218 * omp-low.c (oacc_launch_pack): New.
6219 (replace_oacc_fn_attrib): New.
6220 (set_oacc_fn_attrib): New.
6221 (get_oacc_fn_attrib): New.
6222 (expand_omp_target): Create keyed varargs for GOACC_parallel call
6224 * omp-low.h (get_oacc_fn_attrib): Declare.
6225 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
6226 (DEF_FUNCTION_TYPE_VAR_11): Delete.
6227 * tree.h (OMP_CLAUSE_EXPR): New.
6228 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
6230 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6231 Sebastian Pop <s.pop@samsung.com>
6233 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
6235 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6236 Sebastian Pop <s.pop@samsung.com>
6238 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
6239 * graphite-scop-detection.c (struct sese_l): New type.
6240 (get_entry_bb): API for getting entry bb of SESE.
6241 (get_exit_bb): API for getting exit bb of SESE.
6242 (class debug_printer): New type. Simple printer in debug mode.
6243 (trivially_empty_bb_p): New. Return true when BB is empty or
6244 contains only debug instructions.
6245 (graphite_can_represent_expr): Call scalar_evoution_in_region
6246 instead of analyze_scalar_evolution. Pass in scop instead of only
6248 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
6250 (stmt_simple_for_scop_p): Same.
6251 (harmful_stmt_in_bb): Same.
6252 (graphite_can_represent_loop): Deleted.
6253 (struct scopdet_info): Deleted.
6254 (scopdet_basic_block_info): Deleted.
6255 (build_scops_1): Deleted.
6256 (bb_in_sd_region): Deleted.
6257 (find_single_entry_edge): Deleted.
6258 (find_single_exit_edge): Deleted.
6259 (create_single_entry_edge): Deleted.
6260 (sd_region_without_exit): Deleted.
6261 (create_single_exit_edge): Deleted.
6262 (unmark_exit_edges): Deleted.
6263 (mark_exit_edges): Deleted.
6264 (create_sese_edges): Deleted.
6265 (build_graphite_scops): Deleted.
6266 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
6267 (build_scops): Use the new scop_builder to build scops.
6268 (dot_all_scops_1): Use the new pretty printer. Print loop father
6270 (loop_body_is_valid_scop): New. Return true if loop body is a
6272 (class scop_builder): New. Builds SCoPs for polyhedral
6274 (scop_builder): New constructor.
6275 (static sese_l invalid_sese): sese_l with invalid edges.
6276 (get_sese): Get an sese (from a loop) if possible, invalid_sese
6278 (get_nearest_dom_with_single_entry): Get nearest dominator of a
6279 basic_block with single entry. Return NULL if we get to the
6280 beginning of a function.
6281 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
6282 a basic_block with single exit. Return NULL if we get to the
6283 beginning of a function.
6284 (print_sese): Pretty-print SESE.
6285 (merge_sese): Merge two SESEs if possible and return the new SESE.
6286 (build_scop_depth): Start building the SCoP within a loop nest.
6287 (build_scop_breadth): Start building the SCoP at a single loop
6288 depth. Merge adjacent SESEs if valid.
6289 (can_represent_loop_1): Returns true if Graphite can represent
6290 loop inside SCoP. Helper for can_represent_loop.
6291 (can_represent_loop): Returns true if Graphite can represent LOOP
6292 and all its nested loops in SCoP.
6293 (loop_is_valid_scop): Returns true if LOOP and all its nests
6294 constitute a valid SCoP.
6295 (region_has_one_loop): Returns true of a region has only one loop.
6296 (add_scop): Add SCoP to the list of valid scops. Removes an
6297 already existing scop if it intersects with or subsumed by this one.
6298 (harmful_stmt_in_region): Returns true if SCoP has any statment
6299 which cannot be represented by Graphite.
6300 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
6301 (remove_subscops): Remove any SCoP from the list of already found
6302 SCoPs, if subsumed by S1.
6303 (intersects): Return true if region bounded by SCoPs S1 and S2
6305 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
6306 * graphite.c (print_graphite_scop_statistics):
6307 (print_graphite_statistics): Print SCoP info while debugging.
6308 (graphite_initialize): Early exit in case number of loops in a
6309 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
6310 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
6311 (graphite_finalize):
6312 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
6313 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
6314 (recompute_all_dominators): Recalculate POST_DOMINATORS.
6315 * tree-cfg.c (print_loops): Print the function name while printing
6318 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
6319 Sebastian Pop <s.pop@samsung.com>
6321 PR tree-optimization/67700
6322 * graphite-sese-to-poly.c (parameter_index_in_region): Call
6323 invariant_in_sese_p_rec.
6324 (extract_affine): Same.
6325 (rewrite_cross_bb_scalar_deps): Call update_ssa.
6326 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
6327 * sese.h (invariant_in_sese_p_rec): Declare.
6329 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
6331 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
6333 2015-09-28 Jiong Wang <jiong.wang@arm.com>
6336 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6337 Jiong Wang <jiong.wang@arm.com>
6339 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6340 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6341 (REG_CLASS_NAMES): Likewise.
6342 (REG_CLASS_CONTENTS): Likewise.
6343 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6344 (aarch64_register_move_cost): Likewise.
6345 (aarch64_load_symref_appropriately): Invoke the new added pattern if
6347 * config/aarch64/constraints.md (Uc0): New constraint.
6349 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
6351 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
6353 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
6355 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
6356 SECTION_EXCLUDE in XO mapping class.
6358 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
6361 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
6362 and handle ne and eq codes.
6363 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
6364 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
6365 CONST_INT_P. Use reverse_condition.
6366 (sh_split_treg_set_expr): Likewise.
6368 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
6370 * config/arm/types.md (type): Add rotate_imm.
6371 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
6373 (*rorsi3_insn_uxtw): Likewise.
6374 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
6375 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
6376 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
6378 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6380 PR rtl-optimization/67481
6381 * ifcvt.c (contains_ccmode_rtx_p): New function.
6382 (insn_valid_noce_process_p): Use it.
6384 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6386 PR rtl-optimization/67456
6387 PR rtl-optimization/67464
6388 PR rtl-optimization/67465
6389 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
6390 move in the mode of x. Handle combination of complex and simple
6391 block pairs as well as the case when one is empty.
6393 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6395 * doc/gimple.texi: Update references to gimple_statement_base.
6396 * gdbhooks.py: Likewise.
6397 * gimple.h: Likewise.
6399 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6401 * config/sparc/driver-sparc.c: map LEON to leon3
6403 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6405 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
6406 and make it inverse to change default
6407 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
6409 * doc/invoke.texi: Document change of default
6411 2015-09-28 Daniel Cederman <cederman@gaisler.com>
6413 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
6414 true on %f0 for a target without FPU.
6415 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
6417 (untyped_return): Do not load %f0 for a target without FPU.
6419 2015-09-28 Andrew Pinski <apinski@cavium.com>
6421 * config/aarch64/aarch64.md (prefetch):
6422 Change the predicate of operand 0 to register_operand.
6424 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
6426 * config/i386/predicates.md (register_sse4nonimm_operand): New
6428 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
6429 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
6430 Use register_sse4nonimm_operand as operand 0 predicate.
6431 (*vec_extractv8hi_sse2): Remove insn pattern.
6432 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
6433 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
6435 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
6436 Kaz Kojima <kkojima@gcc.gnu.org>
6439 * config/sh/sh-protos.h (sh_lra_p): Declare.
6440 * config/sh/sh.c (sh_lra_p): Make non-static.
6441 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
6442 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
6443 Expand into addsi3_scr if operands[2] if needed.
6444 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
6445 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
6446 (addsi3_scr, *addsi3): New insn_and_split patterns.
6448 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
6450 PR rtl-optimization/64164
6451 PR tree-optimization/67312
6455 * cfgexpand.c (parm_in_stack_slot_p): Remove.
6456 (ssa_default_def_partition): Remove.
6457 (get_rtl_for_parm_ssa_default_def): Remove.
6458 (set_rtl): Check that RTL assignments match expectations.
6459 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
6460 default def location for params and results. Record SSA names
6461 or types in REG and MEM attrs, respectively.
6462 (set_parm_rtl): New.
6463 (expand_one_ssa_partition): Drop logic that assigned MEMs with
6464 unassigned addresses.
6465 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
6466 deferred stack alloc vars.
6467 (expand_used_vars): Skip partitions holding parm default defs.
6468 Move adjust_one_expanded_partition_var loop...
6469 (pass_expand::execute): ... here. Drop redundant assert.
6470 Adjust comments before the final loop over all ssa names.
6471 Require assigned rtl of parms and results to match exactly.
6472 Reset its attributes to match them, not any other variables in
6474 (expand_debug_expr): Use entry value for PARM's default defs
6475 only iff they have zero nondebug uses.
6476 * cfgexpand.h (parm_in_stack_slot_p): Remove.
6477 (get_rtl_for_parm_ssa_default_def): Remove.
6478 (set_parm_rtl): Declare.
6479 * doc/invoke.texi: Improve wording.
6480 * explow.c (promote_decl_mode): Fix promote_function_mode for
6481 result decls not by reference.
6482 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
6483 bypass TYPE_MODE to get the actual vector mode.
6484 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
6485 2015-08-19's changes as follows. Drop include of
6486 basic-block.h and df.h.
6487 (rtl_for_parm): Remove.
6488 (maybe_reset_rtl_for_parm): Remove.
6489 (parm_in_unassigned_mem_p): Remove.
6490 (use_register_for_decl): Add logic for RESULT_DECLs matching
6491 assign_parms' behavior.
6492 (split_complex_args): Revert.
6493 (assign_parms_augmented_arg_list): Revert. Add comment
6494 referencing the logic above.
6495 (assign_parm_adjust_stack_rtl): Revert.
6496 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
6497 of SET_DECL_RTL. Set up a REG if the parm demands so.
6498 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
6499 calls into a single set_parm_rtl. Set up a temporary RTL
6500 temporarily for expand_assignment.
6501 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
6502 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
6503 (assign_bounds): Revert.
6504 (assign_parms): Revert. Use set_parm_rtl.
6505 (allocate_struct_function): Relayout result and parms of
6506 non-abstruct functions.
6507 (expand_function_start): Revert. Use set_parm_rtl. If the
6508 result is not a hard reg, create a pseudo from the promoted
6509 mode of the default def. Promote static chain mode.
6510 * tree-outof-ssa.c (remove_ssa_form): Drop unused
6511 partition_has_default_def. Set up
6512 partitions_for_parm_default_defs.
6513 (finish_out_of_ssa): Remove partition_has_default_def.
6514 Release partitions_for_parm_default_defs.
6515 * tree-outof-ssa.h (struct ssaexpand): Remove
6516 partition_has_default_def. Add
6517 partitions_for_parm_default_defs.
6518 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
6520 (build_ssa_conflict_graph): Fix conflict-detection of default
6521 defs of even unused default defs of params and results.
6522 (for_all_parms): New.
6523 (create_default_def): New.
6524 (register_default_def): New.
6525 (coalesce_with_default): New.
6526 (create_outofssa_var_map): Create default defs for all parms
6527 and results, and register their partitions. Add GIMPLE_RETURN
6528 operands as coalesce candidates with results. Add default
6529 defs of each parm or result as coalesce candidates with its
6530 other defs. Mark each result def, and each default def of
6531 parms, as used_in_copy.
6532 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
6533 with the ssa names, even anonymous ones. Drop
6534 parm_in_stack_slot_p calls. Require same signedness and
6536 (coalesce_ssa_name): Add coalesce candidates for all defs of
6537 each parm and result, even unused ones.
6538 (parm_default_def_partition_arg): New type.
6539 (set_parm_default_def_partition): New.
6540 (get_parm_default_def_partitions): New.
6541 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
6542 * tree-ssa-live.c (partition_view_init): Regard unused defs of
6543 parms and results as used.
6544 (verify_live_on_entry): Don't error out just because they're
6547 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
6549 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6550 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
6551 (output_fde): Don't output length for debug_frame on AIX.
6552 (output_call_frame_info): Don't output length for debug_frame on AIX.
6553 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
6554 HAVE_XCOFF_DWARF_EXTRAS.
6555 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
6556 HAVE_XCOFF_DWARF_EXTRAS.
6557 (output_compilation_unit_header): Don't output length on AIX.
6558 (output_pubnames): Don't output length on AIX.
6559 (output_aranges): Delete argument. Compute length locally. Don't
6560 output length on AIX.
6561 (output_line_info): Don't output length on AIX.
6562 (dwarf2out_finish): Don't compute aranges_length.
6563 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
6564 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
6565 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
6566 symbol decoration for AIX.
6567 (rs6000_xcoff_debug_unwind_info): New.
6568 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
6570 (rs6000_xcoff_declare_function_name): Emit different
6571 .function pseudo-op when DWARF2_DEBUG. Don't call
6572 xcoffout_declare_function for DWARF2_DEBUG.
6573 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
6575 * config/rs6000/aix71.h: New.
6576 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
6578 * configure: Regenerate.
6579 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
6582 2015-09-26 Jeff Law <law@redhat.com>
6584 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
6586 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
6589 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
6592 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
6593 undefined behaviour.
6595 * config/cris/cris.md (asrandb): Fix left shift undefined
6597 (asrandw): Likewise.
6599 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
6602 * lra-constarints.c (match_reload): Check presence of the input pseudo
6603 in the output operand.
6605 2015-09-25 Tobias Burnus <burnus@net-b.de>
6607 * doc/invoke.texi (-fsanitize): Minor wording tweak.
6609 2015-09-25 Tobias Burnus <burnus@net-b.de>
6611 * doc/invoke.texi (-fsanitize): Update URLs.
6613 2015-09-25 Teresa Johnson <tejohnson@google.com>
6615 * opts.c (finish_options): Unset -freorder-blocks-and-partition
6616 if not using profile.
6618 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
6620 PR pretty-print/67567
6621 * pretty-print.c (pp_string): Add gcc_checking_assert.
6622 * pretty-print.h (output_buffer_append_r): Likewise.
6624 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
6627 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
6628 addr2 individually. Don't emit logical or insn if one is known to
6629 be aligned approriately.
6630 (sh_expand_cmpnstr): Likewise.
6632 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
6634 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
6635 __builtin_aarch64_fp[sc]r arguments into a register.
6637 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
6639 * config.gcc (x86_archs): Replace lakemount with lakemont.
6640 (with_cpu): Likewise.
6641 (with_arch): Likewise.
6642 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6643 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
6644 __tune_lakemount__ with __tune_lakemont__.
6645 * config/i386/i386.c (lakemount_cost): Renamed to ...
6646 (lakemont_cost): This.
6647 (m_LAKEMOUNT): Renamed to ...
6649 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
6650 (processor_target_table): Replace "lakemount" with "lakemont".
6651 (processor_alias_table): Likewise.
6652 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
6654 (ix86_adjust_cost): Likewise.
6655 (ia32_multipass_dfa_lookahead): Likewise.
6656 * config/i386/i386.h (processor_type): Likewise.
6657 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
6658 * doc/invoke.texi: Replace lakemount with lakemont. Replace
6659 Lakemount with Lakemont.
6661 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
6663 * config.gcc (x86_archs): Replace iamcu with lakemount.
6664 (with_cpu): Likewise.
6665 (with_arch): Likewise.
6666 * doc/invoke.texi: Likewise.
6667 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
6668 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
6669 __tune_iamcu__ with __tune_lakemount__.
6670 * config/i386/i386.c (iamcu_cost): Renamed to ...
6671 (lakemount_cost): This.
6672 (m_IAMCU): Renamed to ...
6673 (m_LAKEMOUNT): This.
6674 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
6675 (processor_target_table): Replace "iamcu" with "lakemount".
6676 (processor_alias_table): Likewise.
6677 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
6678 PROCESSOR_LAKEMOUNT.
6679 (ix86_adjust_cost): Likewise.
6680 (ia32_multipass_dfa_lookahead): Likewise.
6681 * config/i386/i386.h (processor_type): Likewise.
6682 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
6684 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
6686 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
6687 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
6689 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
6690 (pa_expand_compare_and_swap_loop): New.
6691 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
6692 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
6693 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
6694 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
6695 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
6698 2015-09-24 Michael Collison <michael.collison@linaro.org>
6701 * read-md.c (read_name): Allow mode iterators inside angle
6702 brackets in rtl expressions.
6704 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
6707 * ira-color.c (update_allocno_cost): Add parameter.
6708 (update_costs_from_allocno): Decrease conflict cost. Pass the new
6711 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
6714 * opts-common.c (prune_options): Discard all -fdiagnostics-color
6715 but the last one, which is moved to the front to be processed
6717 * opts.c (enable_warning_as_error): Reject options that do not
6720 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6722 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
6724 2015-09-24 Jiong Wang <jiong.wang@arm.com>
6726 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
6727 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
6728 (aarch64_cannot_force_const_mem): Likewise.
6729 (aarch64_classify_address): Likewise.
6730 (aarch64_classify_symbolic_expression): Likewise.
6731 (aarch64_print_operand): Likewise.
6732 (aarch64_classify_symbol): Likewise.
6733 (aarch64_mov_operand_p): Likewise.
6734 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
6735 (aarch64_mov_operand): Likewise.
6737 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
6739 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
6740 for info->spe_gp_size.
6742 2015-09-24 Richard Biener <rguenther@suse.de>
6745 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
6748 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
6750 * tree-object-size.c (plus_stmt_object_size)
6751 (cond_expr_object_size): Change the formal parameters from gimple
6753 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
6754 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
6755 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
6757 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6759 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
6760 Check for ld -type pie on Solaris 11.x and 12.
6761 * configure: Regenerate.
6762 * config.in: Regenerate.
6764 * gcc.c (LD_PIE_SPEC): Allow redefinition.
6766 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
6767 (STARTFILE_SPEC): Use it.
6768 (ENDFILE_CRTEND_SPEC): Define.
6769 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
6770 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
6771 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
6772 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
6773 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
6774 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
6775 (ENDFILE_ARCH_SPEC): Define.
6776 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
6778 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6780 * configure.ac (gcc_cv_solaris_crts): New test.
6781 * configure. Regenerate.
6782 * config.in: Regenerate.
6783 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
6784 HAVE_SOLARIS_CRTS variant.
6786 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6788 * tree-inline.h (count_insns_seq): Delete prototype.
6789 (estimate_num_insns_seq): Define prototype.
6790 * tree-inline.c (count_insns_seq): Delete.
6791 (estimate_num_insns_seq): Remove static qualifier.
6792 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
6793 with estimate_num_insns_seq.
6795 2015-09-24 Richard Biener <rguenther@suse.de>
6797 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
6799 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
6800 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
6802 (ao_ref_init_from_vn_reference): Record clique and base in the
6804 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
6806 2015-09-24 Richard Biener <rguenther@suse.de>
6808 PR tree-optimization/48885
6809 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
6810 as not including any restrict tags from other pointers.
6812 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6814 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
6815 character when appending to offload_targets.
6817 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
6818 offload targets by commas, not colons.
6819 * config.in: Regenerate.
6820 * configure: Likewise.
6821 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
6822 instead of setting up the default offload targets here...
6823 (process_command): ..., do it here.
6825 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
6826 targets are separated by commas.
6827 * config.h.in: Regenerate.
6829 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
6830 Nathan Sidwell <nathan@codesourcery.com>
6832 * omp-low.h (omp_reduction_init_op): Declare.
6833 * omp-low.c (omp_reduction_init_op): New, broken out of ...
6834 (omp_reduction_init): ... here. Call it.
6835 * tree-parloops.c (initialize_reductions): Use
6836 omp_reduction_init_op.
6838 2015-09-23 Richard Biener <rguenther@suse.de>
6841 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
6842 undefined overflow unless they will cancel out.
6844 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6846 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
6849 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6852 * opts.h (write_langs): Declare.
6853 * opts-global.c (write_langs): Make it extern.
6855 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
6858 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
6859 overlapping regs when matching the pattern.
6861 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
6863 * config/aarch64/aarch64-simd.md
6864 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
6865 (aarch64_float_truncate_hi_v4sf_le): New.
6866 (aarch64_float_truncate_hi_v4sf_be): Likewise.
6868 2015-09-23 Richard Biener <rguenther@suse.de>
6870 * tree-ssa-structalias.c (intra_create_variable_infos): Build
6871 representatives for all restrict qualified pointer destinations.
6873 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
6875 * config/i386/i386.md (define_code_attr mshift): New.
6876 (define_mode_iterator SWI1248_AVX512BW): Rename ...
6877 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
6879 (define_insn "*k<logic><mode>"): Use new iterator name.
6880 (define_insn "*<mshift><mode>3"): New.
6882 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
6885 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
6886 mark the block as accessible.
6888 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
6890 * function.c (thread_prologue_and_epilogue_insns): Delete
6891 orig_entry_edge argument to try_shrink_wrapping.
6892 * shrink-wrap.c (can_get_prologue): New function.
6893 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
6894 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
6895 can_get_prologue where needed. Remove code that finds a single
6896 edge for the prologue. Remove code that tests if any reg clobbered
6897 by the prologue is live on the prologue edge. Remove code that finds
6898 the new prologue edge after duplicating blocks. Make a new prologue
6900 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
6902 2015-09-22 Jeff Law <law@redhat.com>
6904 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
6907 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
6909 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
6910 -Wtemplates, -Wnamespaces): Document.
6912 2015-09-22 Tom de Vries <tom@codesourcery.com>
6914 PR tree-optimization/67671
6915 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
6916 pointer references as restrict.
6918 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6920 * config/nios2/nios2.c (nios2_legitimize_address): When handling
6921 'reg + reloc' cases, allow first operand to be non-REG, and use
6922 force_reg() to enforce address pattern.
6924 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
6927 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
6928 (define_mode_iterator VI12_AVX_AVX512F): New.
6929 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
6930 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
6931 (define_insn "*<code><mode>3"): ... Into new pattern using
6932 VI12_AVX_AVX512F iterators without masking.
6934 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6936 * config.gcc: Support "skylake-avx512".
6937 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6938 PROCESSOR_SKYLAKE_AVX512.
6939 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
6940 (processor_target_table): Add "skylake-avx512".
6941 (PTA_SKYLAKE_AVX512): Define.
6942 (ix86_option_override_internal): Add "skylake_avx512".
6943 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
6944 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
6945 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
6946 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
6947 * doc/invoke.texi (skylake-avx512): New.
6949 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6951 * config/i386/i386.md (define_insn "kunpckhi"): Fix
6953 (define_insn "kunpcksi"): Ditto.
6954 (define_insn "kunpckdi"): Ditto.
6956 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
6958 * config/i386/i386.md (define_split not/xor SWI1248x): Use
6959 iterator instead of fixed modes.
6961 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6963 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
6965 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
6966 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
6967 out_result. Update to support update-fetch operations.
6968 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
6969 Adjust for change to aarch64_gen_atomic_ldop.
6970 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
6971 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
6972 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
6973 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
6974 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
6976 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6978 * config/aarch64/aarch64-protos.h
6979 (aarch64_atomic_ldop_supported_p): Declare.
6980 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
6981 (enum aarch64_atomic_load_op_code): New.
6982 (aarch64_emit_atomic_load_op): New.
6983 (aarch64_gen_atomic_ldop): Update to support load-operate
6985 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
6987 (aarch64_atomic_<atomic_optab><mode>): New.
6988 (aarch64_atomic_<atomic_optab><mode>_lse): New.
6989 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
6990 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
6991 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
6993 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
6995 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
6996 (UNSPECV_ATOMIC_LDOP_OR): New.
6997 (UNSPECV_ATOMIC_LDOP_BIC): New.
6998 (UNSPECV_ATOMIC_LDOP_XOR): New.
6999 (UNSPECV_ATOMIC_LDOP_PLUS): New.
7002 (aarch64_atomic_load<atomic_ldop><mode>): New.
7004 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7006 * config/aarch64/aarch64.md
7007 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
7010 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
7012 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
7014 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
7015 (aarch64_gen_atomic_ldop): New.
7016 (aarch64_split_atomic_op): Fix whitespace and add a comment.
7017 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
7018 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
7019 (atomic_exchange<mode>): Replace with an expander.
7020 (aarch64_atomic_exchange<mode>): New.
7021 (aarch64_atomic_exchange<mode>_lse): New.
7022 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
7023 (aarch64_atomic_swp<mode>): New.
7025 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7027 * tree-inline.c (expand_call_inline): Use inform for extra note.
7028 Do not give a note with UNKNOWN_LOCATION.
7029 Replace input_location with gimple_location (stmt).
7030 Use true/false instead of TRUE/FALSE.
7032 2015-09-22 Tom de Vries <tom@codesourcery.com>
7034 PR tree-optimization/67666
7035 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
7036 with single field non-conservative.
7038 2015-09-21 David S. Miller <davem@davemloft.net>
7042 2015-09-11 David S. Miller <davem@davemloft.net>
7044 * config/sparc/constraints.md: Make "U" constraint a real register
7046 * config/sparc/sparc.c (TARGET_LRA_P): Define.
7047 (D_MODES, DF_MODES): Add missing cast.
7048 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
7049 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
7050 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
7052 * config/sparc/sparc.h (PROMOTE_MODE): Define.
7053 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
7054 provide these insn when flag_pic.
7056 2015-09-17 David S. Miller <davem@davemloft.net>
7058 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
7060 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
7062 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7063 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7064 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7065 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7066 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7067 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7068 provide when flag_pic.
7070 2015-09-21 Jeff Law <law@redhat.com>
7072 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
7075 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7077 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
7079 2015-09-21 Richard Biener <rguenther@suse.de>
7081 * passes.c (rest_of_decl_compilation): Do not call
7082 dwarf2out_early_global_decl for aliases.
7084 2015-09-21 Richard Biener <rguenther@suse.de>
7087 * dwarf2out.c (add_location_or_const_value_attribute): Remove
7088 attribute parameter. Early exit if either DW_AT_const_value
7089 or DW_AT_location are present already.
7090 (gen_variable_die): Adjust caller.
7091 (dwarf2out_late_global_decl): Likewise.
7093 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7096 * config/sh/sh.c (sh_remove_overlapping_post_inc,
7097 sh_peephole_emit_move_insn): Add new functions.
7098 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
7099 sh_peephole_emit_move_insn): Declere them.
7100 * config/sh/sh.md: Use them in various peephole2 patterns.
7102 2015-09-21 Richard Biener <rguenther@suse.de>
7105 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
7106 address with -fno-delete-null-pointer-checks.
7108 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
7110 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
7111 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
7112 (reduc_uplus_v16qi): Remove.
7114 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
7115 (reduc_<VEC_reduc_name>_v2df): Remove.
7116 (reduc_<VEC_reduc_name>_v4sf): Remove.
7117 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
7119 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
7120 gen_ function by removing * prefix.
7121 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
7123 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
7126 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
7127 Print i_bound without converting it to a tree.
7129 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
7131 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
7132 operands[4] operands[5] swap with std::swap, removed tmp variable.
7133 (arm_evpc_neon_vzip): Replaced in0/in1 and
7134 out0/out1 swaps with std::swap, removed x variable.
7135 (arm_evpc_neon_vtrn): Replaced in0/int1 and
7136 out0/out1 swaos with std::swap, removed x variable.
7137 (arm_expand_vec_perm_const_1): Replaced
7138 d->op0/d->op1 swap with std::swap, removed x variable.
7139 (arm_evpc_neon_vuzp): Replaced in0/in1 and
7140 out0/out1 swaps with std::swap, removed x variable.
7142 2015-09-21 Jonathan Yong <10walls@gmail.com>
7144 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
7145 sysroot/usr/lib/32api for additional win32 libraries,
7146 fixes failing Cygwin bootstrapping.
7148 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7150 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
7152 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
7155 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
7156 (*mov_t_msb_neg): Rewrite negc pattern.
7158 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7160 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
7161 immediate generation code.
7163 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7165 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
7166 redundant immediate generation code.
7168 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7170 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
7171 (AARCH64_NUM_BITMASKS): Remove.
7172 (aarch64_bitmasks_cmp): Remove.
7173 (aarch64_build_bitmask_table): Remove.
7175 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7177 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
7178 slow immediate matching loops with a faster algorithm.
7180 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
7182 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
7185 2015-09-20 Jeff Law <law@redhat.com>
7187 PR tree-optimization/47679
7188 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
7189 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
7190 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
7191 (thread_through_normal_block): Use record_temporary_equivalences.
7193 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
7195 * coretypes.h (gimple): Change typedef to be a forward declaration.
7196 * gimple.h (gimple_statement_base): rename to gimple.
7197 * (all functions and types using gimple): Adjust.
7200 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
7201 David Edelsohn <dje.gcc@gmail.com>
7203 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
7204 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7205 (EH_FRAME_THROUGH_COLLECT2): Define.
7206 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7207 (ASM_OUTPUT_DWARF_PCREL): Define.
7208 (ASM_OUTPUT_DWARF_DATAREL): Define.
7210 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
7212 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
7215 2015-09-18 Jeff Law <law@redhat.com>
7217 PR tree-optimization/47679
7218 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
7220 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
7221 object. Update constructor.
7222 (pass_dominator::execute): Corresponding chagnes to declaration
7223 and initialization of avail_exprs_stack. Update constructor call
7224 for dom_opt_dom_walker object.
7225 (lookup_avail_expr, record_cond): Accept additional argument. Pass
7226 it down to children as needed.
7227 (record_equivalences_from_incoming_edge): Likewise.
7228 (eliminate_redundant_computations): Likewise.
7229 (record_equivalences_from_stmt): Likewise.
7230 (simplify_stmt_for_jump_threading): Likewise.
7231 (record_temporary_equivalences): Likewise.
7232 (optimize_stmt): Likewise.
7233 (dom_opt_dom_walker::thread_across_edge): Update access to
7234 avail_exprs_stack object and pass it to children as needed.
7235 (dom_opt_dom_walker::before_dom_children): Similarly.
7236 (dom_opt_dom_walker::after_dom_children): Similarly.
7237 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
7238 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
7239 Add avail_expr_stack argument. Pass it to children as needed.
7240 (dummy_simplify): Likewise.
7241 (simplify_control_stmt_condition): Likewise.
7242 (thread_around_empty_blocks): Likewise.
7243 (thread_through_normal_block): Likewise.
7244 (thread_across_edge): Likewise.
7245 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7246 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
7248 PR tree-optimization/47679
7249 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
7251 (dom_opt_dom_walker): New private member holding the const_and_copies
7252 object. Update constructor.
7253 (pass_dominator::execute): Corresponding changes to declaration
7254 and initialization of const_and_copies. Update constructor call
7255 for the dom_opt_dom_walker object.
7256 (record_temporary_equivalences): Accept const_and_copies argument
7257 pass it down to children as needed.
7258 (record_equality): Likewise.
7259 (record_equivalences_from_incoming_edge): Likewise.
7260 (cprop_into_successor_phis, optimize_stmt): Likewise.
7261 (eliminate_redundant_computations): Likewise.
7262 (dom_opt_dom_walker::thread_across_edge): Update access to
7263 const_and_copies object and pass it to children as needed.
7264 (dom_opt_dom_walker::before_dom_children): Similarly.
7265 (dom_opt_dom_walker::after_dom_children): Similarly.
7267 PR tree-optimization/47679
7268 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
7269 it into the avail_exprs_stack class.
7270 (pass_dominator::execute): Corresponding changes to declaration
7271 and initialization of avail_exprs. Pass avail_exprs to
7272 dump_dominator_optimization_stats.
7273 (record_cond): Extract avail_exprs from avail_exprs_stack.
7274 (lookup_avail_expr): Similarly.
7275 (htab_staticstics): Remove unnecessary prototype. Move to earlier
7277 (dump_dominator_optimization_stats): Make static and prototype.
7278 Add argument for the hash table to dump.
7279 (debug_dominator_optimization_stats): Remove.
7280 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
7282 (debug_dominator_optimization_stats): Similarly.
7283 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
7284 "void" in prototype for pop_to_marker method. Add accessor method
7285 for the underlying avail_exprs table.
7287 * tree-ssa-threadedge.c: Remove trailing whitespace.
7289 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
7291 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
7293 (pa_ldil_cint_p): Likewise.
7294 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
7295 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
7297 * config/pa/pa.md: Likewise.
7299 2015-09-18 David Malcolm <dmalcolm@redhat.com>
7301 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
7302 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
7303 (diagnostic_show_locus): Likewise.
7304 (diagnostic_print_caret_line): Likewise.
7305 * diagnostic-show-locus.c: New file.
7307 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
7309 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
7310 "back" parameter. Declare label in #if block.
7312 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
7315 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
7316 the address to a register.
7318 2015-09-18 Jeff Law <law@redhat.com>
7320 PR tree-optimization/47679
7321 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
7322 * tree-ssa-dom.c: Remove unnecessary header includes.
7323 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
7324 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
7325 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
7326 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
7327 (pass_phi_only_cprop::execute): Likewise.
7328 (make_pass_phi_only_cprop): Likewise.
7329 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
7330 uses of file scoped statics by passing the required objects
7331 as parameters wherever needed.
7333 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
7334 David Edelsohn <dje.gcc@gmail.com>
7336 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
7337 EH_FRAME_THROUGH_COLLECT2.
7338 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
7340 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
7341 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
7342 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
7343 * except.c (switch_to_exception_section): Use a read-only section
7344 even if EH_FRAME_SECTION_NAME is undefined.
7345 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
7346 * collect2.c (write_c_file_stat): Provide dbase on AIX.
7347 (scan_prog_file): Don't export __dso_handle nor
7349 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7350 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7351 (ASM_OUTPUT_DWARF_PCREL): Define.
7352 (ASM_OUTPUT_DWARF_DATAREL): Define.
7353 (EH_FRAME_THROUGH_COLLECT2): Define.
7354 (EH_FRAME_IN_DATA_SECTION): Delete.
7355 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
7356 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
7358 (rs6000_asm_output_dwarf_datarel): Declare.
7359 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
7360 (rs6000_aix_asm_output_dwarf_datarel): New.
7361 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
7362 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
7363 (EH_FRAME_THROUGH_COLLECT2): Define.
7364 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
7365 (EH_FRAME_THROUGH_COLLECT2): Define.
7366 (EH_TABLES_CAN_BE_READ_ONLY): Define.
7367 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
7368 (EH_FRAME_THROUGH_COLLECT2): New.
7369 (ASM_OUTPUT_DWARF_DATAREL): New.
7370 * doc/tm.texi: Regenerate.
7372 2015-09-18 Richard Biener <rguenther@suse.de>
7374 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
7375 we're in early phase.
7376 (schedule_generic_params_dies_gen): Likewise.
7377 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
7378 work as possible, retaining unhandled cases.
7379 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
7380 clear out generic_type_instances at the end.
7381 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
7382 (dwarf2out_early_finish): ... here. Do most of
7383 gen_remaining_tmpl_value_param_die_attribute here.
7385 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
7387 PR tree-optimization/67283
7388 * tree-sra.c (type_consists_of_records_p): Rename to...
7389 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7390 (completely_scalarize_record): Rename to...
7391 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7392 (scalarize_elem): New.
7393 (analyze_all_variable_accesses): Follow renamings.
7395 2015-09-18 Richard Biener <rguenther@suse.de>
7397 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
7400 2015-09-18 Richard Biener <rguenther@suse.de>
7402 PR tree-optimization/66142
7403 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
7404 treat MEM[&x] and x the same.
7405 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
7406 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
7407 when we simplified sth.
7408 (vn_reference_maybe_forwprop_address): Likewise.
7409 (valueize_refs_1): When we simplified through
7410 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
7411 set valueized_anything to true.
7412 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
7413 one ref kills the other instead of just a offset-based test.
7414 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
7415 for the operand_equal_p test to compare bases and also compare
7418 2015-09-17 Christian Bruel <christian.bruel@st.com>
7420 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
7422 2015-09-17 Richard Henderson <rth@redhat.com>
7425 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
7426 pointers that encode the alignment of the object.
7428 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7430 PR rtl-optimization/66790
7431 * df-problems.c (LIVE): Amend documentation.
7433 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
7435 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
7437 (GTFILES): Replace optabs.c with optabs-libfunc.c.
7438 * genopinit.c (main): Add an include guard to insn-opinit.h.
7439 Protect the rtx_code parts with NUM_RTX_CODE.
7440 * optabs.h: Split parts out to...
7441 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
7442 * optabs.c: Split parts out to...
7443 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
7444 * cilk-common.c: Include optabs-query.h rather than optabs.h.
7445 * fold-const.c: Likewise.
7446 * target-globals.c: Likewise.
7447 * tree-if-conv.c: Likewise.
7448 * tree-ssa-forwprop.c: Likewise.
7449 * tree-ssa-loop-prefetch.c: Likewise.
7450 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
7451 Remove unncessary include files.
7452 * tree-ssa-phiopt.c: Likewise.
7453 * tree-ssa-reassoc.c: Likewise.
7454 * tree-switch-conversion.c: Likewise.
7455 * tree-vect-data-refs.c: Likewise.
7456 * tree-vect-generic.c: Likewise.
7457 * tree-vect-loop.c: Likewise.
7458 * tree-vect-patterns.c: Likewise.
7459 * tree-vect-slp.c: Likewise.
7460 * tree-vect-stmts.c: Likewise.
7461 * tree-vrp.c: Likewise.
7462 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
7463 rather than optabs.h.
7464 * expr.c: Include optabs-tree.h.
7465 * function.c: Likewise.
7467 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
7470 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
7471 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
7472 * config/arm/arm.c: Include common/common-target.h.
7473 (use_return_insn): Return 0 if the static chain register was saved
7474 above a non-APCS frame.
7475 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
7476 (struct scratch_reg): New.
7477 (get_scratch_register_on_entry): New function.
7478 (release_scratch_register_on_entry): Likewise.
7479 (arm_emit_probe_stack_range): Likewise.
7480 (output_probe_stack_range): Likewise.
7481 (arm_expand_prologue): Factor out code dealing with the IP register
7482 for nested function and adjust it for stack checking.
7483 Invoke arm_emit_probe_stack_range if static builtin stack checking
7485 (thumb1_expand_prologue): Sorry out if static builtin stack checking
7487 (arm_expand_epilogue): Add the saved static chain register, if any, to
7488 the amount of pre-pushed registers to pop.
7489 (arm_frame_pointer_required): Return true if static stack checking is
7490 enabled and we want to catch the exception with the EABI unwinder.
7491 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
7492 (UNSPEC_PROBE_STACK_RANGE): Likewise.
7493 * config/arm/arm.md (probe_stack): New insn.
7494 (probe_stack_range): Likewise.
7496 2015-09-17 Richard Biener <rguenther@suse.de>
7498 * genmatch.c (parser::parse_expr): Improve error message
7499 for mis-placed flags.
7501 2015-09-17 Richard Biener <rguenther@suse.de>
7503 * passes.c (rest_of_decl_compilation): Always call early_global_decl
7504 debug hook when we created a varpool node.
7505 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
7506 dwarf2out_early_global_decl, when not just add location or
7507 value attributes to existing DIEs.
7509 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
7511 * config/aarch64/aarch64.md (copysigndf3): New.
7512 (copysignsf3): Likewise.
7514 2015-09-17 David S. Miller <davem@davemloft.net>
7516 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
7517 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
7518 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
7519 (HARD_REGNO_CALLER_SAVE_MODE): Define.
7520 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
7521 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
7522 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
7523 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
7524 provide when flag_pic.
7526 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
7528 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
7529 object_allocator change.
7531 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7533 PR tree-optimization/66388
7534 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
7535 (dump_iv): Dump no_overflow information.
7536 (alloc_iv): Initialize new field for struct iv.
7537 (mark_bivs): Count number of no_overflow bivs.
7538 (find_deriving_biv_for_expr, record_biv_for_address_use): New
7540 (idx_find_step): Call new functions above.
7541 (add_candidate_1, add_candidate): New paramter.
7542 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
7543 (get_computation_aff): Simplify convertion of cand for BIV.
7544 (get_computation_cost_at): Step cand's base if necessary.
7546 2015-09-17 Bin Cheng <bin.cheng@arm.com>
7548 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
7550 (tree_simplify_using_condition): Ditto.
7551 (simplify_using_initial_conditions): Ditto.
7552 (loop_exits_before_overflow): Pass new argument to function
7553 simplify_using_initial_conditions. Remove case for type conversions
7555 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
7557 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
7558 in iv base using loop initial conditions.
7560 2015-09-16 Jeff Law <law@redhat.com>
7562 PR tree-optimization/47679
7563 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
7564 (free_all_edge_infos): Use it.
7565 (allocate_edge_info): Free preexisting edge info data.
7566 (pass_dominator::execute): Set up initial edge info structures.
7567 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
7569 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
7570 If non-null, then push/pop markers appropriately.
7571 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
7572 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
7575 2015-09-16 James Bowman <james.bowman@ftdichip.com>
7577 * config/ft32/ft32.c: Fix the memory address space predicate.
7579 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
7582 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
7583 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7585 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7587 * toplev.h (check_global_declaration): Remove declaration.
7588 * toplev.c (check_global_declaration): Move to ...
7589 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
7590 (analyze_functions): Update call.
7592 2015-09-16 David S. Miller <davem@davemloft.net>
7594 * lra-constraints.c (simplify_operand_subreg): Do not assume that
7595 lowpart of a SUBREG has offset zero.
7597 2015-09-16 Jeff Law <law@redhat.com>
7599 PR tree-optimization/47679
7600 * tree-ssa-dom.c (enum expr_kind): Moved from here to
7601 tree-ssa-scopedtables.h.
7602 (struct hashable_expr, class expr_hash_elt): Likewise.
7603 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
7604 Move associated methods into tree-ssa-scopedtables.c.
7605 (avail_expr_hash, initialize_expr_from_cond): Similarly.
7606 (hashable_expr_equal_p, add_expr_commutative): Likewise.
7607 (add_hashable_expr): Likewise.
7608 (record_cond): Delete element directly.
7609 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
7610 private copy ctor and assignment operator methods.
7611 (expr_elt_hasher): Inline trivial methods.
7612 (initialize_expr_from_cond): Prototype.
7613 * tree-ssa-scopedtables.c: Add necessary includes, functions and
7614 methods that were previously in tree-ssa-dom.c. Improve various
7617 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
7619 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
7621 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
7624 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
7627 2015-09-16 Richard Biener <rguenther@suse.de>
7630 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
7631 location of possibly shared trees.
7633 2015-09-16 Richard Biener <rguenther@suse.de>
7636 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
7638 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
7640 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
7641 offset and size computations instead of HOST_WIDE_INT.
7643 2015-09-16 Richard Biener <rguenther@suse.de>
7646 * fold-const.c (extract_muldiv_1): Properly extend multiplication
7647 result before builting a tree via wide_int_to_tree.
7649 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
7651 * Makefile.in: Add memory-block.cc
7652 (pool_allocator::initialize): Use fixed block size.
7653 (pool_allocator::release): Use memory_block_pool.
7654 (pool_allocator::allocate): Likewise.
7655 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
7657 * cfg.c (initialize_original_copy_tables): Likewise.
7658 * cselib.c (elt_list_pool, elt_loc_list_pool,
7659 cselib_val_pool): Likewise.
7660 * df-problems.c (df_chain_alloc): Likewise.
7661 * df-scan.c (df_scan_alloc): Likewise.
7662 * dse.c (cse_store_info_pool, rtx_store_info_pool,
7663 read_info_type_pool, insn_info_type_pool, bb_info_pool,
7664 group_info_pool, deferred_change_pool): Likewise.
7665 * et-forest.c (et_nodes, et_occurrences): Likewise.
7666 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
7667 ipcp_agg_lattice_pool): Likewise.
7668 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
7669 * ipa-profile.c (histogram_pool): Likewise.
7670 * ipa-prop.c (ipa_refdesc_pool): Likewise.
7671 * ira-build.c (live_range_pool, allocno_pool, object_pool,
7672 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
7673 * ira-color.c (update_cost_record_pool): Likewise.
7674 * lra-lives.c (lra_live_range_pool): Likewise.
7675 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
7676 * memory-block.cc: New file.
7677 * memory-block.h: New file.
7678 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
7679 * sched-deps.c (sched_deps_init): Likewise.
7680 * sel-sched-ir.c (sched_lists_pool): Likewise.
7681 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
7682 * tree-sra.c (access_pool): Likewise.
7683 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7684 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
7685 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
7686 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
7687 * tree-ssa-strlen.c (strinfo_pool): Likewise.
7688 * tree-ssa-structalias.c (variable_info_pool): Likewise.
7689 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
7690 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
7692 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7694 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
7696 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
7699 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
7701 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
7702 to pass TLS call argument, according to current ABI.
7703 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
7704 callx0 for TLS call, according to current ABI.
7706 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7708 * tree-eh.c (lower_try_finally_dup_block): Clear location information
7709 on stack restore statements.
7710 (decide_copy_try_finally): Do not consider a stack restore statement as
7711 coming from sources.
7713 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
7715 * config/alpha/alpha.c (alpha_expand_block_clear): Use
7716 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
7718 2015-09-15 Jeff Law <law@redhat.com>
7720 PR tree-optimization/47679
7721 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
7722 methods and private members.
7723 (avail_exprs_stack): Similarly. Change type of global
7724 from a pair of expr_hash_elt_t to the new class.
7725 (expr_elt_hasher::hash): Corresponding changes.
7726 (expr_elt_hasher::equal): Similarly.
7727 (avail_expr_hash): Similarly.
7728 (pass_dominator::execute): Similarly.
7729 (dom_opt_dom_walker::thread_across_edge): Similarly.
7730 (record_cond): Similarly.
7731 (dom_opt_dom_walker::before_dom_children): Similarly.
7732 (dom_opt_dom_walker::after_dom_children): Similarly.
7733 (lookup_avail_expr): Likewise.
7734 (initialize_hash_element): Now a expr_hash_elt constructor.
7735 (initialize_hash_element_from_expr): Similarly.
7736 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
7737 (free_expr_hash_elt): Call dtor for the element.
7738 (remove_local_expressions_from_table): Now the "pop_to_marker"
7739 method in the available_exprs_stack class.
7740 (avail_expr_stack::record_expr): Method factored out.
7741 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
7743 (hashable_expr_equal_p): Fix formatting.
7745 2015-09-15 David Malcolm <dmalcolm@redhat.com>
7747 * input.h (location_get_source_line): Drop "expanded_location"
7748 param in favor of a file and line number.
7749 * input.c (location_get_source_line): Likewise.
7750 (dump_location_info): Update for change in signature of
7751 location_get_source_line.
7752 * diagnostic.c (diagnostic_print_caret_line): Likewise.
7754 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
7756 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
7757 Bump to 4KB for SJLJ exceptions.
7758 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
7759 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
7760 * doc/tm.texi: Regenerate.
7762 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7764 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
7765 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
7768 2015-09-15 Richard Biener <rguenther@suse.de>
7770 PR tree-optimization/67470
7771 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
7772 structure for PHI hoisting by inserting a forwarder block
7775 2015-09-15 Christian Bruel <christian.bruel@st.com>
7777 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
7778 (arm_option_print): New function.
7780 2015-09-15 Christian Bruel <christian.bruel@st.com>
7783 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
7784 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
7785 Remove flags parameter.
7786 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
7787 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
7788 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
7789 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
7790 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
7791 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
7792 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
7793 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
7795 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7797 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
7799 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
7800 AARCH64_VALID_SIMD_DREG_MODE.
7802 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7804 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
7805 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
7806 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
7807 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
7808 aarch64_ld4_lane<mode>): Combine together, making...
7809 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7810 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7811 aarch64_st4_lane<mode>): Combine together, making...
7812 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
7813 * config/aarch64/iterators.md (nregs): Add comment.
7815 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7817 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
7818 Change operand mode from <V_TWO_ELEM> to BLK.
7819 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
7820 (aarch64_vec_store_lanesoi_lane<mode): Likewise
7821 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7822 (aarch64_ld2_lane<mode>): Likewise.
7823 (aarch64_st2_lane<VQ:mode>): Likewise.
7824 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
7826 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7828 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
7829 Change operand mode from <V_FOUR_ELEM> to BLK.
7830 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
7831 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
7832 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7833 (aarch64_ld4_lane<mode>): Likewise.
7834 (aarch64_st4_lane<mode>): Likewise.
7835 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
7837 2015-09-15 Richard Biener <rguenther@suse.de>
7840 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
7841 transfer EH info from old to new stmt.
7842 (replace_call_with_value): Likewise.
7843 (replace_call_with_call_and_fold): Likewise.
7844 (gimple_fold_builtin_memory_op): Likewise.
7845 (gimple_fold_builtin_memset): Likewise.
7846 (gimple_fold_builtin_stpcpy): Likewise.
7847 (gimple_fold_call): Likewise.
7849 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7851 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
7853 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
7854 (aarch64_simd_intEI_type_node): Likewise.
7855 (aarch64_simd_builtin_std_type): Remove EImode case.
7856 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
7857 * config/aarch64/aarch64-modes.def: Remove EImode.
7859 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7861 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
7862 Change operand mode from <V_THREE_ELEM> to BLK.
7863 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
7864 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
7865 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
7866 (aarch64_ld3_lane<mode>): Likewise.
7867 (aarch64_st3_lane<mode>): Likewise.
7868 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
7870 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7872 * config/aarch64/aarch64-simd.md
7873 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
7874 Change all TImode operands to BLKmode.
7875 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
7876 Change all EImode operands to BLKmode.
7877 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
7878 Change all OImode operands to BLKmode.
7880 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
7881 and call set_mem_size.
7882 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
7884 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
7886 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
7888 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
7890 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
7892 (vec_store_lanesci_lane<mode>): Rename to...
7893 (aarch64_vec_store_lanesci_lane<mode>): ...this.
7895 (vec_store_lanesxi_lane<mode>): Rename to...
7896 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
7898 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
7899 aarch64_st4_lane<mode>): Follow renaming.
7901 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7903 * config/s390/s390.c (s390_const_operand_ok): Add missing
7906 2015-09-15 Richard Biener <rguenther@suse.de>
7909 * lto-streamer.h (lto_location_cache::current_sysp): Properly
7911 * lto-streamer-out.c (clear_line_info): Likewise.
7913 2015-09-15 Richard Biener <rguenther@suse.de>
7915 * doc/match-and-simplify.texi: Fix wording.
7917 2015-09-15 Bin Cheng <bin.cheng@arm.com>
7919 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
7920 unnecessary type conversion in op1.
7922 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
7924 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
7925 (dup_block_and_redirect): Delete function.
7926 (can_dup_for_shrink_wrapping): New function.
7927 (fix_fake_fallthrough_edge): New function.
7928 (try_shrink_wrapping): Rewrite function.
7929 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
7931 2015-09-14 Rich Felker <dalias@libc.org>
7933 * configure.ac: Change target pattern for sh TLS support
7934 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
7935 * configure: Regenerate.
7937 2015-09-14 Jeff Law <law@redhat.com>
7939 PR tree-optimization/47679
7940 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
7941 type rather than void *.
7943 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7946 * diagnostic.c (diagnostic_initialize): Do not set
7947 some_warnings_are_errors.
7948 (diagnostic_finish): Use DK_WERROR count instead.
7949 (diagnostic_report_diagnostic): Do not set
7950 some_warnings_are_errors.
7951 * diagnostic.h (struct diagnostic_context): Remove
7952 some_warnings_are_errors.
7954 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
7956 * config/sparc/predicates.md (const_all_ones_operand): Use
7957 CONSTM1_RTX to simplify definition.
7959 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
7962 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
7965 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
7967 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
7968 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
7969 OPT_fshow_column to handled saved option cases.
7970 (append_compiler_options): Do not skip the above added options.
7972 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7975 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
7976 nopcrelative_literal_loads.
7977 (aarch64_classify_address): Likewise.
7978 (aarch64_constant_pool_reload_icode): Define.
7979 (aarch64_secondary_reload): Handle secondary reloads for
7981 (aarch64_override_options): Handle nopcrelative_literal_loads.
7982 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
7983 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
7985 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
7986 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
7987 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
7989 * doc/invoke.texi (mpc-relative-literal-loads): Document.
7991 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
7994 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
7995 sync_compare_and_swap_optab libcall to target_oval.
7997 2015-09-14 Marek Polacek <polacek@redhat.com>
7999 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
8001 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
8003 2015-09-11 Mark Wielaard <mjw@redhat.com>
8006 * toplev.c (check_global_declaration): Check and use
8007 warn_unused_const_variable.
8008 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
8009 (-Wunused-variable): Remove non-constant. For C implies
8010 -Wunused-const-variable.
8011 (-Wunused-const-variable): New.
8013 2015-09-14 Richard Biener <rguenther@suse.de>
8015 * doc/match-and-simplify.texi: Update for changed syntax
8016 of inner ifs and the new switch expression.
8018 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
8020 * config/i386/haswell.md: New file describing Haswell pipeline.
8021 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
8022 haswell-like processors.
8023 (ix86_reassociation_width): Increase reassociation width for 64-bit
8024 Haswell processor family.
8025 * config/i386/i386.md: Introduce haswell cpu and include new md file.
8027 2015-09-14 Richard Biener <rguenther@suse.de>
8029 * doc/match-and-simplify.texi: Fixup some formatting issues
8030 and document the 's' flag.
8032 2015-09-13 Olivier Hainque <hainque@adacore.com>
8033 Eric Botcazou <ebotcazou@adacore.com>
8035 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
8036 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
8037 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
8038 (TARGET_CPU_gr5): Likewise.
8039 (TARGET_CPU_gr6): Likewise.
8040 (MULTILIB_DEFAULTS): Likewise.
8041 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
8042 for mcpu=gr5 and mcpu=gr6.
8043 (MULTILIB_DIRNAMES): Adjust accordingly.
8045 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8047 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
8048 (mem_ref_p): Likewise.
8049 (outermost_indep_loop): Adjust.
8050 (mem_ref_in_stmt): Likewise.
8051 (determine_max_movement): Likewise.
8052 (mem_ref_alloc): Likewise.
8053 (record_mem_ref_loc): Likewise.
8054 (set_ref_stored_in_loop): Likewise.
8055 (mark_ref_stored): Likewise.
8056 (gather_mem_refs_stmt): Likewise.
8057 (mem_refs_may_alias_p): Likewise.
8058 (for_all_locs_in_loop): Likewise.
8059 (struct rewrite_mem_ref_loc): Likewise.
8060 (rewrite_mem_refs): Likewise.
8061 (struct first_mem_ref_loc_1): Likewise.
8062 (first_mem_ref_loc): Likewise.
8063 (struct sm_set_flag_if_changed): Likewise.
8064 (execute_sm_if_changed_flag_set): Likewise.
8065 (execute_sm): Likewise.
8066 (hoist_memory_references):
8067 (struct ref_always_accessed): Likewise.
8068 (ref_always_accessed_p): Likewise.
8069 (refs_independent_p): Likewise.
8070 (record_dep_loop): Likewise.
8071 (ref_indep_loop_p_1): Likewise.
8072 (ref_indep_loop_p_2): Likewise.
8073 (ref_indep_loop_p): Likewise.
8074 (can_sm_ref_p): Likewise.
8075 (find_refs_for_sm): Likewise.
8076 (tree_ssa_lim_finalize): Likewise.
8078 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8080 * dwarf2out.c (dw_attr_ref): Remove typedef.
8081 (dw_line_info_ref): Likewise.
8082 (pubname_ref): Likewise.
8083 (dw_ranges_ref): Likewise.
8084 (dw_ranges_by_label_ref): Likewise.
8085 (comdat_type_node_ref): Likewise.
8087 (get_AT_low_pc): Likewise.
8088 (get_AT_hi_pc): Likewise.
8089 (get_AT_string): Likewise.
8090 (get_AT_flag): Likewise.
8091 (get_AT_unsigned): Likewise.
8092 (get_AT_ref): Likewise.
8093 (get_AT_file): Likewise.
8094 (remove_AT): Likewise.
8095 (print_die): Likewise.
8096 (check_die): Likewise.
8097 (die_checksum): Likewise.
8098 (attr_checksum_ordered): Likewise.
8099 (struct checksum_attributes): Likewise.
8100 (collect_checksum_attributes): Likewise.
8101 (die_checksum_ordered): Likewise.
8102 (same_die_p): Likewise.
8103 (is_declaration_die): Likewise.
8104 (clone_die): Likewise.
8105 (clone_as_declaration): Likewise.
8106 (copy_declaration_context): Likewise.
8107 (break_out_comdat_types): Likewise.
8108 (copy_decls_walk): Likewise.
8109 (output_location_lists): Likewise.
8110 (external_ref_hasher::hash): Likewise.
8111 (optimize_external_refs_1): Likewise.
8112 (build_abbrev_table): Likewise.
8113 (size_of_die): Likewise.
8114 (unmark_all_dies): Likewise.
8115 (size_of_pubnames): Likewise.
8116 (output_die_abbrevs): Likewise.
8117 (output_die): Likewise.
8118 (output_pubnames): Likewise.
8119 (add_ranges_num): Likewise.
8120 (add_ranges_by_labels): Likewise.
8121 (add_high_low_attributes): Likewise.
8122 (gen_producer_string): Likewise.
8123 (dwarf2out_set_name): Likewise.
8124 (new_line_info_table): Likewise.
8125 (prune_unused_types_walk_attribs): Likewise.
8126 (prune_unused_types_update_strings): Likewise.
8127 (prune_unused_types): Likewise.
8128 (resolve_addr): Likewise.
8129 (optimize_location_lists_1): Likewise.
8130 (index_location_lists): Likewise.
8131 (dwarf2out_finish): Likewise.
8133 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8135 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
8137 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8139 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
8140 (dump_asserts_for): Adjust.
8141 (register_new_assert_for): Likewise.
8142 (process_assert_insertions): Likewise.
8143 (insert_range_assertions): Likewise.
8145 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8147 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
8149 (new_temp_expr_table): Adjust.
8150 (free_temp_expr_table): Likewise.
8151 (version_to_be_replaced_p): Likewise.
8152 (make_dependent_on_partition): Likewise.
8153 (add_to_partition_kill_list): Likewise.
8154 (remove_from_partition_kill_list): Likewise.
8155 (add_dependence): Likewise.
8156 (finished_with_expr): Likewise.
8157 (process_replaceable): Likewise.
8158 (kill_expr): Likewise.
8159 (kill_virtual_exprs): Likewise.
8160 (mark_replaceable): Likewise.
8161 (find_replaceable_in_bb): Likewise.
8162 (find_replaceable_exprs): Likewise.
8163 (debug_ter): Likewise.
8165 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8167 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
8168 (struct btr_user): Rename from btr_user_s.
8169 (struct btr_def): Rename from btr_def_s.
8170 (find_btr_def_group): Adjust.
8171 (add_btr_def): Likewise.
8172 (new_btr_user): Likewise.
8173 (note_other_use_this_block): Likewise.
8174 (compute_defs_uses_and_gen): Likewise.
8175 (link_btr_uses): Likewise.
8176 (build_btr_def_use_webs): Likewise.
8177 (block_at_edge_of_live_range_p): Likewise.
8178 (btr_def_live_range): Likewise.
8179 (combine_btr_defs): Likewise.
8180 (move_btr_def): Likewise.
8181 (migrate_btr_def): Likewise.
8182 (migrate_btr_defs): Likewise.
8184 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8186 * var-tracking.c (shared_hash_def): Rename to shared_hash.
8187 (shared_hash): Remove typedef.
8188 (struct dataflow_set): Adjust.
8189 (shared_hash_unshare): Likewise.
8190 (dataflow_set_merge): Likewise.
8191 (vt_initialize): Likewise.
8192 (vt_finalize): Likewise.
8194 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8196 * var-tracking.c (struct location_chain): Rename from
8198 (struct variable_part): Adjust.
8199 (variable_htab_free): Likewise.
8200 (unshare_variable): Likewise.
8201 (get_init_value): Likewise.
8202 (get_addr_from_local_cache): Likewise.
8203 (drop_overlapping_mem_locs): Likewise.
8204 (val_reset): Likewise.
8205 (struct variable_union_info): Likewise.
8206 (variable_union): Likewise.
8207 (find_loc_in_1pdv): Likewise.
8208 (insert_into_intersection): Likewise.
8209 (intersect_loc_chains): Likewise.
8210 (canonicalize_loc_order_check): Likewise.
8211 (canonicalize_values_mark): Likewise.
8212 (canonicalize_values_star): Likewise.
8213 (canonicalize_vars_star): Likewise.
8214 (variable_merge_over_cur): Likewise.
8215 (remove_duplicate_values): Likewise.
8216 (variable_post_merge_new_vals): Likewise.
8217 (variable_post_merge_perm_vals): Likewise.
8218 (find_mem_expr_in_1pdv): Likewise.
8219 (dataflow_set_preserve_mem_locs): Likewise.
8220 (dataflow_set_remove_mem_locs): Likewise.
8221 (variable_part_different_p): Likewise.
8222 (onepart_variable_different_p): Likewise.
8223 (find_src_set_src): Likewise.
8224 (dump_var): Likewise.
8225 (set_slot_part): Likewise.
8226 (clobber_slot_part): Likewise.
8227 (delete_slot_part): Likewise.
8228 (vt_expand_var_loc_chain): Likewise.
8229 (emit_note_insn_var_location): Likewise.
8230 (vt_finalize): Likewise.
8232 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8234 * dse.c (store_info_t): Remove typedef.
8235 (group_info_t): Likewise.
8236 (const_group_info_t): Likewise.
8237 (deferred_change_t): Likewise.
8238 (get_group_info): Adjust.
8239 (free_store_info): Likewise.
8240 (canon_address): Likewise.
8241 (clear_rhs_from_active_local_stores): Likewise.
8242 (record_store): Likewise.
8243 (replace_read): Likewise.
8244 (check_mem_read_rtx): Likewise.
8245 (scan_insn): Likewise.
8246 (remove_useless_values): Likewise.
8247 (dse_step1): Likewise.
8248 (dse_step2_init): Likewise.
8249 (dse_step2_nospill): Likewise.
8250 (scan_stores_nospill): Likewise.
8251 (scan_reads_nospill): Likewise.
8252 (dse_step3_exit_block_scan): Likewise.
8253 (dse_step3): Likewise.
8254 (dse_step5_nospill): Likewise.
8255 (dse_step6): Likewise.
8257 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8259 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
8260 (alias_set_entry): Remove typedef.
8261 (alias_set_subset_of): Adjust.
8262 (alias_sets_conflict_p): Likewise.
8263 (init_alias_set_entry): Likewise.
8264 (get_alias_set): Likewise.
8265 (new_alias_set): Likewise.
8266 (record_alias_subset): Likewise.
8268 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
8270 * doc/install.texi (Downloading the source): Mark up
8271 contrib/download_prerequisites properly and drop leading "./".
8273 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8275 * config/arc/arc.h: Remove define of STRUCT_VALUE.
8276 * config/lm32/lm32.h: Likewise.
8277 * config/mep/mep.h: Likewise.
8278 * config/visium/visium.h: Likewise.
8279 * system.h: Poison STRUCT_VALUE macro.
8281 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
8283 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
8284 CONSTANT_P operands.
8286 2015-09-11 David S. Miller <davem@davemloft.net>
8288 * config/sparc/constraints.md: Make "U" constraint a real register
8290 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8291 (D_MODES, DF_MODES): Add missing cast.
8292 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8293 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8294 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8296 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8297 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8298 provide these insn when flag_pic.
8300 2015-09-11 Jeff Law <law@redhat.com>
8302 PR tree-optimization/47679
8303 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
8304 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
8305 member with m_. Update inline member functions as necessary. Add
8307 * tree-ssa-scopedtables.c: Update const_and_copies's member
8308 functions to use m_ prefix to access the stack.
8310 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8312 * graphite-optimize-isl.c (disable_tiling): Remove.
8313 (get_schedule_for_band): Do not use disable_tiling.
8314 (get_prevector_map): Delete function.
8315 (enable_polly_vector): Remove.
8316 (get_schedule_for_band_list): Remove dead code.
8318 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
8320 * graphite-optimize-isl.c (get_tile_map): Refactor.
8321 (get_schedule_for_band): Same.
8322 (getScheduleForBand): Same.
8323 (get_prevector_map): Same.
8324 (get_schedule_for_band_list): Same.
8325 (get_schedule_map): Same.
8326 (get_single_map): Same.
8327 (apply_schedule_map_to_scop): Same.
8328 (optimize_isl): Same.
8330 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8333 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
8335 * config/aarch64/iterators.md (GPF_TF_F16): New.
8338 2015-09-10 Nathan Sidwell <nathan@acm.org>
8340 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
8341 (nvptx_reorg): Adjust comments.
8343 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
8346 * configure.ac: Check if setenv and unsetenv are declared.
8347 * configure: Rebuild.
8348 * config.in: Rebuild.
8349 * system.h: Declare setenv and unsetenv if not declared.
8351 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8353 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
8354 commentary to simplify permute mask adjustment equation.
8355 (special_handling_values): Add SH_VPERM.
8356 (const_load_sequence_p): New function.
8357 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
8358 the mask loaded from the constant pool.
8359 (adjust_vperm): New function.
8360 (handle_special_swappables): Call adjust_vperm.
8361 (dump_swap_insn_table): Handle SH_VPERM.
8363 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
8365 * shrink-wrap.c (requires_stack_frame_p): Remove static.
8366 * shrink-wrap.h (requires_stack_frame_p): Put back.
8368 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
8370 * reload1.c (elimination_costs_in_insn): Locally turn
8371 -Wmaybe-uninitialized into a warning.
8373 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
8375 * shrink-wrap.c (requires_stack_frame_p): Make static.
8376 (prepare_shrink_wrap): Likewise.
8377 (dup_block_and_redirect): Likewise.
8378 * shrink-wrap.h: Remove declarations of those functions.
8380 2015-09-10 Mark Wielaard <mjw@redhat.com>
8382 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
8384 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
8387 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
8388 missing simplify_gen_subreg.
8390 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8392 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
8393 the vector element is bigger than 64 bit.
8395 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8397 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
8398 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
8400 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8402 * config/s390/s390.c: Add V1TImode to constant pool modes.
8404 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8407 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
8408 predicate. Set predicable_short_it attr to "no".
8410 2015-09-10 Jiong Wang <jiong.wang@arm.com>
8412 PR rtl-optimization/67421
8413 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
8414 left wide shift tranformation.
8416 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8418 * common/config/arc/arc-common.c: Remove references to A5.
8419 * config/arc/arc-opts.h: Likewise.
8420 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
8421 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
8422 * config/arc/t-arc-newlib: Likewise.
8424 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
8426 * config/arc/arc.md (length): Fix attribute length for conditional
8427 executed instructions with long immediate.
8429 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8431 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
8432 type for second alternative.
8434 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
8436 * doc/invoke.texi (Downloading GCC): Mention
8437 contrib/download_prerequisites script.
8439 2015-09-10 Jakub Jelinek <jakub@redhat.com>
8442 * gimplify.c (gimplify_omp_for): If inner stmt is not found
8443 for combined loop, assert seen_error () and return GS_ERROR.
8446 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
8447 if decl is already in outer->variables.
8450 * gimplify.c (gimplify_scan_omp_clauses): Instead of
8451 asserting that decl is not specified in octx->variables,
8452 break out of the loop if it is.
8455 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
8456 iterator is not explicitly determined, but is defined inside
8457 of the combined workshare region, handle it like if it has
8458 DECL_EXPR in OMP_FOR_PRE_BODY.
8460 2015-09-09 Nathan Sidwell <nathan@acm.org>
8462 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
8463 (*cmp<mode>): Add assembler spacing.
8464 (setcc_int<mode>, set_cc_float<mode>): Likewise.
8465 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
8467 (write_func_decl_from_insn): Refactor argument loops & comma emission.
8468 (nvptx_expand_call): Likewise.
8469 (nvptx_output_call_insn): Likewise.
8470 (nvptx_reorg_subreg): Add spacing.
8472 2015-09-09 Marek Polacek <polacek@redhat.com>
8475 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
8478 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8481 * doc/invoke.texi ([Wsubobject-linkage]): Document.
8483 2015-09-09 Tom de Vries <tom@codesourcery.com>
8485 * params-list.h: Add missing copyright notice.
8487 2015-09-09 Nathan Sidwell <nathan@acm.org>
8489 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
8490 sel_truesi, not andsi.
8492 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8494 * config/arm/arm.md (*subsi3_compare0): Rename to...
8495 (subsi3_compare0): ... This.
8496 (modsi3): New define_expand.
8497 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
8498 when operand is power of 2.
8500 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8502 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
8503 (*neg<mode>2_compare0): Rename to...
8504 (neg<mode>2_compare0): ... This.
8505 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
8506 Move check for speed inside the if-then-elses. Reflect
8507 CSNEG sequence in MOD by power of 2 case.
8509 2015-09-09 Alan Modra <amodra@gmail.com>
8512 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
8513 reload replacement for PRE_MODIFY address reg.
8515 2015-09-09 Sebastian Pop <s.pop@samsung.com>
8517 PR tree-optimization/53852
8518 * config.in: Regenerate.
8519 * configure: Regenerate.
8520 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
8521 * graphite-optimize-isl.c (optimize_isl): Stop computation when
8522 PARAM_MAX_ISL_OPERATIONS is reached.
8523 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
8524 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
8525 result equal to isl_stat_ok as the status now can be isl_error_quota.
8526 (subtract_commutative_associative_deps): Same.
8527 (compute_deps): Same.
8529 2015-09-08 Aditya Kumar <hiraditya@msn.com>
8530 Sebastian Pop <s.pop@samsung.com>
8532 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8533 Return the parameter if it was saved in corresponding
8534 parameter_rename_map of the region.
8535 (copy_def): Copy def from sese region to the newly created region.
8536 (copy_internal_parameters): Copy all the internal parameters defined
8537 within a region to the newly created region.
8538 (graphite_regenerate_ast_isl): Copy parameters to the new region before
8539 translating isl to gimple.
8540 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
8541 the loop-nest does not have any data-references.
8542 (build_graphite_scops): Create a scop only when there is at least one
8544 (contains_only_close_phi_nodes): Deleted.
8545 (print_graphite_scop_statistics): Deleted
8546 (print_graphite_statistics): Deleted
8547 (limit_scops): Deleted.
8548 (build_scops): Removed call to limit_scops.
8549 * sese.c (new_sese): Construct.
8550 (free_sese): Destruct.
8551 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
8553 (set_rename): Pass sese region so that parameters inside the region can
8554 be added to its parameter_rename_map.
8555 (rename_uses): Pass sese region.
8556 (graphite_copy_stmts_from_block): Do not copy parameters that have been
8557 generated in the header of the scop. For each SSA_NAME in the
8558 parameter_rename_map rename its usage.
8559 (invariant_in_sese_p_rec): Return false if tree t is defined outside
8561 (scalar_evolution_in_region): If the tree t is invariant just return t.
8562 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
8563 struct sese to keep track of all the parameters which need renaming.
8564 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
8566 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
8568 2015-09-08 Tom de Vries <tom@codesourcery.com>
8570 * Makefile.in (generated_files): Add params.list.
8571 (params.list, s-params.list): Add rule.
8572 * params.h (enum compiler_param): Include params-list.h. Move define
8573 DEFPARAM, include params.def and undef DEFPARAM ...
8574 * params-list.h: ... here. New file.
8576 2015-09-08 David Malcolm <dmalcolm@redhat.com>
8578 * pretty-print.h (printer_fn): Fix typo in comment.
8580 2015-09-07 Jeff Law <law@redhat.com>
8582 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
8584 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8586 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
8587 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
8588 (arm_neon_fp16_hw): New.
8590 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8592 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
8593 UNITS_PER_WORD >= 4.
8595 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8597 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
8598 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
8599 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
8600 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
8601 (aarch64_float_extend_lo_v2df): Rename to...
8602 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
8604 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
8605 (float_extend_lo): Add v4sf.
8607 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
8608 * config/aarch64/iterators.md (VQ_HSF): New iterator.
8609 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
8610 (Vwide): New mode_attr.
8612 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8614 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
8615 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
8616 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
8617 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
8618 V4HF and V8HF variants to iterator.
8620 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
8622 * config/aarch64/iterators.md (VDQF_F16): New.
8623 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
8625 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8627 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
8628 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8629 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
8630 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
8631 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
8632 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8633 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
8634 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
8635 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
8636 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
8637 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
8638 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8639 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
8640 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
8641 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
8642 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
8643 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
8644 vld1q_dup_f16): New.
8646 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8648 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
8649 Reparameterize to...
8650 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
8651 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
8652 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
8654 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
8656 (float_truncate_lo_): Use BUILTIN_VDF iterator.
8658 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
8660 * config/aarch64/iterators.md (VDF, Vdtype): New.
8661 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
8663 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8665 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
8666 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
8667 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
8668 Add __builtin_aarch64_simd_hf.
8669 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
8670 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
8671 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
8672 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
8673 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
8674 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
8675 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
8676 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
8677 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
8679 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
8680 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
8681 (VDC, Vdbl): Add V4HF.
8683 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8685 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
8686 V4HFmode and V8HFmode.
8687 (aarch64_split_simd_move): Add case for V8HFmode.
8688 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
8689 (aarch64_simd_builtin_std_type): Handle HFmode.
8690 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
8692 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
8693 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
8694 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
8696 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
8699 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
8700 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
8702 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
8703 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
8704 vst1q_lane_f16): New.
8705 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
8706 (VALLDI_F16, VALL_F16): New.
8707 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
8708 Add cases for V4HF and V8HF.
8709 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
8711 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8713 * config/arm/arm-builtins.c (VAR11, VAR12): New.
8714 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
8715 vld4_dup): Add v4hf variant.
8716 (vget_high, vget_low): Add v8hf variant.
8717 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
8718 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
8719 v4hf and v8hf variants.
8721 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
8723 (V_DOUBLE): Add case for V4HF.
8725 (V_HALF): Add case for V8HF.
8726 (VDQX): Add V4HF, V8HF.
8727 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
8728 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
8730 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
8731 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
8732 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
8733 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
8734 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
8735 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
8736 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
8737 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
8738 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
8740 (neon_vcreate, neon_vreinterpretv8qi<mode>,
8741 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
8742 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
8743 Change VDX to VD_RE.
8745 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
8746 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
8747 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
8749 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
8750 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
8751 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
8752 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
8753 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
8754 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
8755 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
8756 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
8757 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
8759 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8761 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
8762 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
8763 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
8764 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
8765 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
8766 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
8767 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
8768 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
8769 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
8770 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
8773 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8775 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
8777 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
8779 * config/arm/arm-builtins.c (v8hf_UP): New.
8780 (arm_init_simd_builtin_types): Initialise Float16x8_t.
8782 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
8784 * config/arm/arm_neon.h (float16x8_t): New typedef.
8786 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
8788 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
8789 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
8790 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
8791 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
8792 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
8793 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
8794 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
8795 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
8796 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
8797 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
8799 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
8801 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
8802 non-alphanumeric characters in the symbol name.
8804 2015-09-07 Marek Polacek <polacek@redhat.com>
8807 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
8810 2015-09-07 Marek Polacek <polacek@redhat.com>
8812 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
8814 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
8816 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
8819 2015-09-04 Jakub Jelinek <jakub@redhat.com>
8822 * tree-ssa-live.c: Include cfgloop.h.
8823 (remove_unused_locals): Clear loop->simduid if simduid is about
8824 to be removed from cfun->local_decls.
8826 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8829 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
8832 2015-09-04 Tom de Vries <tom@codesourcery.com>
8834 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
8836 2015-09-04 Jeff Law <law@redhat.com>
8838 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
8839 unnecessary constructor. It's now trivial and implemented inside...
8840 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
8841 constructor. Add comments to various methods. Remove unused
8843 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
8844 * tree-vrp.c (identify_jump_threads): Likewise.
8845 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
8847 (thread_across_edge): Similarly.
8848 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
8849 arguments in constructor call.
8851 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
8853 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
8854 temp path contains a '-'.
8856 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8857 Petr Murzin <petr.murzin@intel.com>
8858 Kirill Yukhin <kirill.yukhin@intel.com>
8860 * config/i386/i386-builtin-types.def
8861 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
8862 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
8863 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
8864 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
8865 * config/i386/i386.c
8866 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
8867 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8868 IX86_BUILTIN_SCATTERALTDIV16SI.
8869 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
8870 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
8871 __builtin_ia32_scatteraltdiv8si.
8872 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
8873 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
8874 IX86_BUILTIN_SCATTERALTDIV16SI.
8875 (ix86_vectorize_builtin_scatter): New.
8876 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
8877 ix86_vectorize_builtin_scatter.
8879 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
8880 Petr Murzin <petr.murzin@intel.com>
8881 Kirill Yukhin <kirill.yukhin@intel.com>
8883 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
8884 * doc/tm.texi: Regenerate.
8885 * target.def: Add scatter builtin.
8886 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
8887 for loads/stores in case of gather/scatter accordingly.
8888 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8889 STMT_VINFO_GATHER_P(S).
8890 (vect_check_gather): Rename to ...
8891 (vect_check_gather_scatter): this.
8892 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
8893 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
8894 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8895 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
8896 variable and new checkings for it accordingly.
8898 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
8899 STMT_VINFO_GATHER_P(S).
8900 (vect_check_gather_scatter): Use it instead of vect_check_gather.
8901 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
8903 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8905 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
8907 (mulv16qi3): New define_expand.
8909 2015-09-03 Martin Sebor <msebor@redhat.com>
8912 * doc/extend.texi (Other Builtins): Document when the address
8913 of a built-in function can be taken.
8915 2015-09-03 Richard Biener <rguenther@suse.de>
8917 * dwarf2out.c (flush_limbo_die_list): Split out from ...
8918 (dwarf2out_early_finish): ... here.
8919 (dwarf2out_finish): Do not call dwarf2out_early_finish but
8920 flush_limbo_die_list. Assert we have no deferred asm names.
8922 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8924 * optabs.c (expand_binop): Don't create a broadcast vector with a
8925 source element wider than the inner mode.
8927 2015-09-03 Richard Biener <rguenther@suse.de>
8929 * varasm.c (output_constant): Use fold_convert instead of
8932 2015-09-03 Tom de Vries <tom@codesourcery.com>
8934 PR tree-optimization/65637
8935 * omp-low.c (expand_omp_for_static_chunk): Handle case that
8936 fin_bb has 2 predecessors.
8938 2015-09-03 Tom de Vries <tom@codesourcery.com>
8940 PR tree-optimization/65637
8941 * omp-low.c (find_phi_with_arg_on_edge): New function.
8942 (expand_omp_for_static_chunk): Fix inner loop phi.
8944 2015-09-03 Tom de Vries <tom@codesourcery.com>
8946 PR tree-optimization/65637
8947 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
8950 2015-09-03 Tom de Vries <tom@codesourcery.com>
8952 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
8954 2015-09-03 Tom de Vries <tom@codesourcery.com>
8956 * doc/invoke.texi (parloops-chunk-size): Add item.
8957 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
8958 * tree-parloops.c: Include params.h.
8959 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
8960 param parloops-chunk-size is used.
8962 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8965 * fold-const.c (fold_binary_loc) : Move
8966 Transform (x >> c) << c into x & (-1<<c) or
8967 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
8968 types using simplify and match.
8969 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
8970 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
8972 2015-09-03 Richard Biener <rguenther@suse.de>
8975 * tree-ssa-structalias.c (ctor_for_analysis): New function.
8976 (create_variable_info_for_1): Use ctor_for_analysis instead
8978 (create_variable_info_for): Likewise.
8980 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
8983 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
8984 in new callgraph edge.
8986 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
8991 * config/aarch64/aarch64-simd.md
8992 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
8993 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
8994 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
8995 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
8997 2015-09-02 Alan Modra <amodra@gmail.com>
8999 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
9000 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
9001 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
9003 2015-09-02 Alan Modra <amodra@gmail.com>
9006 * config/rs6000/predicates.md (current_file_function_operand): Don't
9007 return true for weak symbols.
9008 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
9010 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
9011 Andrew Bennett <andrew.bennett@imgtec.com>
9013 * config/mips/mips-opts.h (mips_cb_setting): New enum.
9014 * config/mips/mips-protos.h: Add definitions for
9015 mips_output_jump and mips_output_equal_conditional_branch
9016 * config/mips/mips.c (MIPS_JR): Change to support the
9018 (mips_emit_compare): Add support for the MIPS R6 conditional
9020 (mips_process_sync_loop): Likewise.
9021 (mips_output_order_conditional_branch): Likewise.
9022 (mips16_build_call_stub): Change MIPS_CALL to
9024 (mips_print_operand_punctuation): Update 's' case to only
9025 apply to micromips r2.
9026 (mips_adjust_insn_length): Add support for forbidden slot
9028 (mips_avoid_hazard): Likewise.
9029 (mips_reorg_process_insns): Likewise.
9030 (mips_output_jump): New function.
9031 (mips_output_equal_conditional_branch): Likewise.
9032 (mips_output_conditional_branch): Use jrc/bc if compact
9033 branch support is enabled. Ensure the forbidden slots
9034 between the two branch instructions is filled with a nop.
9035 (mips_option_override): Add support to process the compact
9036 branch option and set the correct defaults. Prevent
9037 non-explict relocs being using for MIPS R6.
9038 (mips_trampoline_init): Add compact branch support.
9039 (mips_mult_zero_zero_cost): Allow zero initialisation of
9040 accumulators with TARGET_DSP.
9041 * config/mips/mips.h (TARGET_CB_NEVER): New define.
9042 (TARGET_CB_MAYBE): New define.
9043 (TARGET_CB_ALWAYS): New define.
9044 (ISA_HAS_DELAY_SLOTS): New define.
9045 (ISA_HAS_COMPACT_BRANCHES): New define.
9046 (ISA_HAS_JRC): New define.
9047 (MIPS_BRANCH_C): New define.
9048 (MIPS_CALL): Removed.
9049 (MICROMIPS_J): Removed.
9050 * config/mips/mips.md (compact_form): New attr.
9051 (hazard): Add support for forbidden slots.
9052 (define_delay): Add support for compact branches.
9053 (*branch_order<mode>): Likewise.
9054 (*branch_order<mode>_inverted): Likewise.
9055 (*branch_equality<mode>): Likewise.
9056 (*branch_equality<mode>_inverted): Likewise.
9057 (*jump_absolute): Likewise.
9058 (*jump_pic): Likewise.
9059 (indirect_jump): Use mips_output_jump to produce assembly output.
9060 (tablejump_<mode>"): Likewise.
9061 (*<optab>"): Likewise.
9062 (<optab>_internal): Likewise.
9063 (sibcall_internal): Likewise.
9064 (sibcall_value_internal): Likewise.
9065 (sibcall_value_multiple_internal): Likewise.
9066 (call_internal): Likewise.
9067 (call_split): Likewise.
9068 (call_internal_direct): Likewise.
9069 (call_direct_split): Likewise.
9070 (call_value_internal): Likewise.
9071 (call_value_split): Likewise.
9072 (call_value_internal_direct): Likewise.
9073 (call_value_direct_split): Likewise.
9074 (call_value_multiple_internal): Likewise.
9075 (call_value_multiple_split): Likewise.
9076 (mips_get_fcsr_mips16_<mode>): Likewise.
9077 (mips_set_fcsr_mips16_<mode>): Likewise.
9078 (tls_get_tp_mips16_<mode>): Likewise.
9079 * config/mips/mips.opt: Add -mcompact-branches option.
9080 * config/mips/predicates.md (order_operator): Ensure the
9081 conditional compact branches are only used if the ISA them.
9082 * doc/invoke.texi: Document -mcompact-branches option.
9084 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
9087 * lra-lives.c (process_bb_lives): Process move pseudos with the
9088 same value for copies and preferences
9089 * lra-constraints.c (match_reload): Create match reload pseudo
9090 with the same value from single dying input pseudo.
9092 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
9095 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
9097 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
9099 * trans-mem.c: Add contributed-by.
9100 * trans-mem.h: Same.
9102 2015-09-01 Richard Biener <rguenther@suse.de>
9104 * expr.c (expand_expr_real_1): For expanding TERed defs
9105 set the current location to that of the def if not UNKNOWN.
9107 2015-09-01 David Sherwood <david.sherwood@arm.com>
9109 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
9111 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9113 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
9114 then_cost, else_cost fields. Change branch_cost field to unsigned int.
9115 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
9117 (noce_simple_bbs): New function.
9118 (noce_try_move): Bail if basic blocks are not simple.
9119 (noce_try_store_flag): Likewise.
9120 (noce_try_store_flag_constants): Likewise.
9121 (noce_try_addcc): Likewise.
9122 (noce_try_store_flag_mask): Likewise.
9123 (noce_try_cmove): Likewise.
9124 (noce_try_minmax): Likewise.
9125 (noce_try_abs): Likewise.
9126 (noce_try_sign_mask): Likewise.
9127 (noce_try_bitop): Likewise.
9128 (bbs_ok_for_cmove_arith): New function.
9129 (noce_emit_all_but_last): Likewise.
9130 (noce_emit_insn): Likewise.
9131 (noce_emit_bb): Likewise.
9132 (noce_try_cmove_arith): Handle non-simple basic blocks.
9133 (insn_valid_noce_process_p): New function.
9134 (contains_mem_rtx_p): Likewise.
9135 (bb_valid_for_noce_process_p): Likewise.
9136 (noce_process_if_block): Allow non-simple basic blocks
9139 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
9141 * tree-ssa-dom.c (record_equivalences_from_phis,
9142 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
9143 (lookup_avail_expr): Likewise, and remove comment and unused temp.
9145 2015-09-01 Nick Clifton <nickc@redhat.com>
9147 * config/msp430/msp430.opt (mcpu): Fix typo.
9149 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9151 * config/aarch64/aarch64.c (aarch64_set_current_function):
9152 Re-layout any vector parameters have non-simd layout.
9153 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
9155 (aarch64_simd_expand_args): Delete call to the above.
9157 2015-08-31 Mike Frysinger <vapier@gentoo.org>
9159 * doc/invoke.texi (asan-stack): Add space before option.
9161 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9163 * tree.h (zerop): New function.
9164 * tree.c (zerop): Likewise.
9165 (element_precision): Handle expressions.
9166 * match.pd (define_predicates): Add zerop.
9167 (x <= +Inf): Fix comment.
9168 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
9169 * fold-const.c (fold_binary_loc): ... here. Remove.
9171 2015-08-31 Richard Biener <rguenther@suse.de>
9174 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
9176 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
9178 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
9179 (CEXPI): New operator list.
9180 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
9181 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
9183 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
9185 2015-08-31 Tom de Vries <tom@codesourcery.com>
9187 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
9188 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
9190 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
9191 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
9192 (rewrite_into_loop_closed_ssa): ... here.
9193 (replace_uses_in_dominated_bbs): Remove function.
9194 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
9195 rewrite_into_loop_closed_ssa_1.
9197 2015-08-31 Michael Matz <matz@suse.de>
9199 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
9200 enter entry and exit blocks for reverse post order.
9202 2015-08-31 Richard Biener <rguenther@suse.de>
9204 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
9205 (lto_location_cache::current_sysp): Likewise.
9206 (output_block::current_sysp): Likewise.
9207 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
9208 (lto_location_cache::apply_location_cache): Properly record
9209 system header locations.
9210 (lto_location_cache::input_location): Input whether a file
9212 * lto-streamer-out.c (lto_output_location): Stream whether a file
9215 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9218 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
9220 2015-08-31 Tom de Vries <tom@codesourcery.com>
9222 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
9223 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
9224 Improve function header comments.
9226 2015-08-30 Michael Collison <michael.collison@linaro.org>
9229 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
9232 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9234 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
9235 special_handling bitfield.
9236 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
9237 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
9238 that represents a general xxpermdi.
9239 (insn_is_swappable_p): Add handling for vec_concat of two
9240 doublewords, which maps to a specific xxpermdi.
9241 (adjust_xxpermdi): New function.
9242 (adjust_concat): Likewise.
9243 (handle_special_swappables): Call adjust_xxpermdi and
9245 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
9247 2015-08-30 Rich Felker <dalias@libc.org>
9249 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
9250 case instead of sh[123456ble]-*-*.
9252 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9254 * ira.c (print_unform_and_important_classes,
9255 print_translated_classes): Remove reg_class_names static array.
9256 (print_unform_and_important_classes): Rename to ...
9257 (print_uniform_and_important_classes): ... this.
9258 (ira_debug_allocno_classes): Update accordingly.
9260 2015-08-29 Tom de Vries <tom@codesourcery.com>
9262 PR tree-optimization/46193
9263 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
9266 2015-08-28 Jeff Law <law@redhat.com>
9269 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
9270 unable to find X NE 0 in the tables, return X as the simplified
9272 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
9273 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
9275 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
9276 after removing the control flow statement and unnecessary edges.
9278 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
9281 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9283 PR tree-optimization/67283
9284 * tree-sra.c (type_consists_of_records_p): Rename to...
9285 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9287 (completely_scalarize_record): Rename to...
9288 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
9290 (scalarize_elem): New.
9292 2015-08-28 Jiong Wang <jiong.wang@arm.com>
9294 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
9295 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
9296 (aarch64_symbol_type): Likewise.
9297 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9299 (aarch64_expand_mov_immediate): Likewise.
9300 (aarch64_print_operand): Likewise.
9301 (aarch64_classify_tls_symbol): Likewise.
9303 2015-08-28 Richard Biener <rguenther@suse.de>
9305 * cgraphunit.c (symbol_table::compile): Move early debug generation
9307 (symbol_table::finalize_compilation_unit): ... back here and
9308 add a !seen_error () guard.
9310 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9312 * toplev.c (process_options): Do not use flag_loop_block,
9313 flag_loop_interchange, and flag_loop_strip_mine. Add check for
9314 flag_loop_optimize_isl.
9316 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9318 * Makefile.in (OBJS): Remove graphite-blocking.o and
9319 graphite-interchange.o.
9320 * common.opt (floop-strip-mine, floop-interchange, floop-block):
9321 Alias of floop-nest-optimize.
9322 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
9323 Document as alias of -floop-nest-optimize.
9324 * graphite-blocking.c: Remove.
9325 * graphite-interchange.c: Remove.
9326 * graphite-optimize-isl.c: Include dumpfile.h.
9327 (getScheduleForBand): Add dump for tiled loops. Use
9328 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
9329 * graphite-poly.c (scop_max_loop_depth): Remove.
9330 (print_scattering_function_1): Remove.
9331 (print_scattering_function): Remove.
9332 (print_scattering_functions): Remove.
9333 (debug_scattering_function): Remove.
9334 (debug_scattering_functions): Remove.
9335 (apply_poly_transforms): Remove use of flag_loop_block,
9336 flag_loop_strip_mine, and flag_loop_interchange.
9337 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
9339 (print_pdr_access_layout): Remove.
9340 (print_pdr): Print ISL representation.
9341 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
9342 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
9344 (openscop_print_pbb_domain): Remove.
9345 (print_pbb): Remove call to print_scattering_function.
9346 (openscop_print_scop_context): Remove.
9347 (print_scop_context): Do not print matrices anymore.
9348 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
9349 SCOP_TRANSFORMED_SCHEDULE.
9350 (print_isl_set): Add printing of a new line.
9351 (print_isl_map): Same.
9352 (print_isl_aff): Same.
9353 (print_isl_constraint): Same.
9354 (loop_to_lst): Remove.
9355 (scop_to_lst): Remove.
9356 (lst_indent_to): Remove.
9357 (print_lst): Remove.
9358 (debug_lst): Remove.
9359 (dot_lst_1): Remove.
9361 (reverse_loop_at_level): Remove.
9362 (reverse_loop_for_pbbs): Remove.
9363 * graphite-poly.h (pdr_dim_iter_domain): Remove.
9364 (pdr_nb_params): Remove.
9365 (pdr_alias_set_dim): Remove.
9366 (pdr_subscript_dim): Remove.
9367 (pdr_iterator_dim): Remove.
9368 (pdr_parameter_dim): Remove.
9369 (same_pdr_p): Remove.
9370 (struct poly_scattering): Remove.
9371 (struct poly_bb): Remove _original, _transformed, _saved.
9372 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
9373 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
9374 (PBB_NB_LOCAL_VARIABLES): Remove.
9375 (PBB_NB_SCATTERING_TRANSFORM): Remove.
9376 (schedule_to_scattering): Remove.
9377 (number_of_write_pdrs): Remove.
9378 (pbb_dim_iter_domain): Remove.
9379 (pbb_nb_params): Remove.
9380 (pbb_nb_scattering_orig): Remove.
9381 (pbb_nb_scattering_transform): Remove.
9382 (pbb_nb_dynamic_scattering_transform): Remove.
9383 (pbb_nb_local_vars): Remove.
9384 (pbb_iterator_dim): Remove.
9385 (pbb_parameter_dim): Remove.
9386 (psco_scattering_dim): Remove.
9387 (psct_scattering_dim): Remove.
9388 (psct_local_var_dim): Remove.
9389 (psco_iterator_dim): Remove.
9390 (psct_iterator_dim): Remove.
9391 (psco_parameter_dim): Remove.
9392 (psct_parameter_dim): Remove.
9393 (psct_dynamic_dim): Remove.
9394 (psct_static_dim): Remove.
9395 (psct_add_local_variable): Remove.
9396 (new_lst_loop): Remove.
9397 (new_lst_stmt): Remove.
9400 (lst_add_loop_under_loop): Remove.
9401 (lst_depth): Remove.
9402 (lst_dewey_number): Remove.
9403 (lst_dewey_number_at_depth): Remove.
9406 (lst_find_pbb): Remove.
9407 (find_lst_loop): Remove.
9408 (lst_find_first_pbb): Remove.
9409 (lst_empty_p): Remove.
9410 (lst_find_last_pbb): Remove.
9411 (lst_contains_p): Remove.
9412 (lst_contains_pbb): Remove.
9413 (lst_create_nest): Remove.
9414 (lst_remove_from_sequence): Remove.
9415 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
9416 (lst_niter_for_loop): Remove.
9417 (pbb_update_scattering): Remove.
9418 (lst_update_scattering_under): Remove.
9419 (lst_update_scattering): Remove.
9420 (lst_insert_in_sequence): Remove.
9421 (lst_replace): Remove.
9422 (lst_substitute_3): Remove.
9423 (lst_distribute_lst): Remove.
9424 (lst_remove_all_before_including_pbb): Remove.
9425 (lst_remove_all_before_excluding_pbb): Remove.
9426 (struct scop): Remove original_schedule, transformed_schedule, and
9428 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
9429 (SCOP_SAVED_SCHEDULE): Remove.
9430 (poly_scattering_new): Remove.
9431 (poly_scattering_free): Remove.
9432 (poly_scattering_copy): Remove.
9433 (store_scattering_pbb): Remove.
9434 (store_lst_schedule): Remove.
9435 (restore_lst_schedule): Remove.
9436 (store_scattering): Remove.
9437 (restore_scattering_pbb): Remove.
9438 (restore_scattering): Remove.
9439 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
9440 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
9441 compute the scattering polyhedron dimension from the dimension of
9443 (build_scop_scattering): Update call to
9444 build_pbb_scattering_polyhedrons.
9445 (build_poly_scop): Remove call to scop_to_lst.
9446 * graphite.c (graphite_transform_loops): Add call to print_scop.
9447 (gate_graphite_transforms): Remove use of flag_loop_block,
9448 flag_loop_interchange, and flag_loop_strip_mine.
9450 2015-08-27 Sebastian Pop <s.pop@samsung.com>
9452 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
9453 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
9454 -floop-nest-optimize.
9455 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
9456 (generate_luj_sepclass): Remove.
9457 (generate_luj_options): Remove.
9458 (set_options): Remove opt_luj.
9459 (scop_to_isl_ast): Remove opt_luj.
9460 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
9461 flag_loop_unroll_jam.
9462 (getPrevectorMap_full): Remove.
9463 (getScheduleForBandList): Remove map_sepcl.
9464 (getScheduleMap): Same.
9465 (apply_schedule_map_to_scop): Remove sepcl.
9466 (optimize_isl): Same.
9467 * graphite-poly.c (apply_poly_transforms): Remove check for
9468 flag_loop_unroll_jam.
9469 (new_poly_bb): Remove map_sepclass.
9470 * graphite-poly.h (struct poly_bb): Same.
9471 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
9472 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
9473 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
9474 * toplev.c (process_options): Remove flag_loop_unroll_jam.
9476 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
9479 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
9481 (UNSPEC_ADD_CARRY): Remove.
9482 (addqi3_cconly_overflow): New expander.
9483 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
9484 Adjust for changed add<mode>3_carry.
9485 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
9486 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
9487 (<plusminus_insn><mode>3_carry): Remove expander.
9488 (*<plusminus_insn><mode>3_carry): Split insn pattern to
9489 add<mode>3_carry and sub<mode>3_carry.
9490 (plusminus_carry_mnemonic): Remove code attribute.
9491 (add<mode>3_carry): Canonicalize insn pattern.
9492 (*addsi3_carry_zext): Ditto.
9493 (sub<mode>3_carry): Ditto.
9494 (*subsi3_carry_zext): Ditto.
9495 (adcx<mode>3): Remove insn pattern.
9496 (addcarry<mode>): New insn pattern.
9497 (subborrow<mode>): Ditto.
9498 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
9499 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
9500 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
9501 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
9502 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
9503 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
9504 Rewrite expander to not clobber carry flag chains.
9506 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
9508 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
9509 instead of a rotate.
9511 2015-08-27 Marek Polacek <polacek@redhat.com>
9514 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
9515 an entry into an irreducible region.
9517 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9519 * configure: Regenerate.
9521 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9523 PR tree-optimization/67283
9524 * tree-sra.c (type_consists_of_records_p): Rename to...
9525 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
9527 (completely_scalarize_record): Rename to...
9528 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
9529 (scalarize_elem): New.
9531 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
9533 * tree-sra.c (completely_scalarize_var): Rename to...
9534 (create_total_scalarization_access): ... Here. Drop call to
9535 completely_scalarize_record.
9537 (analyze_all_variable_accesses): Replace completely_scalarize_var
9538 with create_total_scalarization_access and completely_scalarize_record.
9540 2015-08-27 Alan Modra <amodra@gmail.com>
9543 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
9546 2015-08-27 Richard Biener <rguenther@suse.de>
9548 * passes.c (rest_of_decl_compilation): Guard early_global_decl
9549 call with !seen_error ().
9550 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
9551 early debug generation and finish...
9552 (symbol_table::compile): ... here to put it after a !seen_error ()
9555 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9557 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
9560 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9561 Andre Vieira <andre.simoesdiasvieira@arm.com>
9563 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
9564 (*cb<optab><mode>1): Likewise.
9565 (*tb<optab><mode>1): Likewise.
9566 (*cb<optab><mode>1): Likewise.
9567 * config/aarch64/iterators.md (inv_cb): New code attribute.
9569 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
9570 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
9572 2015-08-27 Richard Biener <rguenther@suse.de>
9574 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
9576 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
9578 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
9581 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9583 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
9586 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
9588 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
9589 floating point in VSX registers.
9590 (rs6000_output_move_128bit): Always print out the set insn if we
9591 can't generate an appropriate 128-bit move.
9592 (rs6000_generate_compare): Add support for IEEE 128-bit floating
9593 point in VSX registers comparisons.
9594 (rs6000_expand_float128_convert): Likewise.
9596 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
9597 predicate for only GPR hard registers.
9599 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
9600 modes to iterators. Add new iterators for moving 128-bit values in
9601 scalar FPR registers and VSX registers.
9602 (FMOVE128): Likewise.
9603 (FMOVE128_FPR): Likewise.
9604 (FMOVE128_GPR): Likewise.
9605 (FMOVE128_VSX): Likewise.
9606 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
9611 (RELOAD): Add IEEE 128-bit floating point modes.
9612 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
9613 floating point in VSX registers modes.
9614 (signbit<mode>2, IBM128 iterator): Likewise.
9615 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
9616 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
9618 (neg<mode>2, TFIFKF iterator): Likewise.
9619 (negtf2_internal): Likewise.
9621 (abs<mode>2, TFIFKF iterator): Likewise.
9622 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
9623 VSX insn support for negate, absolute value, and negative absolute
9625 (ieee_128bit_vsx_neg<mode>2): Likewise.
9626 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9627 (ieee_128bit_vsx_abs<mode>2): Likewise.
9628 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9629 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9630 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9631 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
9632 floating point in VSX registers.
9633 (unpack<mode>_dm): Likewise.
9634 (unpack<mode>_nodm): Likewise.
9635 (pack<mode>): Likewise.
9636 (unpackv1ti): Likewise.
9637 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
9638 (packv1ti): Likewise.
9639 (pack<mode>, FMOVE128_VSX iterator): Likewise.
9640 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
9642 (extenddftf2_internal): Likewise.
9643 (trunctfdf2): Likewise.
9644 (trunctfdf2_internal2): Likewise.
9645 (fix_trunc_helper): Likewise.
9646 (fix_trunctfdi2"): Likewise.
9647 (floatditf2): Likewise.
9648 (floatuns<mode>tf2): Likewise.
9649 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9650 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9651 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9652 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9653 (float<SDI:mode><IFKF:mode>2): Likewise.
9654 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9656 2015-08-26 Renlin Li <renlin.li@arm.com>
9658 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
9660 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9661 Jiong Wang <jiong.wang@arm.com>
9663 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
9664 (tlsie_tiny_<mode>): New define_insn.
9665 (tlsie_tiny_sidi): Likewise.
9666 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
9668 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
9669 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9671 (aarch64_expand_mov_immediate): Likewise.
9672 (aarch64_print_operand): Likewise.
9673 (arch64_classify_tls_symbol): Likewise.
9675 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9677 * config/arm/arm-arches.def: Replace single value flags with
9678 an initializer built from ARM_FSET_MAKE_CPU1.
9679 * config/arm/arm-cores.def: Likewise.
9680 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
9681 derivation from the ARM_CORE macro definition, use the given value
9683 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
9684 ARM_ARCH macro definition, use the given value instead.
9686 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9688 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
9690 (struct builtin_description): Replace field mask with field
9692 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
9693 (IWMMXT2_BUILTIN): Likewise.
9694 (IWMMXT2_BUILTIN2): Likewise.
9695 (FP_BUILTIN): Likewise.
9696 (CRC32_BUILTIN): Likewise.
9697 (CRYPTO_BUILTIN): Likewise.
9698 (iwmmx_mbuiltin): Likewise.
9699 (iwmmx2_mbuiltin): Likewise.
9700 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
9701 struct builtin_description.
9703 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9705 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
9706 (struct builtin_description): Change type of mask to unsigned
9708 * config/arm/arm-protos.h (insn_flags): Declare as type
9710 (tune_flags): Likewise.
9711 * config/arm/arm.c (feature_count): New.
9712 (insn_flags): Define as type arm_feature_set.
9713 (tune_flags): Likewise.
9714 (struct processors): Define field flags as type arm_feature_set.
9715 (all_cores): Update for change to struct processors.
9716 (all_architectures): Likewise.
9717 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
9719 (arm_option_override_internal): Likewise.
9720 (arm_option_override): Likewise.
9722 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
9723 Jiong Wang <jiong.wang@arm.com>
9725 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
9726 tls size for tiny, small, large memory model.
9727 (aarch64_load_symref_appropriately): Support new symbol types.
9728 (aarch64_expand_mov_immediate): Likewise.
9729 (aarch64_print_operand): Likewise.
9730 (aarch64_classify_tls_symbol): Likewise.
9731 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
9732 (aarch64_symbol_type): Likewise.
9733 * config/aarch64/aarch64.md (tlsle): Deleted.
9734 (tlsle12_<mode>): New define_insn.
9735 (tlsle24_<mode>): Likewise.
9736 (tlsle32_<mode>): Likewise.
9737 (tlsle48_<mode>): Likewise.
9738 * doc/sourcebuild.texi (AArch64-specific attributes): Document
9741 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9743 * config/arm/arm-protos.h (FL_NONE): New.
9745 (arm_feature_set): New.
9746 (ARM_FSET_MAKE): New.
9747 (ARM_FSET_MAKE_CPU1): New.
9748 (ARM_FSET_MAKE_CPU2): New.
9749 (ARM_FSET_CPU1): New.
9750 (ARM_FSET_CPU2): New.
9751 (ARM_FSET_EMPTY): New.
9752 (ARM_FSET_ANY): New.
9753 (ARM_FSET_HAS_CPU1): New.
9754 (ARM_FSET_HAS_CPU2): New.
9755 (ARM_FSET_HAS_CPU): New.
9756 (ARM_FSET_ADD_CPU1): New.
9757 (ARM_FSET_ADD_CPU2): New.
9758 (ARM_FSET_DEL_CPU1): New.
9759 (ARM_FSET_DEL_CPU2): New.
9760 (ARM_FSET_UNION): New.
9761 (ARM_FSET_INTER): New.
9762 (ARM_FSET_XOR): New.
9763 (ARM_FSET_EXCLUDE): New.
9764 (AFM_FSET_IS_EMPTY): New.
9765 (ARM_FSET_CPU_SUBSET): New.
9767 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9769 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9770 SYMBOL_TLSLE to SYMBOL_TLSLE24.
9771 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9773 (aarch64_expand_mov_immediate): Likewise.
9774 (aarch64_print_operand): Likewise.
9775 (aarch64_classify_symbol): Likewise.
9777 2015-08-26 Jiong Wang <jiong.wang@arm.com>
9779 * config/aarch64/aarch64.opt (mtls-size): New entry.
9780 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
9781 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
9782 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
9784 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
9786 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
9787 ARM_CORE entry. Fix some white-space.
9788 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
9789 ARM_CORE definition.
9791 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9793 * fold-const.c (fold_binary_loc) : Move Optimize
9794 root(x)*root(y) as root(x*y) to match.pd.
9795 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
9796 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
9797 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
9798 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
9799 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
9800 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
9801 (mult (exps:s @0) (exps:s @1)) : New simplifier.
9802 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
9803 (rdiv @0 (exps:s @1)) : New simplifier.
9805 2015-08-25 Joseph Myers <joseph@codesourcery.com>
9807 * gcc.c (driver::finalize): Only assign to extra_specs if
9810 2015-08-25 Marek Polacek <polacek@redhat.com>
9813 * varasm.c (declare_weak): Return after giving an error.
9815 2015-08-25 David Malcolm <dmalcolm@redhat.com>
9817 * gcc-main.c (main): Add params to driver ctor.
9818 * gcc.c (class env_manager): New.
9820 (env_manager::init): New.
9821 (env_manager::get): New.
9822 (env_manager::xput): New.
9823 (env_manager::restore): New.
9824 Poison getenv and putenv.
9825 (DEFAULT_TARGET_SYSTEM_ROOT): New.
9826 (target_system_root): Update initialization to use
9827 DEFAULT_TARGET_SYSTEM_ROOT.
9828 (struct spec_list): Add field "default_ptr".
9829 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
9830 (init_spec): Likewise.
9831 (set_spec): Clear field "default_ptr".
9832 (read_specs): Free "spec" and "buffer".
9833 (xputenv): Reimplement in terms of env_manager.
9834 (process_command): Replace ::getenv calls with calls to the
9835 env_manager singleton.
9836 (process_brace_body): Free string in three places.
9837 (driver::driver): New.
9838 (driver::~driver): New.
9839 (used_arg): Convert from a function to...
9840 (class used_arg_t): ...this class, and...
9841 (used_arg): ...this new global instance.
9842 (used_arg_t::finalize): New function.
9843 (getenv_spec_function): Add "const" to local "value". Replace
9844 ::getenv call with call to the env_manager singleton.
9845 (path_prefix_reset): New function.
9846 (driver::finalize): New function.
9847 * gcc.h (driver::driver): New.
9848 (driver::~driver): New.
9849 (driver::finalize): New.
9851 2015-08-25 Nathan Sidwell <nathan@acm.org>
9853 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
9854 target doesn't have one.
9856 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9859 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
9861 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
9864 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
9865 a define_insn, remove second alternative.
9867 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
9868 Joseph Myers <joseph@codesourcery.com>
9870 * gcc.c (struct switchstr): Expand comment.
9872 2015-08-25 Nathan Sidwell <nathan@acm.org>
9874 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
9875 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
9877 2015-08-25 Richard Biener <rguenther@suse.de>
9880 * genmatch.c (expr::gen_transform): Verify the result of
9881 builtin_decl_implicit.
9882 (dt_simplify::gen_1): Likewise.
9884 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
9886 * config/arm/constraints.md: Also list Cs and US ARM-specific
9887 constraints as used.
9889 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
9892 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
9894 (nonpic_symbol_mentioned_p): Likewise.
9895 (sh_delegitimize_address): Likewise.
9896 (sh_function_ok_for_sibcall): Take into account weak symbols.
9897 (sh_expand_sym_label2reg): New.
9898 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
9899 * config/sh/sh.md (UNSPEC_PCREL): New enum.
9900 (call_pcrel): Use sh_expand_sym_label2reg.
9901 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
9902 (symPCREL_label2reg) New expand.
9904 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9906 * graphite-poly.c: Change type of region from void* to sese.
9907 * graphite-poly.h (struct scop): Changing the type of scop::region
9908 from void* to sese. Change accessor macro accordingly.
9909 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
9911 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
9913 * graphite-scop-detection.c (stmt_simple_for_scop_p):
9914 Constrain only on INTEGER_TYPE.
9916 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9919 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
9920 -mefficient-unaligned-vsx on ISA 2.7.
9922 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
9923 option to a masked option.
9925 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
9926 logic for -mefficient-unaligned-vsx so that it is set via an arch
9927 ISA option, instead of being set if -mtune=power8 is set. Move
9928 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
9929 near other default option handling.
9931 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9933 * genflags.c (gen_macro): Delete.
9934 (gen_proto): Don't create GEN.*CALL.* macros.
9935 * gensupport.h (get_file_location): Declare.
9936 * gensupport.c (rtx_locs): New variable.
9937 (read_md_rtx): Record rtx locations.
9938 (get_file_location): New function.
9939 * target-insns.def (call, call_pop, call_value, call_value_pop)
9940 (sibcall, sibcall_value): New patterns.
9941 * gentarget-def.c (parse_argument): New function.
9942 (def_target_insn): Use it. Handle optional operands. Raise an
9943 error if an .md pattern has the wrong number of operands for the
9944 pattern name. Remove the names of unused operands from the prototype.
9945 * builtins.c (expand_builtin_apply): Use targetm functions
9946 instead of HAVE_call_value and GEN_CALL_VALUE.
9947 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
9948 and sibcall_value_pop.
9949 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
9951 * config/alpha/alpha.md (untyped_call): Likewise.
9952 * config/iq2000/iq2000.md (untyped_call): Likewise.
9953 * config/m68k/m68k.md (untyped_call): Likewise.
9954 * config/mips/mips.md (untyped_call): Likewise.
9955 * config/pa/pa.md (untyped_call): Likewise.
9956 * config/rs6000/rs6000.md (untyped_call): Likewise.
9957 * config/sparc/sparc.md (untyped_call): Likewise.
9958 * config/tilegx/tilegx.md (untyped_call): Likewise.
9959 * config/tilepro/tilepro.md (untyped_call): Likewise.
9960 * config/visium/visium.md (untyped_call): Likewise.
9961 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
9962 gen_call_value instead of GEN_CALL_VALUE.
9963 * config/arm/arm.md (untyped_call): Likewise.
9964 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
9967 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9969 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
9970 (have_cbranchcc4): New variable.
9971 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
9972 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
9973 (if_convert): Initialize have_cbranchcc4.
9975 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9977 * builtins.c (expand_cmpstrn): Rename to...
9978 (expand_cmpstrn_or_cmpmem): ...this.
9979 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
9980 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
9981 Remove mode argument.
9982 (expand_builtin): Update accordingly.
9984 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9986 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
9987 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
9988 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
9989 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
9990 Add predicates for operands 0 and 3.
9991 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
9993 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
9994 immediate_operand to nonmemory_operand.
9996 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
9998 * df-scan.c (df_insn_info_init_fields): New function, split out
10000 (df_insn_create_insn_record): ...here.
10001 (df_insn_info_free_fields): New function, split out from...
10002 (df_insn_info_delete): ...here.
10003 (df_insn_rescan): Use the new functions instead of freeing and
10004 reallocating the df_insn_info.
10006 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10008 * doc/install.texi (Binaries): Remove links no longer valid.
10010 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
10012 * config/nvptx/mkoffload.c (process): Replace
10013 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
10015 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
10018 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
10020 2015-08-24 Renlin Li <renlin.li@arm.com>
10022 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
10023 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
10024 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
10025 * config/arm/constraints.md ("j"): Add check for high code.
10027 2015-08-24 Tom de Vries <tom@codesourcery.com>
10029 PR tree-optimization/65468
10030 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
10033 2015-08-24 Nathan Sidwell <nathan@acm.org>
10035 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
10036 change to nvptx_type_from_mode call. Use arg_promotion for both
10037 split and non-split args.
10039 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10041 * target-insns.def (movstr): New pattern.
10042 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
10043 (expand_movstr): Use targetm rather than HAVE_movstr/
10046 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
10048 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
10051 2015-08-24 Andrew Pinski <apinski@cavium.com>
10053 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
10054 AARCH64_EXTRA_TUNING_OPTION.
10055 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
10057 (aarch64_extra_tuning_flags): Base the shifted value on the index
10058 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
10059 * config/aarch64/aarch64.c: Remove the last argument to
10060 AARCH64_EXTRA_TUNING_OPTION.
10062 2015-08-23 Nathan Sidwell <nathan@acm.org>
10064 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
10066 (nvptx_declare_function_name): Insert formatting tabs for
10069 2015-08-23 Tom de Vries <tom@codesourcery.com>
10071 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
10072 parm_decl, rather than generating a dummy default def in cfun.
10073 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
10074 ssa_name from cfun and child_fn do not share a stmt as def stmt.
10075 (move_stmt_op): Handle PARM_DECl.
10076 (gather_ssa_name_hash_map_from): New function.
10077 (move_sese_region_to_fn): Add default defs for function params, and add
10078 them to vars_map. Release copied ssa names.
10079 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
10081 2015-08-23 Tom de Vries <tom@codesourcery.com>
10083 * doc/sourcebuild.texi: Rename vect_no_int_max with
10084 vect_no_int_min_max. Update description.
10086 2015-08-22 Andrew Pinski <apinski@cavium.com>
10088 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
10089 * config/aarch64/aarch64-protos.h
10090 (aarch64_fusion_pairs_index): New enum.
10091 (aarch64_fusion_pairs): Base the shifted value on the index instead
10092 Rewrite AARCH64_FUSE_ALL to be based on the end index.
10093 of the argument to AARCH64_FUSION_PAIR.
10094 * config/aarch64/aarch64.c: Remove the last argument to
10095 AARCH64_FUSION_PAIR.
10097 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
10099 * dominance.c (new_zero_array): Define.
10100 (dom_info): Redefine as class with proper encapsulation.
10101 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
10103 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
10104 allocations/deallocations. Pass function as parameter (instead of
10106 (dom_info::get_idom): Define accessor method.
10107 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
10108 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
10109 (calculate_dominance_info): Adjust to use dom_info class.
10110 (verify_dominators): Likewise.
10112 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
10114 * print-rtl.c (print_rtx): Check the correct range for
10115 flag_dump_unnumbered_links to behave as documented.
10117 PR rtl-optimization/67227
10118 PR rtl-optimization/64164
10119 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
10120 (nonoverlapping_memrefs_p): Test offsets and sizes when given
10121 identical gimple_reg exprs.
10123 2015-08-21 Nathan Sidwell <nathan@acm.org>
10125 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
10127 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
10128 crtl->stack_alignment_needed to determine alignment.
10129 (nvptx_get_drap_rtx): New.
10130 (TARGET_GET_DRAP_RTX): Override.
10131 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
10133 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10135 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
10137 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10139 * configure.ac: Remove uwin* cases.
10140 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
10141 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
10142 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
10143 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
10144 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
10145 i[34567]86-*-uwin*, powerpc-*-beos*.
10147 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
10149 * gencodes.c (gencodes): Print the comma for the preceding
10150 enum value rather than the current one. Use aliased enum values
10151 rather than #defines for compiled-out patterns.
10152 (main): Update accordingly. Replace LAST_INSN_CODE with
10154 * lra.c (insn_code_data): Update accordingly.
10155 (finish_insn_code_data_once, get_static_insn_data): Likewise.
10156 * recog.h (target_recog): Likewise.
10157 (preprocess_insn_constraints): Change parameter to unsigned int.
10158 * recog.c (preprocess_insn_constraints): Likewise.
10159 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
10160 * tree-vect-stmts.c (vectorizable_operation): Simplify.
10162 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
10164 PR rtl-optimization/61657
10165 * loop-iv.c (iv_number_of_iterations): Declare up and down as
10166 unsigned. Remove superflous uint64_t cast.
10168 2014-08-21 Felix Yang <felix.yang@huawei.com>
10169 Jiji Jiang <jiangjiji@huawei.com>
10171 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
10172 argument and get builtin function code directly from CALL.
10173 (gimple_stringop_fixed_value): Modified accordingly.
10174 (gimple_stringops_transform, gimple_stringops_values_to_profile):
10175 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
10177 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
10179 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
10181 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10183 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
10185 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
10186 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
10187 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
10188 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
10189 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
10190 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
10191 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
10192 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
10193 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
10194 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
10196 * match.pd (SIN ) : New Operator.
10197 (TAN) : New Operator.
10198 (mult (SQRT@1 @0) @1) : New simplifier.
10199 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
10200 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10201 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
10202 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
10203 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
10204 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
10205 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
10206 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
10207 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
10208 (rdiv @0 (POW:s @1 @2)) : New simplifier.
10210 2015-08-21 Bin Cheng <bin.cheng@arm.com>
10212 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
10213 loop if EXPR is simplified to const value.
10215 2015-08-21 Yury Gribov <y.gribov@samsung.com>
10217 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
10218 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
10220 2015-08-21 Richard Biener <rguenther@suse.de>
10222 PR middle-end/67285
10223 * gimple-fold.c (replace_stmt_with_simplification): Assert
10224 seq is empty when replacing a call with itself but different
10226 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
10227 a call require that it is const.
10229 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10231 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
10232 * builtins.c (get_object_alignment_2): Adjust.
10233 * varasm.c (align_variable): Likewise.
10234 (get_variable_align): Likewise.
10235 (build_constant_desc): Likewise.
10236 (force_const_mem): Likewise.
10237 * doc/tm.texi.in: Likewise.
10238 * doc/tm.texi: Regenerate.
10240 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10242 * genconfig.c (main): Always define HAVE_cc0.
10243 * recog.c (rest_of_handle_peephole2): Adjust.
10245 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10247 * reorg.c (relax_delay_slots): Don't use #if to check value of
10250 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10252 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
10253 * targhooks.c (default_have_conditional_execution): Adjust.
10255 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10257 * rtl.h (rtvec_all_equal_p): Declare.
10258 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
10259 * rtl.c (rtvec_all_equal_p): New function.
10260 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
10261 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
10262 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
10263 * config/arm/arm.c (neon_vdup_constant): Likewise.
10264 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
10265 * config/tilegx/constraints.md (W, Y): Likewise.
10266 * config/tilepro/constraints.md (W, Y): Likewise.
10267 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
10268 (classify_immediate): Use unwrap_const_vec_duplicate.
10269 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
10270 (reg_or_v2s8bit_operand): Likewise.
10271 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
10272 (reg_or_v4s8bit_operand): Likewise.
10274 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10276 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
10277 (vec_shasigma_be): New #define.
10278 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
10279 (VPMSUMH): Likewise.
10280 (VPMSUMW): Likewise.
10281 (VPMSUMD): Likewise.
10282 (VPMSUM): New BU_P8V_OVERLOAD_2.
10283 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
10284 entries for VEC_MADD and VEC_VPMSUM.
10286 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
10288 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
10289 Multiply argument avr_n_flash by 64 to match unit of "KiB".
10290 (avr_pgm_check_var_decl): Same.
10292 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
10294 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
10295 initialization of HFmode scalar type (float16_t) to...
10296 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
10299 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
10301 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
10302 having an -mfp16-format.
10304 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
10306 * config/i386/predicates.md (vector_all_ones_operand): Use
10307 CONSTM1_RTX to simplify definition.
10309 2015-08-20 Richard Biener <rguenther@suse.de>
10311 * toplev.c (compile_file): Remove loop calling late_global_decl
10313 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
10314 on decls we assembled.
10316 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
10318 * common/config/aarch64/aarch64-common.c
10319 (AARCH64_CPU_NAME_LENGTH): Delete.
10320 (aarch64_option_extension): New.
10321 (all_extensions): Likewise.
10322 (processor_name_to_arch): Likewise.
10323 (arch_to_arch_name): Likewise.
10325 (all_architectures): Likewise.
10326 (aarch64_get_extension_string_for_isa_flags): Likewise.
10327 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
10328 architecture names.
10329 * config/aarch64/aarch64-protos.h
10330 (aarch64_get_extension_string_for_isa_flags): New.
10331 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
10332 (aarch64_option_print): Get the string to print from
10333 aarch64_get_extension_string_for_isa_flags.
10334 (aarch64_declare_function_name): Likewise.
10335 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
10336 (MCPU_TO_MARCH_SPEC): This.
10337 (ASM_CPU_SPEC): Use it.
10338 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
10339 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
10340 (EXTRA_SPEC_FUNCTIONS): Use it.
10342 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
10344 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
10345 expansion when !ISA_HAS_LWL_LWR.
10346 (mips_block_move_straight): Update the size of elements copied to
10347 account for alignment when !ISA_HAS_LWL_LWR.
10348 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
10350 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10352 * expr.c (expand_expr_real_2): Check gimple statement during
10353 LSHIFT_EXPR expand.
10355 2015-08-19 Magnus Granberg <zorry@gentoo.org>
10357 * common.opt (fstack-protector): Initialize to -1.
10358 (fstack-protector-all): Likewise.
10359 (fstack-protector-strong): Likewise.
10360 (fstack-protector-explicit): Likewise.
10361 * configure.ac: Add --enable-default-ssp.
10362 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
10363 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
10365 * doc/install.texi: Document --enable-default-ssp.
10366 * config.in: Regenerated.
10367 * configure: Likewise.
10369 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
10371 PR rtl-optimization/64164
10372 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
10373 (parm_in_stack_slot_p): ... this. Disregard mode, what
10374 matters is whether the parm will live in a pseudo or a stack
10376 (expand_one_ssa_partition): Deal with params without a default
10377 def. Disregard mode.
10378 * cfgexpand.h: Renamed function declaration.
10379 * tree-ssa-coalesce.c: Adjust.
10380 * function.c (split_complex_args): Allocate stack slot for
10381 unassigned parms before splitting.
10382 (parm_in_unassigned_mem_p): New. Use it instead of
10383 parm_maybe_byref_p throughout this file.
10384 (assign_parm_setup_block): Use it. Accept pseudos in the
10385 expand-assigned rtl.
10386 (assign_parm_setup_reg): Drop BLKmode requirement.
10387 (assign_parm_setup_stack): Allocate and fill in the address of
10388 unassigned MEM parms.
10390 2015-08-19 David Sherwood <david.sherwood@arm.com>
10392 * genmodes.c (emit_mode_unit_size_inline): New function.
10393 (emit_mode_unit_precision_inline): New function.
10394 (emit_insn_modes_h): Emit new #define. Emit new functions.
10395 (emit_mode_unit_size): New function.
10396 (emit_mode_unit_precision): New function.
10397 (emit_mode_adjustments): Add mode_unit_size adjustments.
10398 (emit_insn_modes_c): Emit new arrays.
10399 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
10400 use new inline methods.
10402 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10404 * config/aarch64/aarch64.c (bit_count): Delete prototype
10406 (aarch64_print_operand): Use popcount_hwi instead of the above.
10408 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10410 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
10413 2015-08-19 Marek Polacek <polacek@redhat.com>
10415 PR middle-end/67133
10416 * gimple-ssa-isolate-paths.c
10417 (insert_trap_and_remove_trailing_statements): Rename to ...
10418 (insert_trap): ... this. Don't remove trailing statements; split
10420 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
10422 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
10425 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
10426 conditionalize the whole on __GNUC__. Add fallback code
10427 depending neither on undefined nor implementation-defined behaviour.
10429 2015-08-19 Jiong Wang <jiong.wang@arm.com>
10431 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
10432 whitespaces with tab.
10434 2015-08-19 Florian Weimer <fweimer@redhat.com>
10436 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
10437 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
10438 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
10439 Move Name_Ids instantiation to the Prj.Proc package, to avoid
10442 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10444 * config/arm/arm.c (bounds_check): Use %wd print format
10445 for HOST_WIDE_INT arguments.
10447 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
10449 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
10450 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
10451 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
10452 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
10453 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
10454 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
10455 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
10456 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
10457 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
10460 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
10462 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
10463 function.c, graphite-scop-detection.c, haifa-sched.c,
10464 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
10465 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
10466 varasm.c: Remove typedefs of structs.
10468 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10470 * config/rs6000/altivec.h (vec_adde): New define.
10471 (vec_addec): Likewise.
10472 (vec_double): Likewise.
10473 (vec_bperm): Likewise.
10474 (vec_gb): Likewise.
10475 * config/rs6000/rs6000-builtin.def (ADDE): New
10476 BU_ALTIVEC_OVERLOAD_3.
10478 (DOUBLE): New BU_VSX_OVERLOAD_1.
10479 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
10480 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
10481 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
10482 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
10483 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
10484 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
10485 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
10486 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
10487 and P8V_BUILTIN_VEC_VBPERMQ.
10489 2015-08-18 Jason Merrill <jason@redhat.com>
10491 * print-tree.c (print_node): Handle TREE_BINFO.
10493 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10495 PR middle-end/36757
10496 * builtins.c (expand_builtin_signbit): Add asserts to make sure
10497 we can expand BUILT_IN_SIGNBIT inline.
10498 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
10499 * doc/extend.texi: Document the type-generic __builtin_signbit.
10501 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
10503 PR rtl-optimization/67218
10504 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
10505 (simplify_unary_operation_1): Use it.
10507 2015-08-18 Marek Polacek <polacek@redhat.com>
10509 PR middle-end/67222
10510 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
10511 if the call isn't valid.
10512 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
10513 gimple_call_builtin_p.
10514 (call_may_clobber_ref_p_1): Likewise.
10515 (stmt_kills_ref_p): Likewise.
10517 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
10519 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
10520 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
10521 (mips_hard_regno_scratch_ok): Likewise.
10522 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
10523 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
10525 2015-08-18 Bin Cheng <bin.cheng@arm.com>
10527 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
10528 (determine_value_range): Call refine_value_range_using_guard for
10529 each loop initial condition to improve value range.
10531 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
10533 * config/i386/i386.c: Remove include of fibheap.h.
10535 2015-08-17 Richard Biener <rguenther@suse.de>
10537 PR tree-optimization/67221
10538 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
10539 (sccvn_dom_walker::before_dom_children): Mark backedges of
10540 non-executable blocks as not executable.
10542 2015-08-17 David Sherwood <david.sherwood@arm.com>
10544 * config/arm/arm.c (neon_element_bits): Replace call to
10545 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
10546 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
10547 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
10548 (neon_vdup_lane<mode>): Likewise.
10549 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
10550 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
10551 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
10552 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
10553 * config/spu/spu.c (arith_immediate_p): Likewise.
10554 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
10555 * expr.c (expand_expr_real_2): Likewise.
10556 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
10557 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10558 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
10559 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
10561 * fold-const.c (fold_binary_loc): Replace call to
10562 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
10563 GET_MODE_UNIT_PRECISION (m).
10565 2015-08-17 Mike Stump <mikestump@comcast.net>
10567 * config/arm/arm.c (arm_block_move_unaligned_straight):
10568 Emit normal move instead of unaligned load when source or destination
10569 are appropriately aligned.
10571 2015-08-17 Richard Biener <rguenther@suse.de>
10572 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10574 PR middle-end/16107
10575 * match.pd (div (coss (op @0) : New simplifier.
10577 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
10579 PR rtl-optimization/64164
10581 PR middle-end/66983
10582 PR rtl-optimization/67000
10583 PR middle-end/67034
10584 PR middle-end/67035
10585 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10586 * tree-ssa-copyrename.c: Removed.
10587 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10588 -ftree-coalesce-vars.
10589 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10590 * common.opt (ftree-copyrename): Ignore.
10591 (ftree-coalesce-inlined-vars): Likewise.
10592 * doc/invoke.texi: Remove the ignored options above.
10593 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10594 * tree-ssa-coalesce.h: ... here.
10595 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10596 headers required by it.
10597 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10598 across variables when flag_tree_coalesce_vars. Check register
10599 use and promoted modes to allow coalescing. Do not coalesce
10600 maybe-byref parms with SSA_NAMEs of other variables, or
10601 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
10602 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10603 with its member functions to tree-ssa-coalesce.c.
10604 (var_map_base_init): Likewise. Renamed to
10605 compute_samebase_partition_bases.
10606 (partition_view_normal): Drop want_bases parameter.
10607 (partition_view_bitmap): Likewise.
10608 * tree-ssa-live.h: Adjust declarations.
10609 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
10610 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10611 default defs at the entry point.
10612 (dump_part_var_map): New.
10613 (compute_optimized_partition_bases): New, called by...
10614 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10615 of compute_samebase_partition_bases. Adjust.
10616 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10617 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
10618 (ssa_default_def_partition): New.
10619 (get_rtl_for_parm_ssa_default_def): New.
10620 (align_local_variable, add_stack_var): Support anonymous SSA
10622 (defer_stack_allocation): Likewise. Declare earlier.
10623 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10624 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10625 Do no record deferred-allocation marker in
10626 SA.partition_to_pseudo.
10627 (expand_stack_vars): Adjust check for the marker in it.
10628 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10629 redundant MEM attr setting.
10630 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10632 (expand_one_stack_var): ... this. New wrapper to check and
10633 skip already expanded SSA partitions.
10634 (record_alignment_for_reg_var): New, factored out of...
10635 (expand_one_var): ... this.
10636 (expand_one_ssa_partition): New.
10637 (adjust_one_expanded_partition_var): New.
10638 (expand_one_register_var): Check and skip already expanded SSA
10640 (expand_used_vars): Don't create DECLs for anonymous SSA
10641 names. Expand all SSA partitions, then adjust all SSA names.
10642 (pass::execute): Replace the loops that set
10643 SA.partition_to_pseudo from partition leaders and cleared
10644 DECL_RTL for multi-location variables, and that which used to
10645 rename vars and set attrs, with one that clears DECL_RTL and
10646 checks that PARMs and RESULTs default_defs match DECL_RTL.
10647 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10648 * emit-rtl.c: Include stor-layout.h.
10649 (set_reg_attrs_for_parm): Handle NULL decl.
10650 (set_reg_attrs_for_decl_rtl): Take mode from expression if
10652 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
10653 rather than its possibly-NULL DECL.
10654 * explow.c (promote_ssa_mode): New.
10655 * explow.h (promote_ssa_mode): Declare.
10656 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10657 (read_complex_part): Export.
10658 * expr.h (read_complex_part): Declare.
10659 * cfgexpand.h (parm_maybe_byref_p): Declare.
10660 * function.c: Include cfgexpand.h.
10661 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10662 (use_register_for_parm_decl): Wrapper for the above to
10663 special-case the result_ptr.
10664 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10665 (split_complex_args): Take assign_parm_data_all argument.
10666 Pass it to rtl_for_parm. Set up rtl and context for split
10667 args. Reset complex parm before fetching its default decl
10669 (assign_parms_unsplit_complex): Use the default-def complex
10670 parm rtl if it matches the components.
10671 (assign_parms_augmented_arg_list): Adjust.
10672 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10673 multiple locations. Recognize split complex args.
10674 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10675 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10676 (assign_parm_setup_block): Prefer SSA-assigned location, and
10677 fill in its address if the memory location of a maybe-byref
10678 parm was not assigned by cfgexpand.
10679 (assign_parm_setup_reg): Likewise. Adjust its mode as
10680 needed. Use entry_parm for equiv if stack_parm is NULL. Make
10681 sure passed_pointer parms don't need conversion. Copy address
10682 or value as needed.
10683 (assign_parm_setup_stack): Prefer SSA-assigned location.
10684 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10685 rtl before testing for pointer bounds. Special-case result_ptr.
10686 (expand_function_start): Maybe reset DECL_RTL of result.
10687 Prefer SSA-assigned location for result and static chain.
10688 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
10689 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
10690 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10691 anonymous SSA names. Use promote_ssa_mode.
10692 (get_temp_reg): Likewise.
10693 (remove_ssa_form): Adjust.
10694 * stor-layout.c (layout_decl): Don't set mem attributes of
10696 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10697 and get its reg_usage for reg invalidation.
10698 (compute_bb_dataflow): Pass it insn.
10699 (emit_notes_in_bb): Likewise.
10701 2015-08-14 Marek Polacek <polacek@redhat.com>
10703 * tree-core.h (tree_base): Fix typo.
10705 2015-08-14 Marek Polacek <polacek@redhat.com>
10707 PR middle-end/67133
10708 * gimple.c (infer_nonnull_range_by_attribute): Check that the
10709 nonnull argument position is not outside function arguments.
10711 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
10714 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
10715 'lconst_atomic' with 'const_atomic'.
10716 (atomic_fetch_<optab><mode>): Likewise.
10717 (atomic_<optab>_fetch<mode>): Likewise.
10718 * config/aarch64/iterators.md (lconst-atomic): Move below
10720 (const_atomic): New.
10722 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
10723 Bernd Schmidt <bernds@codesourcery.com>
10725 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
10727 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
10728 (DWARF2_DEBUGGING_INFO): Don't define.
10729 * debug.h (dwarf2_lineno_debug_hooks): Declare.
10730 * toplev.c (process_options): Add a case for it.
10731 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
10732 (dwarf2out_init): Skip most initializations if
10733 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
10735 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
10736 DWARF2_LINENO_DEBUGGING_INFO.
10737 * opts.c (set_debug_level): Likewise.
10739 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
10741 * config/arm/types.md (is_neon_type): Add missing types.
10743 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10745 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
10747 * config/i386/i386.c (PTA_SKYLAKE): New macros.
10748 (processor_alias_table): Add skylake description.
10749 (enum processor_model): Add skylake processor.
10750 (arch_names_table): Add skylake record.
10751 * doc/invoke.texi: Add skylake item.
10753 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
10755 * ira-int.h: Include recog.h.
10756 * ira-build.c: Don't include recog.h.
10757 * ira-color.c: Likewise.
10758 * ira-conflicts.c: Likewise.
10759 * ira-costs.c: Likewise.
10760 * ira-emit.c: Likewise.
10761 * ira-lives.c: Likewise.
10763 * sched-deps.c: Likewise.
10764 * sel-sched.c: Likewise.
10765 * target-globals.c: Likewise.
10767 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
10770 * reload1.c (elimination_costs_in_insn): Make it obvious to the
10771 compiler that the n_dups and n_operands loop bounds are invariant.
10773 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10775 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
10776 expressions in A and B.
10778 2015-08-13 Richard Biener <rguenther@suse.de>
10780 * tree.c (nonnull_arg_p): Move from ...
10781 * tree-vrp.c (nonnull_arg_p): ... here.
10782 * tree.h (nonnull_arg_p): Declare.
10783 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
10784 here, register ptr != 0 for nonnull_arg_p pointer arguments.
10785 Properly initialize static chain and by-reference result pointer.
10786 (run_scc_vn): Adjust.
10788 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10790 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
10793 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10795 * config/aarch64/aarch64-protos.h
10796 (aarch64_gen_atomic_cas): Declare.
10797 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
10798 Choose appropriate instruction pattern for the target.
10799 (aarch64_gen_atomic_cas): New.
10800 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
10801 (atomic_compare_and_swap<mode>_1): Rename to
10802 aarch64_compare_and_swap<mode>. Fix some indentation.
10803 (aarch64_compare_and_swap<mode>_lse): New.
10804 (aarch64_atomic_cas<mode>): New.
10806 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
10808 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
10811 2015-08-13 Richard Biener <rguenther@suse.de>
10813 PR tree-optimization/67191
10814 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
10815 assert we value-numbered last stmts operand because it can validly
10816 trigger for unreachable code.
10818 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10820 PR rtl-optimization/67103
10821 * ifcvt.c (noce_try_store_flag_constants): Move
10822 x = (-(test != 0) & (b - a)) + a transformation to...
10823 (noce_try_cmove): ... Here. Try it if normal conditional
10826 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
10828 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
10830 * config/mips/mips.md (processor): Remove w32 and w64.
10832 2015-08-13 Richard Biener <rguenther@suse.de>
10834 PR tree-optimization/66502
10835 PR tree-optimization/67167
10836 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
10837 backedge arguments.
10838 (vn_phi_lookup): Adjust.
10839 (vn_phi_insert): Likewise.
10840 (visit_phi): Prefer to value-number to another PHI node
10841 over value-numbering to a PHI argument.
10842 (init_scc_vn): Mark DFS back edges.
10844 2015-08-13 Richard Biener <rguenther@suse.de>
10846 * gimple.h (gcall::code_): New constant static member.
10847 (gcond::code_): Likewise.
10848 * gimple.c (gcall::code_): Define.
10849 (gcond::code_): Likewise.
10850 (is_a_helper <const gcond *>): Add.
10851 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
10852 and forward to a new gcall overload with less checking and a
10853 cheaper way to access the operand.
10854 (gimple_call_lhs_ptr): Likewise.
10855 (gimple_call_set_lhs): Likewise.
10856 (gimple_call_internal_p): Likewise.
10857 (gimple_call_with_bounds_p): Likewise.
10858 (gimple_call_set_with_bounds): Likewise.
10859 (gimple_call_internal_fn): Likewise.
10860 (gimple_call_set_ctrl_altering): Likewise.
10861 (gimple_call_ctrl_altering_p): Likewise.
10862 (gimple_call_fntype): Likewise.
10863 (gimple_call_fn): Likewise.
10864 (gimple_call_fn_ptr): Likewise.
10865 (gimple_call_set_fndecl): Likewise.
10866 (gimple_call_fndecl): Likewise.
10867 (gimple_call_chain): Likewise.
10868 (gimple_call_num_args): Likewise.
10869 (gimple_call_arg): Likewise.
10870 (gimple_call_arg_ptr): Likewise.
10871 (gimple_call_set_arg): Likewise.
10872 (gimple_call_noreturn_p): Likewise.
10873 (gimple_cond_code): Likewise.
10874 (gimple_cond_lhs): Likewise.
10875 (gimple_cond_rhs): Likewise.
10876 (gimple_has_lhs): Reduce checking.
10878 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10880 PR middle-end/25529
10881 * match.pd (div (mult @0 @1) @1) : New simplifier.
10883 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10886 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
10887 predicate to allow construction of vector constants using the
10888 VSLDOI vector shift instruction.
10890 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
10893 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
10894 the number of bytes to be shifted left and filled in with either
10895 all zero or all one bits.
10896 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
10898 (output_vec_const_move): On power8, generate XXLORC to generate
10899 a vector constant with all 1's. Do a split if we need to use a
10900 VSLDOI instruction.
10902 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
10903 properly test for the MSB.
10905 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
10906 vector constants that can be created with VSLDOI.
10908 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
10911 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
10912 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
10913 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
10914 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
10915 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
10916 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10917 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
10918 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
10919 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
10921 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
10923 * config/xtensa/constraints.md (define_constraint "Y"): New
10925 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
10926 * config/xtensa/linux.h (ASM_SPEC): Likewise.
10927 * config/xtensa/predicates.md (move_operand): Match constants
10928 and symbols in the presence of TARGET_AUTO_LITPOOLS.
10929 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
10930 immediate references to TLS data.
10931 (xtensa_emit_move_sequence): Don't force constants to memory in
10932 the presence of TARGET_AUTO_LITPOOLS.
10933 (print_operand): Add 'y' format, same as default, but capable of
10934 printing SF mode constants as well.
10935 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
10936 (movsf_internal): Add movi pattern that loads literal.
10937 (movsf, movdf): Don't force constants to memory in the presence
10938 of TARGET_AUTO_LITPOOLS.
10939 (movdf_internal): Add 'Y' constraint.
10940 * config/xtensa/xtensa.opt (mauto-litpools): New option.
10941 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
10943 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10945 * config/arm/arm-fpus.def: Replace booleans with feature flags.
10947 * config/arm/arm.c (ARM_FPU): Update macro.
10948 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
10949 (TARGET_FP16): Likewise.
10950 (TARGET_CRYPTO): Likewise.
10951 (TARGET_NEON): Likewise.
10952 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
10955 2015-08-12 Tom de Vries <tom@codesourcery.com>
10959 * doc/install.texi: Remove --with_host_libstdcxx item. Update
10960 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
10961 accordingly. Mention default for --with-stage1-ldflags.
10963 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
10965 * config/arm/arm.h (arm_fpu_feature_set): New.
10966 (ARM_FPU_FSET_HAS): New.
10967 (FPU_FL_NONE): New.
10968 (FPU_FL_NEON): New.
10969 (FPU_FL_FP16): New.
10970 (FPU_FL_CRYPTO): New.
10972 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10974 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
10975 after -mcmodel=large -fPIC sorry.
10977 2015-08-12 Richard Biener <rguenther@suse.de>
10979 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
10980 comparison operand order and commutative ternary op operand order.
10981 (sccvn_dom_walker::cond_stack): New state to track temporary
10983 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
10985 (sccvn_dom_walker::record_cond): Add a single temporary conditional
10987 (sccvn_dom_walker::record_conds): Add a temporary conditional
10988 expressions and all related expressions also true/false.
10989 (sccvn_dom_walker::before_dom_children): Record temporary
10990 expressions based on the controlling condition of a single
10991 predecessor. When trying to simplify a conditional statement
10992 lookup expressions we might have inserted earlier.
10994 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
10997 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
10998 to ARM core registers.
11000 2015-08-12 Nathan Sidwell <nathan@acm.org>
11002 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
11003 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
11005 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
11007 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
11008 line with comments.
11009 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
11011 2015-08-12 Richard Biener <rguenther@suse.de>
11013 * gimple.h (remove_pointer): New trait.
11014 (GIMPLE_CHECK2): New inline template function.
11015 (gassign::code_): New constant static member.
11016 (is_a_helper<const gassign *>): Add.
11017 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
11018 and forward to a new gassign overload with less checking and a
11019 cheaper way to access the operand.
11020 (gimple_assign_lhs_ptr): Likewise.
11021 (gimple_assign_set_lhs): Likewise.
11022 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
11024 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
11026 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
11028 (gimple_assign_rhs_code): Likewise.
11029 * gimple.c (gassign::code_): Define.
11031 2015-08-12 Richard Biener <rguenther@suse.de>
11033 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11034 Eliminate edges marked as not executable by SCCVN.
11035 * tree-ssa-sccvn.c: Include gimple-iterator.h.
11036 (cond_dom_walker): Rename to sccvn_dom_walker.
11037 (sccvn_dom_walker::before_dom_children): Value-number defs
11039 (run_scc_vn): Remove loop value-numbering all SSA names.
11040 Drop not visited SSA names to varying.
11042 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
11044 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
11045 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
11046 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
11047 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
11048 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
11049 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
11050 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
11051 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
11052 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
11054 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
11057 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
11058 to enum feature_priority and feature_list.
11059 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
11060 and isa_names_table.
11062 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
11064 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
11065 vect_induction_def.
11067 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
11071 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
11072 account when deciding what was the command-line status.
11074 2015-08-11 Nathan Sidwell <nathan@acm.org>
11076 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
11078 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
11079 we're not the only contributor to target phi.
11081 2015-08-11 Jiong Wang <jiong.wang@arm.com>
11083 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
11086 2015-08-11 Tom de Vries <tom@codesourcery.com>
11088 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
11090 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
11092 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
11094 * config/i386/i386.md (cpu): Remove knl.
11096 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
11099 PR middle-end/66332
11100 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
11101 open-coded sequence.
11102 * omp-low.c (oacc_process_reduction_data): Remove handline of
11103 GOMP_DEVICE_HOST_NONSHM.
11105 * lto-streamer-in.c (lto_input_mode_table): Adjust to
11106 GET_MODE_INNER changes.
11108 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
11109 Ilya Verbin <ilya.verbin@intel.com>
11111 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
11113 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11115 * doc/options.texi (EnabledBy): Document that the argument must be
11117 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
11118 Not enabled by -Wall.
11119 * optc-gen.awk: Give nicer error messages. Detect if the argument
11120 of EnabledBy is not a Common option.
11121 * common.opt (Wnull-dereference): Not enabled by -Wall.
11122 * opt-functions.awk (lang_enabled_by): Nicer error messages.
11124 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
11126 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
11127 model == 0x4f as Broadwell.
11129 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
11131 PR rtl-optimization/67028
11132 * combine.c (simplify_comparison): Fix comment. Rearrange code.
11133 Add test to see if a const_int fits in the new mode.
11135 2015-08-07 DJ Delorie <dj@redhat.com>
11137 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
11139 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
11141 PR rtl-optimization/67029
11142 * ira-color.c: Include "recog.h" before including "ira-int.h".
11143 * target-globals.c: Likewise.
11144 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
11145 adds an alternative_mask argument and use it instead of
11146 preferred_alternatives.
11147 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
11148 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
11149 * sched-deps.c: Include "ira-int.h" after including "ira.h".
11150 (sched_analyze_insn): Update call to
11151 ira_implicitly_set_insn_hard_regs.
11152 * sel-sched.c: Include "ira-int.h" after including "ira.h".
11153 (implicit_clobber_conflict_p): Update call to
11154 ira_implicitly_set_insn_hard_regs.
11156 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11158 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
11160 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
11163 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
11164 currently_expanding_to_rtl is set.
11166 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
11168 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
11169 * configure: Regenerate.
11171 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11172 Jiong Wang <jiong.wang@arm.com>
11174 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
11175 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
11176 (REG_CLASS_NAMES): Likewise.
11177 (REG_CLASS_CONTENTS): Likewise.
11178 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
11179 (aarch64_register_move_cost): Likewise.
11180 (aarch64_load_symref_appropriately): Invoke the new added pattern if
11182 * config/aarch64/constraints.md (Uc0): New constraint.
11184 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11186 * config/aarch64/constraints.md (Usf): Add the test of
11187 aarch64_is_noplt_call_p.
11189 2015-08-06 Jiong Wang <jiong.wang@arm.com>
11191 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
11193 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
11194 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
11195 (call_symbol): Likewise.
11197 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11199 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
11200 for vectorizing multiplication patterns.
11201 * tree-vectorizer.h: Adjust the number of patterns.
11203 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
11205 * config/i386/sse.md (*vec_concatv2df): Declare added
11206 alternatives as sselog type.
11208 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11210 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
11213 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11215 * config/s390/s390.c (s390_expand_tbegin): Expand either
11216 tbegin_1_z13 or tbegin_1 depending on VX flag.
11217 * config/s390/s390.md ("tbegin_1_z13"): New expander.
11219 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11221 * config/s390/s390.opt: Clarify description for -mzvector
11222 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
11225 2015-08-06 Richard Biener <rguenther@suse.de>
11227 * gimple.h (gimple_call_set_fn): Access op member directly.
11228 (gimple_call_chain_ptr): Likewise.
11229 (gimple_call_set_chain): Likewise.
11230 (gimple_cond_lhs_ptr): Likewise.
11231 (gimple_cond_set_lhs): Likewise.
11232 (gimple_cond_rhs_ptr): Likewise.
11233 (gimple_cond_set_rhs): Likewise.
11234 (gimple_cond_true_label): Likewise.
11235 (gimple_cond_set_true_label): Likewise.
11236 (gimple_cond_set_false_label): Likewise.
11237 (gimple_cond_false_label): Likewise.
11238 (gimple_label_label): Likewise.
11239 (gimple_label_set_label): Likewise.
11240 (gimple_goto_set_dest): Likewise.
11241 (gimple_asm_input_op): Likewise.
11242 (gimple_asm_input_op_ptr): Likewise.
11243 (gimple_asm_set_input_op): Likewise.
11244 (gimple_asm_output_op): Likewise.
11245 (gimple_asm_output_op_ptr): Likewise.
11246 (gimple_asm_set_output_op): Likewise.
11247 (gimple_asm_clobber_op): Likewise.
11248 (gimple_asm_set_clobber_op): Likewise.
11249 (gimple_asm_label_op): Likewise.
11250 (gimple_asm_set_label_op): Likewise.
11251 (gimple_switch_index): Likewise.
11252 (gimple_switch_index_ptr): Likewise.
11253 (gimple_return_retval_ptr): Likewise.
11254 (gimple_return_retval): Likewise.
11255 (gimple_return_set_retval): Likewise.
11256 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
11257 (gimple_switch_label): Likewise.
11258 (gimple_switch_set_label): Likewise.
11260 2015-08-06 Richard Biener <rguenther@suse.de>
11262 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
11263 bool comparison canonicalization and restrict to integers.
11265 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
11267 * coretypes.h (enum symbol_visibility): Relocate here.
11268 * flag-types.h (enum symbol_visibility): Remove.
11269 * tree-core.h (enum symbol_visibility): Remove.
11271 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
11274 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
11275 for no_split_stack function attribute along with
11277 (rs6000_expand_split_stack_prologue): Likewise.
11279 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
11280 Jeff Law <law@redhat.com>
11283 * doc/invoke.texi (Wnull-dereference): New.
11284 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
11285 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
11286 Warn for potential NULL dereferences.
11287 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
11288 * ubsan.c (instrument_nonnull_arg): Call
11289 infer_nonnull_range_by_attribute.
11290 (instrument_nonnull_return): Likewise.
11291 * common.opt (Wnull-dereference); New.
11292 * gimple.c (infer_nonnull_range): Remove bool arguments.
11293 (infer_nonnull_range_by_dereference): New.
11294 (infer_nonnull_range_by_attribute): New.
11295 * gimple.h: Update declarations.
11297 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11299 * gensupport.c (sequence_num): Replace with...
11300 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
11301 ...these new variables.
11302 (init_rtx_reader_args_cb): Update accordingly.
11303 (get_num_code_insns): Likewise.
11304 (read_md_rtx): Rework to use a while loop and get_c_test.
11305 Use the new counters. Remove redundant DEFINE_SUBST case.
11306 * genoutput.c (gen_split): Delete.
11307 (main): Don't call it.
11309 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11311 * gensupport.h (get_c_test): Declare.
11312 * gensupport.c (get_c_test): New function.
11313 * genconditions.c (main): Use it.
11314 * genrecog.c (validate_pattern): Likewise.
11315 (match_pattern_1): Likewise. Remove c_test argument.
11316 (match_pattern): Update accordingly and remove c_test argument.
11317 (main): Update accordingly.
11319 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11321 * gensupport.h (get_num_insn_codes): Declare.
11322 * gensupport.c (get_num_insn_codes): New function.
11323 * genattrtab.c (optimize_attrs): Rename max_insn_code to
11325 (main): Likewise. Use get_num_insn_codes.
11326 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
11328 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11330 PR middle-end/66311
11331 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
11332 is zero- rather than sign-extended.
11334 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
11336 * target-insns.def (can_extend): Delete.
11338 2015-08-05 Richard Biener <rguenther@suse.de>
11340 PR tree-optimization/67121
11341 * tree-if-conv.c (combine_blocks): Clear range-info produced
11342 by stmts no longer executed conditionally.
11344 2015-08-05 Nick Clifton <nickc@redhat.com>
11346 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
11347 to allow identical far pointers to remain.
11349 2015-08-05 Richard Biener <rguenther@suse.de>
11351 PR middle-end/67120
11352 * match.pd: Compare address bases with == if they are decls
11353 or SSA names, not operand_equal_p. Otherwise fail.
11355 2015-08-05 Richard Biener <rguenther@suse.de>
11357 PR tree-optimization/67055
11358 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
11361 * g++.dg/torture/pr67055.C: New testcase.
11363 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11365 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
11367 (define_attr "enabled"): Handle avx521vl and noavx512vl.
11368 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
11369 AVX-512 alternative out of SSE.
11370 (define_insn "*vec_concatv2df"): Ditto.
11372 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
11374 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
11375 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
11376 CODE_FOR_avx_ptestv4di.
11377 * config/i386/sse.md (define_mode_iterator V_AVX): New.
11378 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
11379 (define_insn "avx_ptest256"): Merge this ...
11380 (define_insn "sse4_1_ptest"): And this ...
11381 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
11383 2015-08-05 Richard Biener <rguenther@suse.de>
11385 PR tree-optimization/67109
11386 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
11387 against too big groups. Print whether this is a load or store
11388 group. Rename from ...
11389 (vect_analyze_group_access): ... this which is now a wrapper
11390 dissolving an invalid group.
11391 (vect_analyze_data_ref_accesses): Print whether this is a load
11394 2015-08-05 Richard Biener <rguenther@suse.de>
11396 PR middle-end/67107
11397 * match.pd: Guard const_binop result checking against NULL_TREE
11400 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
11402 * cse.c (cse_insn): Restoring old behaviour for src_eqv
11403 when dest and value in the REG_EQUAL are same and dest
11404 is STRICT_LOW_PART.
11406 2015-08-04 Anatoly Sokolov <aesok@post.ru>
11408 * config/moxie/moxie.h (PRINT_OPERAND,
11409 PRINT_OPERAND_ADDRESS): Remove macros.
11410 * config/moxie/moxie-protos.h (moxie_print_operand,
11411 moxie_print_operand_address): Remove declaration.
11412 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
11413 TARGET_PRINT_OPERAND_ADDRESS): Define.
11414 (moxie_print_operand, moxie_print_operand_address): Make static.
11416 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
11419 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
11420 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
11422 2015-08-04 Richard Biener <rguenther@suse.de>
11424 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
11426 (dt_operand::gen_gimple_expr): Adjust.
11428 2015-08-04 Richard Biener <rguenther@suse.de>
11430 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
11431 bool compares on RHS.
11432 * match.pd: Add X ==/!= !X is false/true pattern.
11434 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
11436 * config/aarch64/aarch64.c: Change inner loop statement cost
11437 to be consistent with other targets.
11439 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
11441 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
11444 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
11446 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
11447 (machine_function): Remove pseudos field.
11449 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11451 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11452 Exit early and use target_option_current_node if processing current
11455 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11457 * doc/extend.texi (AArch64 Function Attributes): New node.
11458 (AArch64 Pragmas): Likewise.
11460 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11462 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
11463 Initialize simd builtins if TARGET_SIMD.
11464 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11465 Make sure that the builtins are initialized only once no matter how
11466 many times the function is called.
11467 (aarch64_init_builtins): Unconditionally initialize crc builtins.
11468 (aarch64_relayout_simd_param): New function.
11469 (aarch64_simd_expand_args): Use above during argument expansion.
11470 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
11471 simd builtins if TARGET_SIMD.
11472 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
11474 (aarch64_relayout_simd_types): Likewise.
11476 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11478 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
11479 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
11480 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
11481 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11483 (aarch64_reset_previous_fndecl): New function.
11484 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
11486 * config/aarch64/aarch64-c.c: New file.
11487 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
11488 Push and pop options at beginning and end. Remove ifdef
11489 __ARM_FEATURE_CRC32.
11490 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
11491 Add pragma +nothing+simd and +nothing+crypto where appropriate.
11492 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
11493 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
11495 (aarch64_register_pragmas): Likewise.
11496 (aarch64_reset_previous_fndecl): Likewise.
11497 (aarch64_process_target_attr): Likewise.
11498 (aarch64_override_options_internal): Likewise.
11500 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11502 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
11504 (aarch64_can_inline_p): Likewise.
11505 (TARGET_CAN_INLINE_P): Define.
11507 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11509 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
11510 Remove static. Handle OPT_mgeneral_regs_only,
11511 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
11512 OPT_momit_leaf_frame_pointer.
11513 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
11514 (aarch64_attr_opt_type): New enum.
11515 (aarch64_attribute_info): New struct.
11516 (aarch64_handle_attr_arch): New function.
11517 (aarch64_handle_attr_cpu): Likewise.
11518 (aarch64_handle_attr_tune): Likewise.
11519 (aarch64_handle_attr_isa_flags): Likewise.
11520 (aarch64_attributes): New table.
11521 (aarch64_process_one_target_attr): New function.
11522 (num_occurences_in_str): Likewise.
11523 (aarch64_process_target_attr): Likewise.
11524 (aarch64_option_valid_attribute_p): Likewise.
11525 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11526 * config/aarch64/aarch64-protos.h: Include input.h
11527 (aarch64_handle_option): Declare prototype.
11529 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11531 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
11532 * config/aarch64/aarch64.c: Include target-globals.h
11533 (aarch64_previous_fndecl): New variable.
11534 (aarch64_set_current_function): New function.
11535 (TARGET_SET_CURRENT_FUNCTION): Define.
11537 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11539 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
11540 (explicit_arch): Likewise.
11541 (x_aarch64_isa_flags): Likewise.
11542 (mgeneral-regs-only): Mark as Save.
11543 (mfix-cortex-a53-835769): Likewise.
11544 (mcmodel=): Likewise.
11545 (mstrict-align): Likewise.
11546 (momit-leaf-frame-pointer): Likewise.
11547 (mtls-dialect): Likewise.
11548 (master=): Likewise.
11549 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
11550 (aarch64_isa_flags): Remove extern declaration.
11551 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
11552 to indicate success or failure.
11553 (aarch64_validate_march): Likewise.
11554 (aarch64_validate_mtune): Likewise.
11555 (aarch64_isa_flags): Delete.
11556 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
11557 instead of aarch64_isa_flags.
11558 (aarch64_get_tune_cpu): New function.
11559 (aarch64_get_arch): Likewise.
11560 (aarch64_override_options): Use above and set up explicit_tune_core
11562 (aarch64_print_extension): Move earlier in file. Add isa_flags
11563 argument and use that instead of the global aarch64_isa_flags.
11564 (aarch64_option_save): New function.
11565 (aarch64_option_restore): Likewise.
11566 (aarch64_option_print): Likewise.
11567 (aarch64_declare_function_name): Likewise.
11568 (aarch64_start_file): Delete.
11569 (TARGET_ASM_FILE_START): Do not define.
11570 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
11571 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
11574 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11576 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
11577 flag_omit_leaf_frame_pointer to 2.
11579 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11581 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
11583 (TARGET_FIX_ERR_A53_835769): New macro.
11584 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
11585 handling of opts->x_aarch64_fix_a53_err835769.
11586 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
11587 than aarch64_fix_a53_err835769.
11588 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
11589 * config/aarch64/aarch64-linux.h: Likewise.
11591 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
11593 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
11594 ix86_expand_int_movcc as boolean.
11596 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11598 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
11599 (aarch64_cpu_string): Likewise.
11600 (aarch64_tune_string): Likewise.
11601 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
11602 (aarch64_parse_extension): Return aarch64_parse_opt_result.
11603 Add extra argument to put result into.
11604 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
11605 (aarch64_parse_cpu): Add arguments to put results into. Return
11606 aarch64_parse_opt_result.
11607 (aarch64_parse_tune): Likewise.
11608 (aarch64_override_options_after_change_1): New function.
11609 (aarch64_override_options_internal): New function.
11610 (aarch64_validate_mcpu): Likewise.
11611 (aarch64_validate_march): Likewise.
11612 (aarch64_validate_mtune): Likewise.
11613 (aarch64_override_options): Update to reflect above changes.
11614 Move some logic into aarch64_override_options_internal.
11615 Initialize target_option_default_node and target_option_current_node.
11616 (aarch64_override_options_after_change): Move logic into
11617 aarch64_override_options_after_change_1 and call it with global_options.
11618 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
11619 flag values from that.
11621 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11623 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
11624 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
11625 * config/aarch64/aarch64.c (struct processor): Add arch field.
11626 (all_architectures): Handle above, move above all_cores.
11627 (all_cores): Handle above.
11628 (aarch64_parse_arch): Handle above changes.
11629 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
11630 above. Update comments.
11631 (armv8.1-a): Likewise.
11632 * config/aarch64/aarch64-cores.def: Update according to above.
11633 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
11634 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
11635 aarch64_arch_driver_info.
11637 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11639 * config/aarch64/aarch64.c (struct processor): Add ident field.
11640 Rename core sched_core.
11641 (all_cores): Handle above changes.
11642 (all_architectures): Likewise.
11643 (aarch64_parse_arch): Likewise.
11644 (aarch64_override_options): Likewise.
11646 2015-08-04 Richard Biener <rguenther@suse.de>
11648 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
11649 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
11650 comparisons embedded in [VEC_]COND_EXPRs.
11652 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
11654 * tree-if-conv.c: Fix various typos in comments.
11655 * tree-vect-stmts.c: Likewise.
11657 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
11659 PR tree-optimization/67043
11660 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
11661 preheader after hoisting invariant in it.
11662 (find_defs): Force recomputation of all luids.
11664 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
11666 * config/rs6000/htm.md (tabort.): Restrict the source operand to
11667 using a base register.
11669 2015-08-03 David Malcolm <dmalcolm@redhat.com>
11671 * main.c (main): Pass in NULL for toplev's external_timer.
11672 * timevar.c: Include coretypes.h.
11673 (class timer::named_items): New.
11674 (timer::named_items::named_items): New.
11675 (timer::named_items::~named_items): New.
11676 (timer::named_items::push): New.
11677 (timer::named_items::pop): New.
11678 (timer::named_items::print): New.
11679 (timer::timer): Initialize field "m_jit_client_items".
11680 (timer::~timer): New.
11681 (timer::push): Move bulk of implementation to...
11682 (timer::push_internal): ...here. New function.
11683 (timer::pop): Move bulk of implementation to...
11684 (timer::pop_internal): ...here. New function.
11685 (timer::push_client_item): New.
11686 (timer::pop_client_item): New.
11687 (timer::print_row): New function, taken from timer::print.
11688 (timer::print): Print "GCC items" header if we also have client
11689 items. Move row-printing to timer::print_row. Print any client
11691 (timer::get_topmost_item_name): New method.
11692 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
11693 (TV_JIT_CLIENT_CODE): New.
11694 * timevar.h (timer::push_client_item): New declaration.
11695 (timer::pop_client_item): New declaration.
11696 (timer::get_topmost_item_name): New method.
11697 (timer::push_internal): New declaration.
11698 (timer::pop_internal): New declaration.
11699 (timer::print_row): New declaration.
11700 (timer::named_items): New declaration.
11701 (timer::m_jit_client_items): New field.
11702 (timer): Add friend class named_items.
11703 (auto_timevar::auto_timevar): Add timer param.
11704 (auto_timevar::~auto_timevar): Use field "m_timer".
11705 (auto_timevar::m_timer): New field.
11706 * toplev.c (initialize_rtl): Add g_timer as param when
11707 constructing auto_timevar instance.
11708 (toplev::toplev): Add "external_timer" param, and use it to
11709 initialize the "g_timer" global if non-NULL.
11710 (toplev::~toplev): If this created "g_timer", delete it.
11711 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
11712 with "external_timer" timer *.
11714 2015-08-03 Alexander Basov <coohpt@gmail.com>
11716 PR middle-end/64744
11717 PR middle-end/48470
11718 PR middle-end/43404
11719 * cfgexpand.c (expand_one_var): Add check if stack is going to
11720 be used in naked function.
11721 * expr.c (expand_expr_addr_expr_1): Remove excess checking
11722 whether expression should not reside in MEM.
11723 * function.c (use_register_for_decl): Do not use registers for
11724 non-register things (volatile, float, BLKMode) in naked functions.
11726 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
11729 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
11730 Adjust splits to match new pattern.
11732 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
11734 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
11737 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
11738 point in VSX registers.
11740 * config/rs6000/constraints.md (wb constraint): Document unused
11742 (we constraint): Likewise.
11743 (wo constraint): Likewise.
11744 (wp constraint): New constraint for IEEE 128-bit floating point in
11746 (wq constraint): Likewise.
11748 * config/rs6000/predicates.md (easy_fp_constant): Add support for
11749 IEEE 128-bit floating point in VSX registers.
11750 (easy_scalar_constant): Likewise.
11752 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
11753 constraints (wp, wq) for IEEE 128-bit floating point in VSX
11755 (rs6000_init_hard_regno_mode_ok): Likewise.
11757 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
11758 floating point in VSX registers.
11761 (VSX_M2): Likewise.
11767 (vsx_le_permute_<mode>): Add support to properly swap bytes for
11768 IEEE 128-bit floating point in VSX registers on little endian.
11769 (vsx_le_undo_permute_<mode>): Likewise.
11770 (vsx_le_perm_load_<mode>): Likewise.
11771 (vsx_le_perm_store_<mode>): Likewise.
11772 (splitters for IEEE 128-bit fp moves): Likewise.
11774 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
11777 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
11778 floating point in VSX registers.
11781 * doc/md.text (Machine Constraints): Document wp and wq
11782 constraints on PowerPC.
11784 2015-08-03 Jeff Law <law@redhat.com>
11786 PR middle-end/66314
11787 PR gcov-profile/66899
11788 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
11789 iterate over the jump threading paths when an element in the
11790 jump threading paths array is eliminated.
11792 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
11794 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
11796 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
11798 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
11799 is_use_properly_guarded the variable def_preds. Free its
11800 contents before returning.
11801 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
11802 (is_use_properly_guarded): Replace local variable def_preds with
11803 a parameter. Adjust accordingly. Only update *def_preds if it's
11806 2015-08-03 Richard Biener <rguenther@suse.de>
11808 * genmatch.c (simplify::for_subst_vec): New member.
11809 (binary_ok): New helper for for lowering.
11810 (lower_for): Delay substituting operators into result expressions
11811 if we can merge the results eventually again.
11812 (capture_info::walk_result): Adjust for user_id appearing as
11813 result expression operator.
11814 (expr::gen_transform): Likewise.
11815 (dt_simplify::gen_1): Likewise.
11816 (dt_simplify::gen): Pass not substituted operators to tail
11817 functions or initialize local variable with it.
11818 (decision_tree::gen): Adjust function signature.
11819 * match.pd: Fix tests against global code and add default
11820 cases to switch stmts.
11822 2015-08-03 Richard Biener <rguenther@suse.de>
11824 * genmatch.c (dt_simplify::gen): Create captures array
11825 with an initializer.
11827 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11829 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
11830 the host compiler is affected by placement new aliasing bug.
11831 * configure: Regenerate.
11832 * Makefile.in (ALIASING_FLAGS): New variable.
11833 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
11835 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
11838 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
11839 (negmulsf3_vfp): Likewise.
11840 (muldf3negdf_vfp): Disable for -frounding-math.
11841 (mulsf3negsf_vfp): Likewise.
11842 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
11843 fix MULT cost with -frounding-math.
11845 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11847 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
11848 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
11849 explicit. Prefer to add the flag whenever possible.
11850 (noce_process_if_block): Try noce_try_store_flag_constants before
11853 2015-08-03 Richard Biener <rguenther@suse.de>
11855 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
11856 New hash-map to record equivalent transforms.
11857 (dt_node::analyze): Populate the equivalent transforms hash-map.
11858 (dt_simplify::info): Add reference to hash-map entry.
11859 (dt_simplify::gen): If we have split out a function for the
11860 transform, generate a call to it.
11861 (sinfo_hashmap_traits::hash): New function.
11862 (compare_op): New helper function for ...
11863 (sinfo_hashmap_traits::equal_keys): ... this new function.
11864 (decision_tree::gen): Split out common equivalent transforms
11867 2015-08-03 Richard Biener <rguenther@suse.de>
11869 * gimple-fold.c (fold_gimple_assign): Remove folding of
11870 the comparison in COND_EXPRs.
11872 2015-08-03 Richard Biener <rguenther@suse.de>
11874 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
11875 on the rhs of assignments first simplify the embedded
11878 2015-08-03 Richard Biener <rguenther@suse.de>
11880 PR tree-optimization/66917
11881 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
11883 (DR_VECT_AUX): New macro.
11884 (set_dr_misalignment): Adjust.
11885 (dr_misalignment): Likewise.
11886 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
11887 Compute whether the base is at least element aligned.
11888 * tree-vect-stmts.c (ensure_base_align): Adjust.
11889 (vectorizable_store): If the base is not element aligned
11890 preserve alignment of the original access if misalignment is unknown.
11891 (vectorizable_load): Likewise.
11893 2015-08-02 Martin Sebor <msebor@redhat.com>
11895 * c-family/c.opt (-Wframe-address): New warning option.
11896 * doc/invoke.texi (Wframe-address): Document it.
11897 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
11898 Clarify possible effects of calling the functions with non-zero
11899 arguments and mention -Wframe-address.
11900 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
11902 2015-08-01 Michael Collison <michael.collison@linaro.org
11903 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11905 * config/arm/arm.md (*arm_smin_cmp): New pattern.
11906 (*arm_umin_cmp): Likewise.
11908 2015-08-01 Caroline Tice <cmtice@google.com>
11911 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
11913 (vtbl_find_mangled_name): New function.
11914 (vtbl_register_mangled_name): New function.
11915 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
11916 mangled name in mangled name vectors.
11917 (find_or_create_vtbl_map_node): Ditto.
11918 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
11919 update recursion_depth on function entry; pass it to every recursive
11920 call; automatically exit if depth > 25 (give up looking at that point).
11921 (verify_bb_vtables): Initialize recursion_depth and pass it to
11922 var_is_used_for_virtual_call_p.
11923 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
11924 global variable decls.
11925 (vtbl_register_mangled_name): New extern function decl.
11927 2015-08-01 Tom de Vries <tom@codesourcery.com>
11929 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
11931 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
11933 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
11934 operation_no_trapping_overflow. Allow non-overflow operations.
11935 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
11938 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
11941 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
11943 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11945 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
11946 Enable for TARGET_32BIT.
11947 (*if_move_neg): Likewise.
11949 2015-07-31 Nick Clifton <nickc@redhat.com>
11951 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
11952 Returns true for __model__.
11953 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11955 2015-07-31 Alan Modra <amodra@gmail.com>
11958 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
11959 (rs6000_emit_prologue): Set it.
11960 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
11962 2015-07-31 Richard Biener <rguenther@suse.de>
11964 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
11965 -> X == (C1 ^ C2) which is already implemented in match.pd.
11966 Remove redundant dispatching to fold_relational_const.
11967 Move unordered self and NaN compares ...
11968 * match.pd: ... as patterns here. Remove some stray captures
11971 2015-07-31 Petr Murzin <petr.murzin@intel.com>
11973 * config/i386/i386.c
11974 (bdesc_special_args): Convert mask type from signed to unsigned for
11976 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
11977 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
11978 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
11979 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
11980 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
11981 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
11982 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
11983 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
11984 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
11985 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
11986 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
11987 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
11988 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
11989 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
11990 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
11991 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
11992 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
11993 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
11994 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
11995 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
11996 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
11997 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
11998 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
11999 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
12000 * config/i386/i386-builtin-types.def
12001 (V16QI_FTYPE_V16SI): Remove.
12002 (V8DF_FTYPE_V8SI): Ditto.
12003 (V8HI_FTYPE_V8DI): Ditto.
12004 (V8SI_FTYPE_V8DI): Ditto.
12005 (V8SF_FTYPE_V8DF): Ditto.
12006 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
12007 (V16HI_FTYPE_V16SI): Ditto.
12008 (V16SF_FTYPE_V16HI): Ditto.
12009 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
12010 (V16SF_FTYPE_V16SI): Ditto.
12011 (V4DI_FTYPE_V4DI): Ditto.
12012 (V16SI_FTYPE_V16SF): Ditto.
12013 (V16SF_FTYPE_FLOAT): Ditto.
12014 (V8DF_FTYPE_DOUBLE): Ditto.
12015 (V8DI_FTYPE_INT64): Ditto.
12016 (V8DI_FTYPE_V4DI): Ditto.
12017 (V16QI_FTYPE_V8DI): Ditto.
12018 (UINT_FTYPE_V4SF): Ditto.
12019 (UINT64_FTYPE_V4SF): Ditto.
12020 (UINT_FTYPE_V2DF): Ditto.
12021 (UINT64_FTYPE_V2DF): Ditto.
12022 (V16SI_FTYPE_V16SI): Ditto.
12023 (V8DI_FTYPE_V8DI): Ditto.
12024 (V16SI_FTYPE_PV4SI): Ditto.
12025 (V16SF_FTYPE_PV4SF): Ditto.
12026 (V8DI_FTYPE_PV2DI): Ditto.
12027 (V8DF_FTYPE_PV2DF): Ditto.
12028 (V4DI_FTYPE_PV2DI): Ditto.
12029 (V4DF_FTYPE_PV2DF): Ditto.
12030 (V16SI_FTYPE_PV2SI): Ditto.
12031 (V16SF_FTYPE_PV2SF): Ditto.
12032 (V8DI_FTYPE_PV4DI): Ditto.
12033 (V8DF_FTYPE_PV4DF): Ditto.
12034 (V8SF_FTYPE_FLOAT): Ditto.
12035 (V4SF_FTYPE_FLOAT): Ditto.
12036 (V4DF_FTYPE_DOUBLE): Ditto.
12037 (V8SF_FTYPE_PV4SF): Ditto.
12038 (V8SI_FTYPE_PV4SI): Ditto.
12039 (V4SI_FTYPE_PV2SI): Ditto.
12040 (V8SF_FTYPE_PV2SF): Ditto.
12041 (V8SI_FTYPE_PV2SI): Ditto.
12042 (V16SF_FTYPE_PV8SF): Ditto.
12043 (V16SI_FTYPE_PV8SI): Ditto.
12044 (V8DI_FTYPE_V8SF): Ditto.
12045 (V4DI_FTYPE_V4SF): Ditto.
12046 (V2DI_FTYPE_V4SF): Ditto.
12047 (V64QI_FTYPE_QI): Ditto.
12048 (V32HI_FTYPE_HI): Ditto.
12049 (V8UHI_FTYPE_V8UHI): Ditto.
12050 (V16UHI_FTYPE_V16UHI): Ditto.
12051 (V32UHI_FTYPE_V32UHI): Ditto.
12052 (V2UDI_FTYPE_V2UDI): Ditto.
12053 (V4UDI_FTYPE_V4UDI): Ditto.
12054 (V8UDI_FTYPE_V8UDI): Ditto.
12055 (V4USI_FTYPE_V4USI): Ditto.
12056 (V8USI_FTYPE_V8USI): Ditto.
12057 (V16USI_FTYPE_V16USI): Ditto.
12058 (V2DF_FTYPE_V2DF_UINT64): Ditto.
12059 (V2DI_FTYPE_V2DF_V2DF): Ditto.
12060 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
12061 (V8DF_FTYPE_V8DF_V8DI): Ditto.
12062 (V4SF_FTYPE_V4SF_UINT64): Ditto.
12063 (V4SI_FTYPE_V4SF_V4SF): Ditto.
12064 (V16SF_FTYPE_V16SF_V16SI): Ditto.
12065 (V64QI_FTYPE_V32HI_V32HI): Ditto.
12066 (V32HI_FTYPE_V16SI_V16SI): Ditto.
12067 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
12068 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
12069 (V32HI_FTYPE_V64QI_V64QI): Ditto.
12070 (V32HI_FTYPE_V32HI_V32HI): Ditto.
12071 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
12072 (V16SI_FTYPE_V16SI_V4SI): Ditto.
12073 (V16SI_FTYPE_V16SI_V16SI): Ditto.
12074 (V16SI_FTYPE_V32HI_V32HI): Ditto.
12075 (V16SI_FTYPE_V16SI_SI): Ditto.
12076 (V8DI_FTYPE_V8DI_V8DI): Ditto.
12077 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
12078 (V8DI_FTYPE_V16SI_V16SI): Ditto.
12079 (V8DI_FTYPE_V8DI_V2DI): Ditto.
12080 (QI_FTYPE_QI): Ditto.
12081 (SI_FTYPE_SI): Ditto.
12082 (DI_FTYPE_DI): Ditto.
12083 (QI_FTYPE_QI_QI): Ditto.
12084 (QI_FTYPE_QI_INT): Ditto.
12085 (HI_FTYPE_HI_INT): Ditto.
12086 (SI_FTYPE_SI_INT): Ditto.
12087 (DI_FTYPE_DI_INT): Ditto.
12088 (HI_FTYPE_V16QI_V16QI): Ditto.
12089 (SI_FTYPE_V32QI_V32QI): Ditto.
12090 (DI_FTYPE_V64QI_V64QI): Ditto.
12091 (QI_FTYPE_V8HI_V8HI): Ditto.
12092 (HI_FTYPE_V16HI_V16HI): Ditto.
12093 (SI_FTYPE_V32HI_V32HI): Ditto.
12094 (QI_FTYPE_V4SI_V4SI): Ditto.
12095 (QI_FTYPE_V8SI_V8SI): Ditto.
12096 (QI_FTYPE_V2DI_V2DI): Ditto.
12097 (QI_FTYPE_V4DI_V4DI): Ditto.
12098 (QI_FTYPE_V8DI_V8DI): Ditto.
12099 (HI_FTYPE_V16SI_V16SI): Ditto.
12100 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
12101 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
12102 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
12103 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
12104 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
12105 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
12106 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
12107 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
12108 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
12109 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
12110 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
12111 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
12112 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
12113 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
12114 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
12115 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
12116 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
12117 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
12118 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
12119 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
12120 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
12121 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
12122 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
12123 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
12124 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
12125 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
12126 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
12127 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
12128 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
12129 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
12130 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
12131 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
12132 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
12133 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
12134 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
12135 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
12136 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
12137 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
12138 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
12139 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
12140 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
12141 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
12142 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
12143 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
12144 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
12145 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
12146 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
12147 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
12148 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
12149 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
12150 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
12151 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
12152 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
12153 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
12154 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
12155 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
12156 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
12157 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
12158 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
12159 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
12160 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
12161 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
12162 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
12163 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
12164 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
12165 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
12166 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
12167 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
12168 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
12169 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
12170 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
12171 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
12172 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
12173 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
12174 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
12175 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
12176 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
12177 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
12178 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
12179 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
12180 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
12181 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
12182 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
12183 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
12184 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
12185 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
12186 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
12187 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
12188 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
12189 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
12190 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
12191 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
12192 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
12193 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
12194 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
12195 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
12196 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
12197 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
12198 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
12199 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
12200 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
12201 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
12202 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
12203 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
12204 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
12205 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
12206 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
12207 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
12208 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
12209 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
12210 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
12211 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
12212 (HI_FTYPE_HI): Ditto.
12213 (HI_FTYPE_V16QI): Ditto.
12214 (SI_FTYPE_V32QI): Ditto.
12215 (DI_FTYPE_V64QI): Ditto.
12216 (QI_FTYPE_V8HI): Ditto.
12217 (HI_FTYPE_V16HI): Ditto.
12218 (SI_FTYPE_V32HI): Ditto.
12219 (QI_FTYPE_V4SI): Ditto.
12220 (QI_FTYPE_V8SI): Ditto.
12221 (HI_FTYPE_V16SI): Ditto.
12222 (QI_FTYPE_V2DI): Ditto.
12223 (QI_FTYPE_V4DI): Ditto.
12224 (QI_FTYPE_V8DI): Ditto.
12225 (V16QI_FTYPE_HI): Ditto.
12226 (V32QI_FTYPE_SI): Ditto.
12227 (V64QI_FTYPE_DI): Ditto.
12228 (V8HI_FTYPE_QI): Ditto.
12229 (V16HI_FTYPE_HI): Ditto.
12230 (V32HI_FTYPE_SI): Ditto.
12231 (V4SI_FTYPE_QI): Ditto.
12232 (V4SI_FTYPE_HI): Ditto.
12233 (V8SI_FTYPE_QI): Ditto.
12234 (V8SI_FTYPE_HI): Ditto.
12235 (V2DI_FTYPE_QI): Ditto.
12236 (V4DI_FTYPE_QI): Ditto.
12237 (HI_FTYPE_HI_HI): Ditto.
12238 (SI_FTYPE_SI_SI): Ditto.
12239 (DI_FTYPE_DI_DI): Ditto.
12240 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
12241 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
12242 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
12243 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
12244 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
12245 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
12246 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
12247 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
12248 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
12249 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
12250 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
12251 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
12252 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
12253 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
12254 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
12255 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
12256 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
12257 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
12258 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
12259 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
12260 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
12261 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
12262 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
12263 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
12264 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
12265 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
12266 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
12267 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
12268 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
12269 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
12270 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
12271 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
12272 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
12273 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
12274 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
12275 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
12276 (V16SI_FTYPE_HI): Ditto.
12277 (V8DI_FTYPE_QI): Ditto.
12278 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
12279 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
12280 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
12281 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
12282 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
12283 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
12284 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
12285 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
12286 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
12287 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
12288 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
12289 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
12290 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
12291 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
12292 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
12293 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
12294 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
12295 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
12296 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
12297 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
12298 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
12299 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
12300 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
12301 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
12302 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
12303 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
12304 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
12305 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
12306 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
12307 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
12308 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
12309 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
12310 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
12311 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
12312 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
12313 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
12314 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
12315 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
12316 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
12317 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
12318 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
12319 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
12320 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
12321 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
12322 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
12323 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
12324 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
12325 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
12326 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
12327 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
12328 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
12329 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
12330 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
12331 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
12332 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
12333 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
12334 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
12335 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
12336 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
12337 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
12338 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
12339 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
12340 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
12341 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
12342 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
12343 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
12344 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
12345 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
12346 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
12347 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
12348 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
12349 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
12350 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
12351 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
12352 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
12353 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
12354 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
12355 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
12356 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
12357 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
12358 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
12359 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
12360 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
12361 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
12362 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
12363 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
12364 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
12365 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
12366 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
12367 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
12368 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
12369 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
12370 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
12371 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
12372 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
12373 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
12374 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
12375 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
12376 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
12377 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
12378 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
12379 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
12380 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
12381 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
12382 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
12383 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
12384 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
12385 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
12386 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
12387 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
12388 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
12389 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
12390 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
12391 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
12392 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
12393 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
12394 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
12395 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
12396 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
12397 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
12398 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
12399 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
12400 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
12401 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
12402 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
12403 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
12404 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
12405 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
12406 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
12407 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
12408 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
12409 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
12410 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
12411 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
12412 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
12413 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
12414 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
12415 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
12416 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
12417 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
12418 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
12419 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
12420 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
12421 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
12422 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
12423 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
12424 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
12425 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
12426 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
12427 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
12428 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
12429 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
12430 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
12431 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
12432 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
12433 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
12434 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
12435 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
12436 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
12437 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
12438 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
12439 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
12440 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
12441 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
12442 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
12443 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
12444 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
12445 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
12446 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
12447 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
12448 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
12449 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
12450 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
12451 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
12452 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
12453 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
12454 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
12455 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
12456 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
12457 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
12458 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
12459 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
12460 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
12461 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
12462 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
12463 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
12464 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
12465 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
12466 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
12467 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
12468 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
12469 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
12470 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
12471 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
12472 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
12473 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
12474 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
12475 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
12476 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
12477 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
12478 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
12479 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
12480 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
12481 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
12482 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
12483 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
12484 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
12485 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
12486 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
12487 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
12488 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
12489 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
12490 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
12491 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
12492 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
12493 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
12494 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
12495 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
12496 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
12497 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
12498 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
12499 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
12500 (QI_FTYPE_V8DF_INT_QI): Ditto.
12501 (QI_FTYPE_V4DF_INT_QI): Ditto.
12502 (QI_FTYPE_V2DF_INT_QI): Ditto.
12503 (HI_FTYPE_V16SF_INT_HI): Ditto.
12504 (QI_FTYPE_V8SF_INT_QI): Ditto.
12505 (QI_FTYPE_V4SF_INT_QI): Ditto.
12506 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
12508 2015-07-31 Richard Biener <rguenther@suse.de>
12510 * gimple-fold.c (fold_gimple_assign): Remove folding of
12513 2015-07-31 Tom de Vries <tom@codesourcery.com>
12515 PR tree-optimization/66846
12516 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
12517 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
12518 (expand_omp_target) [ENABLE_CHECKING]: Same.
12519 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
12520 cfun if !LOOPS_NEED_FIXUP.
12521 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
12522 that omp_for already has its own loop struct.
12523 * tree-parloops.c (create_phi_for_local_result)
12524 (create_call_for_reduction): Handle simple latch bb.
12525 (create_parallel_loop): Add simple latch bb to preserve
12526 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
12527 (gen_parallel_loop): Remove call to cancel_loop_tree.
12528 (parallelize_loops): Skip loops that are inner loops of parallelized
12530 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
12531 verify_loop_structure.
12533 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12535 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
12536 * config/v850/v850.md (RV_REGNUM): New constants.
12537 * config/v850/v850.c (v850_libcall_value): New functions.
12538 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
12539 (TARGET_LIBCALL_VALUE): Define.
12541 2015-07-30 Anatoly Sokolov <aesok@post.ru>
12543 * rtl.h (lowpart_subreg): Move in file.
12544 * loop-iv.c (lowpart_subreg): Move to...
12545 * simplify-rtx.c (lowpart_subreg): ...here.
12546 (simplify_binary_operation_1): Use lowpart_subreg instead of
12547 simplify_gen_subreg.
12548 * expr.c (expand_expr_real_2): Ditto.
12549 * emit-rtl.c (gen_lowpart_common): Ditto.
12550 * combine.c (gen_lowpart_for_combine): Ditto.
12551 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
12552 expand_debug_source_expr): Ditto.
12554 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
12556 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
12557 (expand_builtin_atomic_clear): Remove support for atomic_clear
12560 2015-07-30 Richard Biener <rguenther@suse.de>
12562 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
12563 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
12564 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
12565 redundant operand canonicalization.
12567 2015-07-30 David Sherwood <david.sherwood@arm.com>
12569 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
12570 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
12571 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
12572 * config/arm/arm.c (neon_valid_immediate): Likewise.
12573 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
12574 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
12575 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
12576 (expand_vec_perm_vpshufb2_vpermq): Likewise.
12577 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
12578 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
12579 * config/i386/sse.md
12580 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
12581 (*ssse3_palignr<mode>_perm): Likewise.
12582 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
12583 * config/spu/spu.c (arith_immediate_p): Likewise.
12584 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12585 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
12587 2015-07-30 Richard Biener <rguenther@suse.de>
12589 * genmatch.c (decision_tree::gen_gimple): Merge with ...
12590 (decision_tree::gen_generic): ... this into ...
12591 (decision_tree::gen): ... this.
12592 (main): Adjust callers.
12594 2015-07-30 Richard Biener <rguenther@suse.de>
12596 * genmatch.c (verbose): New global.
12597 (warning_at): Add overload with source_location.
12598 (capture_info::capture_info): Add bool whether generating gimple
12599 or generic. Add gimple member.
12600 (capture_info::cinfo): Add capture member.
12601 (capture_info::walk_match): Record capture. Warn on
12602 non-captured leafs.
12603 (capture_info::walk_c_expr): Add more fragments captures cannot
12604 escape through. Warn on escaped captures.
12605 (dt_simplify::gen_1): Warn on operands we force to have no
12607 (main): Initialize verbose.
12608 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
12610 2015-07-30 Richard Biener <rguenther@suse.de>
12612 PR middle-end/67053
12613 * match.pd: Allow both operands to independently have conversion
12614 when simplifying compares of addresses.
12616 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
12620 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
12621 around those cases that need one.
12623 2015-07-29 Aditya Kumar <hiraditya@msn.com>
12625 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
12627 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
12629 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
12630 New. Copied from config/i386/gnu-user.h.
12631 (ASM_COMMENT_START): Likewise.
12632 (DBX_REGISTER_NUMBER): Likewise.
12634 2015-07-29 Richard Biener <rguenther@suse.de>
12636 * gimple-fold.c (fold_gimple_cond): Remove.
12637 (fold_stmt_1): Do not call it.
12639 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
12641 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
12642 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
12644 * config/aarch64/aarch64-modes.def: Add HFmode.
12646 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12647 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
12649 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
12650 aarch64_promoted_type): New.
12652 (aarch64_float_const_representable_p): Disable HFmode.
12653 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
12654 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
12655 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
12657 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
12658 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
12660 * config/aarch64/iterators.md (GPF_F16): New.
12662 2015-07-29 Richard Biener <rguenther@suse.de>
12664 * match.pd: Merge address comparison patterns and make them
12665 handle some more cases.
12667 2015-07-29 Richard Biener <rguenther@suse.de>
12669 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
12670 (parser::parse_capture): Add bool argument on whether to reject
12672 (parser::parse_expr): Adjust.
12673 (parser::parse_op): Likewise.
12674 (parser::parse_pattern): Likewise.
12676 2015-07-29 Richard Biener <rguenther@suse.de>
12678 * gimple-fold.c (has_use_on_stmt): New function.
12679 (replace_stmt_with_simplification): Use it to allow
12680 abnormals originally referenced in the stmt.
12681 (fold_stmt_1): Canonicalize operand order.
12683 2015-07-28 David Sherwood <david.sherwood@arm.com>
12685 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
12686 GET_MODE_INNER unconditionally.
12687 * config/spu/spu.c (arith_immediate_p): Likewise.
12688 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
12689 * expmed.c (synth_mult): Remove check for VOIDmode result from
12691 (expand_mult_const): Likewise.
12692 * fold-const.c (fold_binary_loc): Replace call to element_precision
12693 with call to GET_MODE_PRECISION.
12694 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
12696 (emit_mode_inner): Likewise.
12697 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
12699 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
12700 (GET_MODE_UNIT_PRECISION): Likewise.
12701 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
12702 * simplify-rtx.c (simplify_immed_subreg): Likewise.
12703 * stor-layout.c (bitwise_type_for_mode): Update assert.
12704 (element_precision): Remove.
12706 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12708 * target-insns.def (reload_load_address): New targetm instruction
12710 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
12712 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12714 * target-insns.def (atomic_test_and_set): New targetm instruction
12716 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
12717 HAVE_*/gen_* interface.
12719 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12721 * target-insns.def (can_extend, ptr_extend): New targetm instruction
12723 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
12724 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
12725 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
12726 * rtlanal.c (nonzero_bits1): Likewise.
12727 (num_sign_bit_copies1): Likewise.
12729 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12731 * target-insns.def (eh_return): New targetm instruction pattern.
12732 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
12734 * function.c (thread_prologue_and_epilogue_insns): Remove
12735 preprocessor condition.
12737 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12739 * target-insns.def (indirect_jump): New targetm instruction pattern.
12740 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
12743 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
12745 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
12746 instead of nonimmediate_operand. Remove C condiition.
12748 2015-07-28 Richard Biener <rguenther@suse.de>
12750 * match.pd: Add more simplification of address comparisons.
12752 2015-07-28 Richard Biener <rguenther@suse.de>
12754 * match.pd: Re-order two cases in comparison with max/min
12755 value simplification to make it apply for bools.
12757 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12759 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
12760 Handle simple SIGN_EXTEND or ZERO_EXTEND.
12761 (aarch64_rtx_costs): Properly strip extend or extract before
12762 passing down to rtx costs again.
12764 2015-07-28 Nick Clifton <nickc@redhat.com>
12766 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
12767 Optimizes the case where -mes0 is active and a constant symbolic
12769 * config/rl78/rl78-protos.h: Prototype the new function.
12770 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
12772 2015-07-28 Tom de Vries <tom@codesourcery.com>
12774 * tree-parloops.c (reduc_stmt_res): New function.
12775 (initialize_reductions, add_field_for_reduction)
12776 (create_phi_for_local_result, create_loads_for_reductions)
12777 (create_stores_for_reduction, build_new_reduction): Handle case that
12778 reduc_stmt is a phi.
12779 (gather_scalar_reductions): Allow double_reduc reductions.
12781 2015-07-28 Richard Biener <rguenther@suse.de>
12783 * fold-const.c (fold_comparison): Remove equality folding
12784 of decl addresses ...
12785 * match.pd: ... here and merge with existing pattern.
12787 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
12789 PR tree-optimization/66828
12790 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
12791 from int64_t to uint64_t.
12793 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
12795 * opts-common.c (read_cmdline_option): List DriverOnly enum values
12796 as valid only in the error message of the driver, not in the
12797 messages of the language compilers.
12799 2015-07-27 Tom de Vries <tom@codesourcery.com>
12801 * tree-parloops.c (gather_scalar_reductions): Simplify function
12804 2015-07-27 Marek Polacek <polacek@redhat.com>
12806 * ipa-devirt.c (types_same_for_odr): Fix typo.
12808 2015-07-27 Jason Merrill <jason@redhat.com>
12811 * dwarf2out.c (gen_inlined_subroutine_die): Check
12812 cgraph_function_possibly_inlined_p.
12814 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12816 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
12817 Place integer variant first.
12818 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12820 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12823 * config/arm/arm-builtins.c (enum arm_builtins):
12824 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
12825 (ARM_BUILTIN_NEON_BASE): Rename macro to....
12826 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
12827 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
12828 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
12830 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
12833 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
12834 Add qualifier_lane_index.
12835 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
12836 (arm_getlane_qualifiers): Use qualifier_lane_index.
12837 (arm_lanemac_qualifiers): Rename to...
12838 (arm_mac_n_qualifiers): ...this.
12839 (LANEMAC_QUALIFIERS): Rename to...
12840 (MAC_N_QUALIFIERS): ...this.
12841 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
12842 (arm_setlane_qualifiers): Use qualifier_lane_index.
12843 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
12844 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
12845 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
12846 (arm_expand_neon_builtin): Handle qualifier_lane_index.
12848 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
12849 * config/arm/arm.c (bounds_check): Likewise, improve error message.
12850 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
12851 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
12852 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
12853 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
12854 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
12855 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
12856 qualifiers to TERNOP_IMM.
12857 (vdup_lane): Change qualifiers to GETLANE.
12858 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
12859 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
12860 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
12861 vqdmlsl_n): Change qualifiers to MAC_N.
12863 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
12864 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
12865 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
12866 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
12867 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
12868 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
12869 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
12870 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
12871 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
12872 Remove call to neon_lane_bounds.
12874 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
12876 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12877 Place integer variant first.
12879 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
12881 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
12882 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
12883 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
12884 for armv6kz targets.
12885 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
12886 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
12887 (FL_FOR_ARCH6ZK): Remove.
12888 (FL_FOR_ARCH6KZ): New.
12889 (arm_arch6zk): New declaration.
12890 * config/arm/arm-tables.opt: Regenerate.
12891 * config/arm/arm.c (arm_arch6kz): New.
12892 (arm_option_override): Set arm_arch6kz.
12893 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
12894 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
12895 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
12897 2015-07-27 Marek Polacek <polacek@redhat.com>
12901 * doc/invoke.texi: Document -Wtautological-compare.
12903 2015-07-27 Richard Biener <rguenther@suse.de>
12905 * genmatch.c (decision_tree::gen_gimple): Split out large
12906 subtrees into separate functions.
12907 (decision_tree::gen_generic): Likewise.
12909 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
12911 * config/alpha/alpha.c: Use SUBREG_P predicate.
12912 * config/alpha/predicates.md: Ditto.
12914 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
12916 * config.host (s390*-*-*): Include driver-native.c only when
12917 building with s390* as host *and* target.
12919 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
12922 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
12923 T bit register modified_between_p check.
12925 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12927 * config/i386/i386.c: Use SUBREG_P predicate.
12928 * config/i386/i386.md: Ditto.
12929 * config/i386/sse.md: Ditto.
12930 * config/i386/predicates.md: Ditto.
12932 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12935 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
12936 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
12938 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12940 * Makefile.in: Remove use of TREEBROWSER.
12941 * config.in: Regenerated.
12942 * configure: Regenerated.
12943 * configure.ac: Remove definition of TREEBROWSER.
12944 * tree-browser.c: Removed.
12945 * tree-browser.def: Removed.
12947 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12949 * graphite-scop-detection.c: Include gimple-pretty-print.h.
12950 (stmt_simple_for_scop_p): Print when a stmt is not handled in
12952 (scopdet_basic_block_info): Print when a loop or bb cannot be
12953 represented in Graphite.
12955 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
12958 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
12959 execution guard when min_size is less than size_needed.
12961 2015-07-25 Sebastian Pop <s.pop@samsung.com>
12963 * doc/install.texi: Document supported versions of ISL.
12965 2015-07-25 Jeff Law <law@redhat.com>
12969 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12970 unable to find X NE 0 in the tables, return X as the simplified
12972 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12973 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12974 to VISISTED_BBS. */
12975 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12976 after removing the control flow statement and unnecessary edges.
12978 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
12981 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
12983 PR rtl-optimization/64164
12984 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
12985 * tree-ssa-copyrename.c: Removed.
12986 * opts.c (default_options_table): Drop -ftree-copyrename. Add
12987 -ftree-coalesce-vars.
12988 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
12989 * common.opt (ftree-copyrename): Ignore.
12990 (ftree-coalesce-inlined-vars): Likewise.
12991 * doc/invoke.texi: Remove the ignored options above.
12992 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
12993 * tree-ssa-coalesce.h: ... here.
12994 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
12995 headers required by it.
12996 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
12997 across variables when flag_tree_coalesce_vars. Check register
12998 use and promoted modes to allow coalescing. Moved to
12999 tree-ssa-coalesce.c.
13000 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13001 with its member functions to tree-ssa-coalesce.c.
13002 (var_map_base_init): Likewise. Renamed to
13003 compute_samebase_partition_bases.
13004 (partition_view_normal): Drop want_bases parameter.
13005 (partition_view_bitmap): Likewise.
13006 * tree-ssa-live.h: Adjust declarations.
13007 * tree-ssa-coalesce.c: Include explow.h.
13008 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13009 default defs at the entry point.
13010 (dump_part_var_map): New.
13011 (compute_optimized_partition_bases): New, called by...
13012 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13013 of compute_samebase_partition_bases. Adjust.
13014 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13015 * cfgexpand.c (leader_merge): New.
13016 (get_rtl_for_parm_ssa_default_def): New.
13017 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13018 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13019 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13020 redundant MEM attr setting.
13021 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13023 (expand_one_stack_var): ... this. New wrapper to check and
13024 skip already expanded SSA partitions.
13025 (record_alignment_for_reg_var): New, factored out of...
13026 (expand_one_var): ... this.
13027 (expand_one_ssa_partition): New.
13028 (adjust_one_expanded_partition_var): New.
13029 (expand_one_register_var): Check and skip already expanded SSA
13031 (expand_used_vars): Don't create DECLs for anonymous SSA
13032 names. Expand all SSA partitions, then adjust all SSA names.
13033 (pass::execute): Replace the loops that set
13034 SA.partition_to_pseudo from partition leaders and cleared
13035 DECL_RTL for multi-location variables, and that which used to
13036 rename vars and set attrs, with one that clears DECL_RTL and
13037 checks that PARMs and RESULTs default_defs match DECL_RTL.
13038 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13039 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13040 * explow.c (promote_ssa_mode): New.
13041 * explow.h (promote_ssa_mode): Declare.
13042 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13043 * function.c: Include cfgexpand.h.
13044 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13045 (use_register_for_parm_decl): Wrapper for the above to
13046 special-case the result_ptr.
13047 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13048 (split_complex_args): Take assign_parm_data_all argument.
13049 Pass it to rtl_for_parm. Set up rtl and context for split
13051 (assign_parms_augmented_arg_list): Adjust.
13052 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13053 multiple locations. Recognize split complex args.
13054 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13055 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13056 (assign_parm_setup_block): Prefer SSA-assigned location.
13057 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13058 if stack_parm is NULL.
13059 (assign_parm_setup_stack): Prefer SSA-assigned location.
13060 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13061 rtl before testing for pointer bounds. Special-case result_ptr.
13062 (expand_function_start): Maybe reset DECL_RTL of result.
13063 Prefer SSA-assigned location for result and static chain.
13064 Factor out DECL_RESULT and SET_DECL_RTL.
13065 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13066 anonymous SSA names. Use promote_ssa_mode.
13067 (get_temp_reg): Likewise.
13068 (remove_ssa_form): Adjust.
13069 * stor-layout.c (layout_decl): Don't set mem attributes of
13071 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13072 and get its reg_usage for reg invalidation.
13073 (compute_bb_dataflow): Pass it insn.
13074 (emit_notes_in_bb): Likewise.
13076 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
13078 * config/i386/i386.c (ix86_va_start): Remove
13079 unneeded !TARGET_64BIT check.
13080 (ix86_gimplify_va_arg): Ditto.
13082 2015-07-24 Tom de Vries <tom@codesourcery.com>
13084 * graphite-sese-to-poly.c (build_poly_scop): Always call
13085 rewrite_commutative_reductions_out_of_ssa.
13087 2015-07-24 Tom de Vries <tom@codesourcery.com>
13089 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
13090 flag_associative_math to FLOAT_TYPE_P. Honour
13091 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
13093 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13096 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
13097 and "%qD" in warning_at instead of "%q+D" in warning.
13099 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
13101 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
13102 (ix86_function_abi): Cleanup.
13104 2015-07-24 Michael Darling <darlingm@gmail.com>
13107 * acinclude.m4: Reflects renaming of configure.in to configure.ac
13108 * configure: Likewise
13109 * configure.ac: Likewise
13110 * doc/install.texi: Likewise
13111 * doc/tm.texi: Likewise
13112 * doc/tm.texi.in: Likewise
13114 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13116 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
13117 manually swapping values.
13118 * cse.c (fold_rtx): Likewise.
13119 * lra-eliminations.c (form_sum): Likewise.
13121 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
13124 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
13125 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
13126 (*jcc_1, *jcc_2, jump, simple_return_internal)
13127 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
13128 Set length_nobnd attribute instead of length attribute.
13129 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
13130 (length_nobnd): Remove attribute.
13131 (length): Remove length_nobnd processing.
13133 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
13135 * gimplify.c (omp_default_clause): New function. Reorganize flow
13136 for clarity. Broken out of ...
13137 (omp_notice_variable): ... here.
13139 2015-07-24 Gary Funck <gary@intrepid.com>
13141 PR middle-end/66984
13142 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
13143 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
13145 2015-07-24 Tom de Vries <tom@codesourcery.com>
13147 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
13148 exit-first loop transform.
13150 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
13153 * tree-cfg.c (struct replace_decls_d): New struct.
13154 (replace_block_vars_by_duplicates_1): New function.
13155 (replace_block_vars_by_duplicates): Use it to replace the decls
13156 in the value exprs by duplicates.
13158 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13160 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
13161 -shared, -symbolic, -rdynamic.
13163 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
13166 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
13167 -dynamic-linker within %{!static %{!shared, and -rdynamic within
13170 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
13173 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
13174 edge summary is available.
13176 2015-07-24 Richard Biener <rguenther@suse.de>
13178 * genmatch.c (struct dt_node): Add statistic fields.
13179 (dt_node::analyze): New method.
13180 (decision_tree::gen_gimple): Call analyze on the root node
13181 and print statistics to stderr.
13182 (decision_tree::gen_generic): Likewise.
13184 2015-07-24 Richard Biener <rguenther@suse.de>
13186 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
13187 against the highest or lowest possible integer ...
13188 * match.pd: ... as patterns here.
13190 2015-07-24 Richard Biener <rguenther@suse.de>
13192 * genmatch.c (struct capture_info): Add same_as field.
13193 (capture_info::capture_info): Initialize same_as.
13194 (capture_info::walk_match): Compute same_as.
13195 (capture_info::walk_result): Compute stuff for the leader.
13196 (capture_info::walk_c_expr): Likewise.
13197 (dt_simplify::gen_1): Only look at leaders when deciding
13198 to force no side-effects or emit side-effects of omitted operands.
13200 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13202 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
13203 reg note to the GPR -> FPR save instructions.
13205 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13207 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
13209 (s390_expand_insv): Don't generate risbg pattern for constant zero
13211 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
13212 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
13215 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13217 * config/s390/s390.c (s390_reorg): Clean up handling of processors
13220 (s390_issue_rate): Likewise.
13221 (s390_sched_reorder): Likewise.
13222 (s390_sched_variable_issue): Likewise.
13223 (s390_loop_unroll_adjust): Likewise.
13224 (s390_option_override): Likewise.
13226 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13228 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
13229 processor capabilities with -march=native.
13230 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
13231 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
13232 (S390_TARGET_BITS_STRING): Macro to simplify specs.
13234 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13236 * config/s390/s390.c (s390_issue_rate): Handle
13237 PROCESSOR_2094_Z9_EC.
13238 (s390_option_override): Likewise.
13239 (s390_adjust_priority): Likewise.
13241 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
13243 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
13244 when cross compiling.
13246 2015-07-24 Richard Biener <rguenther@suse.de>
13248 * fold-const.c (maybe_canonicalize_comparison_1): Move
13249 A code CST canonicalization ...
13250 * match.pd: ... to a pattern here.
13252 2015-07-24 Jiong Wang <jiong.wang@arm.com>
13255 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13257 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13258 (HONOR_REG_ALLOC_ORDER): Define.
13260 2015-07-24 Richard Biener <rguenther@suse.de>
13262 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
13263 * fold-const.c (fold_comparison): Move parameter does not
13264 alias &local simplification ...
13265 * match.pd: ... as a pattern here.
13267 2015-07-24 Richard Biener <rguenther@suse.de>
13269 * gimple-fold.c (replace_stmt_with_simplification): Special-case
13270 valueizing call operands.
13271 * gimple-match-head.c (maybe_push_res_to_seq): Take
13272 number of call arguments from ops array.
13273 (do_valueize): New function.
13274 (gimple_simplify): Return true if valueization changed
13275 any operand even if the result didn't simplify further.
13277 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13279 PR middle-end/25530
13280 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
13282 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13284 PR middle-end/25529
13285 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
13287 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13289 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
13292 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
13294 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
13297 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
13299 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
13300 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
13302 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
13303 ms_va_list_type_node initialization.
13305 2015-07-23 Jeff Law <law@redhat.com>
13308 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
13309 unable to find X NE 0 in the tables, return X as the simplified
13311 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
13312 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
13313 to VISISTED_BBS. */
13314 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
13315 after removing the control flow statement and unnecessary edges.
13317 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
13319 * tree-pass.h (get_current_pass_name): Removed.
13321 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
13323 PR rtl-optimization/64164
13324 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13325 * tree-ssa-copyrename.c: Removed.
13326 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13327 -ftree-coalesce-vars.
13328 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13329 * common.opt (ftree-copyrename): Ignore.
13330 (ftree-coalesce-inlined-vars): Likewise.
13331 * doc/invoke.texi: Remove the ignored options above.
13332 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13333 * tree-ssa-coalesce.h: ... here.
13334 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13335 headers required by it.
13336 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13337 across variables when flag_tree_coalesce_vars. Check register
13338 use and promoted modes to allow coalescing. Moved to
13339 tree-ssa-coalesce.c.
13340 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13341 with its member functions to tree-ssa-coalesce.c.
13342 (var_map_base_init): Likewise. Renamed to
13343 compute_samebase_partition_bases.
13344 (partition_view_normal): Drop want_bases parameter.
13345 (partition_view_bitmap): Likewise.
13346 * tree-ssa-live.h: Adjust declarations.
13347 * tree-ssa-coalesce.c: Include explow.h.
13348 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13349 default defs at the entry point.
13350 (dump_part_var_map): New.
13351 (compute_optimized_partition_bases): New, called by...
13352 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13353 of compute_samebase_partition_bases. Adjust.
13354 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13355 * cfgexpand.c (leader_merge): New.
13356 (get_rtl_for_parm_ssa_default_def): New.
13357 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13358 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13359 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13360 redundant MEM attr setting.
13361 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13363 (expand_one_stack_var): ... this. New wrapper to check and
13364 skip already expanded SSA partitions.
13365 (record_alignment_for_reg_var): New, factored out of...
13366 (expand_one_var): ... this.
13367 (expand_one_ssa_partition): New.
13368 (adjust_one_expanded_partition_var): New.
13369 (expand_one_register_var): Check and skip already expanded SSA
13371 (expand_used_vars): Don't create DECLs for anonymous SSA
13372 names. Expand all SSA partitions, then adjust all SSA names.
13373 (pass::execute): Replace the loops that set
13374 SA.partition_to_pseudo from partition leaders and cleared
13375 DECL_RTL for multi-location variables, and that which used to
13376 rename vars and set attrs, with one that clears DECL_RTL and
13377 checks that PARMs and RESULTs default_defs match DECL_RTL.
13378 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13379 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
13380 * explow.c (promote_ssa_mode): New.
13381 * explow.h (promote_ssa_mode): Declare.
13382 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13383 * function.c: Include cfgexpand.h.
13384 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13385 (use_register_for_parm_decl): Wrapper for the above to
13386 special-case the result_ptr.
13387 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13388 (split_complex_args): Take assign_parm_data_all argument.
13389 Pass it to rtl_for_parm. Set up rtl and context for split
13391 (assign_parms_augmented_arg_list): Adjust.
13392 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13393 multiple locations. Recognize split complex args.
13394 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13395 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13396 (assign_parm_setup_block): Prefer SSA-assigned location.
13397 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
13398 if stack_parm is NULL.
13399 (assign_parm_setup_stack): Prefer SSA-assigned location.
13400 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13401 rtl before testing for pointer bounds. Special-case result_ptr.
13402 (expand_function_start): Maybe reset DECL_RTL of result.
13403 Prefer SSA-assigned location for result and static chain.
13404 Factor out DECL_RESULT and SET_DECL_RTL.
13405 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13406 anonymous SSA names. Use promote_ssa_mode.
13407 (get_temp_reg): Likewise.
13408 (remove_ssa_form): Adjust.
13409 * stor-layout.c (layout_decl): Don't set mem attributes of
13411 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13412 and get its reg_usage for reg invalidation.
13413 (compute_bb_dataflow): Pass it insn.
13414 (emit_notes_in_bb): Likewise.
13416 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13419 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
13421 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
13422 (rs6000_emit_2insn_and): Handle dot forms.
13423 * config/rs6000/rs6000.md (and<mode>3): Adjust.
13424 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
13425 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
13427 2015-07-23 Richard Biener <rguenther@suse.de>
13429 * generic-match-head.c: Include cgraph.h.
13430 * gimple-match-head.c: Likewise.
13431 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
13433 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
13434 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
13437 2015-07-23 Richard Biener <rguenther@suse.de>
13439 * gimple-fold.c (fold_gimple_cond): Do not require folding
13440 results to pass valid_gimple_rhs_p.
13441 * tree-cfg.h (fold_cond_expr_cond): Remove.
13442 * tree-cfg.c (fold_cond_expr_cond): Likewise.
13443 (make_edges): Do not call it.
13444 * tree-inline.c (tree_function_versioning): Likewise.
13446 2015-07-23 Tom de Vries <tom@codesourcery.com>
13448 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
13449 vect_force_simple_reduction.
13450 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
13451 (vect_is_simple_reduction_1): Add and handle
13452 need_wrapping_integral_overflow parameter.
13453 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
13454 need_wrapping_integral_overflow parameter.
13455 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
13456 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
13459 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
13461 PR tree-optimization/66926,66951
13462 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
13463 INNER_LOOP and fix up condition for renaming virtual operands.
13465 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13467 * combine.c (try_combine): Use std::swap instead of manually
13470 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
13472 * config/mips/i6400.md: New file.
13473 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
13474 (mips64r6): Likewise.
13476 * config/mips/mips-tables.opt: Regenerate.
13477 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
13478 (mips_issue_rate): Add support for i6400.
13479 (mips_multipass_dfa_lookahead): Likewise.
13480 * config/mips/mips.h (TUNE_I6400): Define.
13481 * config/mips/mips.md: Include i6400.md.
13482 (processor): Add i6400.
13483 * doc/invoke.texi (-march=@var{arch}): Add i6400.
13485 2015-07-23 Richard Biener <rguenther@suse.de>
13487 PR middle-end/66916
13488 * match.pd: Guard widen and sign-change comparison simplification
13491 2015-07-23 Richard Biener <rguenther@suse.de>
13493 PR tree-optimization/66945
13494 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
13495 ::before_dom_children): Force the propagators idea of
13496 non-executable edges to materialize, not what the folder
13499 2015-07-23 Richard Biener <rguenther@suse.de>
13501 * gimple.h (gimple_cond_make_false): Use 0 != 0.
13502 (gimple_cond_make_true): Use 1 != 0.
13504 2015-07-22 DJ Delorie <dj@redhat.com>
13506 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
13509 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
13510 (ashrhi3): Likewise.
13511 (lshrhi3): Likewise.
13512 (movhi): Take advantage of zero-extend to load small constants.
13513 (movpsi): Likewise.
13514 (and<mode>3): Likewise.
13515 (zero_extendqihi2): Likewise.
13516 (zero_extendqisi2): New.
13517 * config/msp430/constraints.md (N,O): New.
13518 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
13520 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
13523 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
13524 to enum feature_priority and feature_list.
13525 (fold_builtin_cpu): Add F_AES to enum processor_features
13526 and isa_names_table.
13528 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
13531 * config/i386/linux-common.h (MPX_SPEC): Use linker option
13532 for 64bit target only.
13534 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
13536 * config/nvptx/nvptx.c: Expand some comments.
13538 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
13540 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
13541 (cortex_a53_advsimd): ...This.
13543 2015-07-22 Richard Biener <rguenther@suse.de>
13545 * genmatch.c (expr::gen_transform): Clarify error message
13546 and display location.
13548 2015-07-22 Richard Biener <rguenther@suse.de>
13550 * genmatch.c (struct operand): Add location member.
13551 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
13553 (struct simplify): Remove match_location and result_location
13555 (elsehwere): Adjust.
13557 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
13559 * config/mips/m5100.md: New file.
13560 * config/mips/mips-cpus.def (m5100, m5101): Define.
13561 * config/mips/mips-tables.opt: Regenerate.
13562 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
13563 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
13564 -march=m5101 to -mips32r5.
13565 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
13566 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
13568 * config/mips/mips.md: Include m5100.md.
13569 (processor): Add m5100.
13570 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
13572 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
13574 * config/mips/mips-cpus.def (interaptiv): Define.
13575 * config/mips/mips-tables.opt: Regenerate.
13576 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
13578 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
13579 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
13581 2015-07-22 Jiong Wang <jiong.wang@arm.com>
13584 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
13585 (HONOR_REG_ALLOC_ORDER): Define.
13587 2015-07-22 Richard Biener <rguenther@suse.de>
13589 PR tree-optimization/66952
13590 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
13591 blocks we end up executing unconditionally reset all SSA
13592 info such as range and alignment.
13593 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
13594 * tree-ssanames.c (reset_flow_sensitive_info): New function.
13596 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13598 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
13601 2015-07-22 Richard Biener <rguenther@suse.de>
13603 * genmatch.c (parser::parse_result): Properly handle
13604 match with result operands and conditions.
13606 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
13609 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
13610 Add qualifier_struct_load_store_lane_index.
13611 (aarch64_types_loadstruct_lane_qualifiers): Use
13612 qualifier_struct_load_store_lane_index for lane index argument for
13614 (aarch64_types_storestruct_lane_qualifiers): Ditto.
13615 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13616 (aarch64_simd_expand_args): Add new argument describing mode of
13617 builtin. Check lane bounds for arguments with
13618 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13619 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
13620 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
13621 (aarch64_simd_expand_builtin): Handle arguments with
13622 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
13623 aarch64_simd_expand_args.
13624 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
13625 vst[234]_lane with BUILTIN_VALLDIF.
13626 * config/aarch64/aarch64-simd.md:
13627 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
13628 endianness reversal on lane index.
13629 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
13630 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
13631 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
13632 (vec_store_lanesci_lane<mode>): Ditto.
13633 (vec_store_lanesxi_lane<mode>): Ditto.
13634 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
13635 reversal of lane index.
13636 (aarch64_ld3_lane<mode>): Ditto.
13637 (aarch64_ld4_lane<mode>): Ditto.
13638 (aarch64_st2_lane<mode>): Ditto.
13639 (aarch64_st3_lane<mode>): Ditto.
13640 (aarch64_st4_lane<mode>): Ditto.
13641 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
13642 to qmode. Add new mode parameter. Update uses.
13643 (__LD3_LANE_FUNC): Ditto.
13644 (__LD4_LANE_FUNC): Ditto.
13645 (__ST2_LANE_FUNC): Ditto.
13646 (__ST3_LANE_FUNC): Ditto.
13647 (__ST4_LANE_FUNC): Ditto.
13649 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
13651 * doc/invoke.texi (Language Independent Options): Rename node to
13652 Diagnostic Message Formatting Options.
13654 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
13657 * lra-remat.c (operand_to_remat): Prevent using insns with input
13658 subregs processed separately by IRA.
13660 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
13662 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
13664 (single_imm_use): Check for iterator node.
13665 (num_imm_uses): Likewise.
13666 * tree-ssa-operands.c (has_zero_uses_1): Delete.
13667 (single_imm_use_1): Check for iterator node.
13669 2015-07-21 Mike Frysinger <vapier@gentoo.org>
13670 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13672 * configure.ac: Add check for new options in isl-0.15.
13673 * config.in, configure: Rebuilt.
13674 * graphite-blocking.c: Include <isl/constraint.h>
13675 * graphite-interchange.c, graphite-poly.c: Likewise.
13676 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
13677 * graphite.c: Likewise.
13678 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
13680 * graphite-dependences.c: Include <isl/constraint.h>.
13681 (max_number_of_out_dimensions): Returns isl_stat.
13682 (extend_schedule_1): Likewise
13683 (extend_schedule): Corresponding changes.
13684 * graphite-optimize-isl.c: Include <isl/constraint.h> and
13686 (getSingleMap): Change return type of isl_stat.
13687 (optimize_isl): Conditionally use
13688 isl_options_set_schedule_serialize_sccs.
13689 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
13690 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
13692 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
13695 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
13696 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
13698 2015-07-21 Richard Biener <rguenther@suse.de>
13700 PR tree-optimization/66948
13701 * genmatch.c (capture_info::walk_match): Also recurse to
13702 captures. Properly compute expr state from captures of
13704 * match.pd: Add single-use guards to
13705 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
13707 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
13709 * config/nvptx/mkoffload.c (process): Add static destructor call.
13711 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13713 PR middle-end/66915
13714 * match.pd (A - B -> A + (-B)): Don't allow folding
13715 when type if a fixed-point type.
13717 2015-07-20 DJ Delorie <dj@redhat.com>
13719 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
13720 (iorqi3_real): Likewise for set1.
13722 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
13724 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
13727 2015-07-20 Aditya Kumar <hiraditya@msn.com>
13729 * graphite-isl-ast-to-gimple.c:
13730 Refactor so that each function can access 'region'. This will help
13731 maintain a parameter rename_map within a region.
13733 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13735 * config/rs6000/rs6000.md (*lt0_disi): New.
13737 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
13740 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
13741 "available letters" comment.
13742 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
13743 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
13744 and_2rld_operand): Delete.
13745 (and_operand): Adjust.
13746 (rotate_mask_operator): New.
13747 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
13748 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
13749 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
13750 extract_ME): Delete.
13751 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13752 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
13753 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
13754 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13755 rs6000_emit_2insn_and): New.
13756 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
13757 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
13758 includes_rldic_lshift_p, includes_rldicr_lshift_p,
13759 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
13760 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
13761 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
13762 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
13763 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
13764 rs6000_emit_2insn_and): New.
13765 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
13766 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
13768 <NOT>: Don't fall through to next case.
13769 <AND>: Handle the various rotate-and-mask cases directly.
13770 <IOR>: Always cost as one insn.
13771 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
13772 (and<mode>3): Adjust expander for the new patterns.
13773 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
13774 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
13775 (*and<mode>3_imm_dot_shifted): New.
13776 (*and<mode>3_mask): Delete, rewrite as ...
13777 (and<mode>3_mask): ... New.
13778 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
13779 (andsi3_internal0_nomc): Delete.
13780 (*andsi3_internal6): Delete.
13781 (*and<mode>3_2insn): New.
13782 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
13783 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
13784 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
13785 *insvdi_internal3): Delete.
13786 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
13787 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
13788 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
13789 *ior<mode>_mask): New.
13790 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
13791 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13792 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13793 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13795 (ashr<mode>3): Delete expander.
13796 (*ashr<mode>3): Rename to ...
13797 (ashr<mode>3): ... This.
13798 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
13799 (*rotldi3_internal4, *rotldi3_internal5 and split,
13800 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
13801 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
13802 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
13803 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
13804 (splitter for loading a mask): Adjust.
13805 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
13807 2015-07-20 Marek Polacek <polacek@redhat.com>
13809 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
13810 output_add_clobbers, output_added_clobbers_hard_reg_p,
13811 gen_rtx_scratch): Remove declarations.
13813 2015-07-20 Marek Polacek <polacek@redhat.com>
13816 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
13818 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13820 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
13821 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
13823 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13825 * combine.c (combine_simplify_rtx): Move simplification step
13826 before various transformations/substitutions.
13828 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
13830 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
13831 (struct int_traits): Likewise.
13833 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13835 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
13836 function to vmsdbgout_function_decl.
13838 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13841 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
13842 from misaligned positions.
13843 (ix86_expand_pinsr): Reject insertions to misaligned positions.
13845 2015-07-18 Sebastian Pop <s.pop@samsung.com>
13847 PR middle-end/46851
13848 PR middle-end/60340
13849 * Makefile.in: Removed omega.o.
13850 * common.opt: Document flag fcheck-data-deps as deprecated.
13851 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
13852 its associated params: omega-max-vars, omega-max-geqs,
13853 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
13854 omega-max-keys, omega-eliminate-redundant-constraints.
13855 * doc/loop.texi: Remove all the section on Omega.
13856 * graphite-blocking.c: Include missing params.h: it used to be
13857 included through tree-data-ref.h and omega.h.
13858 * graphite-isl-ast-to-gimple.c: Same.
13859 * graphite-optimize-isl.c: Same.
13860 * graphite-sese-to-poly.c: Same.
13861 * graphite.c: Same.
13864 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
13865 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
13866 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
13867 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
13868 * passes.def: Remove pass_check_data_deps.
13869 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
13870 (dump_conflict_function): Same.
13871 (dump_subscript): Same.
13872 (print_direction_vector): Same.
13873 (print_dir_vectors): Same.
13874 (print_lambda_vector): Same.
13875 (print_dist_vectors): Same.
13876 (dump_data_dependence_relation): Same.
13877 (dump_data_dependence_relations): Same.
13878 (dump_dist_dir_vectors): Same.
13880 (init_omega_eq_with_af): Removed.
13881 (omega_extract_distance_vectors): Removed.
13882 (omega_setup_subscript): Removed.
13883 (init_omega_for_ddr_1): Removed.
13884 (init_omega_for_ddr): Removed.
13885 (ddr_consistent_p): Removed.
13886 (compute_affine_dependence): Do not use omega to check data
13888 (compute_data_dependences_for_bb): Removed.
13889 (analyze_all_data_dependences): Removed.
13890 (tree_check_data_deps): Removed.
13891 * tree-data-ref.h: Do not include omega.h.
13892 (compute_data_dependences_for_bb): Removed.
13893 (tree_check_data_deps): Removed.
13894 * tree-ssa-loop.c (pass_check_data_deps): Removed.
13895 (make_pass_check_data_deps): Removed.
13896 * tree-ssa-phiopt.c: Include params.h.
13897 * tree-vect-data-refs.c: Same.
13898 * tree-vect-slp.c: Same.
13900 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
13902 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
13903 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
13904 (mem->fpreg splitters): Ditto.
13905 (general_operand->nonimmediate_operand splitter): Use explicit modes.
13906 Disable DFmode for TARGET_64BIT.
13908 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
13911 * config/i386/i386.c (ix86_expand_prologue): Replicate static
13912 chain on the stack.
13914 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13916 * config/nvptx/mkoffload.c (process): Constify host data.
13917 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13918 Constify host data.
13919 (generate_host_descr_file): Likewise.
13921 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
13922 Sebastian Pop <s.pop@samsung.com>
13924 PR middle-end/61929
13925 * graphite-dependences.c (add_pdr_constraints): Renamed
13926 pdr->extent to pdr->subscript_sizes.
13927 * graphite-interchange.c (build_linearized_memory_access): Add
13928 back all gcc_assert's that the "isl_int to isl_val conversion"
13929 patch has removed. Refactored.
13930 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
13931 * graphite-poly.c (new_poly_dr): Same.
13932 (free_poly_dr): Same.
13933 * graphite-poly.h (struct poly_dr): Same.
13934 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
13935 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
13936 * graphite-scop-detection.h: Fix space.
13937 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
13938 back all gcc_assert's removed by a previous patch.
13939 (wrap): Remove the_isl_ctx global variable that the same patch has
13941 (build_loop_iteration_domains): Same.
13942 (add_param_constraints): Same.
13943 (pdr_add_data_dimensions): Same. Refactored.
13944 (build_poly_dr): Renamed extent to subscript_sizes.
13946 2015-07-17 Marek Polacek <polacek@redhat.com>
13948 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
13949 * match.pd: ... here.
13951 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
13953 * config/nvptx/mkoffload.c (process): Constify target data.
13954 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
13955 Constify target data.
13956 (generate_target_offloadend_file): Likewise.
13958 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
13960 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
13961 to allow renaming of PHI arguments on edges incoming from outer
13962 loop header, add corresponding check before start PHI iterator.
13963 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
13964 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
13965 with true force_vectorize. Set-up dominator for outer loop too.
13966 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
13967 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
13968 was marked with force_vectorize and has restricted cfg.
13969 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
13971 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
13972 do peeling for outer loops.
13974 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
13975 Matthias Klose <doko@ubuntu.com>
13977 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
13978 build-sysroot, sysroot from the `Miscenalleous configure options' to
13979 the `Directories' section and strip trailing `/' from with_sysroot.
13980 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
13981 * configure: Regenerated.
13983 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13986 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
13987 (TARGET_HARD_DF_REGS): Ditto.
13988 (TARGET_HARD_XF_REGS): Ditto.
13989 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
13990 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
13991 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
13992 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
13993 (*movsf_internal): Add alternatives 16 and 17. Enable
13994 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
13996 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
13998 PR rtl-optimization/66891
13999 * calls.c (expand_call): Wrap precompute_register_parameters with
14000 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
14002 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
14004 * config/nvptx/mkoffload.c (process): Constify mapping variables.
14005 Define target data struct and initialize it.
14007 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
14009 PR rtl-optimization/66626
14010 * ira.h (emit-rtl.h): Include.
14011 (non_spilled_static_chain_regno_p): New.
14012 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
14013 unless it is non spilled static chain pseudo.
14014 (assign_hard_rego): Spill memory profitable allocno unless it is
14015 non spilled static chain pseudo.
14016 (allocno_spill_priority_compare): Put non spilled static chain
14017 pseudo at the end of sorted array.
14018 (improve_allocation): Do nothing if we have static chain and
14020 (allocno__priority_compare_func): Put non spilled static chain
14021 pseudo at the beginning of sorted array.
14022 (move_spill_restore): Ignore non spilled static chain pseudo.
14023 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
14024 to non spilled static chain pseudo.
14025 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
14026 pseudo at the beginning of sorted array.
14027 (spill_for): Spill non spilled static chain pseudo last.
14028 * lra-constraints.c (lra_constraints): Remove static chain pseudo
14029 check for equivalence.
14031 2015-07-16 Martin Liska <mliska@suse.cz>
14034 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
14035 dst_ctx if it does not exist.
14037 2015-07-16 Martin Liska <mliska@suse.cz>
14039 * hash-set.h (remove): New function.
14040 (iterator): New iteration class for hash_set.
14042 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14044 * genattrtab.c (make_canonical): Add a file_location parameter.
14045 Use fatal_at rather than fatal.
14046 (get_attr_value): Likewise. Update call to make_canonical.
14047 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
14048 (make_internal_attr): Update calls accordingly.
14050 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14052 * read-md.h (message_with_line, error_with_line): Delete.
14053 * read-md.c (message_with_line, error_with_line): Delete.
14054 * gensupport.h: Include read-md.h.
14055 (md_rtx_info): New structure.
14056 (read_md_rtx): Use it. Return a bool success value.
14057 * gensupport.c (read_md_rtx): Likewise.
14058 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
14059 (main): Update after interface changes.
14060 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
14061 (main): Update after interface changes.
14062 * genattrtab.c (insn_code_number): Delete.
14063 (optimize_attrs): Add a max_insn_code parameter and use it instead
14064 of insn_code_number.
14065 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
14066 Use *_at rather than *_with_line functions.
14067 (gen_insn): Likewise.
14068 (gen_delay): Likewise.
14069 (gen_insn_reserv): Likewise.
14070 (gen_bypass): Take an md_rtx_info rather than an rtx.
14071 (main): Update after interface changes. Use a local max_insn_code
14072 variable instead of insn_code_number.
14073 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
14074 an rtx. Use fatal_at rather than fatal.
14075 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
14076 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
14077 (gen_absence_set, gen_final_absence_set, gen_automaton)
14078 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
14079 (main): Update after interface changes.
14080 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
14082 (main): Update after interface changes.
14083 * genconditions.c (main): Use new read_md_rtx interface.
14084 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
14085 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
14086 (main): Update after interface changes.
14087 * genemit.c (insn_code_number, insn_index_number): Delete.
14088 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14089 Use fatal_at rather than fatal.
14090 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
14092 (gen_split): Likewise.
14093 (main): Update after interface changes.
14094 * genextract.c (line_no): Delete.
14095 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14096 Update call to walk_rtx.
14097 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
14098 rather than message_with_line.
14099 (walk_rtx): Add an md_rtx_info argument. Update call to
14100 VEC_safe_set_locstr.
14101 (main): Update after interface changes.
14102 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
14103 and lineno. Use error_at rather than separate message_with_line
14104 calls and have_error assignments.
14105 (main): Update after interface changes.
14106 * genmddump.c (main): Use new read_md_rtx interface.
14107 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
14108 (main): Update after interface changes.
14109 * genoutput.c (next_code_number): Delete.
14110 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
14111 (gen_peephole, gen_expand, gen_split): Likewise.
14112 (note_constraint): Likewise. Use *_at rather than *_with_line
14114 (main): Update after interface changes.
14115 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
14117 (main): Update after interface changes.
14118 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
14119 than an rtx and lineno.
14120 (process_define_constraint): Likewise.
14121 (process_define_register_constraint): Likewise.
14122 (main): Update after interface changes.
14123 * genrecog.c (next_insn_code, pattern_lineno): Delete.
14124 (validate_pattern): Replace top-level rtx with an md_rtx_info.
14125 Use *_at rather than *_with_line functions.
14126 (match_pattern_2): Likewise.
14127 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
14128 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
14129 Use *_at rather than *_with_line functions.
14130 * gentarget-def.c (add_insn): New function.
14131 (main): Use it. Use new read_md_rtx interface.
14133 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14135 * gensupport.h (compute_test_codes): Take a file_location rather
14136 than a line number.
14137 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
14138 rather than *_with_line functions.
14139 (process_define_predicate): Update call to compute_test_codes.
14140 * genpreds.c (validate_exp): Take a file_location rather than a
14141 line number. Use *_at functions rather than *_with_line functions.
14142 (process_define_predicate): Update call to validate_exp.
14143 (constraint_data): Replace lineno field with a file_location.
14144 (add_constraint): Take a file_location rather than a line number.
14145 Use *_at functions rather than *_with_line functions. Fix error
14146 message for address constraints. Update after changes to
14147 validate_exp, constraint_data and compute_test_codes.
14148 (process_define_constraint): Update accordingly.
14149 (process_define_register_constraint): Likewise.
14151 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14153 * genoutput.c (data): Use a file_location to record the source
14156 (idata, idata_end): Remove initialization.
14157 (constraint_data): Replace lineno with a file_location.
14158 (output_insn_data): Update after changes to data.
14159 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
14160 (scan_operands): Likewise, using *_at rather than *_with_line
14162 (process_template): Likewise.
14163 (validate_insn_alternatives): Likewise.
14164 (validate_insn_operands): Likewise.
14165 (validate_optab_operands): Likewise.
14166 (init_insn_for_nothing): Initialize idata and idata_end.
14167 (note_constraint): Update after changes to constraint_data,
14168 using at rather than with_line functions.
14169 (mdep_constraint_len): Take a file_location rather than a
14170 line number. Use at rather than with_line functions.
14172 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14174 * read-md.h (fatal_at): Declare.
14175 * read-md.c (fatal_at): New function.
14176 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
14177 to record the source position.
14178 (check_attr_test): Take a file_location instead of a line number.
14179 Use fatal_at instead of fatal.
14180 (check_attr_value): Update after above changes, using "at"
14181 rather than "with_line" reporting functions.
14182 (convert_set_attr_alternative): Likewise.
14183 (gen_attr): Likewise.
14184 (check_defs): Likewise. Don't assign to read_md_filename.
14185 (gen_insn): Update initialization after above changes.
14186 (gen_delay): Likewise.
14187 (write_insn_cases): Print the filename for a define_peephole.
14188 (gen_insn_reserv): Take a line number as argument and update
14189 the call to check_attr_test.
14190 (main): Pass a line number to gen_insn_reserv.
14192 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14194 * read-md.h (file_location): New structure.
14195 (directive_handler_t): Take a file_location rather than a line number.
14196 (message_at, error_at): Declare.
14197 (read_skip_construct): Delete.
14198 * read-md.c (message_with_line_1): Replace with...
14199 (message_at_1): ...this new function.
14200 (message_at, error_at): New functions.
14201 (message_with_line, error_with_line): Update to use message_at_1.
14202 (handle_enum): Take a file_location rather than a line number
14203 and use error_at for error reporting.
14204 (handle_include): Likewise.
14205 (read_skip_construct): Likewise. Make static.
14206 (handle_file): Update after above changes. Pass a file_location
14207 rather than a line number to handle_directive.
14208 * gensupport.c (queue_elem): Replace separate filename and lineno
14209 with a file_location.
14210 (queue_pattern): Replace filename and lineno arguments with a
14211 file_location. Update after change to queue_elem.
14212 (process_define_predicate): Replace lineno argument with a
14213 file_location and use error_at for error reporting. Update
14214 after above changes.
14215 (process_rtx): Likewise.
14216 (subst_pattern_match): Likewise.
14217 (get_alternatives_number): Likewise.
14218 (alter_predicate_for_insn): Likewise.
14219 (rtx_handle_directive): Likewise.
14220 (is_predicable): Update after above changes, using error_at rather
14221 than error_with_line.
14222 (has_subst_attribute): Likewise.
14223 (identify_predicable_attribute): Likewise.
14224 (alter_attrs_for_subst_insn): Likewise.
14225 (process_one_cond_exec): Likewise.
14226 (process_substs_on_one_elem): Likewise.
14227 (process_define_subst): Likewise.
14228 (check_define_attr_duplicates): Likewise.
14229 (read_md_rtx): Update after change to queue_elem.
14231 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14233 * genoutput.c (next_index_number): Delete.
14234 (data): Remove index_number.
14235 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
14236 (main): Remove manipulation of next_index_number.
14238 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
14240 * genattrtab.c (check_attr_value): Remove handling of null attrs.
14241 (make_canonical): Likewise.
14243 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
14245 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
14246 instead of adjust_address_nv.
14247 (restore_stack_nonlocal): Likewise.
14248 (nonlocal_goto): Likewise.
14250 2015-07-16 Tom de Vries <tom@codesourcery.com>
14252 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
14253 not have a corresponding loop header phi.
14255 2015-07-16 Tom de Vries <tom@codesourcery.com>
14257 * tree-parloops.c (create_loads_for_reductions): Handle case that
14258 reduction is unused.
14260 2015-07-16 Richard Biener <rguenther@suse.de>
14262 PR tree-optimization/66894
14263 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
14264 about deriving NE_EXPR from truncated values.
14266 2015-07-16 Martin Liska <mliska@suse.cz>
14269 (object_allocator): Add new class.
14270 (pool_allocator::initialize): Use the underlying class.
14271 (pool_allocator::allocate): Likewise.
14272 (pool_allocator::remove): Likewise.
14273 (operator new): A new generic allocator.
14274 * asan.c (struct asan_mem_ref): Remove unused members.
14275 (asan_mem_ref_new): Replace new operator with
14276 object_allocator::allocate.
14277 (free_mem_ref_resources): Change deallocation.
14278 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
14279 with object_allocator.
14280 * config/sh/sh.c (add_constant): Replace new operator with
14281 object_allocator::allocate.
14282 (sh_reorg): Change call to a release method.
14283 * cselib.c (struct elt_list): Remove unused members.
14284 (new_elt_list): Replace new operator with
14285 object_allocator::allocate.
14286 (new_elt_loc_list): Likewise.
14287 (new_cselib_val): Likewise.
14288 (unchain_one_elt_list): Change delete operator with remove method.
14289 (unchain_one_elt_loc_list): Likewise.
14290 (unchain_one_value): Likewise.
14291 (cselib_finish): Release newly added static allocators.
14292 * cselib.h (struct cselib_val): Remove unused members.
14293 (struct elt_loc_list): Likewise.
14294 * df-problems.c (df_chain_alloc): Replace pool_allocator with
14296 * df-scan.c (struct df_scan_problem_data): Likewise.
14297 (df_scan_alloc): Likewise.
14298 * df.h (struct dataflow): Likewise.
14299 * dse.c (struct read_info_type): Likewise.
14300 (struct insn_info_type): Likewise.
14301 (struct dse_bb_info_type): Likewise.
14302 (struct group_info): Likewise.
14303 (struct deferred_change): Likewise.
14304 (get_group_info): Likewise.
14305 (delete_dead_store_insn): Likewise.
14306 (free_read_records): Likewise.
14307 (replace_read): Likewise.
14308 (check_mem_read_rtx): Likewise.
14309 (scan_insn): Likewise.
14310 (dse_step1): Likewise.
14311 (dse_step7): Likewise.
14312 * et-forest.c (struct et_occ): Remove unused members.
14313 (et_new_occ): Use allocate instead of new operator.
14314 (et_new_tree): Likewise.
14315 (et_free_tree): Call release method explicitly.
14316 (et_free_tree_force): Likewise.
14317 (et_free_pools): Likewise.
14318 (et_split): Use remove instead of delete operator.
14319 * et-forest.h (struct et_node): Remove unused members.
14320 * ipa-cp.c: Change pool_allocator to object_allocator.
14321 * ipa-inline-analysis.c: Likewise.
14322 * ipa-profile.c: Likewise.
14323 * ipa-prop.c: Likewise.
14324 * ipa-prop.h: Likewise.
14325 * ira-build.c (initiate_cost_vectors): Cast return value.
14326 (ira_allocate_cost_vector): Likewise.
14327 * ira-color.c (struct update_cost_record): Remove unused members.
14328 * lra-int.h (struct lra_live_range): Likewise.
14329 (struct lra_copy): Likewise.
14330 (struct lra_insn_reg): Likewise.
14331 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
14332 * lra.c (new_insn_reg): Replace new operator with allocate method.
14333 (free_insn_regs): Same for operator delete.
14334 (finish_insn_regs): Release new static allocator.
14335 (finish_insn_recog_data): Likewise.
14336 (lra_free_copies): Replace delete operator with remove method.
14337 (lra_create_copy): Replace operator new with allocate method.
14338 (invalidate_insn_data_regno_info): Same for remove method.
14339 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
14340 (free_debug_insn_changes): Replace delete operator with remove method.
14341 (replace_oldest_value_reg): Replace operator new with allocate method.
14342 (pass_cprop_hardreg::execute): Release new static variable.
14343 * sched-deps.c (sched_deps_init): Change pool_allocator to
14345 * sel-sched-ir.c: Likewise.
14346 * sel-sched-ir.h: Likewise.
14347 * stmt.c (expand_case): Likewise.
14348 (expand_sjlj_dispatch_table): Likewise.
14349 * tree-sra.c (struct access): Remove unused members.
14350 (struct assign_link): Likewise.
14351 (sra_deinitialize): Release newly added static pools.
14352 (create_access_1):Replace operator new with allocate method.
14353 (build_accesses_from_assign): Likewise.
14354 (create_artificial_child_access): Likewise.
14355 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
14356 pool_allocator to object_allocator.
14357 * tree-ssa-pre.c: Likewise.
14358 * tree-ssa-reassoc.c: Likewise.
14359 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14360 * tree-ssa-strlen.c: Likewise.
14361 * tree-ssa-structalias.c: Likewise.
14362 * var-tracking.c (onepart_pool_allocate): New function.
14363 (unshare_variable): Use the newly added function.
14364 (variable_merge_over_cur): Likewise.
14365 (variable_from_dropped): Likewise.
14366 (variable_was_changed): Likewise.
14367 (set_slot_part): Likewise.
14368 (emit_notes_for_differences_1): Likewise.
14369 (vt_finalize): Release newly added static pools.
14371 2015-07-16 Martin Jambor <mjambor@suse.cz>
14373 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
14374 all uses. Fix two typos in its general comment.
14375 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
14377 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
14379 * config/i386/linux-common.h (LINK_MPX): New.
14380 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
14381 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
14382 indicating '-z bndplt' support by linker.
14383 * configure: Regenerate.
14384 * config.in: Regenerate.
14386 2015-07-16 Richard Biener <rguenther@suse.de>
14388 * fold-const.c (fold_widened_comparison): Remove.
14389 (fold_sign_changed_comparison): Likewise.
14390 (fold_comparison): Move widened and sign-changed comparison
14392 * match.pd: ... to patterns here.
14393 * generic-match-head.c: Include target.h.
14394 * gimple-match-head.c: Likewise.
14396 2015-07-16 Richard Biener <rguenther@suse.de>
14398 * tree-ssa-dom.c (dom_valueize): New function.
14399 (record_temporary_equivalences): Also record equivalences
14400 for dominating stmts that have uses of equivalences we are
14403 2015-07-16 Bin Cheng <bin.cheng@arm.com>
14405 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
14406 add_autoinc_candidates.
14407 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
14408 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
14409 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
14410 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
14412 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
14413 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
14414 Remove parameter struct iv*. Call add_autoinc_candidates here.
14415 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
14416 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
14418 (find_iv_candidates): Call new functions.
14420 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
14422 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
14423 uninitialized-variable warning.
14425 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
14428 * config/sh/sh.md (movdi): Split simple reg move to two movsi
14429 when the destination is R0.
14431 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
14434 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
14435 * config/i386/i386.c (ix86_expand_pextr): New function.
14436 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
14437 for non-lowpart subregs.
14438 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
14439 (insv<mode>): Use SWI248 mode iterator.
14440 (insv<mode>_1): Ditto.
14442 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14443 Sebastian Pop <s.pop@samsung.com>
14445 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
14446 iterator to use_stmt.
14448 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14449 Sebastian Pop <s.pop@samsung.com>
14451 * graphite-scop-detection.c (build_scops_1): Discard scops for
14454 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14455 Sebastian Pop <s.pop@samsung.com>
14457 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
14458 case of a return statement in scop.
14460 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
14461 Sebastian Pop <s.pop@samsung.com>
14463 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
14464 INTEGER_TYPE parameters.
14465 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
14466 VECTOR_CST in scan_tree_for_params.
14467 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
14469 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14471 * gimple-pretty-print.h: Don't include pretty-print.h.
14472 * tree-streamer.h: Don't include lto-streamer.h.
14473 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
14474 * gimple-streamer-in.c: Remove redundant includes.
14475 * gimple-streamer-out.c: Likewise.
14476 * ipa-devirt.c: Likewise.
14477 * ipa-icf.c: Likewise.
14478 * ipa-inline-analysis.c: Likewise.
14479 * ipa-polymorphic-call.c: Likewise.
14480 * ipa-profile.c: Likewise.
14481 * ipa-prop.c: Likewise.
14482 * ipa-pure-const.c: Likewise.
14483 * lto-cgraph.c: Likewise.
14484 * lto-streamer-in.c: Likewise.
14485 * lto-streamer-out.c: Likewise.
14486 * lto-streamer.c: Likewise.
14487 * tree-streamer-in.c: Likewise.
14488 * tree-streamer-out.c: Likewise.
14489 * tree-streamer.c: Likewise.
14491 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
14493 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
14495 * opts.c: Remove multiline #include comment.
14497 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
14499 * config/nvptx/mkoffload.c (process): Add C++ protection to
14502 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14505 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
14506 null before IEEE 128-bit floating point support patch.
14508 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14510 * simplify-rtx.c (simplify_ternary_operation): Add simplification
14511 for (!c) != {0,...,0} ? a : b for vector modes.
14513 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
14514 Martin Jambor <mjambor@suse.cz>
14516 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
14517 struct func_body_info* instead of struct ipa_node_params*, expecting
14518 fbi->info to be filled in. Replace throughout. Adjust call to
14519 ipa_load_from_parm_agg.
14520 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
14521 instead of struct ipa_node_params*. Adjust calls to other functions
14522 so that they pass either fbi or fbi->info.
14523 (set_switch_stmt_execution_predicate): Likewise.
14524 (will_be_nonconstant_predicate): Likewise.
14525 (compute_bb_predicates): Likewise.
14526 (estimate_function_body_sizes): Move asserts earlier. Fill in
14527 struct func_body_info, replace parms_info with fbi.info. Adjust
14528 calls to functions that now accept struct func_body_info.
14529 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
14530 (struct func_body_info): Likewise.
14531 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
14532 remove static. Adjust callers.
14533 (ipa_load_from_parm_agg): Remove.
14534 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
14535 (func_body_info): Likewise.
14536 (ipa_load_from_parm_agg): Adjust prototype.
14538 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14540 * gensupport.c (rtx_handle_directive): Adjust.
14541 * read-rtl.c (apply_iterators): Take vector to add rtxs to
14542 instead of expr list rtx.
14543 (add_define_attr_for_define_subst): Likewise.
14544 (add_define_subst_attr): Likewise.
14545 (read_subst_mapping): Likewise.
14546 (read_rtx): Likewise.
14547 * rtl.h (read_rtx): Adjust.
14549 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14551 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
14553 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14556 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
14557 (*tls_local_dynamic_base_64_<mode>): Ditto.
14558 (*tls_local_dynamic_base_64_largepic): Ditto.
14559 (tls_global_dynamic_64_<mode>): Update expander pattern.
14560 (tls_local_dynamic_base_64_<mode>): Ditto.
14562 2015-07-15 Richard Biener <rguenther@suse.de>
14564 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
14565 and bool_var == 1 -> bool_var simplifications ...
14566 * match.pd: ... to patterns here. Factor out negate_expr_p
14567 cases from the A - B -> A + (-B) patterns as negate_expr_p
14568 predicate and add a -(A + B) -> (-B) - A pattern.
14570 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14572 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
14574 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
14575 Robert Suchanek <robert.suchanek@imgtec.com>
14577 * config/mips/mips.c (mips_int_mask): New enum.
14578 (mips_shadow_set): Likewise.
14579 (int_mask): New variable.
14580 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
14581 (machine_function): Add int_mask and use_shadow_register_set.
14582 (mips_attribute_table): Add attribute handlers for interrupt and
14583 use_shadow_register_set.
14584 (mips_interrupt_mask): New static function.
14585 (mips_handle_interrupt_attr): Likewise.
14586 (mips_handle_use_shadow_register_set_attr): Likewise.
14587 (mips_use_shadow_register_set): Change return type to enum
14588 mips_shadow_set. Add argument handling for use_shadow_register_set
14590 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
14591 compare with mips_shadow_set enum.
14592 (mips_compute_frame_info): Add interrupt mask and
14593 use_shadow_register_set to per-function information structure.
14594 Add a stack slot for EPC unconditionally.
14595 (mips_expand_prologue): Compare use_shadow_register_set value
14596 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
14597 masked interrupt register but in EIC mode use K0 and save Cause in K0.
14598 EPC saved and restored unconditionally. Use PMODE_INSN macro when
14599 copying the stack pointer from the shadow register set.
14600 * config/mips/mips.h (SR_IM0): New define.
14601 * config/mips/mips.md (mips_rdpgpr): Rename to...
14602 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
14603 * doc/extend.texi (Declaring Attributes of Functions): Document
14604 optional arguments for interrupt and use_shadow_register_set
14607 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
14609 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
14610 interrupt attribute.
14611 (mips_expand_prologue): Disable the floating point unit in an ISR.
14612 * config/mips/mips.h (SR_COP1): New define.
14614 2015-07-15 Richard Biener <rguenther@suse.de>
14616 * genmatch.c (parser::peek, parser::peek_ident): Add argument
14617 to tell how many tokens to peek ahead (default 1).
14618 (parser::eat_token, parser::eat_ident): Return token consumed.
14619 (parser::parse_result): Parse new switch statement.
14620 * match.pd: Use case statements where appropriate.
14622 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14624 PR rtl-optimization/58066
14625 * calls.c (expand_call): Precompute register parameters before stack
14626 alignment is performed.
14628 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
14630 PR rtl-optimization/66838
14631 * postreload.c (reload_cse_move2add): Also process
14632 CALL_INSN_FUNCTION_USAGE when resetting information of
14633 call-clobbered registers.
14635 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14636 Cesar Philippidis <cesar@codesourcery.com>
14637 Chung-Lin Tang <cltang@codesourcery.com>
14639 * config/nios2/constraints.md (U, v): New constraints.
14640 * config/nios2/predicates.md (rdprs_dcache_operand): New.
14641 (ldstex_memory_operand): New.
14642 * config/nios2/sync.md: New file.
14643 * config/nios2/nios2.md (unspecv): Add new builtin function
14645 (rdprs, flushd, flushda, wrpie, eni): New patterns.
14646 (top-level): Include sync.md.
14647 * config/nios2/nios2.c (N2_FTYPES): Add function types for
14649 (N2_BUILTINS): Add arch field setting, add new builtins.
14650 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
14652 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
14653 Also handle ldex/stex/ldsex/stsex builtins.
14654 (nios2_expand_rdprs_builtin): New function.
14655 (nios2_expand_cache_builtin): New function.
14656 (nios2_expand_wrpie_builtin): New function.
14657 (nios2_expand_eni_builtin): New function.
14658 (nios2_expand_builtin): Add arch field handling and new builtin
14660 * doc/extend.texi (Altera Nios II Built-in Functions): Document
14662 * doc/md.texi (Machine Constraints): Document U and v constraints.
14664 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14665 Cesar Philippidis <cesar@codesourcery.com>
14666 Chung-Lin Tang <cltang@codesourcery.com>
14668 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
14669 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
14670 callee_save_reg_size and uses_anonymous_args fields.
14671 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
14672 (nios2_create_cfa_notes): New function.
14673 (nios2_adjust_stack): New function for adjusting stack.
14674 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
14675 Use nios2_adjust_stack.
14676 (nios2_expand_epilogue): Likewise.
14677 (nios2_expand_return): New function.
14678 (nios2_can_use_return_insn): Update for CDX pop.n usage.
14679 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
14680 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
14681 * config/nios2/nios2.md (return): Use nios2_expand_return.
14683 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14684 Cesar Philippidis <cesar@codesourcery.com>
14685 Chung-Lin Tang <cltang@codesourcery.com>
14687 * config/nios2/predicates.md (pop_operation): New.
14688 (ldwm_operation, stwm_operation): New.
14689 (nios2_hard_register_operand): New.
14690 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
14691 (ldstwm_operation_p): Declare.
14692 (gen_ldstwm_peep): Declare.
14693 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
14694 (base_reg_adjustment_p): New.
14695 (pop_operation_p): New.
14696 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
14697 (nios2_ldstwm_regset_p): New.
14698 (ldstwm_operation_p): New.
14700 (nios2_ldst_parallel): New.
14701 (struct ldswm_operand): Declare.
14702 (compare_ldstwm_operands): New.
14703 (can_use_cdx_ldstw): New.
14704 (gen_ldstwm_peep): New.
14705 * config/nios2/nios2-ldstwm.sml: New.
14706 * config/nios2/nios2.md: Include ldstwm.md.
14707 * config/nios2/ldstwm.md: Generated.
14709 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14710 Cesar Philippidis <cesar@codesourcery.com>
14711 Chung-Lin Tang <cltang@codesourcery.com>
14713 * config/nios2/nios2.h (LABEL_ALIGN): Define.
14714 (REG_ALLOC_ORDER): Define.
14715 (ADJUST_REG_ALLOC_ORDER): Define.
14716 (HONOR_REG_ALLOC_ORDER): Define.
14717 (CDX_REG_P): Define.
14718 (ANDCLEAR_INT): Define.
14719 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
14720 (nios2_label_align): Declare.
14721 (nios2_cdx_narrow_form_p): Declare.
14722 (nios2_adjust_reg_alloc_order): Declare.
14723 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
14725 (nios2_large_unspec_reloc_p): New function, split from...
14726 (nios2_legitimate_pic_operand_p): ...here.
14727 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
14728 (nios2_print_operand_punct_valid_p): New.
14729 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
14730 (split_mem_address): New.
14731 (split_alu_insn): New.
14733 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
14734 (enum nios2_add_insn_kind): New.
14735 (nios2_add_insn_names, nios2_add_insn_narrow): New.
14736 (nios2_add_insn_classify): New.
14737 (nios2_add_insn_asm): New.
14738 (nios2_cdx_narrow_form_p): New.
14739 (label_align, min_labelno, max_labelno): New.
14740 (nios2_reorg): New.
14741 (nios2_label_align): New.
14742 (nios2_adjust_reg_alloc_order): New.
14743 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14744 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14745 * config/nios2/constraints.md (P): New constraint.
14746 * config/nios2/predicates.md (const_and_operand): New.
14747 (and_operand): New.
14748 (stack_memory_operand): New.
14749 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
14750 (length): Update to use nios2_cdx_narrow_form_p().
14751 (type): Add new insn type values.
14752 (control, alu, st, ld, shift): Update insn reservations with
14753 new insn type values.
14754 (*high, *lo_sum): Define new insn patterns for constant generation.
14755 (movqi_internal, movhi_internal, movsi_internal): Reduce
14756 alternatives, update asm template to handle CDX variants, update
14758 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
14759 template, update type attributes.
14760 (extendhisi2, extendqi<mode>2): Likewise.
14761 (addsi3): Change to use function for asm string.
14762 (subsi3): Add CDX notation to asm template, update type attributes.
14763 (negsi3, one_cmplsi3): Likewise.
14764 (andsi3): New pattern, specialized from logical patterns.
14765 (<code>si3): Remove and case, combine alternatives, update asm
14767 (<shift_op>si3): Add CDX notation, update type attributes.
14768 (rotrsi3): Update type attribute.
14769 (*merge, extzv, insv): New insn patterns.
14770 (return): Change to define_expand.
14771 (simple_return): Add CDX notation, update type attributes.
14772 (indirect_jump): Add CDX notation.
14773 (jump): Update asm cases, update length attribute expression.
14774 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
14775 (nios2_cbranch): Update asm cases and length attribute expression
14776 to handle CDX variants.
14777 (nios2_cmp<code>): Update asm template.
14778 (nop): Add CDX notation, update type attributes.
14779 (trap): Add CDX notation.
14780 (ctrapsi4): Update asm cases and length attribute expression to
14781 handle CDX variant.
14782 * doc/md.texi (Machine Constraints): Document P constraint.
14784 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14785 Cesar Philippidis <cesar@codesourcery.com>
14786 Chung-Lin Tang <cltang@codesourcery.com>
14788 * config/nios2/nios2.h (SMALL_INT12): New macro.
14789 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
14790 (nios2_valid_addr_expr_p): Use it.
14791 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
14792 with implicit "io" instructions on R2.
14793 * config/nios2/constraints.md (w): New constraint.
14794 * config/nios2/predicates.md (ldstio_memory_operand): New.
14795 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
14796 operand predicate and constraint.
14797 (ld<bh>io_signed, st<bhw>io>): Likewise.
14798 * doc/md.texi (Machine Constraints): Document w constraint.
14800 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14801 Cesar Philippidis <cesar@codesourcery.com>
14802 Chung-Lin Tang <cltang@codesourcery.com>
14804 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
14805 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
14806 Nios II architecture level.
14807 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
14808 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
14809 (OPTION_DEFAULT_SPECS): Define.
14810 (ASM_SPEC): Add -march= spec strings.
14811 * config/nios2/nios2.c (nios2_option_override): Check for
14812 conflicts involving new options.
14813 * config.gcc (nios2*-*-*): Support --with-arch=.
14814 * doc/invoke.texi (Option Summary, Nios II Options): Document
14815 -march=, -mbmx, and -mcdx.
14817 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
14819 PR rtl-optimization/66626
14820 * lra-constraints.c (lra_constraints): Prevent equivalence
14821 substitution for static chain pseudo in functions with nonlocal
14824 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
14826 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
14827 (nios2_emit_stack_limit_check): Add size parameter. Handle
14828 -fstack-limit-symbol as well as -fstack-limit-register.
14829 (nios2_expand_prologue): Emit only a single stack limit check,
14830 even if multiple stack adjustments are required.
14831 (nios2_option_override): Diagnose unsupported combination of -fpic
14832 and -stack-limit-symbol.
14834 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
14836 * Makefile.in (top_srcdir): New.
14837 * configure.ac: Use AM_ZLIB.
14838 * configure: Regeneated.
14840 2015-07-14 Matthias Klose <doko@ubuntu.com>
14843 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
14845 2015-07-14 Richard Biener <rguenther@suse.de>
14847 PR tree-optimization/66863
14848 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
14849 what we record for conversion use stmt lhs inequalities.
14851 2015-07-14 Richard Biener <rguenther@suse.de>
14853 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
14854 (decision_tree::gen_gimple): Likewise.
14856 2015-07-14 Tom de Vries <tom@codesourcery.com>
14858 * gcc.c (greater_than_spec_func): Declare forward.
14859 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
14860 -ftree-parallelize-loops={0,1}.
14861 (static_spec_functions): Add greater_than_spec_func function with name
14863 (greater_than_spec_func): New function.
14865 2015-07-14 Richard Biener <rguenther@suse.de>
14867 * tree-ssa-dom.c (record_temporary_equivalences): Merge
14868 wideing type conversion case from record_equivalences_from_incoming_edge
14869 and use record_equality to record equivalences.
14870 (record_equivalences_from_incoming_edge): Call
14871 record_temporary_equivalences.
14873 2015-07-14 Richard Biener <rguenther@suse.de>
14875 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
14876 (struct if_expr): New.
14877 (struct with_expr): Likewise.
14878 (is_a_helper): Add helpers for if_expr and with_expr.
14879 (struct simplify): Add simplify_kind enum and member. Remove
14881 (simplify::simplify): Adjust.
14882 (lower_commutative): Adjust.
14883 (lower_opt_convert): Likewise.
14884 (lower_cond): Likewise.
14885 (replace_id): Handle with_expr and if_expr.
14886 (lower_for): Adjust.
14887 (dt_simplify::gen_1): New recursive worker, split out from ...
14888 (dt_simplify::gen): ... here. Deal with if and with expansion
14890 (capture_info::capture_info): Take context argument
14891 (capture_info::walk_result): Only analyze specific result.
14892 (parser::parse_result): New function.
14893 (parser::parse_simplify): Adjust to parse ifs with then end
14895 (parser::parse_if): Simplify.
14896 (parser::parse_pattern): Pass down simplify kind.
14897 * match.pd: Convert if structure to new syntax.
14899 2015-07-13 Marek Polacek <polacek@redhat.com>
14901 * rtl.c (rtx_equal_p_cb): Fix typo.
14903 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
14905 * omega.h: Don't include config.h, don't include params.h again if
14906 omega.h has already been included.
14907 * graphite-poly.h: Include sese.h.
14908 * graphite.c: Don't include sese.h, remove needless includes and
14909 minimize includes outside #ifdef HAVE_isl block.
14910 * graphite-blocking.c: Don't include sese.h, remove needless includes,
14911 and wrap entire file in #ifdef HAVE_isl
14912 * graphite-dependences.c: Likewise.
14913 * graphite-interchange.c: Likewise.
14914 * graphite-isl-ast-to-gimple.c: Likewise.
14915 * graphite-optimize-isl.c: Likewise.
14916 * graphite-poly.c: Likewise.
14917 * graphite-scop-detection.c: Likewise.
14918 * graphite-sese-to-poly.c: Likewise.
14920 2015-07-13 Tom de Vries <tom@codesourcery.com>
14922 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
14924 2015-07-13 Renlin Li <renlin.li@arm.com>
14927 * simplify-rtx.c (simplify_const_relational_operation): Add
14928 side_effects_p checks.
14930 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
14932 * bitmap.h: Fix double word typos.
14933 * builtins.c: Same.
14935 * cfgloopmanip.c: Same.
14938 * cgraphclones.c: Same.
14940 * config/aarch64/aarch64-protos.h: Same.
14941 * config/aarch64/aarch64.c: Same.
14942 * config/aarch64/aarch64.md: Same.
14943 * config/arm/arm.md: Same.
14944 * config/arm/arm1020e.md: Same.
14945 * config/arm/arm1026ejs.md: Same.
14946 * config/arm/arm926ejs.md: Same.
14947 * config/arm/fa526.md: Same.
14948 * config/arm/fa606te.md: Same.
14949 * config/arm/fa626te.md: Same.
14950 * config/arm/fa726te.md: Same.
14951 * config/arm/fmp626.md: Same.
14952 * config/darwin.c: Same.
14953 * config/epiphany/epiphany.c: Same.
14954 * config/frv/frv.c: Same.
14955 * config/ft32/ft32.c: Same.
14956 * config/gnu-user.h: Same.
14957 * config/h8300/constraints.md: Same.
14958 * config/i386/i386.c: Same.
14959 * config/i386/i386.md: Same.
14960 * config/iq2000/iq2000.md: Same.
14961 * config/mips/mips.c: Same.
14962 * config/mmix/mmix.md: Same.
14963 * config/moxie/moxie.c: Same.
14964 * config/nds32/nds32.md: Same.
14965 * config/pa/pa.h: Same.
14966 * config/rs6000/aix.h: Same.
14967 * config/rs6000/rs6000.h: Same.
14968 * config/sh/sh.c: Same.
14969 * config/tilegx/tilegx.md: Same.
14970 * config/tilepro/gen-mul-tables.cc: Same.
14973 * doc/invoke.texi: Same.
14975 * dwarf2out.c: Same.
14978 * genmatch.c: Same.
14979 * gimplify.c: Same.
14980 * hash-table.h: Same.
14981 * internal-fn.c: Same.
14983 * ipa-devirt.c: Same.
14986 * ipa-profile.c: Same.
14987 * ipa-prop.c: Same.
14988 * ipa-prop.h: Same.
14991 * reg-stack.c: Same.
14992 * regcprop.c: Same.
14997 * tree-inline.c: Same.
14998 * tree-sra.c: Same.
14999 * tree-ssa-dom.c: Same.
15000 * tree-ssa-loop-ivopts.c: Same.
15001 * tree-ssa-structalias.c: Same.
15002 * tree-ssa-tail-merge.c: Same.
15003 * tree-ssa-ter.c: Same.
15004 * tree-ssa-threadupdate.c: Same.
15005 * tree-ssa-uninit.c: Same.
15006 * tree-ssanames.c: Same.
15007 * tree-vect-loop-manip.c: Same.
15008 * tree-vrp.c: Same.
15010 * valtrack.c: Same.
15013 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15015 PR middle-end/66726
15016 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
15017 tree_ssa_phiopt_worker): Call it.
15019 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
15021 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
15022 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
15025 2015-07-11 Marek Polacek <polacek@redhat.com>
15027 PR middle-end/66353
15028 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
15029 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
15030 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
15031 rather than bb_has_abnormal_call_pred.
15032 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
15033 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
15034 rather than bb_has_abnormal_call_pred.
15036 2015-07-10 Anatoly Sokolov <aesok@post.ru>
15038 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
15039 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
15040 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
15041 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
15042 v850_legitimate_address_p): New functions.
15043 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
15045 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
15048 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
15049 indirect sibcall with register arguments if register available
15050 for argument passing.
15051 (init_cumulative_args): Set cfun->machine->arg_reg_available
15052 to (cum->nregs > 0) or to true if function has a variable
15054 (function_arg_advance_32): Set cfun->machine->arg_reg_available
15055 to false if cum->nregs <= 0.
15056 * config/i386/i386.h (machine_function): Add arg_reg_available.
15058 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15060 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
15061 and gen_higpart instead of gen_rtx_SUBREG.
15062 * config/i386/i386.md
15063 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
15064 (read-modify peephole2): Use gen_lowpart instead of
15065 gen_rtx_SUBREG for operand 5.
15067 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
15069 * config/tilepro/gen-mul-tables.cc (main): Change include list for
15071 * config/tilepro/mul-tables.c: Regenerate.
15072 * config/tilegx/mul-tables.c: Regenerate.
15074 2015-07-10 Richard Biener <rguenther@suse.de>
15076 * fold-const.c (distribute_bit_expr): Remove.
15077 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
15078 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
15079 to A & (B | C) and simplifying A << C1 << C2 to ...
15080 * match.pd: ... patterns here.
15082 2015-07-10 Jiong Wang <jiong.wang@arm.com>
15084 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15085 Mark mem as READONLY and NOTRAP for PIC symbol.
15087 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
15089 * gimple-predict.h: New file.
15090 (gimple_predict_predictor, gimple_predict_set_predictor,
15091 gimple_predict_outcome, gimple_predict_set_outcome,
15092 gimple_build_predict): Relocate here.
15093 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
15094 gimple_predict_outcome, gimple_predict_set_outcome): Move to
15096 * gimple.c (gimple_build_predict): Move to gimple-predict.h
15097 * basic-block.h: Don't include cfghooks.h.
15098 * backend.h: Don't include predict.h.
15099 * cfghooks.h: Include predict.h.
15100 * gimple-pretty-print.c: Include gimple-predict.h.
15101 * gimplify.c: Likwise.
15102 * predict.c: Adjust includes.
15103 * tree-inline.c: Likewise.
15104 * asan.c: Likewise.
15105 * auto-inc-dec.c: Likewise.
15106 * auto-profile.c: Likewise.
15107 * bb-reorder.c: Likewise.
15108 * builtins.c: Likewise.
15109 * caller-save.c: Likewise.
15110 * calls.c: Likewise.
15111 * cfganal.c: Likewise.
15112 * cfgbuild.c: Likewise.
15114 * cfgcleanup.c: Likewise.
15115 * cfgexpand.c: Likewise.
15116 * cfghooks.c: Likewise.
15117 * cfgloopanal.c: Likewise.
15118 * cfgloop.c: Likewise.
15119 * cfgloopmanip.c: Likewise.
15120 * cfgrtl.c: Likewise.
15121 * cgraph.c: Likewise.
15122 * cgraphunit.c: Likewise.
15123 * combine.c: Likewise.
15124 * cprop.c: Likewise.
15127 * dojump.c: Likewise.
15129 * except.c: Likewise.
15130 * expmed.c: Likewise.
15131 * expr.c: Likewise.
15132 * final.c: Likewise.
15133 * fold-const.c: Likewise.
15134 * function.c: Likewise.
15135 * fwprop.c: Likewise.
15136 * gcc-plugin.h: Likewise.
15137 * gcse.c: Likewise.
15138 * genattrtab.c: Likewise.
15139 * genemit.c: Likewise.
15140 * gengtype.c: Likewise.
15141 * genopinit.c: Likewise.
15142 * genoutput.c: Likewise.
15143 * genpreds.c: Likewise.
15144 * genrecog.c: Likewise.
15145 * gimple-fold.c: Likewise.
15146 * gimple-iterator.c: Likewise.
15147 * gimple-ssa-isolate-paths.c: Likewise.
15148 * gimple-ssa-strength-reduction.c: Likewise.
15149 * graph.c: Likewise.
15150 * graphite-blocking.c: Likewise.
15151 * graphite.c: Likewise.
15152 * graphite-dependences.c: Likewise.
15153 * graphite-interchange.c: Likewise.
15154 * graphite-isl-ast-to-gimple.c: Likewise.
15155 * graphite-optimize-isl.c: Likewise.
15156 * graphite-poly.c: Likewise.
15157 * graphite-scop-detection.c: Likewise.
15158 * graphite-sese-to-poly.c: Likewise.
15159 * haifa-sched.c: Likewise.
15160 * ifcvt.c: Likewise.
15161 * internal-fn.c: Likewise.
15162 * ipa-cp.c: Likewise.
15163 * ipa-profile.c: Likewise.
15164 * ipa-split.c: Likewise.
15165 * ipa-utils.c: Likewise.
15166 * ira-build.c: Likewise.
15167 * ira-color.c: Likewise.
15168 * ira-conflicts.c: Likewise.
15169 * ira-costs.c: Likewise.
15170 * ira-emit.c: Likewise.
15171 * ira-lives.c: Likewise.
15172 * jump.c: Likewise.
15173 * loop-doloop.c: Likewise.
15174 * loop-init.c: Likewise.
15175 * loop-invariant.c: Likewise.
15176 * loop-unroll.c: Likewise.
15177 * lower-subreg.c: Likewise.
15178 * lra-assigns.c: Likewise.
15180 * lra-coalesce.c: Likewise.
15181 * lra-constraints.c: Likewise.
15182 * lra-lives.c: Likewise.
15183 * lto-cgraph.c: Likewise.
15184 * lto-streamer-in.c: Likewise.
15185 * mode-switching.c: Likewise.
15186 * modulo-sched.c: Likewise.
15187 * omp-low.c: Likewise.
15188 * optabs.c: Likewise.
15189 * passes.c: Likewise.
15190 * postreload.c: Likewise.
15191 * postreload-gcse.c: Likewise.
15192 * profile.c: Likewise.
15193 * recog.c: Likewise.
15194 * regstat.c: Likewise.
15195 * reload1.c: Likewise.
15196 * reorg.c: Likewise.
15197 * rtlanal.c: Likewise.
15198 * sched-ebb.c: Likewise.
15199 * sel-sched-ir.c: Likewise.
15200 * sese.c: Likewise.
15201 * shrink-wrap.c: Likewise.
15202 * simplify-rtx.c: Likewise.
15203 * stmt.c: Likewise.
15204 * store-motion.c: Likewise.
15205 * tracer.c: Likewise.
15206 * trans-mem.c: Likewise.
15207 * tree-call-cdce.c: Likewise.
15208 * tree-cfg.c: Likewise.
15209 * tree-cfgcleanup.c: Likewise.
15210 * tree-chkp.c: Likewise.
15211 * tree-complex.c: Likewise.
15212 * tree-eh.c: Likewise.
15213 * tree-if-conv.c: Likewise.
15214 * tree-loop-distribution.c: Likewise.
15215 * tree-outof-ssa.c: Likewise.
15216 * tree-parloops.c: Likewise.
15217 * tree-predcom.c: Likewise.
15218 * tree-pretty-print.c: Likewise.
15219 * tree-profile.c: Likewise.
15220 * tree-sra.c: Likewise.
15221 * tree-ssa.c: Likewise.
15222 * tree-ssa-coalesce.c: Likewise.
15223 * tree-ssa-dce.c: Likewise.
15224 * tree-ssa-dom.c: Likewise.
15225 * tree-ssa-forwprop.c: Likewise.
15226 * tree-ssa-ifcombine.c: Likewise.
15227 * tree-ssa-loop-ch.c: Likewise.
15228 * tree-ssa-loop-im.c: Likewise.
15229 * tree-ssa-loop-ivcanon.c: Likewise.
15230 * tree-ssa-loop-ivopts.c: Likewise.
15231 * tree-ssa-loop-manip.c: Likewise.
15232 * tree-ssa-loop-prefetch.c: Likewise.
15233 * tree-ssa-loop-unswitch.c: Likewise.
15234 * tree-ssa-math-opts.c: Likewise.
15235 * tree-ssa-phiopt.c: Likewise.
15236 * tree-ssa-pre.c: Likewise.
15237 * tree-ssa-reassoc.c: Likewise.
15238 * tree-ssa-sink.c: Likewise.
15239 * tree-ssa-tail-merge.c: Likewise.
15240 * tree-ssa-threadedge.c: Likewise.
15241 * tree-ssa-threadupdate.c: Likewise.
15242 * tree-switch-conversion.c: Likewise.
15243 * tree-tailcall.c: Likewise.
15244 * tree-vect-data-refs.c: Likewise.
15245 * tree-vect-loop.c: Likewise.
15246 * tree-vect-loop-manip.c: Likewise.
15247 * tree-vectorizer.c: Likewise.
15248 * tree-vrp.c: Likewise.
15249 * ubsan.c: Likewise.
15250 * value-prof.c: Likewise.
15251 * varasm.c: Likewise.
15252 * var-tracking.c: Likewise.
15253 * config/aarch64/aarch64-builtins.c: Likewise.
15254 * config/aarch64/aarch64.c: Likewise.
15255 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15256 * config/alpha/alpha.c: Likewise.
15257 * config/arc/arc.c: Likewise.
15258 * config/arm/arm.c: Likewise.
15259 * config/avr/avr.c: Likewise.
15260 * config/bfin/bfin.c: Likewise.
15261 * config/c6x/c6x.c: Likewise.
15262 * config/cr16/cr16.c: Likewise.
15263 * config/cris/cris.c: Likewise.
15264 * config/darwin.c: Likewise.
15265 * config/darwin-c.c: Likewise.
15266 * config/epiphany/epiphany.c: Likewise.
15267 * config/epiphany/mode-switch-use.c: Likewise.
15268 * config/epiphany/resolve-sw-modes.c: Likewise.
15269 * config/fr30/fr30.c: Likewise.
15270 * config/frv/frv.c: Likewise.
15271 * config/ft32/ft32.c: Likewise.
15272 * config/h8300/h8300.c: Likewise.
15273 * config/i386/i386.c: Likewise.
15274 * config/i386/winnt.c: Likewise.
15275 * config/ia64/ia64.c: Likewise.
15276 * config/iq2000/iq2000.c: Likewise.
15277 * config/lm32/lm32.c: Likewise.
15278 * config/m32c/m32c.c: Likewise.
15279 * config/m32r/m32r.c: Likewise.
15280 * config/m68k/m68k.c: Likewise.
15281 * config/mcore/mcore.c: Likewise.
15282 * config/mep/mep.c: Likewise.
15283 * config/microblaze/microblaze.c: Likewise.
15284 * config/mips/mips.c: Likewise.
15285 * config/mmix/mmix.c: Likewise.
15286 * config/mn10300/mn10300.c: Likewise.
15287 * config/moxie/moxie.c: Likewise.
15288 * config/msp430/msp430.c: Likewise.
15289 * config/nds32/nds32.c: Likewise.
15290 * config/nds32/nds32-cost.c: Likewise.
15291 * config/nds32/nds32-fp-as-gp.c: Likewise.
15292 * config/nds32/nds32-intrinsic.c: Likewise.
15293 * config/nds32/nds32-isr.c: Likewise.
15294 * config/nds32/nds32-md-auxiliary.c: Likewise.
15295 * config/nds32/nds32-memory-manipulation.c: Likewise.
15296 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
15297 * config/nds32/nds32-predicates.c: Likewise.
15298 * config/nios2/nios2.c: Likewise.
15299 * config/nvptx/nvptx.c: Likewise.
15300 * config/pa/pa.c: Likewise.
15301 * config/pdp11/pdp11.c: Likewise.
15302 * config/rl78/rl78.c: Likewise.
15303 * config/rs6000/rs6000.c: Likewise.
15304 * config/rx/rx.c: Likewise.
15305 * config/s390/s390.c: Likewise.
15306 * config/sh/sh.c: Likewise.
15307 * config/sh/sh-mem.cc: Likewise.
15308 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
15309 * config/sh/sh_treg_combine.cc: Likewise.
15310 * config/sparc/sparc.c: Likewise.
15311 * config/spu/spu.c: Likewise.
15312 * config/stormy16/stormy16.c: Likewise.
15313 * config/tilegx/tilegx.c: Likewise.
15314 * config/tilepro/tilepro.c: Likewise.
15315 * config/v850/v850.c: Likewise.
15316 * config/vax/vax.c: Likewise.
15317 * config/visium/visium.c: Likewise.
15318 * config/xtensa/xtensa.c: Likewise.
15320 2015-07-10 Richard Biener <rguenther@suse.de>
15322 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
15323 (decision_tree::gen_gimple): Likewise.
15324 (decision_tree::gen_generic): Likewise.
15326 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
15329 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
15330 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
15332 2015-07-10 Jakub Jelinek <jakub@redhat.com>
15334 PR middle-end/66820
15335 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
15336 or ORT_TASK contexts.
15337 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
15340 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15342 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
15345 2015-07-10 Tom de Vries <tom@codesourcery.com>
15347 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
15348 insert nit + 1 bound.
15350 2015-07-10 Richard Biener <rguenther@suse.de>
15352 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
15353 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
15354 (if_convertible_loop_p_1): For this always compute bb predicates.
15355 (if_convertible_loop_p): And free them.
15357 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15359 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
15362 2015-07-10 Richard Biener <rguenther@suse.de>
15364 PR tree-optimization/66823
15365 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
15366 inverted predicate.
15368 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
15370 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
15371 to handle mips[32|64]r3 and mips[32|64]r5.
15373 2015-07-09 Jakub Jelinek <jakub@redhat.com>
15375 PR middle-end/66633
15376 * tree-nested.c (get_static_chain): Or in a flag into
15377 info->static_chain_added.
15378 (get_frame_field, get_nonlocal_debug_decl): Likewise.
15379 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
15380 2015-07-01 changes.
15381 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
15382 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
15385 PR tree-optimization/66718
15386 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
15388 (vect_simd_lane_linear): New function.
15389 (vectorizable_simd_clone_call): Support using linear arguments for
15390 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
15392 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15395 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
15397 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
15399 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
15400 Use machine mode, not enum machine_mode in the prototype.
15402 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
15403 classify 128-bit floating point support.
15404 (FLOAT128_IBM_P): Likewise.
15405 (FLOAT128_VECTOR_P): Likewise.
15406 (FLOAT128_2REG_P): Likewise.
15407 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
15408 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
15409 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15410 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
15412 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
15413 tests against TFmode/TDmode, since those modes do not use VSX
15415 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
15417 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
15418 tests against TFmode, etc.
15419 (invalid_e500_subreg): Add tests against IFmode/KFmode.
15420 (reg_offset_addressing_ok_p): Likewise.
15421 (rs6000_legitimate_offset_address_p): Likewise.
15422 (rs6000_legitimize_address): Likewise.
15423 (rs6000_legitimize_reload_address): Likewise.
15424 (rs6000_legitimate_address_p): Clean up tests against TFmode and
15425 TDmode to use the new helper macros, which will include IFmode and
15427 (rs6000_emit_move): Likewise.
15428 (rs6000_darwin64_record_arg_recurse): Likewise.
15429 (print_operand): Likewise.
15430 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
15431 that uses a single vector register as a vector and not as a
15432 floating point register in terms of the calling sequence.
15433 (rs6000_discover_homogeneous_aggregate): Likewise.
15434 (rs6000_return_in_memory): Likewise.
15435 (init_cumulative_args): Likewise.
15436 (rs6000_function_arg_boundary): Likewise.
15437 (rs6000_function_arg_advance_1): Likewise.
15438 (rs6000_function_arg): Likewise.
15439 (rs6000_pass_by_reference): Likewise.
15440 (rs6000_gimplify_va_arg): Likewise.
15441 (rs6000_secondary_reload_memory): Use machine_mode not enum
15443 (rs6000_split_multireg_move): Use new helper macros.
15444 (spe_func_has_64bit_regs_p): Likewise.
15445 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
15446 (output_toc): Use new helper macros.
15447 (rs6000_register_move_cost): Likewise.
15448 (rs6000_function_value): Add IEEE 128-bit floating point calling
15450 (rs6000_libcall_value): Likewise.
15451 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
15452 floating point support.
15453 (rs6000_vector_mode_supported_p): Likewise.
15455 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
15457 PR rtl-optimization/66782
15458 * lra-int.h (struct lra_insn_recog_data): Add comment about
15459 clobbered hard regs for arg_hard_regs.
15460 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
15461 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
15462 Add condition for processing used hard regs.
15463 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
15464 Process clobbered hard regs.
15466 2015-07-09 Michael Matz <matz@suse.de>
15468 * genmatch.c (fprintf_indent): New function.
15469 (operand::gen_transform): Add indent parameter.
15470 (expr::gen_transform, c_expr::gen_transform,
15471 capture::gen_transform): Ditto and use fprintf_indent.
15472 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
15473 (dt_operand::gen, dt_operand::gen_predicate,
15474 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
15475 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
15476 (decision_tree::gen_gimple): Adjust calls and indent generated
15478 (decision_tree::gen_generic): Ditto.
15479 (write_predicate): Ditto.
15481 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15484 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
15485 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
15486 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
15487 {GENERAL,SSE,MMX}_REG_P where appropriate.
15489 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15491 * lto-streamer.h: Don't include target.h and alloc-pool.h.
15492 * builtins.c: Adjust includes.
15493 * gimple.c: Likewise.
15494 * ipa-icf.c: Likewise.
15495 * lto-opts.c: Likewise.
15496 * ipa-reference.c: Likewise.
15497 * lto-section-out.c: Likewise.
15498 * lto-streamer-in.c: Likewise.
15499 * lto-streamer-out.c: Likewise.
15500 * opts-global.c: Likewise.
15501 * symtab.c: Likewise.
15502 * tree-chkp.c: Likewise.
15503 * tree-ssa-live.c: Likewise.
15504 * tree-streamer-in.c: Likewise.
15505 * tree-streamer-out.c: Likewise.
15506 * config/darwin.c: Likewise.
15507 * config/i386/winnt.c: Likewise.
15509 2015-07-09 Richard Biener <rguenther@suse.de>
15511 * genmatch.c (struct expr): Add force_single_use flag.
15512 (expr::expr): Add copy constructor.
15513 (capture_info::walk_match): Gather force_single_use captures.
15514 (expr::gen_transform): Use possibly NULLified sequence.
15515 (dt_simplify::gen): Apply single-use restrictions by NULLifying
15516 seq if any constrained expr is not single-use.
15517 (parser::parse_expr): Refactor to allow multiple flags. Handle
15518 's' flag to force an expression have a single-use if the pattern
15519 simplifies to more than one statement.
15520 * match.pd: Convert most single_use conditionals to :s flags.
15522 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15524 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
15525 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
15526 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
15528 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
15530 * flags.h: Don't include flag-types.h or options.h.
15531 * opts-common.c: Adjust includes.
15532 * opts-global.c: Likewise.
15533 * common/config/epiphany/epiphany-common.c: Likewise.
15535 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15538 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
15541 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
15544 * config/i386/i386.c (ix86_return_in_memory): Return true
15545 if int_size_in_bytes returns negative for IA MCU.
15547 2015-07-09 Marek Polacek <polacek@redhat.com>
15549 PR tree-optimization/66718
15550 * Makefile.in (OBJS): Add gimple-laddress.o.
15551 * passes.def: Schedule pass_laddress.
15552 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
15553 * tree-pass.h (make_pass_laddress): Declare.
15554 * gimple-laddress.c: New file.
15556 2015-07-09 Richard Biener <rguenther@suse.de>
15558 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
15560 2015-07-09 Richard Biener <rguenther@suse.de>
15562 PR tree-optimization/66807
15563 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
15565 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
15567 * function.c (stack_protect_epilogue): Use if rather than switch for
15568 check targetm.have_stack_protect_test.
15570 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15572 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
15573 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
15574 * config/arc/arc.h: Likewise.
15575 * config/arm/arm.h: Likewise.
15576 * config/bfin/bfin.h: Likewise.
15577 * config/epiphany/epiphany.h: Likewise.
15578 * config/frv/frv.h: Likewise.
15579 * config/ia64/ia64.h: Likewise.
15580 * config/iq2000/iq2000.h: Likewise.
15581 * config/lm32/lm32.h: Likewise.
15582 * config/m32r/m32r.h: Likewise.
15583 * config/mcore/mcore.h: Likewise.
15584 * config/mep/mep.h: Likewise.
15585 * config/microblaze/microblaze.h: Likewise.
15586 * config/mips/mips.h: Likewise.
15587 * config/mmix/mmix.h: Likewise.
15588 * config/mn10300/mn10300.h: Likewise.
15589 * config/nds32/nds32.h: Likewise.
15590 * config/nios2/nios2.h: Likewise.
15591 * config/pa/pa.h: Likewise.
15592 * config/rl78/rl78.h: Likewise.
15593 * config/sh/sh.h: Likewise.
15594 * config/sparc/sparc.h: Likewise.
15595 * config/stormy16/stormy16.h: Likewise.
15596 * config/tilegx/tilegx.h: Likewise.
15597 * config/tilepro/tilepro.h: Likewise.
15598 * config/v850/v850.h: Likewise.
15599 * config/xtensa/xtensa.h: Likewise.
15600 * doc/tm.texi: Regenerate.
15601 * doc/tm.texi.in: Adjust.
15602 * combine.c (simplify_set): Likewise.
15603 (simplify_comparison): Likewise.
15604 * expr.c (store_constructor): Likewise.
15605 * internal-fn.c (expand_arith_overflow): Likewise.
15606 * reload.c (push_reload): Likewise.
15607 (find_reloads): Likewise.
15608 (find_reloads_subreg_address): Likewise.
15609 * reload1.c (eliminate_regs_1): Likewise.
15610 * rtlanal.c (nonzero_bits1): Likewise.
15611 (num_sign_bit_copies1): Likewise.
15612 * simplify-rtx.c (simplify_truncation): Likewise.
15614 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15616 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
15617 of AUTO_INC_DEC with the preprocessor.
15618 * combine.c (combine_instructions): Likewise.
15619 (can_combine_p): Likewise.
15620 (try_combine): Likewise.
15621 * emit-rtl.c (try_split): Likewise.
15622 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15623 * lower-subreg.c (resolve_simple_move): Likewise.
15624 * lra.c (update_inc_notes): Likewise.
15625 * recog.c (asm_operand_ok): Likewise.
15626 (constrain_operands): Likewise.
15627 * regrename.c (scan_rtx_address): Likewise.
15628 * reload.c (update_auto_inc_notes): Likewise.
15629 (reg_inc_found_and_valid_p): Likewise.
15630 * reload1.c (reload): Likewise.
15631 (emit_input_reload_insns): Likewise.
15632 (delete_output_reload): Likewise.
15633 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15634 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15636 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15638 * rtl.h: Always define AUTO_INC_DEC.
15639 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
15640 * combine.c (combine_instructions): Likewise.
15641 (can_combine_p): Likewise.
15642 (try_combine): Likewise.
15643 * emit-rtl.c (try_split): Likewise.
15644 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
15645 * lower-subreg.c (resolve_simple_move): Likewise.
15646 * lra.c (update_inc_notes): Likewise.
15647 * recog.c (asm_operand_ok): Likewise.
15648 (constrain_operands): Likewise.
15649 * regrename.c (scan_rtx_address): Likewise.
15650 * reload.c (update_auto_inc_notes): Likewise.
15651 (find_equiv_reg): Likewise.
15652 * reload1.c (reload): Likewise.
15653 (reload_as_needed): Likewise.
15654 (choose_reload_regs): Likewise.
15655 (emit_input_reload_insns): Likewise.
15656 (delete_output_reload): Likewise.
15657 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15658 * valtrack.c (cleanup_auto_inc_dec): Likewise.
15660 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15662 * combine.c (can_combine_def_p): Don't check the value of
15663 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
15664 (combinable_i3pat): Likewise.
15665 (mark_used_regs_combine): Likewise.
15666 * regrename.c (rename_chains): Likewise.
15667 * reload.c (find_reloads_address): Likewise.
15668 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15670 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15672 * combine.c (update_rsp_from_reg_equal): Don't check if
15673 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
15674 (reg_nonzero_bits_for_combine): Likewise.
15675 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
15677 * config/frv/frv.h: Likewise.
15678 * config/lm32/lm32.h: Likewise.
15679 * config/mep/mep.h: Likewise.
15680 * config/mips/mips.h: Likewise.
15681 * config/rs6000/rs6000.h: Likewise.
15682 * config/sh/sh.h: Likewise.
15683 * config/tilegx/tilegx.h (enum reg_class): Likewise.
15684 * config/tilepro/tilepro.h: Likewise.
15685 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
15686 * doc/tm.texi: Regenerate.
15687 * doc/tm.texi.in: Adjust.
15688 * rtlanal.c (nonzero_bits1): Likewise.
15690 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15692 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
15693 with the preprocessor.
15694 (combine_instructions): Likewise.
15695 (try_combine): Likewise.
15697 (distribute_notes): Likewise.
15699 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15701 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
15703 (simplify_set): Likewise.
15704 * cse.c (cse_insn): Likewise.
15705 * fold-const.c (fold_single_bit_test): Likewise.
15706 (fold_unary_loc): Likewise.
15707 * postreload.c (reload_cse_simplify_set): Likewise.
15708 (reload_cse_simplify_operands): Likewise.
15710 2015-07-08 Jiong Wang <jiong.wang@arm.com>
15712 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
15713 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
15715 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15718 * config/i386/x86intrin.h: Include <adxintrin.h> even if
15719 __iamcu__ is defined.
15721 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15723 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
15725 2015-07-08 Iain Sandoe <iain@codesourcery.com>
15728 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
15729 names from preservation.
15731 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
15734 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
15736 (function_arg_advance_32): Don't pass vectors in registers for
15738 (function_arg_32): Likewise.
15739 (ix86_return_in_memory): Don't return vectors in registers for
15742 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
15744 PR middle-end/66334
15745 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
15746 hard regno live at the start of BB with incoming abnormal edges.
15747 * lra-lives.c (process_bb_lives): Ditto.
15749 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
15752 * config/nvptx/mkoffload.c (main): Create an offload image only in
15753 64-bit configurations.
15755 2015-07-08 Martin Liska <mliska@suse.cz>
15758 * tree-sra.c (create_access_1): Call ctor without brackets.
15759 (create_artificial_child_access): Likewise.
15761 2015-07-08 Richard Biener <rguenther@suse.de>
15763 PR tree-optimization/66793
15764 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
15765 Properly split the block after stmts ending it.
15767 2015-07-08 Richard Biener <rguenther@suse.de>
15769 PR tree-optimization/66794
15770 * passes.c (execute_function_todo): Assert that post-dominators
15772 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
15773 Free post-dominators.
15775 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15777 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
15780 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
15782 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
15783 more than or equal 8 and less than 32 when optimizing for size.
15785 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15787 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
15788 COSTS_N_INSNS (1) and increment it appropriately throughout the
15791 2015-07-08 Richard Biener <rguenther@suse.de>
15793 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
15795 2015-07-08 Alan Modra <amodra@gmail.com>
15797 * target.def (rtx_costs): Remove "code" param, add "mode".
15798 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
15799 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
15800 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
15801 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
15802 call. Track mode when given in rtx.
15803 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
15804 (default_address_cost): Pass Pmode to rtx_cost.
15805 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
15806 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
15808 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
15809 (notreg_cost): Add mode param. Use it.
15810 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
15811 mode param and pass to set_src_cost. Update all calls.
15812 (hash_scan_set): Formatting.
15813 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
15814 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
15816 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
15817 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
15818 emit_store_flag): Update set_src_cost and rtx_cost calls.
15819 * auto-inc-dec.c (attempt_change): Likewise.
15820 * calls.c (precompute_register_parameters): Likewise.
15821 * combine.c (expand_compound_operation, make_extraction,
15822 force_to_mode, distribute_and_simplify_rtx): Likewise.
15823 * dojump.c (prefer_and_bit_test): Likewise.
15824 * dse.c (find_shift_sequence): Likewise.
15825 * expr.c (compress_float_constant): Likewise.
15826 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
15827 * ifcvt.c (noce_try_sign_mask): Likewise.
15828 * loop-doloop.c (doloop_optimize): Likewise.
15829 * loop-invariant.c (create_new_invariant): Likewise.
15830 * lower-subreg.c (shift_cost, compute_costs): Likewise.
15831 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
15832 lshift_cheap_p): Likewise.
15833 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15834 try_replace_in_use, reload_cse_move2add): Likewise.
15835 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
15837 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15838 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15839 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
15840 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15841 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
15842 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
15844 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
15845 * config/arc/arc.c (arc_rtx_costs): Likewise.
15846 * config/arm/arm.c (arm_rtx_costs): Likewise.
15847 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
15848 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
15849 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
15850 * config/cris/cris.c (cris_rtx_costs): Likewise.
15851 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
15852 * config/frv/frv.c (frv_rtx_costs): Likewise.
15853 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
15854 * config/i386/i386.c (ix86_rtx_costs): Likewise.
15855 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
15856 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
15857 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
15858 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
15859 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
15860 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
15861 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
15862 * config/mep/mep.c (mep_rtx_cost): Likewise.
15863 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
15864 * config/mips/mips.c (mips_rtx_costs): Likewise.
15865 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
15866 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
15867 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
15868 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
15869 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
15870 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
15871 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
15872 * config/pa/pa.c (hppa_rtx_costs): Likewise.
15873 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
15874 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
15875 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
15876 * config/s390/s390.c (s390_rtx_costs): Likewise.
15877 * config/sh/sh.c (sh_rtx_costs): Likewise.
15878 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
15879 * config/spu/spu.c (spu_rtx_costs): Likewise.
15880 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
15881 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
15882 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
15883 * config/v850/v850.c (v850_rtx_costs): Likewise.
15884 * config/vax/vax.c (vax_rtx_costs): Likewise.
15885 * config/visium/visium.c (visium_rtx_costs): Likewise.
15886 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
15887 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
15888 "code" param, and pass as outer_code to first rtx_cost call. Pass
15889 mode to rtx_cost calls.
15890 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
15892 (aarch64_rtx_costs_wrapper): Update.
15893 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
15894 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
15896 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
15897 and rtx_cost calls.
15898 (avr_operand_rtx_cost): Similarly.
15899 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
15900 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
15901 * config/mips/mips.c (mips_stack_address_p): Comment typo.
15902 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
15903 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
15904 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
15906 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
15907 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
15908 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
15909 * doc/tm.texi: Regenerate.
15911 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
15913 * tree-core.h: Include symtab.h.
15914 * rtl.h: Include hard-reg-set.h but not flags.h.
15915 (HARD_CONST): Remove condition compilation involving HARD_CONST since
15916 hard-reg-set.h is always included.
15917 * regs.h: Don't include hard-reg-set.h or rtl.h.
15918 * cfg.h: Include dominance.h.
15919 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
15920 * backend.h: New. Aggregate commonly used backend header files.
15921 * gimple-ssa.h: Don't include tree-hasher.h.
15922 * ssa.h: New. Aggregate commonly used SSA header files.
15923 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
15924 * sel-sched-ir.h: Flatten includes.
15925 * lra-int.h: Flatten completely.
15926 * sel-sched-dump.h: Flatten includes.
15927 * ira-int.h: Flatten includes.
15928 * gimple-streamer.h: Remove all includes.
15929 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
15930 * resource.h: Flatten hard-reg-set.h and df.h.
15931 * sched-int.h: Flatten insn-arrt.h and df.h.
15932 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
15933 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
15934 * genattrtab.c (write_header): Adjust generated includes.
15935 * genautomata.c (main): Likewise.
15936 * genconditions.c (write-header): Likewise.
15937 * genemit.c (main): Likewise.
15938 * gengtype.c (open_base_files): Likewise.
15939 * genopinit.c (main): Likewise.
15940 * genoutput.c (output_prologue): Likewise.
15941 * genpeep.c (main): Likewise.
15942 * genpreds.c (write_insn_preds_c): Likewise.
15943 * genrecog.c (write_header): Likewise.
15944 * alias.c: Adjust includes.
15945 * asan.c: Likewise.
15946 * attribs.c: Likewise.
15947 * auto-inc-dec.c: Likewise.
15948 * auto-profile.c: Likewise.
15949 * bb-reorder.c: Likewise.
15950 * bt-load.c: Likewise.
15951 * builtins.c: Likewise.
15952 * caller-save.c: Likewise.
15953 * calls.c: Likewise.
15954 * ccmp.c: Likewise.
15956 * cfganal.c: Likewise.
15957 * cfgbuild.c: Likewise.
15958 * cfgcleanup.c: Likewise.
15959 * cfgexpand.c: Likewise.
15960 * cfghooks.c: Likewise.
15961 * cfgloop.c: Likewise.
15962 * cfgloopanal.c: Likewise.
15963 * cfgloopmanip.c: Likewise.
15964 * cfgrtl.c: Likewise.
15965 * cgraph.c: Likewise.
15966 * cgraphbuild.c: Likewise.
15967 * cgraphclones.c: Likewise.
15968 * cgraphunit.c: Likewise.
15969 * cilk-common.c: Likewise.
15970 * combine-stack-adj.c: Likewise.
15971 * combine.c: Likewise.
15972 * compare-elim.c: Likewise.
15973 * convert.c: Likewise.
15974 * coverage.c: Likewise.
15975 * cppbuiltin.c: Likewise.
15976 * cprop.c: Likewise.
15978 * cselib.c: Likewise.
15979 * data-streamer-in.c: Likewise.
15980 * data-streamer-out.c: Likewise.
15981 * data-streamer.c: Likewise.
15982 * dbxout.c: Likewise.
15985 * debug.c: Likewise.
15986 * df-core.c: Likewise.
15987 * df-problems.c: Likewise.
15988 * df-scan.c: Likewise.
15990 * dojump.c: Likewise.
15991 * dominance.c: Likewise.
15992 * domwalk.c: Likewise.
15993 * double-int.c: Likewise.
15995 * dumpfile.c: Likewise.
15996 * dwarf2asm.c: Likewise.
15997 * dwarf2cfi.c: Likewise.
15998 * dwarf2out.c: Likewise.
15999 * emit-rtl.c: Likewise.
16000 * et-forest.c: Likewise.
16001 * except.c: Likewise.
16002 * explow.c: Likewise.
16003 * expmed.c: Likewise.
16004 * expr.c: Likewise.
16005 * final.c: Likewise.
16006 * fixed-value.c: Likewise.
16007 * fold-const.c: Likewise.
16008 * function.c: Likewise.
16009 * fwprop.c: Likewise.
16010 * gcc-plugin.h: Likewise.
16011 * gcse-common.c: Likewise.
16012 * gcse.c: Likewise.
16013 * generic-match-head.c: Likewise.
16014 * ggc-page.c: Likewise.
16015 * gimple-builder.c: Likewise.
16016 * gimple-expr.c: Likewise.
16017 * gimple-fold.c: Likewise.
16018 * gimple-iterator.c: Likewise.
16019 * gimple-low.c: Likewise.
16020 * gimple-match-head.c: Likewise.
16021 * gimple-pretty-print.c: Likewise.
16022 * gimple-ssa-isolate-paths.c: Likewise.
16023 * gimple-ssa-strength-reduction.c: Likewise.
16024 * gimple-streamer-in.c: Likewise.
16025 * gimple-streamer-out.c: Likewise.
16026 * gimple-walk.c: Likewise.
16027 * gimple.c: Likewise.
16028 * gimplify-me.c: Likewise.
16029 * gimplify.c: Likewise.
16030 * godump.c: Likewise.
16031 * graph.c: Likewise.
16032 * graphite-blocking.c: Likewise.
16033 * graphite-dependences.c: Likewise.
16034 * graphite-interchange.c: Likewise.
16035 * graphite-isl-ast-to-gimple.c: Likewise.
16036 * graphite-optimize-isl.c: Likewise.
16037 * graphite-poly.c: Likewise.
16038 * graphite-scop-detection.c: Likewise.
16039 * graphite-sese-to-poly.c: Likewise.
16040 * graphite.c: Likewise.
16041 * haifa-sched.c: Likewise.
16042 * hw-doloop.c: Likewise.
16043 * ifcvt.c: Likewise.
16044 * init-regs.c: Likewise.
16045 * internal-fn.c: Likewise.
16046 * ipa-chkp.c: Likewise.
16047 * ipa-comdats.c: Likewise.
16048 * ipa-cp.c: Likewise.
16049 * ipa-devirt.c: Likewise.
16050 * ipa-icf-gimple.c: Likewise.
16051 * ipa-icf.c: Likewise.
16052 * ipa-inline-analysis.c: Likewise.
16053 * ipa-inline-transform.c: Likewise.
16054 * ipa-inline.c: Likewise.
16055 * ipa-polymorphic-call.c: Likewise.
16056 * ipa-profile.c: Likewise.
16057 * ipa-prop.c: Likewise.
16058 * ipa-pure-const.c: Likewise.
16059 * ipa-ref.c: Likewise.
16060 * ipa-reference.c: Likewise.
16061 * ipa-split.c: Likewise.
16062 * ipa-utils.c: Likewise.
16063 * ipa-visibility.c: Likewise.
16065 * ira-build.c: Likewise.
16066 * ira-color.c: Likewise.
16067 * ira-conflicts.c: Likewise.
16068 * ira-costs.c: Likewise.
16069 * ira-emit.c: Likewise.
16070 * ira-lives.c: Likewise.
16072 * jump.c: Likewise.
16073 * langhooks.c: Likewise.
16075 * loop-doloop.c: Likewise.
16076 * loop-init.c: Likewise.
16077 * loop-invariant.c: Likewise.
16078 * loop-iv.c: Likewise.
16079 * loop-unroll.c: Likewise.
16080 * lower-subreg.c: Likewise.
16081 * lra-assigns.c: Likewise.
16082 * lra-coalesce.c: Likewise.
16083 * lra-constraints.c: Likewise.
16084 * lra-eliminations.c: Likewise.
16085 * lra-lives.c: Likewise.
16086 * lra-remat.c: Likewise.
16087 * lra-spills.c: Likewise.
16089 * lto-cgraph.c: Likewise.
16090 * lto-compress.c: Likewise.
16091 * lto-opts.c: Likewise.
16092 * lto-section-in.c: Likewise.
16093 * lto-section-out.c: Likewise.
16094 * lto-streamer-in.c: Likewise.
16095 * lto-streamer-out.c: Likewise.
16096 * lto-streamer.c: Likewise.
16098 * mode-switching.c: Likewise.
16099 * modulo-sched.c: Likewise.
16100 * omega.c: Likewise.
16101 * omp-low.c: Likewise.
16102 * optabs.c: Likewise.
16103 * opts-global.c: Likewise.
16104 * passes.c: Likewise.
16105 * plugin.c: Likewise.
16106 * postreload-gcse.c: Likewise.
16107 * postreload.c: Likewise.
16108 * predict.c: Likewise.
16109 * print-rtl.c: Likewise.
16110 * print-tree.c: Likewise.
16111 * profile.c: Likewise.
16112 * real.c: Likewise.
16113 * realmpfr.c: Likewise.
16114 * recog.c: Likewise.
16116 * reg-stack.c: Likewise.
16117 * regcprop.c: Likewise.
16118 * reginfo.c: Likewise.
16119 * regrename.c: Likewise.
16120 * regstat.c: Likewise.
16121 * reload.c: Likewise.
16122 * reload1.c: Likewise.
16123 * reorg.c: Likewise.
16124 * resource.c: Likewise.
16125 * rtl-chkp.c: Likewise.
16126 * rtlanal.c: Likewise.
16127 * rtlhooks.c: Likewise.
16128 * sanopt.c: Likewise.
16129 * sched-deps.c: Likewise.
16130 * sched-ebb.c: Likewise.
16131 * sched-rgn.c: Likewise.
16132 * sched-vis.c: Likewise.
16133 * sdbout.c: Likewise.
16134 * sel-sched-dump.c: Likewise.
16135 * sel-sched-ir.c: Likewise.
16136 * sel-sched.c: Likewise.
16137 * sese.c: Likewise.
16138 * shrink-wrap.c: Likewise.
16139 * simplify-rtx.c: Likewise.
16140 * stack-ptr-mod.c: Likewise.
16141 * stmt.c: Likewise.
16142 * stor-layout.c: Likewise.
16143 * store-motion.c: Likewise.
16144 * stringpool.c: Likewise.
16145 * symtab.c: Likewise.
16146 * target-globals.c: Likewise.
16147 * targhooks.c: Likewise.
16148 * toplev.c: Likewise.
16149 * tracer.c: Likewise.
16150 * trans-mem.c: Likewise.
16151 * tree-affine.c: Likewise.
16152 * tree-browser.c: Likewise.
16153 * tree-call-cdce.c: Likewise.
16154 * tree-cfg.c: Likewise.
16155 * tree-cfgcleanup.c: Likewise.
16156 * tree-chkp-opt.c: Likewise.
16157 * tree-chkp.c: Likewise.
16158 * tree-chrec.c: Likewise.
16159 * tree-complex.c: Likewise.
16160 * tree-data-ref.c: Likewise.
16161 * tree-dfa.c: Likewise.
16162 * tree-diagnostic.c: Likewise.
16163 * tree-dump.c: Likewise.
16164 * tree-eh.c: Likewise.
16165 * tree-emutls.c: Likewise.
16166 * tree-if-conv.c: Likewise.
16167 * tree-inline.c: Likewise.
16168 * tree-into-ssa.c: Likewise.
16169 * tree-iterator.c: Likewise.
16170 * tree-loop-distribution.c: Likewise.
16171 * tree-nested.c: Likewise.
16172 * tree-nrv.c: Likewise.
16173 * tree-object-size.c: Likewise.
16174 * tree-outof-ssa.c: Likewise.
16175 * tree-parloops.c: Likewise.
16176 * tree-phinodes.c: Likewise.
16177 * tree-predcom.c: Likewise.
16178 * tree-pretty-print.c: Likewise.
16179 * tree-profile.c: Likewise.
16180 * tree-scalar-evolution.c: Likewise.
16181 * tree-sra.c: Likewise.
16182 * tree-ssa-address.c: Likewise.
16183 * tree-ssa-alias.c: Likewise.
16184 * tree-ssa-ccp.c: Likewise.
16185 * tree-ssa-coalesce.c: Likewise.
16186 * tree-ssa-copy.c: Likewise.
16187 * tree-ssa-copyrename.c: Likewise.
16188 * tree-ssa-dce.c: Likewise.
16189 * tree-ssa-dom.c: Likewise.
16190 * tree-ssa-dse.c: Likewise.
16191 * tree-ssa-forwprop.c: Likewise.
16192 * tree-ssa-ifcombine.c: Likewise.
16193 * tree-ssa-live.c: Likewise.
16194 * tree-ssa-loop-ch.c: Likewise.
16195 * tree-ssa-loop-im.c: Likewise.
16196 * tree-ssa-loop-ivcanon.c: Likewise.
16197 * tree-ssa-loop-ivopts.c: Likewise.
16198 * tree-ssa-loop-manip.c: Likewise.
16199 * tree-ssa-loop-niter.c: Likewise.
16200 * tree-ssa-loop-prefetch.c: Likewise.
16201 * tree-ssa-loop-unswitch.c: Likewise.
16202 * tree-ssa-loop.c: Likewise.
16203 * tree-ssa-math-opts.c: Likewise.
16204 * tree-ssa-operands.c: Likewise.
16205 * tree-ssa-phiopt.c: Likewise.
16206 * tree-ssa-phiprop.c: Likewise.
16207 * tree-ssa-pre.c: Likewise.
16208 * tree-ssa-propagate.c: Likewise.
16209 * tree-ssa-reassoc.c: Likewise.
16210 * tree-ssa-sccvn.c: Likewise.
16211 * tree-ssa-scopedtables.c: Likewise.
16212 * tree-ssa-sink.c: Likewise.
16213 * tree-ssa-strlen.c: Likewise.
16214 * tree-ssa-structalias.c: Likewise.
16215 * tree-ssa-tail-merge.c: Likewise.
16216 * tree-ssa-ter.c: Likewise.
16217 * tree-ssa-threadedge.c: Likewise.
16218 * tree-ssa-threadupdate.c: Likewise.
16219 * tree-ssa-uncprop.c: Likewise.
16220 * tree-ssa-uninit.c: Likewise.
16221 * tree-ssa.c: Likewise.
16222 * tree-ssanames.c: Likewise.
16223 * tree-stdarg.c: Likewise.
16224 * tree-streamer-in.c: Likewise.
16225 * tree-streamer-out.c: Likewise.
16226 * tree-streamer.c: Likewise.
16227 * tree-switch-conversion.c: Likewise.
16228 * tree-tailcall.c: Likewise.
16229 * tree-vect-data-refs.c: Likewise.
16230 * tree-vect-generic.c: Likewise.
16231 * tree-vect-loop-manip.c: Likewise.
16232 * tree-vect-loop.c: Likewise.
16233 * tree-vect-patterns.c: Likewise.
16234 * tree-vect-slp.c: Likewise.
16235 * tree-vect-stmts.c: Likewise.
16236 * tree-vectorizer.c: Likewise.
16237 * tree-vrp.c: Likewise.
16238 * tree.c: Likewise.
16239 * tsan.c: Likewise.
16240 * ubsan.c: Likewise.
16241 * valtrack.c: Likewise.
16242 * value-prof.c: Likewise.
16243 * var-tracking.c: Likewise.
16244 * varasm.c: Likewise.
16245 * varpool.c: Likewise.
16246 * vmsdbgout.c: Likewise.
16247 * vtable-verify.c: Likewise.
16249 * wide-int.cc: Likewise.
16250 * xcoffout.c: Likewise.
16251 * config/aarch64/aarch64-builtins.c: Likewise.
16252 * config/aarch64/aarch64.c: Likewise.
16253 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16254 * config/alpha/alpha.c: Likewise.
16255 * config/arc/arc.c: Likewise.
16256 * config/arm/aarch-common.c: Likewise.
16257 * config/arm/arm-builtins.c: Likewise.
16258 * config/arm/arm-c.c: Likewise.
16259 * config/arm/arm.c: Likewise.
16260 * config/avr/avr-c.c: Likewise.
16261 * config/avr/avr-log.c: Likewise.
16262 * config/avr/avr.c: Likewise.
16263 * config/bfin/bfin.c: Likewise.
16264 * config/c6x/c6x.c: Likewise.
16265 * config/cr16/cr16.c: Likewise.
16266 * config/cris/cris.c: Likewise.
16267 * config/darwin-c.c: Likewise.
16268 * config/darwin.c: Likewise.
16269 * config/epiphany/epiphany.c: Likewise.
16270 * config/epiphany/mode-switch-use.c: Likewise.
16271 * config/epiphany/resolve-sw-modes.c: Likewise.
16272 * config/fr30/fr30.c: Likewise.
16273 * config/frv/frv.c: Likewise.
16274 * config/ft32/ft32.c: Likewise.
16275 * config/h8300/h8300.c: Likewise.
16276 * config/i386/i386-c.c: Likewise.
16277 * config/i386/i386.c: Likewise.
16278 * config/i386/msformat-c.c: Likewise.
16279 * config/i386/winnt-cxx.c: Likewise.
16280 * config/i386/winnt-stubs.c: Likewise.
16281 * config/i386/winnt.c: Likewise.
16282 * config/ia64/ia64-c.c: Likewise.
16283 * config/ia64/ia64.c: Likewise.
16284 * config/iq2000/iq2000.c: Likewise.
16285 * config/lm32/lm32.c: Likewise.
16286 * config/m32c/m32c-pragma.c: Likewise.
16287 * config/m32c/m32c.c: Likewise.
16288 * config/m32r/m32r.c: Likewise.
16289 * config/m68k/m68k.c: Likewise.
16290 * config/mcore/mcore.c: Likewise.
16291 * config/mep/mep-pragma.c: Likewise.
16292 * config/mep/mep.c: Likewise.
16293 * config/microblaze/microblaze-c.c: Likewise.
16294 * config/microblaze/microblaze.c: Likewise.
16295 * config/mips/mips.c: Likewise.
16296 * config/mmix/mmix.c: Likewise.
16297 * config/mn10300/mn10300.c: Likewise.
16298 * config/moxie/moxie.c: Likewise.
16299 * config/msp430/msp430-c.c: Likewise.
16300 * config/msp430/msp430.c: Likewise.
16301 * config/nds32/nds32-cost.c: Likewise.
16302 * config/nds32/nds32-fp-as-gp.c: Likewise.
16303 * config/nds32/nds32-intrinsic.c: Likewise.
16304 * config/nds32/nds32-isr.c: Likewise.
16305 * config/nds32/nds32-md-auxiliary.c: Likewise.
16306 * config/nds32/nds32-memory-manipulation.c: Likewise.
16307 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16308 * config/nds32/nds32-predicates.c: Likewise.
16309 * config/nds32/nds32.c: Likewise.
16310 * config/nios2/nios2.c: Likewise.
16311 * config/nvptx/nvptx.c: Likewise.
16312 * config/pa/pa.c: Likewise.
16313 * config/pdp11/pdp11.c: Likewise.
16314 * config/rl78/rl78-c.c: Likewise.
16315 * config/rl78/rl78.c: Likewise.
16316 * config/rs6000/rs6000-c.c: Likewise.
16317 * config/rs6000/rs6000.c: Likewise.
16318 * config/rx/rx.c: Likewise.
16319 * config/s390/s390-c.c: Likewise.
16320 * config/s390/s390.c: Likewise.
16321 * config/sh/sh-c.c: Likewise.
16322 * config/sh/sh-mem.cc: Likewise.
16323 * config/sh/sh.c: Likewise.
16324 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16325 * config/sh/sh_treg_combine.cc: Likewise.
16326 * config/sol2-c.c: Likewise.
16327 * config/sol2-cxx.c: Likewise.
16328 * config/sol2-stubs.c: Likewise.
16329 * config/sol2.c: Likewise.
16330 * config/sparc/sparc-c.c: Likewise.
16331 * config/sparc/sparc.c: Likewise.
16332 * config/spu/spu-c.c: Likewise.
16333 * config/spu/spu.c: Likewise.
16334 * config/stormy16/stormy16.c: Likewise.
16335 * config/tilegx/mul-tables.c: Likewise.
16336 * config/tilegx/tilegx-c.c: Likewise.
16337 * config/tilegx/tilegx.c: Likewise.
16338 * config/tilepro/mul-tables.c: Likewise.
16339 * config/tilepro/tilepro-c.c: Likewise.
16340 * config/tilepro/tilepro.c: Likewise.
16341 * config/v850/v850-c.c: Likewise.
16342 * config/v850/v850.c: Likewise.
16343 * config/vax/vax.c: Likewise.
16344 * config/visium/visium.c: Likewise.
16345 * config/vms/vms-c.c: Likewise.
16346 * config/vms/vms.c: Likewise.
16347 * config/vxworks.c: Likewise.
16348 * config/xtensa/xtensa.c: Likewise.
16350 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
16352 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
16353 Remove operand constraints. Change operand 2 predicate to
16354 nonmemory operand. Limit const_int values to mode bitsize. Only
16355 allow const_int values less than 32 when optimizing for size.
16356 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
16357 Remove operand constraints.
16358 (*bt<mode>): Use SImode for const_int values less than 32.
16359 (regmode): Remove mode attribute.
16361 2015-07-07 Anatoly Sokolov <aesok@post.ru>
16363 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16364 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
16365 moxie_legitimate_address_p): New functions.
16366 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16368 2015-07-07 Tom de Vries <tom@codesourcery.com>
16370 PR tree-optimization/66642
16371 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
16372 header comment. Rename split_edge variable to edge_at_split. Split
16373 exit edge to create new loop exit bb. Insert loop exit phis in new
16376 2015-07-07 Tom de Vries <tom@codesourcery.com>
16378 * tree-cfg.c (get_virtual_phi): New function.
16379 * tree-cfg.h (get_virtual_phi): Declare.
16380 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
16381 (rewrite_virtuals_into_loop_closed_ssa): New function.
16382 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
16384 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
16385 (transform_to_exit_first_loop_alt): Use
16386 rewrite_virtuals_into_loop_closed_ssa.
16388 2015-07-07 Richard Biener <rguenther@suse.de>
16390 * fold-const.c (fold_binary_loc): Move
16391 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
16392 * match.pd: ... here.
16393 Add (X * C1) % C2 -> 0 simplification pattern derived from
16396 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
16399 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
16400 change for target/65249.
16402 2015-07-07 Paulo Matos <pmatos@broadcom.com>
16404 * symtab.c (address_matters_1): Fix typo in comment above.
16405 (can_increase_alignment_p): Likewise.
16407 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16409 * function.c (free_after_compilation): Clear PROP_cfg in
16410 f->curr_properties.
16412 2015-07-07 Richard Biener <rguenther@suse.de>
16414 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
16416 (add_control_edge): Remove excessive vertical space in dumping.
16417 (process_ssa_edge_worklist): Simulate at most one statement and
16418 return whether we did. Do not simulate PHIs if they are in a
16419 BB not yet simulated.
16420 (ssa_propagate): Adjust to always drain the BB worklist whenever
16421 a BB is available there, likewise the VARYING edges list before
16422 the interesting edge list.
16424 2015-07-07 Christian Bruel <christian.bruel@st.com>
16427 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
16429 2015-07-07 Richard Biener <rguenther@suse.de>
16431 PR middle-end/66739
16432 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
16435 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16437 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
16438 modes for operands 0 and 3. Use SImode for operands 2 and 3.
16439 Copy operand 0 to a temporary if !ext_register_operand. Remove
16440 ancient extract_bit_field workaround.
16441 (insv<mode>_1): Rename from mov<mode>_insv_1.
16442 (*insvqi): Rename from *movqi_insv_2.
16443 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
16444 for renamed insvsi_1.
16445 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
16447 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
16449 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
16450 call to nvptx_reorg_subreg.
16452 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
16454 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
16455 * graphite-dependencies.c, graphite-interchange.c,
16456 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
16457 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
16460 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
16462 * match.pd: Remove element_mode inside HONOR_*.
16463 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
16464 (~X | X -> -1, ~X ^ X -> -1): Merge.
16465 * tree.c (build_each_one_cst): New function.
16466 * tree.h (build_each_one_cst): Likewise.
16468 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16470 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16473 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
16475 * config.gcc <mips*-*-*>: Add fused-madd.opt.
16476 * config/mips/mips.opt (mfused-madd): Remove.
16477 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
16478 * config/mips/mips.h (TARGET_MIPS8000): New.
16479 (ISA_HAS_FP_MADD4_MSUB4): Remove.
16480 (ISA_HAS_FP_MADDF_MSUBF): Remove.
16481 (ISA_HAS_FP_MADD3_MSUB3): Remove.
16482 (ISA_HAS_NMADD4_NMSUB4): Remove.
16483 (ISA_HAS_NMADD3_NMSUB3): Remove.
16484 (ISA_HAS_FUSED_MADD4): New.
16485 (ISA_HAS_UNFUSED_MADD4): New.
16486 (ISA_HAS_FUSED_MADDF): New.
16487 (ISA_HAS_FUSED_MADD3): New.
16488 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
16489 (*fma<mode>4_madd3) New.
16490 (*fma<mode>4_madd4) New.
16491 (*fma<mode>4_maddf) New.
16493 (*fms<mode>4_msub3) New.
16494 (*fms<mode>4_msub4) New.
16496 (*fnma<mode>4_nmadd3) New.
16497 (*fnma<mode>4_nmadd4) New.
16499 (*fnms<mode>4_nmsub3) New.
16500 (*fnms<mode>4_nmsub4) New.
16501 (*madd4<mode>) Modify to be unfused only.
16502 (*msub4<mode>) Modify to be unfused only.
16503 (*nmadd4<mode>) Modify to be unfused only.
16504 (*nmsub4<mode>) Modify to be unfused only.
16505 (*madd3<mode>) Remove.
16506 (*msub3<mode>) Remove.
16507 (*nmadd3<mode>) Remove.
16508 (*nmsub3<mode>) Remove.
16509 (*nmadd3<mode>_fastmath) Remove.
16510 (*nmsub3<mode>_fastmath) Remove.
16511 (*nmadd4<mode>_fastmath) Update condition.
16512 (*nmsub4<mode>_fastmath) Update condition.
16514 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16517 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
16518 alignment attribute, exploring one level down for records and arrays.
16520 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
16522 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
16523 modes for operands 0 and 1. Use SImode for operands 2 and 3.
16524 Copy operand 1 to a temporary if !ext_register_operand. Remove
16525 ancient extract_bit_field workaround.
16526 (*extv<mode>): Rename from *mov<mode>_extv_1.
16527 (*extvqi): Rename from *movqi_extv_1.
16528 (extzv<mode>): Rename from extzv. Use SWI248 modes for
16529 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
16530 to a temporary if !ext_register_operand. Remove ancient
16531 extract_bit_field workaround.
16532 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
16533 (*extzvqi): Rename from *movqi_extzv_2.
16534 (*testqi_ext_3): Remove modes from const_int_operand predicated
16535 operands. Add "n" constraint.
16536 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
16537 operand. Add "J" constraint.
16538 (*btsq, *btrq, *btcq peephole2s): Remove mode from
16539 const_0_to_63 predicated operand.
16540 (regmode): New insn attribute.
16541 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
16542 to nonmemory_operand. Use regmode insn attribute.
16543 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
16544 (*jcc_bt<mode>_mask): Remove mode from operand 3.
16545 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
16546 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
16547 operands. Use "N" constraint instead of "n".
16549 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
16551 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
16553 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16556 * config/i386/i386.c (iamcu_cost): New.
16557 (m_IAMCU): Likewise.
16558 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
16559 (processor_target_table): Add an entry for "iamcu".
16560 (processor_alias_table): Likewise.
16561 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
16562 (ix86_adjust_cost): Likewise.
16563 (ia32_multipass_dfa_lookahead): Likewise.
16564 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
16565 * config/i386/x86-tune.def: Updated for m_IAMCU.
16567 2015-07-06 Richard Biener <rguenther@suse.de>
16569 PR tree-optimization/66772
16570 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
16571 values are available in the PHI node BB when there are
16572 still unexecutable edges.
16574 2015-07-06 Richard Biener <rguenther@suse.de>
16576 PR tree-optimization/66767
16577 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16578 Make sure to build the alignment test on a SSA name without
16579 final alignment info valid only if the alignment test
16582 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
16585 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
16586 loop start when inserting LSETUP.
16588 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
16591 * config/i386/i386.c (ix86_option_override_internal): Allow
16592 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
16594 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16596 * read-md.c (decimal_string): Rename to ...
16597 (md_decimal_string): ... this.
16598 (handle_enum): Reflect this.
16600 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
16603 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
16605 2015-07-06 Richard Biener <rguenther@suse.de>
16607 PR middle-end/66759
16608 * match.pd: Add missing constraint of y to REAL_CST in
16609 REAL_CST - x CMP y to y - CST CMP x simplification.
16611 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
16613 PR tree-optimization/66757
16614 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
16616 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
16617 Sandra Loosemore <sandra@codesourcery.com>
16619 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
16620 Delete extern declaration.
16621 (gprel_constant_p): Add extern declaration.
16622 * config/nios2/constraints.md ("S"): Use gprel_constant_p
16623 instead of nios2_symbol_ref_in_small_data_p.
16624 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
16625 (nios2_symbol_ref_in_small_data_p): Make static.
16626 (gprel_constant_p): Make non-static.
16628 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
16630 * doc/fragments.texi (Target Fragment): Convert debian.org
16632 * doc/install.texi (Configuration): Ditto.
16634 2015-07-05 Jakub Jelinek <jakub@redhat.com>
16636 PR tree-optimization/66718
16637 * tree-vect-stmts.c (vectorizable_call): Replace uses of
16638 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
16640 PR tree-optimization/66718
16641 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
16642 vectorizable_load, vectorizable_condition): Move vectype,
16643 nunits, ncopies computation after checking what kind of statement
16646 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16648 * target-insns.def (extv, extzv, insv): New targetm instruction
16650 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
16652 * recog.c (simplify_while_replacing): Likewise.
16654 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16656 * target-insns.def (doloop_begin, doloop_end): New targetm
16657 instruction patterns.
16658 * loop-init.c: Include target.h.
16659 (pass_loop2::gate): Use the new targetm patterns instead of
16660 HAVE_*/gen_* interface.
16661 (pass_rtl_doloop::gate): Likewise.
16662 (pass_rtl_doloop::execute): Remove preprocessor condition.
16663 * hw-doloop.c: Build unconditionally.
16664 * loop-doloop.c: Likewise.
16665 (doloop_optimize): Use the new targetm patterns instead of
16666 HAVE_*/gen_* interface.
16667 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
16668 * modulo-sched.c (doloop_register_get): Likewise.
16670 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16672 * target-insns.def (clear_cache): New targetm instruction pattern.
16673 * builtins.c (expand_builtin___clear_cache): Use it instead of
16674 HAVE_*/gen_* interface.
16676 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16678 * target-insns.def (allocate_stack, check_stack, probe_stack)
16679 (probe_stack_address, split_stack_prologue, split_stack_space_check):
16680 New targetm instruction patterns.
16681 * explow.c (allocate_dynamic_stack_space): Use them instead of
16682 HAVE_*/gen_* interface.
16683 (emit_stack_probe): Likewise.
16684 (probe_stack_range): Likewise.
16685 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16687 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16689 * target-insns.def (stack_protect_set, stack_protect_test): New
16690 targetm instruction patterns.
16691 * cfgexpand.c (stack_protect_prologue): Use them instead of
16692 HAVE_*/gen_* interface.
16693 * function.c (stack_protect_epilogue): Likewise.
16695 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16697 * expr.h (gen_move_insn_uncast): Delete.
16698 * expr.c (gen_move_insn_uncast): Delete.
16700 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16702 * target-insns.def (restore_stack_block, restore_stack_function)
16703 (restore_stack_nonlocal, save_stack_block, save_stack_function)
16704 (save_stack_nonlocal): New targetm instruction patterns.
16705 * builtins.c (expand_builtin_apply): Use them instead of
16706 HAVE_*/gen_* interface.
16707 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
16709 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16711 * target-insns.def (trap): New targetm instruction pattern.
16712 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
16714 * explow.c (allocate_dynamic_stack_space): Likewise.
16715 * ifcvt.c (find_if_header): Likewise.
16717 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16719 * target-insns.def (prefetch): New targetm instruction pattern.
16720 * tree-ssa-loop-prefetch.c: Include targeth.
16721 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
16722 of HAVE_*/gen_* interface.
16723 * builtins.c (expand_builtin_prefetch): Likewise.
16724 * toplev.c (process_options): Likewise.
16726 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16728 * target-insns.def (untyped_call, untyped_return): New targetm
16729 instruction patterns.
16730 * builtins.c (expand_builtin_apply): Use them instead of
16731 HAVE_*/gen_* interface.
16732 (result_vector): Define unconditionally.
16734 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16736 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
16737 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
16738 (nonlocal_goto_receiver): New targetm instruction patterns.
16739 * builtins.c (expand_builtin_setjmp_setup): Use them instead
16740 of HAVE_*/gen_* interface.
16741 (expand_builtin_setjmp_receiver): Likewise.
16742 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
16743 * except.c (expand_dw2_landing_pad_for_region): Likewise.
16745 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
16747 * target.def: Add code_for_* hooks.
16748 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
16749 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
16750 * target-insns.def (casesi, tablejump): New targetm instruction
16752 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
16753 (do_tablejump): Likewise.
16754 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
16755 (expand_sjlj_dispatch_table): Likewise.
16756 * targhooks.c (default_case_values_threshold): Likewise.
16758 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
16760 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
16761 Use rtx_insn * instead of rtx.
16762 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
16763 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
16764 (nios2_call_tls_get_addr): Likewise.
16765 (nios2_emit_expensive_div): Likewise.
16766 (nios2_emit_move_sequence): Change return type to bool.
16767 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
16768 Change return type to bool.
16770 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
16773 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
16775 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
16778 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
16779 of register_operand. Remove constraint.
16781 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
16783 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
16784 the first argument.
16786 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
16788 * attribs.c (decl_attributes): Guard inform with the return value
16789 of the preceding warning.
16791 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16793 * doc/invoke.texi (moverride): Move to correct section.
16795 2015-07-03 Richard Biener <rguenther@suse.de>
16797 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
16799 (dt_operand::gen_gimple_expr): After valueizing operands
16800 re-canonicalize operand order for commutative tree codes.
16802 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
16805 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
16807 (__crc32w): Likewise.
16808 (__crc32d): Likewise.
16809 (__rdpmc): Likewise.
16810 (__rdtscp): Likewise.
16811 (_rdpmc): Likewise.
16812 (_rdtscp): Likewise.
16813 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
16816 2015-07-03 Richard Biener <rguenther@suse.de>
16818 * fold-const.c (fold_mathfn_compare): Remove.
16819 (fold_inf_compare): Likewise.
16820 (fold_comparison): Move floating point comparison simplifications...
16821 * match.pd: ... to patterns here. Introduce simple_comparisons
16822 operator list and use it for patterns formerly in fold_comparison.
16824 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
16826 PR tree-optimization/66119
16827 * toplev.c (process_options): Don't set up default values for
16828 the sra_max_scalarization_size_{speed,size} parameters.
16829 * tree-sra (analyze_all_variable_accesses): If no values
16830 have been set for the sra_max_scalarization_size_{speed,size}
16831 parameters, call get_move_ratio to get target defaults.
16833 2015-07-03 Richard Biener <rguenther@suse.de>
16835 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
16836 * match.pd: ... here.
16838 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
16841 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
16842 is not actually the default on FreeBSD.
16844 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16846 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
16848 (CMPGE_8HI): Likewise.
16849 (CMPGE_4SI): Likewise.
16850 (CMPGE_2DI): Likewise.
16851 (CMPGE_U16QI): Likewise.
16852 (CMPGE_U8HI): Likewise.
16853 (CMPGE_U4SI): Likewise.
16854 (CMPGE_U2DI): Likewise.
16855 (CMPLE_16QI): Likewise.
16856 (CMPLE_8HI): Likewise.
16857 (CMPLE_4SI): Likewise.
16858 (CMPLE_2DI): Likewise.
16859 (CMPLE_U16QI): Likewise.
16860 (CMPLE_U8HI): Likewise.
16861 (CMPLE_U4SI): Likewise.
16862 (CMPLE_U2DI): Likewise.
16863 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16864 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
16865 ALTIVEC_BUILTIN_VEC_CMPLE.
16866 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
16867 floating-point vector modes.
16868 (vector_nlt<mode>): New define_expand.
16869 (vector_nltu<mode>): Likewise.
16870 (vector_ngt<mode>): Likewise.
16871 (vector_ngtu<mode>): Likewise.
16873 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
16875 PR rtl-optimization/66706
16876 * combine.c (make_compound_operation): If an AND of SUBREG of
16877 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
16879 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
16881 * tree-pass.h (make_pass_ch_vect): New.
16882 * passes.def: Add pass_ch_vect just before pass_if_conversion.
16884 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
16885 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
16886 make_pass_ch_vect): New.
16887 (pass_ch): Extend ch_base.
16889 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
16890 (ch_base::copy_headers): ...here.
16892 2015-07-02 Richard Biener <rguenther@suse.de>
16894 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
16895 * fold-const.c (get_pointer_modulus_and_residue): Remove.
16896 (fold_binary_loc): Implement (T)ptr & CST in terms of
16897 get_pointer_alignment_1.
16898 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
16899 Make sure to build the alignment test on a SSA name without
16900 final alignment info valid only after the prologue.
16902 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
16904 * config/cris/cris.md ("epilogue"): Remove condition.
16905 ("prologue"): Ditto.
16907 2015-07-02 Richard Biener <rguenther@suse.de>
16909 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
16910 parameter to record a condition that is false.
16911 (record_conditions): When recording an extra NE_EXPR that is
16912 true also record a EQ_EXPR that is false.
16914 2015-07-02 Bin Cheng <bin.cheng@arm.com>
16916 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
16917 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
16918 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
16919 (set_iv, find_interesting_uses_address, add_candidate_1): New
16920 argument to alloc_iv.
16921 (find_interesting_uses_op, find_interesting_uses_cond): Don't
16922 duplicate struct iv.
16923 (free_loop_data): Don't free struct iv explicitly.
16924 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
16926 2015-07-01 DJ Delorie <dj@redhat.com>
16928 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
16930 (SUPPORTS_DISCRIMINATOR): Define.
16932 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16935 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
16936 there are no CALLs in the same pattern.
16938 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16940 PR rtl-optimization/61047
16941 * rtlanal.c (get_initial_register_offset): New function.
16942 (rtx_addr_can_trap_p_1): Check offsets of stack references.
16944 2015-07-01 Richard Biener <rguenther@suse.de>
16946 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
16947 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
16948 ~X CMP C -> X CMP' ~C to ...
16949 * match.pd: ... patterns here.
16951 2015-07-01 Nick Clifton <nickc@redhat.com>
16953 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
16954 a 16-bit value into a 20-bit memory slot.
16956 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16958 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16959 "aarch64_tiny", "aarch64_small", "aarch64_large",
16960 "aarch64_little_endian", "aarch64_big_endian".
16962 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16964 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
16965 Document "aarch64_small_fpic".
16967 2015-07-01 Jiong Wang <jiong.wang@arm.com>
16969 * configure.ac: Add check for aarch64 assembler -fpic relocation
16971 * configure: Regenerate.
16972 * config.in: Regenerate.
16973 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
16974 to -fPIC if not support of -fpic relocation modifier in assembler.
16976 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
16979 * rtl.c (classify_insn): Handle returns in PARALLELs.
16981 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
16983 PR middle-end/66633
16984 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
16985 to true if the function is nested and if not optimizing.
16986 (convert_local_omp_clauses): Initialize need_frame to true if the
16987 function contains nested functions and if not optimizing.
16989 2015-07-01 Richard Biener <rguenther@suse.de>
16991 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
16992 (X & Y) ^ Y -> ~X & Y transforms to ...
16993 * match.pd: ... here.
16995 2015-07-01 Richard Biener <rguenther@suse.de>
16997 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
16998 of converts to avoid uninteresting noise from the conversion
16999 simplifying patterns.
17001 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
17003 * config/c6x/c6x.c (try_rename_operands): Do not depend on
17004 gcc_assert evaluating its argument for side-effect.
17006 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
17009 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
17012 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
17014 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
17015 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
17016 (hash_scc): Add this_ref_p and ref_p parameters and pass them
17017 to the inner DFS walk.
17019 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17021 * target-insns.def (jump): New targetm instruction pattern.
17022 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
17023 instead of gen_jump.
17024 (fix_up_crossing_landing_pad): Likewise.
17025 (add_labels_and_missing_jumps): Likewise.
17026 (fix_crossing_conditional_branches): Likewise.
17027 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
17028 (force_nonfallthru_and_redirect): Likewise.
17029 * cse.c (cse_insn): Likewise.
17030 * expmed.c (expand_divmod): Likewise.
17031 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
17032 * haifa-sched.c (init_before_recovery): Likewise.
17033 (sched_create_recovery_edges): Likewise.
17034 * ifcvt.c (find_cond_trap): Likewise.
17035 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
17036 (expand_float, expand_fix): Likewise.
17037 * stmt.c (emit_jump): Likewise.
17039 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17041 * defaults.h (HAVE_load_multiple, gen_load_multiple)
17042 (HAVE_store_multiple, gen_store_multiple): Delete.
17043 * target-insns.def (load_multiple, store_multiple): New targetm
17044 instruction patterns.
17045 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
17046 of HAVE_*/gen_* interface.
17048 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17050 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
17051 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
17052 (gen_mem_signal_fence): Delete.
17053 * target-insns.def (mem_signal_fence, mem_thread_fence)
17054 (memory_barrier): New targetm instruction patterns.
17055 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
17057 (expand_mem_signal_fence): Likewise.
17059 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
17061 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
17062 * target-insns.def (epilogue, prologue, sibcall_prologue): New
17063 targetm instruction patterns.
17064 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
17066 * calls.c (expand_call): Likewise.
17067 * cfgrtl.c (cfg_layout_finalize): Likewise.
17068 * df-scan.c (df_get_entry_block_def_set): Likewise.
17069 (df_get_exit_block_use_set): Likewise.
17070 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
17071 * final.c (final_start_function): Likewise.
17072 * function.c (thread_prologue_and_epilogue_insns): Likewise.
17073 (reposition_prologue_and_epilogue_notes): Likewise.
17074 * reorg.c (find_end_label): Likewise.
17075 * toplev.c (process_options): Likewise.
17077 2015-06-30 David Malcolm <dmalcolm@redhat.com>
17079 * typed-splay-tree.h: New file.
17081 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
17084 * lra-int.h (lra_substitute_pseudo): Add a parameter.
17085 (lra_substitute_pseudo_within_insn): Ditto.
17086 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
17088 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
17089 to lra_substitute_pseudo.
17090 * lra-lives.c (process_bb_lives): Add an argument to
17091 lra_substitute_pseudo_within_insn call.
17092 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
17093 argument to lra_substitute_pseudo and
17094 lra_substitute_pseudo_within_insn calls.
17095 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
17097 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
17099 * configure: Regenerated.
17101 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
17103 * config.gcc: Support i[34567]86-*-elfiamcu target.
17104 * config/i386/iamcu.h: New.
17105 * config/i386/i386.opt: Add -miamcu.
17106 * doc/invoke.texi: Document -miamcu.
17107 * common/config/i386/i386-common.c (ix86_handle_option): Turn
17108 off x87/MMX/SSE/AVX codegen for -miamcu.
17109 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17110 __iamcu/__iamcu__ for -miamcu.
17111 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
17112 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
17113 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
17114 * config/i386/i386.c (ix86_option_override_internal): Ignore and
17115 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
17116 MCU by default. Default long double to 64-bit for Intel MCU.
17117 Turn on -freg-struct-return for Intel MCU. Issue an error when
17118 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
17120 (function_arg_advance_32): Pass value whose size is no larger
17121 than 8 bytes in registers for Intel MCU.
17122 (function_arg_32): Likewise.
17123 (ix86_return_in_memory): Return value whose size is no larger
17124 than 8 bytes in registers for Intel MCU.
17125 (iamcu_alignment): New function.
17126 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
17128 (ix86_local_alignment): Don't increase alignment for Intel MCU.
17129 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
17132 2015-06-30 Marek Polacek <polacek@redhat.com>
17134 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
17135 both operands of the resulting expression.
17137 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
17138 the final expression with the operand's type and then convert
17139 it to the type of the expression.
17141 2015-06-30 Richard Biener <rguenther@suse.de>
17143 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
17144 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
17145 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
17146 * match.pd: ... to patterns here.
17148 2015-06-30 Richard Biener <rguenther@suse.de>
17150 PR tree-optimization/66704
17151 * tree-vect-data-refs.c (vect_setup_realignment): Use
17152 make_ssa_name for non-SSA name source.
17154 2015-06-30 Jakub Jelinek <jakub@redhat.com>
17156 PR middle-end/66702
17157 * omp-low.c (simd_clone_adjust): Handle addressable linear
17158 or uniform parameters or non-gimple type uniform parameters.
17160 2015-06-30 Richard Biener <rguenther@suse.de>
17162 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
17163 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
17164 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
17165 * match.pd: ... here.
17166 Add a few cases of A - B -> A + (-B) when B "easily" negates.
17167 Move (x & y) | x -> x and friends before
17168 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
17170 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
17172 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
17173 -mfix-ut699 is not specified.
17174 (leon3_load): Rename into...
17175 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
17178 2015-06-30 Marek Polacek <polacek@redhat.com>
17180 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
17181 * match.pd: ... here.
17183 2015-06-30 Richard Biener <rguenther@suse.de>
17185 * target-insns.def (canonicalize_funcptr_for_compare): Add.
17186 * fold-const.c (build_range_check): Replace uses of
17187 HAVE_canonicalize_funcptr_for_compare.
17188 (fold_widened_comparison): Likewise.
17189 (fold_sign_changed_comparison): Likewise.
17190 * dojump.c: Include "target.h".
17191 (do_compare_and_jump): Replace uses of
17192 HAVE_canonicalize_funcptr_for_compare and
17193 gen_canonicalize_funcptr_for_compare.
17194 * expr.c (do_store_flag): Likewise.
17196 2015-06-30 Tom de Vries <tom@codesourcery.com>
17198 PR tree-optimization/66652
17199 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
17200 max_loop_iterations to determine if nit + 1 overflows.
17202 2015-06-30 Richard Biener <rguenther@suse.de>
17204 * tree-vrp.c (register_edge_assert_for_2): Also register
17205 asserts for dominating conversion results.
17207 2015-06-30 Bin Cheng <bin.cheng@arm.com>
17209 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
17210 field in struct iv.
17212 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
17215 * configure.ac: Fix filds and fildq test for 64-bit.
17216 * configure: Regenerated.
17218 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
17220 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
17221 (nvptx_reorg): Here. Keep the non-subreg pieces.
17223 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
17225 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
17226 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17228 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
17230 * config/i386/i386.md (*jcc_1): Use %! in asm template.
17231 Set attribute "length_nobnd" instead of "length".
17234 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
17236 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
17238 * config/nios2/nios2.c (nios2_delegitimize_address): Make
17239 assert less restrictive.
17241 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
17244 * cgraphunit.c (cgraph_node::finalize_function): Do not call
17245 do_warn_unused_parameter.
17246 * function.c (do_warn_unused_parameter): Move from here.
17247 * function.h (do_warn_unused_parameter): Do not declare.
17249 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17252 * gcc.target/arm/armv-sync-comp-swap.c: New.
17253 * gcc.target/arm/armv-sync-op-acquire.c: New.
17254 * gcc.target/arm/armv-sync-op-full.c: New.
17255 * gcc.target/arm/armv-sync-op-release.c: New.
17257 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17260 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
17261 initial acquire barrier with final barrier.
17263 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17266 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
17267 initial acquire barrier with final barrier.
17269 2015-06-29 Richard Henderson <rth@redhat.com>
17271 * config/i386/constraints.md (Bf): New constraint.
17272 * config/i386/i386-c.c (ix86_target_macros): Define
17273 __GCC_ASM_FLAG_OUTPUTS__.
17274 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
17276 * doc/extend.texi (FlagOutputOperands): Document them.
17278 2015-06-29 Jiong Wang <jiong.wang@arm.com>
17280 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
17281 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
17283 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
17284 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
17285 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
17286 (aarch64_symbol_context): Ditto.
17287 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
17288 and use new pattern name.
17289 (aarch64_expand_mov_immediate): Ditto.
17290 (aarch64_print_operand): Ditto.
17291 (aarch64_classify_tls_symbol): Ditto.
17293 2015-06-29 Marek Polacek <polacek@redhat.com>
17294 Marc Glisse <marc.glisse@inria.fr>
17296 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
17297 * match.pd: ... pattern here.
17299 2015-06-29 Tom de Vries <tom@codesourcery.com>
17301 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
17302 function structure.
17304 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
17306 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
17307 feature description, split out the native option, add a link to
17308 the feature documentation, rearrange and slightly rewrite text.
17309 (Aarch64 options, -mcpu): Likewise.
17310 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
17311 +rdma implies Adv. SIMD.
17313 2015-06-29 Marek Polacek <polacek@redhat.com>
17316 * function.c (stack_protect_epilogue): Remove a cast to int.
17317 * doc/invoke.texi: Update -Wswitch-bool description.
17319 2015-06-29 Richard Biener <rguenther@suse.de>
17321 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
17322 * fold-const.c (fold_binary_loc): Move &A - &B simplification
17323 via ptr_difference_const ...
17324 * match.pd: ... here.
17325 When matching (X ^ Y) == Y also match with swapped operands.
17327 2015-06-29 Richard Biener <rguenther@suse.de>
17329 * lto-streamer.h (LTO_major_version): Bump to 5.
17331 2015-06-29 Richard Biener <rguenther@suse.de>
17333 PR tree-optimization/66677
17334 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
17335 STMT_VINFO_VEC_STMT clobbering less strict.
17337 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
17339 PR middle-end/64130
17340 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
17341 division, compute max and min when value ranges for dividend and
17342 divisor are available.
17344 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
17345 Sandra Loosemore <sandra@codesourcery.com>
17347 * regrename.h (regrename_do_replace): Change to return bool.
17348 * regrename.c (rename_chains): Check return value of
17349 regname_do_replace.
17350 (regrename_do_replace): Re-validate the modified insns and
17351 return bool status.
17352 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
17353 Update to match rename_chains changes.
17354 * config/c6x/c6x.c (try_rename_operands): Assert that
17355 regrename_do_replace returns true.
17357 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
17359 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
17360 operand 2 here. Use copy_addr_to_reg to copy non-index
17361 register operand 2 to a temporary.
17362 (<mode>_stx): Ditto for operand 1.
17363 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
17364 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
17365 (ix86_store_bounds): Ditto.
17367 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
17369 * print-tree.c (print_node) [TREE_VEC]: Print its length.
17371 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
17373 * gimple.c (gimple_call_set_fndecl): Remove.
17374 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
17375 build1_loc directly instead of build_fold_addr_expr_loc.
17377 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17379 * hash-map.h (hash_map::traverse): Use the definition of the
17380 Key typedef rather than the typedef itself.
17382 2015-06-26 Martin Jambor <mjambor@suse.cz>
17385 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
17386 NULL instead of calling dump_enabled_p.
17388 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17390 * config/aarch64/aarch64.opt: (override): New.
17391 * doc/invoke.texi (override): Document.
17392 * config/aarch64/aarch64.c (aarch64_flag_desc): New
17393 (aarch64_fusible_pairs): Likewise.
17394 (aarch64_tuning_flags): Likewise.
17395 (aarch64_tuning_override_function): Likewise.
17396 (aarch64_tuning_override_functions): Likewise.
17397 (aarch64_parse_one_option_token): Likewise.
17398 (aarch64_parse_boolean_options): Likewise.
17399 (aarch64_parse_fuse_string): Likewise.
17400 (aarch64_parse_tune_string): Likewise.
17401 (aarch64_parse_one_override_token): Likewise.
17402 (aarch64_parse_override_string): Likewise.
17403 (aarch64_override_options): Parse the -override string if it
17406 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17408 * config/aarch64/aarch64-protos.h (tune_params): Remove
17409 const from members.
17410 (aarch64_tune_params): Remove const, change to no longer be
17412 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
17413 change to no longer be a pointer, initialize to generic_tunings.
17414 (aarch64_min_divisions_for_recip_mul): Change dereference of
17415 aarch64_tune_params to member access.
17416 (aarch64_reassociation_width): Likewise.
17417 (aarch64_rtx_mult_cost): Likewise.
17418 (aarch64_address_cost): Likewise.
17419 (aarch64_branch_cost): Likewise.
17420 (aarch64_rtx_costs): Likewise.
17421 (aarch64_register_move_cost): Likewise.
17422 (aarch64_memory_move_cost): Likewise.
17423 (aarch64_sched_issue_rate): Likewise.
17424 (aarch64_builtin_vectorization_cost): Likewise.
17425 (aarch64_override_options): Take a copy of the selected tuning
17426 struct in to aarch64_tune_params, rather than just setting
17427 a pointer, change dereferences of aarch64_tune_params to member
17429 (aarch64_override_options_after_change): Change dereferences of
17430 aarch64_tune_params to member access.
17431 (aarch64_macro_fusion_p): Likewise.
17432 (aarch_macro_fusion_pair_p): Likewise.
17433 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
17435 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17437 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
17438 (aarch64_tune_flags): Likewise.
17439 (AARCH64_TUNE_FMA_STEERING): Likewise.
17440 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
17441 to AARCH64_FL_USE_FMA_STEERING_PASS.
17442 (cortex-a57.cortex-a53): Likewise.
17443 (cortex-a72): Use cortexa72_tunings.
17444 (cortex-a72.cortex-a53): Likewise.
17445 (exynos-m1): Likewise.
17446 * config/aarch64/aarch64-protos.h (tune_params): Add
17447 a field: extra_tuning_flags.
17448 * config/aarch64/aarch64-tuning-flags.def: New.
17449 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
17450 (aarch64_extra_tuning_flags): Likewise.
17451 (aarch64_tune_params): Declare here.
17452 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
17453 (cortexa53_tunings): Likewise.
17454 (cortexa57_tunings): Likewise.
17455 (thunderx_tunings): Likewise.
17456 (xgene1_tunings): Likewise.
17457 (cortexa72_tunings): New.
17458 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
17459 (gate): Check against aarch64_tune_params.
17460 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
17463 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
17465 * config/aarch64/aarch64-fusion-pairs.def: New.
17466 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
17467 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
17468 aarch64_fusion_pairs.
17469 (AARCH64_FUSE_MOV_MOVK): Likewise.
17470 (AARCH64_FUSE_ADRP_ADD): Likewise.
17471 (AARCH64_FUSE_MOVK_MOVK): Likewise.
17472 (AARCH64_FUSE_ADRP_LDR): Likewise.
17473 (AARCH64_FUSE_CMP_BRANCH): Likewise.
17475 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17477 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
17478 SYMBOL_SMALL_GOT_28K.
17479 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
17480 relocation modifiers.
17481 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
17482 (ldr_got_small_28k_<mode>): New.
17483 (ldr_got_small_28k_sidi): New.
17484 * config/aarch64/iterators.md (got_modifier): New mode iterator.
17485 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
17486 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17487 SYMBOL_SMALL_GOT_28K.
17488 (aarch64_rtx_costs): Add costs for new instruction sequences.
17489 (initialize_aarch64_code_model): Initialize new model.
17490 (aarch64_classify_symbol): Recognize new model and new symbol classification.
17491 (aarch64_asm_preferred_eh_data_format): Support new model.
17492 (aarch64_load_symref_appropriately): Generate new instruction
17493 sequences for -fpic.
17494 (TARGET_USE_PSEUDO_PIC_REG): New definition.
17495 (aarch64_use_pseudo_pic_reg): New function.
17497 2015-06-26 Jiong Wang <jiong.wang@arm.com>
17499 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17500 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
17501 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
17502 (aarch64_expand_mov_immediate): Ditto.
17503 (aarch64_print_operand): Ditto.
17504 (aarch64_classify_symbol): Ditto.
17506 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
17508 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
17510 2015-06-26 Bin Cheng <bin.cheng@arm.com>
17513 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
17514 assertion failed. Remove assertion itself.
17516 2015-06-26 Richard Biener <rguenther@suse.de>
17518 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
17519 and -A CMP CST -> A CMP -CST which is redundant with a pattern
17521 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
17522 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
17523 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
17524 * match.pd: ... patterns here.
17526 2015-06-26 Marek Polacek <polacek@redhat.com>
17528 * match.pd ((x | y) & ~(x & y) -> x ^ y,
17529 (x | y) & (~x ^ y) -> x & y): New patterns.
17531 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
17533 * rtl.h (emit): Add an optional boolean parameter to control
17534 whether barriers are emitted.
17535 * emit-rtl.c (emit): Likewise.
17536 * gensupport.c (get_emit_function): Return null rather than "emit".
17537 * genemit.c (gen_emit_seq): Handle the null return value.
17538 Don't emit barriers after the final instruction in the sequence.
17539 * gentarget-def.c (main): Don't emit barriers after the instruction.
17541 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17543 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
17544 TARGET_UNIFIED_ASM.
17546 2015-06-26 Richard Biener <rguenther@suse.de>
17548 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
17550 2015-06-26 Richard Biener <rguenther@suse.de>
17552 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
17553 irrespective on whether the inner operation has a single use
17554 of both off are constant.
17556 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
17557 Segher Boessenkool <segher@kernel.crashing.org>
17560 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
17561 before doing PUT_MODE or PUT_CODE on operands to avoid
17562 in-place RTX modification.
17564 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17566 * gentarget-def.c (def_target_insn): Cast return of strtol to
17569 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17571 * gimple.h (gimple_call_set_fn): Move inline function.
17572 * gimple.c (gimple_call_set_fn): Relocate here.
17574 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
17578 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
17579 the replacement insn will work.
17581 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
17583 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
17586 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
17588 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
17589 * cgraph.h: Include ipa-ref.h and plugin-api.h.
17590 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
17591 (symtab_node::address_can_be_compared_p): Move function.
17592 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
17594 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
17595 * auto-profile.c: Likewise.
17596 * bb-reorder.c: Likewise.
17597 * builtins.c: Likewise.
17598 * calls.c: Likewise.
17599 * cfgexpand.c: Likewise.
17600 * cgraphbuild.c: Likewise.
17601 * cgraphclones.c: Likewise.
17602 * cgraphunit.c: Likewise.
17603 * combine.c: Likewise.
17604 * coverage.c: Likewise.
17605 * data-streamer-in.c: Likewise.
17606 * data-streamer-out.c: Likewise.
17607 * data-streamer.c: Likewise.
17608 * dbxout.c: Likewise.
17609 * dwarf2out.c: Likewise.
17610 * except.c: Likewise.
17611 * expr.c: Likewise.
17612 * final.c: Likewise.
17613 * fold-const.c: Likewise.
17614 * ggc-page.c: Likewise.
17615 * gimple-fold.c: Likewise.
17616 * gimple-iterator.c: Likewise.
17617 * gimple-pretty-print.c: Likewise.
17618 * gimple-streamer-in.c: Likewise.
17619 * gimple-streamer-out.c: Likewise.
17620 * gimple.c: Likewise.
17621 * gimplify.c: Likewise.
17622 * ipa-chkp.c: Likewise.
17623 * ipa-comdats.c: Likewise.
17624 * ipa-cp.c: Likewise.
17625 * ipa-devirt.c: Likewise.
17626 * ipa-icf-gimple.c: Likewise.
17627 * ipa-icf.c: Likewise.
17628 * ipa-inline-analysis.c: Likewise.
17629 * ipa-inline-transform.c: Likewise.
17630 * ipa-inline.c: Likewise.
17631 * ipa-polymorphic-call.c: Likewise.
17632 * ipa-profile.c: Likewise.
17633 * ipa-prop.c: Likewise.
17634 * ipa-pure-const.c: Likewise.
17635 * ipa-ref.c: Likewise.
17636 * ipa-reference.c: Likewise.
17637 * ipa-split.c: Likewise.
17638 * ipa-utils.c: Likewise.
17639 * ipa-visibility.c: Likewise.
17641 * langhooks.c: Likewise.
17642 * lto-cgraph.c: Likewise.
17643 * lto-compress.c: Likewise.
17644 * lto-opts.c: Likewise.
17645 * lto-section-in.c: Likewise.
17646 * lto-section-out.c: Likewise.
17647 * lto-streamer-in.c: Likewise.
17648 * lto-streamer-out.c: Likewise.
17649 * lto-streamer.c: Likewise.
17650 * omp-low.c: Likewise.
17651 * opts-global.c: Likewise.
17652 * passes.c: Likewise.
17653 * predict.c: Likewise.
17654 * print-tree.c: Likewise.
17655 * profile.c: Likewise.
17657 * sanopt.c: Likewise.
17658 * stor-layout.c: Likewise.
17659 * symtab.c: Likewise.
17660 * toplev.c: Likewise.
17661 * trans-mem.c: Likewise.
17662 * tree-cfg.c: Likewise.
17663 * tree-chkp.c: Likewise.
17664 * tree-eh.c: Likewise.
17665 * tree-emutls.c: Likewise.
17666 * tree-inline.c: Likewise.
17667 * tree-nested.c: Likewise.
17668 * tree-parloops.c: Likewise.
17669 * tree-pretty-print.c: Likewise.
17670 * tree-profile.c: Likewise.
17671 * tree-sra.c: Likewise.
17672 * tree-ssa-alias.c: Likewise.
17673 * tree-ssa-live.c: Likewise.
17674 * tree-ssa-loop-ivcanon.c: Likewise.
17675 * tree-ssa-loop-ivopts.c: Likewise.
17676 * tree-ssa-pre.c: Likewise.
17677 * tree-ssa-sccvn.c: Likewise.
17678 * tree-ssa-strlen.c: Likewise.
17679 * tree-ssa-structalias.c: Likewise.
17680 * tree-streamer-in.c: Likewise.
17681 * tree-streamer-out.c: Likewise.
17682 * tree-streamer.c: Likewise.
17683 * tree-switch-conversion.c: Likewise.
17684 * tree-tailcall.c: Likewise.
17685 * tree-vect-data-refs.c: Likewise.
17686 * tree-vect-stmts.c: Likewise.
17687 * tree-vectorizer.c: Likewise.
17688 * tree.c: Likewise.
17689 * tsan.c: Likewise.
17690 * ubsan.c: Likewise.
17691 * value-prof.c: Likewise.
17692 * varasm.c: Likewise.
17693 * varpool.c: Likewise.
17694 * config/arm/arm.c: Likewise.
17695 * config/bfin/bfin.c: Likewise.
17696 * config/c6x/c6x.c: Likewise.
17697 * config/cris/cris.c: Likewise.
17698 * config/darwin-c.c: Likewise.
17699 * config/darwin.c: Likewise.
17700 * config/i386/i386.c: Likewise.
17701 * config/i386/winnt.c: Likewise.
17702 * config/microblaze/microblaze.c: Likewise.
17703 * config/mips/mips.c: Likewise.
17704 * config/rs6000/rs6000.c: Likewise.
17705 * config/rx/rx.c: Likewise.
17706 * config/s390/s390.c: Likewise.
17707 * config/tilegx/mul-tables.c: Likewise.
17709 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17711 * config/aarch64/aarch64.c, config/alpha/alpha.c,
17712 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
17713 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
17714 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
17715 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17716 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17717 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17718 config/microblaze/microblaze.c, config/mips/mips.c,
17719 config/mmix/mmix.c, config/mn10300/mn10300.c,
17720 config/moxie/moxie.c, config/msp430/msp430.c,
17721 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17722 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17723 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17724 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17725 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17726 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17727 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
17728 target-def.h include.
17729 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
17731 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17733 * Makefile.in (TARGET_DEF): Add target-insns.def.
17734 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
17735 (build/gentarget-def.o): New rule.
17736 (genprogrtl): Add target-def.
17737 * target-insns.def, gentarget-def.c: New files.
17738 * target.def: Add targetm.have_* and targetm.gen_* hooks,
17739 based on the contents of target-insns.def.
17740 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
17741 (HAVE_return, gen_return): Delete.
17742 * target-def.h: Include insn-target-def.h.
17743 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
17744 instead of direct calls. Rely on them to do the appropriate assertions.
17745 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
17746 (convert_jumps_to_returns): Use targetm interface instead of
17748 (thread_prologue_and_epilogue_insns): Likewise.
17749 * reorg.c (find_end_label, dbr_schedule): Likewise.
17750 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
17751 * shrink-wrap.c (convert_to_simple_return): Likewise.
17752 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
17754 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17756 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
17757 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17758 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
17759 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
17760 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
17761 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
17762 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
17763 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
17764 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
17765 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
17766 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
17767 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
17768 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
17769 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
17770 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
17771 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
17774 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17776 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
17777 (unbounded_int_hashmap_traits::key_type): Likewise.
17778 * hash-map.h (hash_map): Get the key type from the traits.
17779 * hash-traits.h (default_hash_traits): By default, inherit from the
17780 template parameter.
17781 * alias.c (alias_set_traits): Delete.
17782 (alias_set_entry_d::children): Use alias_set_hash as the first
17783 template parameter.
17784 (record_alias_subset): Update accordingly.
17785 * except.c (tree_hash_traits): Delete.
17786 (type_to_runtime_map): Use tree_hash as the first template parameter.
17787 (init_eh): Update accordingly.
17788 * genmatch.c (capture_id_map_hasher): Delete.
17789 (cid_map_t): Use nofree_string_hash as first template parameter.
17790 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
17791 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
17792 Use symbol_compare_hash as the first template parameter in
17793 subdivide_hash_map.
17794 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
17795 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
17796 template parameter.
17797 * passes.c (pass_registry_hasher): Delete.
17798 (name_to_pass_map): Use nofree_string_hash as the first template
17800 (register_pass_name): Update accordingly.
17801 * sanopt.c (sanopt_tree_map_traits): Delete.
17802 (sanopt_tree_triplet_map_traits): Delete.
17803 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
17804 template parameter.
17805 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
17806 the first template parameter.
17807 * sese.c (rename_map_hasher): Delete.
17808 (rename_map_type): Use tree_ssa_name_hash as the first template
17810 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
17811 (function_summary::m_map): Use map_hash as the first template
17813 (function_summary::release): Update accordingly.
17814 * tree-if-conv.c (phi_args_hash_traits): Delete.
17815 (predicate_scalar_phi): Use tree_operand_hash as the first template
17816 parameter to phi_arg_map.
17817 * tree-inline.h (dependence_hasher): Delete.
17818 (copy_body_data::dependence_map): Use dependence_hash as the first
17819 template parameter.
17820 * tree-inline.c (remap_dependence_clique): Update accordingly.
17821 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
17822 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
17824 (addr_stridxptr): Update accordingly.
17825 * value-prof.c (profile_id_traits): Delete.
17826 (cgraph_node_map): Use profile_id_hash as the first template
17828 (init_node_map): Update accordingly.
17829 * config/alpha/alpha.c (string_traits): Delete.
17830 (machine_function::links): Use nofree_string_hash as the first
17831 template parameter.
17832 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
17833 * config/m32c/m32c.c (pragma_traits): Delete.
17834 (pragma_htab): Use nofree_string_hash as the first template parameter.
17835 (m32c_note_pragma_address): Update accordingly.
17836 * config/mep/mep.c (pragma_traits): Delete.
17837 (pragma_htab): Use nofree_string_hash as the first template parameter.
17838 (mep_note_pragma_flag): Update accordingly.
17839 * config/mips/mips.c (mips16_flip_traits): Delete.
17840 (mflip_mips16_htab): Use nofree_string_hash as the first template
17842 (mflip_mips16_use_mips16_p): Update accordingly.
17843 (local_alias_traits): Delete.
17844 (mips16_local_aliases): Use nofree_string_hash as the first template
17846 (mips16_local_alias): Update accordingly.
17848 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17850 * hash-map-traits.h (default_hashmap_traits): Delete.
17852 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17854 * hash-map-traits.h (unbounded_hashmap_traits): New class.
17855 (unbounded_int_hashmap_traits): Likewise.
17856 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
17858 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17860 * ipa-icf.h (symbol_compare_hash): New class.
17861 (symbol_compare_hashmap_traits): Use it.
17862 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
17863 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
17864 (mem_alloc_description::reverse_mem_map_t): Remove redundant
17865 default_hashmap_traits.
17866 * sanopt.c (sanopt_tree_triplet_hash): New class.
17867 (sanopt_tree_triplet_map_traits): Use it.
17869 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17871 * gengtype-parse.c (require_template_declaration): Allow '+' in
17872 template parameters. Consolidate cases.
17873 * hash-traits.h (int_hash): New class.
17874 * alias.c (alias_set_hash): New structure.
17875 (alias_set_traits): Use it.
17876 * symbol-summary.h (function_summary::map_hash): New class.
17877 (function_summary::summary_hashmap_traits): Use it.
17878 * tree-inline.h (dependence_hash): New class.
17879 (dependence_hasher): Use it.
17880 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
17881 * value-prof.c (profile_id_hash): New class.
17882 (profile_id_traits): Use it.
17884 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17886 * config/mips/mips.c (mips16_flip_traits): Use it.
17887 (local_alias_traits, mips16_local_aliases): Convert from a map of
17888 rtxes to a map of symbol names.
17889 (mips16_local_alias): Update accordingly.
17891 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17893 * hash-traits.h (string_hash, nofree_string_hash): New classes.
17894 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
17895 * passes.c (pass_registry_hasher): Likewise.
17896 * config/alpha/alpha.c (string_traits): Likewise.
17897 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
17898 * config/m32c/m32c.c (pragma_traits): Likewise.
17899 * config/mep/mep.c (pragma_traits): Likewise.
17901 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17903 * tree-hash-traits.h (tree_hash): New class.
17904 * except.c: Include tree-hash-traits.h.
17905 (tree_hash_traits): Use tree_hash.
17907 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17909 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
17910 * sese.c: Include tree-hash-traits.h.
17911 (rename_map_hasher): Use tree_ssa_name_hasher.
17913 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17915 * tree-hash-traits.h (tree_decl_hash): New class.
17916 * tree-ssa-strlen.c: Include tree-hash-traits.h.
17917 (stridxlist_hash_traits): Use tree_decl_hash.
17919 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17921 * tree-hash-traits.h: New file.
17922 (tree_operand_hash): New class.
17923 * sanopt.c: Include tree-hash-traits.h.
17924 (sanopt_tree_map_traits): Use tree_operand_hash.
17925 * tree-if-conv.c: Include tree-hash-traits.h.
17926 (phi_args_hash_traits): Use tree_operand_hash.
17927 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
17928 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
17930 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17932 * hash-map-traits.h: Include hash-traits.h.
17933 (simple_hashmap_traits): New class.
17934 * mem-stats.h (hash_map): Change the default traits to
17935 simple_hashmap_traits<default_hash_traits<Key> >.
17937 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17939 * hash-table.h: Update comments.
17941 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17943 * hash-traits.h (default_hash_traits): New structure.
17944 * hash-set.h (default_hashset_traits): Delete.
17945 (hash_set): Use default_hash_traits<Key> instead of
17946 default_hashset_traits. Delete hash_entry type and use Key directly.
17947 * ipa-devirt.c (pair_traits): Delete.
17948 (default_hash_traits <type_pair>): Override.
17949 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
17950 (odr_types_equivalent_p, add_type_duplicate): Likewise.
17952 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17954 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
17956 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17958 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
17959 (has_is_empty, is_empty_helper): Delete.
17960 (has_mark_deleted, mark_deleted_helper): Delete.
17961 (has_mark_empty, mark_empty_helper): Delete.
17962 (hash_table::is_deleted): Call the Descriptor unconditionally.
17963 (hash_table::is_empty): Likewise.
17964 (hash_table::mark_deleted): Likewise.
17965 (hash_table::mark_empty): Likewise.
17967 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17969 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
17970 redundant typedefs and members.
17971 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
17972 redundant typedefs.
17973 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
17974 * ipa-devirt.c (odr_name_hasher): Likewise.
17975 (polymorphic_call_target_hasher): Likewise.
17976 * ira-costs.c (cost_classes_hasher): Likewise.
17977 * statistics.c (stats_counter_hasher): Likewise.
17978 * trans-mem.c (log_entry_hasher): Likewise.
17979 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
17980 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
17981 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
17982 * var-tracking.c (variable_hasher): Likewise.
17983 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
17984 Remove redundant typedefs and members.
17986 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
17988 * hash-traits.h (ggc_cache_hasher): Rename to...
17989 (ggc_cache_remove): ...this and remove typedefs.
17990 (ggc_cache_ptr_hash): New class.
17991 * hash-table.h: Update commentary.
17992 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
17993 rather than ggc_cache_hasher.
17994 (const_wide_int_hasher, reg_attr_hasher): Likewise.
17995 (const_double_hasher, const_fixed_hasher): Likewise.
17996 * function.c (insn_cache_hasher): Likewise.
17997 * trans-mem.c (tm_wrapper_hasher): Likewise.
17998 * tree.h (tree_decl_map_cache_hasher): Likewise.
17999 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
18000 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
18001 * ubsan.c (tree_type_map_cache_hasher): Likewise.
18002 * varasm.c (tm_clone_hasher): Likewise.
18003 * config/i386/i386.c (dllimport_hasher): Likewise.
18004 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
18005 (tree_hasher): Likewise.
18007 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18009 * hash-traits.h (ggc_hasher): Rename to...
18010 (ggc_remover): ...this and remove typedefs.
18011 (ggc_cache_hasher): Update accordingly. Add typedefs.
18012 (ggc_ptr_hash): New class.
18013 * hash-table.h: Update comment.
18014 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
18016 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
18017 (tree_descriptor_hasher): Likewise.
18018 * cgraph.c (function_version_hasher): Likewise.
18019 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
18020 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
18021 (dw_loc_list_hasher, addr_hasher): Likewise.
18022 * function.h (used_type_hasher): Likewise.
18023 * function.c (temp_address_hasher): Likewise.
18024 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
18025 * libfuncs.h (libfunc_hasher): Likewise.
18026 * lto-streamer.h (decl_state_hasher): Likewise.
18027 * optabs.c (libfunc_decl_hasher): Likewise.
18028 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
18029 * varasm.c (section_hasher, object_block_hasher): Likewise.
18030 (const_rtx_desc_hasher): Likewise.
18031 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
18032 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
18034 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18036 * hash-traits.h (free_ptr_hash): New class.
18037 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
18038 rather than typed_free_remove. Remove redudant typedefs.
18039 (external_ref_hasher): Likewise.
18040 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
18041 (ehspec_hasher): Likewise.
18042 * ggc-common.c (saving_hasher): Likewise.
18043 * gimplify.c (gimplify_hasher): Likewise.
18044 * haifa-sched.c (delay_i2_hasher): Likewise.
18045 * loop-invariant.c (invariant_expr_hasher): Likewise.
18046 * loop-iv.c (biv_entry_hasher): Likewise.
18047 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
18048 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
18049 * tree-cfg.c (locus_discrim_hasher): Likewise.
18050 * tree-eh.c (finally_tree_hasher): Likewise.
18051 * tree-into-ssa.c (var_info_hasher): Likewise.
18052 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
18053 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
18054 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
18055 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
18056 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
18057 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
18058 (shared_bitmap_hasher): Likewise.
18059 * tree-ssa-threadupdate.c (redirection_data): Likewise.
18060 * tree-vectorizer.h (peel_info_hasher): Likewise.
18061 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
18062 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
18064 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18066 * hash-table.h: Update comments.
18067 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
18068 (nofree_ptr_hash): New class.
18069 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
18070 than typed_noop_remove. Remove redudant typedefs.
18071 * attribs.c (attribute_hasher): Likewise.
18072 * cfg.c (bb_copy_hasher): Likewise.
18073 * cselib.c (cselib_hasher): Likewise.
18074 * dse.c (invariant_group_base_hasher): Likewise.
18075 * dwarf2cfi.c (trace_info_hasher): Likewise.
18076 * dwarf2out.c (macinfo_entry_hasher): Likewise.
18077 (comdat_type_hasher, loc_list_hasher): Likewise.
18078 * gcse.c (pre_ldst_expr_hasher): Likewise.
18079 * genmatch.c (id_base): Likewise.
18080 * genrecog.c (test_pattern_hasher): Likewise.
18081 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
18082 * haifa-sched.c (delay_i1_hasher): Likewise.
18083 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
18084 * ipa-icf.h (congruence_class_group_hash): Likewise.
18085 * ipa-profile.c (histogram_hash): Likewise.
18086 * ira-color.c (allocno_hard_regs_hasher): Likewise.
18087 * lto-streamer.h (string_slot_hasher): Likewise.
18088 * lto-streamer.c (tree_entry_hasher): Likewise.
18089 * plugin.c (event_hasher): Likewise.
18090 * postreload-gcse.c (expr_hasher): Likewise.
18091 * store-motion.c (st_expr_hasher): Likewise.
18092 * tree-sra.c (uid_decl_hasher): Likewise.
18093 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
18094 (ssa_name_var_hash): Likewise.
18095 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
18096 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
18097 * tree-ssa-pre.c (pre_expr_d): Likewise.
18098 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
18099 * vtable-verify.h (registration_hasher): Likewise.
18100 * vtable-verify.c (vtbl_map_hasher): Likewise.
18101 * config/arm/arm.c (libcall_hasher): Likewise.
18102 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
18103 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
18104 * config/sol2.c (comdat_entry_hasher): Likewise.
18105 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
18106 (print_fold_checksum, fold_checksum_tree): Likewise.
18107 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
18108 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
18109 (fold_build_call_array_loc): Likewise.
18110 * tree-ssa-ccp.c (gimple_htab): Likewise.
18111 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
18112 rather than pointer_type.
18114 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18116 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
18117 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
18119 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18121 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
18122 (ggc_hasher::ggc_mx): Likewise.
18123 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
18124 that duplicate ggc_hasher ones.
18126 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18128 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
18129 (gt_cleare_cache): Check here for deleted and empty entries.
18130 Replace handle_cache_entry with a call to keep_cache_entry.
18131 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
18132 (ggc_cache_hasher::keep_cache_entry): New function.
18133 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
18134 (tm_wrapper_hasher::keep_cache_entry): New function.
18135 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
18136 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18137 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
18138 (type_cache_hasher::keep_cache_entry): New function.
18139 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
18140 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
18141 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
18142 (tree_type_map_cache_hasher::keep_cache_entry): New function.
18143 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
18144 (tm_clone_hasher::keep_cache_entry): New function.
18145 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
18146 (dllimport_hasher::keep_cache_entry): New function.
18148 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18150 * hash-table.h: Include hash-traits.h.
18151 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
18152 (ggc_cache_hasher): Move to...
18153 * hash-traits.h: ...this new file.
18155 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18157 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
18158 struct cl_optimization.
18159 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
18160 * tree.c (make_node_stat): Allocate cl_optimization struct.
18161 (copy_node_stat): Allocate and copy cl_optimization struct.
18163 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18165 * function.h (struct incoming_args): Move struct.
18166 (pass_by_reference, reference_callee_copied): Remove prototypes.
18167 * emit-rtl.h (struct incoming_args): Relocate struct here.
18168 * calls.h (pass_by_reference, reference_callee_copied): Relocate
18170 * function.c (pass_by_reference, reference_callee_copied): Move.
18171 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
18172 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
18173 * ipa-chkp.c: Include calls.h.
18175 2015-06-25 Andrew Macleod <amacleod@redhat.com>
18177 * alias.h (alias_set_type): Move typedef.
18178 * coretypes.h (alias_set_type): Relocate typedef here.
18179 * rtl.h: Don't include alias.h.
18181 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18183 * cgraph.h (cgraph_rtl_info): Move to rtl.h
18184 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
18186 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
18187 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
18189 * calls.c: Include hard-reg-set.h before rtl.h.
18192 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18193 Vladimir Makarov <vmakarov@redhat.com>
18195 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
18198 2015-06-25 Richard Biener <rguenther@suse.de>
18200 * fold-const.c (fold_binary_loc): Move simplification of
18201 (X <<>> C1) & C2 ...
18202 * match.pd: ... here.
18204 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
18206 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
18208 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
18210 * match.pd: Add patterns for vec_conds between 1 and 0.
18212 2015-06-25 Richard Biener <rguenther@suse.de>
18214 * tree-vect-stmts.c (vectorizable_conversion): Do not set
18215 STMT_VINFO_VEC_STMT for SLP.
18216 (vectorizable_store): Likewise.
18217 (vectorizable_load): Likewise.
18218 (vect_transform_stmt): Catch SLP vectorization clobbering
18219 STMT_VINFO_VEC_STMT.
18221 2015-06-25 Richard Biener <rguenther@suse.de>
18223 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
18225 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
18226 cleanup resulting dead code and parameters.
18227 (vect_transform_slp_perm_load): Adjust.
18229 2015-06-25 Nick Clifton <nickc@redhat.com>
18231 * config/bfin/bfin.c (bfin_expand_prologue): Set
18232 current_function_static_stack_size if flag_stack_usage_info is set.
18233 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
18234 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
18235 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
18236 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
18238 2015-06-25 Tom de Vries <tom@codesourcery.com>
18240 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
18241 comment that the generated IV is unsigned.
18243 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18246 * config/arm/arm.c (arm_dbx_register_number): Return
18247 DWARF_FRAME_REGISTERS by default.
18249 2015-06-25 Tom de Vries <tom@codesourcery.com>
18251 * dominance.c (calculate_dominance_info): Fix verify_dominators call
18252 argument. Call verify_dominator when reusing dominator info.
18254 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
18257 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
18258 an additional element of the unspec vector. Modify indices
18260 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
18261 * config/sh/sh.c (prepare_move_operands): Pass incremented
18262 const_int to gen_GOTaddr2picreg.
18263 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
18265 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18267 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
18268 Condition on TARGET_FLOAT.
18270 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18272 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
18275 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
18277 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
18279 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
18280 aarch64_err_no_fpadvsimd.
18282 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
18283 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
18284 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
18285 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
18286 Turn error into assert, test TARGET_FLOAT.
18287 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
18290 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
18293 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
18295 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
18297 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
18299 2015-06-24 Renlin Li <renlin.li@arm.com>
18301 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
18302 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
18304 2015-06-24 Richard Biener <rguenther@suse.de>
18306 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
18308 (lower_opt_convert): Support lowering of conditional view_convert.
18309 (parser::parse_operation): Likewise.
18310 (parser::parse_for): Likewise.
18312 2015-06-24 Renlin Li <renlin.li@arm.com>
18314 * varasm.c (emit_local): Use unsigned int for align variable.
18316 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18319 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
18320 for negative numbers.
18322 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18324 PR rtl-optimization/66306
18325 * reload.c (find_reloads): Swap the match_dup info for
18326 commutative operands.
18328 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18330 * config/s390/vx-builtins.md
18331 ("vec_scatter_element<mode>_<non_vec_int>")
18332 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
18333 attribute with bhfgq.
18335 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18337 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
18339 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18341 * config/s390/s390-builtin-types.def: Add flag to indicate the
18342 options under which the function type is needed.
18343 * config/s390/s390-builtins.def: Add flag to indicate the options
18344 under which the builtin is enabled.
18345 * config/s390/s390-builtins.h: Add flags parameter to macro
18347 (bflags_for_builtin): New function.
18348 (flags_for_builtin): Renamed to ...
18349 (opflags_for_builtin): ... this.
18350 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
18351 flags_for_builtin to bflags_for_builtin and
18352 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
18353 * config/s390/s390.c: Add initialization of bflags_builtin and
18354 opflags_builtin arrays.
18355 Remove code for flags_builtin.
18356 (s390_init_builtins): Only create builtin function types if one of
18357 their flags is active.
18358 Only create builtins if all of their flags are active.
18359 (s390_expand_builtin): Rename flags_for_builtin to
18360 opflags_for_builtin.
18362 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18364 * config/s390/vecintrin.h: Remove internal builtins.
18366 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18368 * config/s390/s390.c (s390_secondary_reload): Fix check for
18369 GENERAL_REGS register class.
18371 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18373 * config/s390/s390.c (s390_support_vector_misalignment): Call
18374 default implementation for !TARGET_VX.
18376 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18378 * config/s390/s390.c (s390_legitimate_constant_p): Add
18381 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18383 * config/s390/s390.c (s390_vector_abi): New variable definition.
18384 (s390_check_type_for_vector_abi): New function.
18385 (TARGET_ASM_FILE_END): New macro definition.
18386 (s390_asm_file_end): New function.
18387 (s390_function_arg): Call s390_check_type_for_vector_abi.
18388 (s390_gimplify_va_arg): Likewise.
18389 * configure: Regenerate.
18390 * configure.ac: Check for .gnu_attribute Binutils feature.
18392 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
18395 * config/bfin/bfin.c (hwloop_optimize): Initialize
18396 JUMP_LABEL for newly created jump.
18398 2015-06-23 Tristan Gingold <gingold@adacore.com>
18400 * collect-utils.c (collect_wait): Unlink the response file here
18402 (do_wait): ...here.
18403 (utils_cleanup): ...and here.
18405 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
18407 * df-scan.c: Don't include target-def.h.
18408 * targhooks.c: Likewise.
18409 * config/arm/arm-c.c: Likewise.
18410 * config/i386/i386-c.c: Likewise.
18411 * config/nds32/nds32-cost.c: Likewise.
18412 * config/nds32/nds32-fp-as-gp.c: Likewise.
18413 * config/nds32/nds32-intrinsic.c: Likewise.
18414 * config/nds32/nds32-isr.c: Likewise.
18415 * config/nds32/nds32-md-auxiliary.c: Likewise.
18416 * config/nds32/nds32-memory-manipulation.c: Likewise.
18417 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18418 * config/nds32/nds32-predicates.c: Likewise.
18420 2015-06-23 Richard Biener <rguenther@suse.de>
18422 PR tree-optimization/66636
18423 * tree-vect-stmts.c (vectorizable_store): Properly compute the
18424 def type for further defs for strided stores.
18426 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
18428 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
18429 conditional selects.
18430 (setcc_int<mode>, setcc_float<mode>): Reformat.
18432 2015-06-23 Marek Polacek <polacek@redhat.com>
18434 * match.pd ((x + y) - (x | y) -> x & y,
18435 (x + y) - (x & y) -> x | y): New patterns.
18437 2015-06-23 Ludovic Courtès <ludo@gnu.org>
18440 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
18441 '-dynamic-linker' within %{!shared: ...}.
18443 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
18446 * config/i386/predicates.md (addsub_vm_operator): New predicate.
18447 (addsub_vs_operator): Ditto.
18448 (addsub_vs_parallel): Ditto.
18449 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
18450 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
18451 Put minus RTX before plus and adjust vec_merge selector.
18452 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
18453 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
18454 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
18455 (addsub vec_merge splitters): New combiner splitters.
18456 (addsub vec_select/vec_concat splitters): Ditto.
18458 2015-06-23 Bin Cheng <bin.cheng@arm.com>
18460 PR tree-optimization/66449
18461 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
18462 POINTER_PLUS_EXPR for pointers.
18464 2015-06-23 Alan Modra <amodra@gmail.com>
18466 * rtlanal.c (commutative_operand_precedence): Correct comments.
18467 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
18468 declaration. Return an int. Distinguish REG,REG return from
18470 (struct simplify_plus_minus_op_data): Make local to function.
18471 (simplify_plus_minus): Don't set canonicalized if merely sorting
18472 registers. Avoid packing ops if nothing changes. White space fixes.
18474 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
18476 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
18477 -fdump-ada-spec is passed but not if -fsyntax-only is.
18479 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
18482 * lra-lives.c (process_bb_lives): Check insn copying the same
18483 reload pseudo and don't create a copy for it.
18485 2015-06-22 Tom de Vries <tom@codesourcery.com>
18487 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
18490 2015-06-22 Tom de Vries <tom@codesourcery.com>
18492 * builtins.def (DEF_GOMP_BUILTIN): Test
18493 'flag_tree_parallelize_loops > 1' instead of
18494 'flag_tree_parallelize_loops'. Test flag_cilkplus.
18496 2015-06-22 Tom de Vries <tom@codesourcery.com>
18498 * dominance.c (calculate_dominance_info): Verify dominators if
18501 2015-06-22 Marek Polacek <polacek@redhat.com>
18503 * match.pd ((x ^ y) ^ (x | y) -> x & y,
18504 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
18505 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
18506 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
18508 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
18511 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
18512 cost of embedded comparison.
18514 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18517 * config/rs6000/predicates.md (altivec_register_operand): Permit
18518 virtual stack registers.
18519 (vsx_register_operand): Likewise.
18520 (vfloat_operand): Likewise.
18521 (vint_operand): Likewise.
18522 (vlogical_operand): Likewise.
18524 2015-06-22 Richard Biener <rguenther@suse.de>
18526 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
18527 and single_scalar_iteration_cost members.
18528 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
18529 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
18530 (vect_get_single_scalar_iteration_cost): Remove.
18531 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
18532 Use LOOP_VINFO_SCALAR_ITERATION_COST.
18533 * tree-vect-loop.c (destroy_loop_vec_info): Free
18535 (vect_get_single_scalar_iteration_cost): Compute result into
18536 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
18537 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
18538 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
18539 (vect_estimate_min_profitable_iters): Use them.
18541 2015-06-22 Christian Bruel <christian.bruel@st.com>
18544 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
18545 (TARGET_INSERT_ATTRIBUTES): Define.
18546 (thumb_flipper): New var.
18547 * config/arm/arm.opt (-mflip-thumb): New switch.
18549 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18550 Martin Liska <mliska@suse.cz>
18553 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
18554 construction of arg_types.
18555 (sem_function::sem_function): Likewise.
18556 (sem_function::~sem_function): Remove destruction of arg_types.
18557 (sem_function::compatible_parm_types_p): New function.
18558 (sem_function::equals_wpa): Reorg matching of return values
18559 and parameter types.
18560 (sem_function::equals_private): Reorg mathcing of argument types.
18561 (sem_function::parse_tree_args): Remove.
18562 * ipa-icf.h (init_wpa): Do not call it.
18563 (parse_tree_args): Remove.
18564 (compatible_parm_types_p): Declare.
18565 (result_type): Remove.
18566 (arg_types): Remove.
18568 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
18571 * ipa-polymorphic-call.c
18572 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
18573 initializing alias oracle; fix formating; set base_alias_set if it
18576 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
18578 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
18579 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
18580 (find_inc): Likewise.
18581 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
18583 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
18584 * df-scan.c (df_swap_refs): Remove.
18585 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
18586 * dominance.c (link_roots): Use std::swap instead of manually swapping.
18587 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
18588 * fold-const.c (fold_relational_const): Likewise.
18589 * genattrtab.c (simplify_test_exp): Likewise.
18590 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
18591 gimple_simplify): Likewise.
18592 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
18593 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
18594 * ipa-devirt.c (add_type_duplicate): Likewise.
18595 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
18596 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
18597 * lra.c (lra_create_copy): Likewise.
18598 * lto-streamer-out.c (DFS::DFS): Likewise.
18599 * modulo-sched.c (get_sched_window): Likewise.
18600 * omega.c (omega_pretty_print_problem): Likewise.
18601 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
18602 * reload1.c (reloads_unique_chain_p): Likewise.
18603 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
18604 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
18606 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
18608 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
18609 predicate_mem_writes): Likewise.
18610 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
18611 * tree-predcom.c (combine_chains): Likewise.
18612 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
18613 refs_may_alias_p_1): Likewise.
18614 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
18615 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
18616 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
18617 number_of_iterations_cond): Likewise.
18618 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
18619 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
18620 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18621 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
18622 * tree-vrp.c (extract_range_from_binary_expr_1,
18623 extract_range_from_unary_expr_1): Likewise.
18625 2015-06-20 Marek Polacek <polacek@redhat.com>
18627 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
18629 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
18632 * config/sh/sh.c (prepare_move_operands): Replace subreg
18633 index term with R0 for base and index addressing.
18635 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
18637 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
18639 (movsf_aarch64): Change condition from register_operand to
18640 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
18641 load1. Change type for alternative 7 to store1.
18642 (movdf_aarch64): Likewise.
18644 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
18646 * config/vax/vax.md: Adjust sign/zero extend patterns to
18647 handle SUBREGs in operands[1].
18649 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18651 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
18652 of manually swapping.
18653 (expand_vec_perm_interleave2): Likewise.
18655 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
18657 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
18658 reuse bounds created for abnormal ssa names.
18660 2015-06-19 Jakub Jelinek <jakub@redhat.com>
18662 * config/nvptx/nvptx.md (allocate_stack): Rename to...
18663 (allocate_stack_<mode>): ... this, and add :P on both
18664 match_operand and unspec.
18665 (allocate_stack): New expander.
18667 2015-06-19 Christian Bruel <christian.bruel@st.com>
18671 * config/arm/arm.c (arm_set_current_function): Handle
18672 explicit default options.
18674 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18676 * config/i386/i386.md (*movsicc_noc_zext): New insn.
18677 (zero-extended cmove with mem peephole2): New pattern.
18678 (cmove with mem peephole2): Merge patterns.
18680 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
18682 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
18684 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
18686 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
18687 * config/mips/mips.md (*madd4<mode>): Ditto.
18688 (*nmadd3<mode>) Ditto.
18689 (*nmadd4<mode>_fastmath): Ditto.
18690 (*nmadd3<mode>_fastmath): Ditto.
18691 (*nmsub4<mode>): Ditto.
18692 (*nmsub3<mode>): Ditto.
18693 (*nmsub4<mode>_fastmath): Ditto.
18694 (*nmsub3<mode>_fastmath): Ditto.
18696 2015-06-18 Michael Matz <matz@suse.de>
18698 PR middle-end/66253
18699 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
18700 grouped strided stores.
18701 (vectorizable_load): Don't use the DR from first_stmt in
18702 the non-SLP grouped strided case.
18704 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18707 * function.c (assign_bounds): Add arguments assign_regs,
18708 assign_special, assign_bt.
18709 (assign_parms): For vararg functions handle bounds in BT
18710 and special slots after incoming vararg bounds.
18712 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18714 PR middle-end/66568
18715 * cfgexpand.c (expand_return): Handle missing bounds.
18716 (expand_gimple_stmt_1): Likewise.
18717 * tree-chkp.c (chkp_expand_zero_bounds): New.
18718 * tree-chkp.h (chkp_expand_zero_bounds): New.
18720 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
18722 PR middle-end/66567
18723 * ipa-chkp.c (chkp_maybe_create_clone): Require
18724 functions to be instrumentable.
18725 * tree-chkp.c (chkp_replace_function_pointer): Use
18726 chkp_instrumentable_p instead of attribute check.
18728 2015-06-18 Richard Biener <rguenther@suse.de>
18730 PR tree-optimization/66510
18731 * tree-vect-stmts.c (vectorizable_load): Properly compute the
18732 number of vector loads for SLP permuted loads.
18733 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
18734 check the stride for loop vectorization.
18735 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
18736 vectorization factor.
18737 (vect_analyze_group_access): If the group size is not a power
18738 of two require a epilogue loop.
18739 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
18740 compute and optimizing and alias test pruning after final
18741 vectorization factor computation.
18742 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
18744 (vect_transform_slp_perm_load): Properly compute the original
18745 number of vector load stmts.
18747 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
18749 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
18750 "unlikely character , in @var" warning.
18752 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
18754 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
18755 (ix86_function_arg_advance): Ditto.
18756 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
18758 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18760 * function.h (struct rtl_data): Remove struct and accessor macros.
18761 * emit-rtl.h (struct rtl_data): Relocate to here.
18762 * Makefile.in (GTFILES): Add emit-rtl.h.
18763 * df-core.c: Include emit-rtl.h.
18764 * genattrtab.c: Likewise.
18765 * genconditions.c: Likewise.
18766 * genpreds.c: Likewise.
18767 * genrecog.c: Likewise.
18768 * regcprop.c: Likewise.
18769 * resource.c: Likewise.
18770 * sched-rgn.c: Likewise.
18771 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18772 * config/i386/winnt.c: Likewise.
18774 2015-06-17 Jakub Jelinek <jakub@redhat.com>
18776 PR middle-end/66429
18777 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
18778 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
18779 and has_force_vectorize_loops flags from cfun into
18781 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
18782 if simduid is non-NULL.
18783 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
18784 * passes.def (pass_simduid_cleanup): Add new pass after loop
18786 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
18787 indirection from htab argument's type.
18788 (shrink_simd_arrays): New function.
18789 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
18790 Don't call adjust_simduid_builtins if there are no loops.
18791 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
18792 (pass_simduid_cleanup::execute): New method.
18793 (make_pass_simduid_cleanup): New function.
18795 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
18797 * tree-core.h (tree_target_option): Make opts field a pointer to a
18798 cl_target_option instead of an instance of the struct.
18799 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
18801 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
18802 TARGET_OPTION_NODE.
18803 (copy_node_stat): Allocate and copy struct cl_target_option.
18805 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18807 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
18808 Remove conditional exposure of prototypes.
18809 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
18810 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
18811 definitions in tree.h with functions.
18812 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
18814 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
18816 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
18818 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
18819 (*cmp<mode>_signed): ... this.
18820 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
18821 (*cmp<mode>_unsigned): ... this. Remove %b.
18823 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
18825 * coretypes.h: Include input.h and as-a.h.
18826 * rtl.h: Include input.h and as-a.h for generator files.
18827 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
18828 * vec.c: Don't include diagnostic-core.h.
18829 * alias.c: Do not include input.h, line-map.h or is-a.h.
18830 * asan.c: Likewise.
18831 * attribs.c: Likewise.
18832 * auto-inc-dec.c: Likewise.
18833 * auto-profile.c: Likewise.
18834 * bb-reorder.c: Likewise.
18835 * bt-load.c: Likewise.
18836 * builtins.c: Likewise.
18837 * caller-save.c: Likewise.
18838 * calls.c: Likewise.
18839 * ccmp.c: Likewise.
18841 * cfganal.c: Likewise.
18842 * cfgbuild.c: Likewise.
18843 * cfgcleanup.c: Likewise.
18844 * cfgexpand.c: Likewise.
18845 * cfghooks.c: Likewise.
18846 * cfgloop.c: Likewise.
18847 * cfgloop.h: Likewise.
18848 * cfgloopanal.c: Likewise.
18849 * cfgloopmanip.c: Likewise.
18850 * cfgrtl.c: Likewise.
18851 * cgraph.c: Likewise.
18852 * cgraphbuild.c: Likewise.
18853 * cgraphclones.c: Likewise.
18854 * cgraphunit.c: Likewise.
18855 * cilk-common.c: Likewise.
18856 * combine-stack-adj.c: Likewise.
18857 * combine.c: Likewise.
18858 * compare-elim.c: Likewise.
18859 * convert.c: Likewise.
18860 * coverage.c: Likewise.
18861 * cppbuiltin.c: Likewise.
18862 * cprop.c: Likewise.
18864 * cselib.c: Likewise.
18865 * data-streamer-in.c: Likewise.
18866 * data-streamer-out.c: Likewise.
18867 * data-streamer.c: Likewise.
18868 * dbxout.c: Likewise.
18871 * debug.c: Likewise.
18872 * df-core.c: Likewise.
18873 * df-problems.c: Likewise.
18874 * df-scan.c: Likewise.
18877 * diagnostic-core.h: Likewise.
18878 * diagnostic.c: Likewise.
18879 * dojump.c: Likewise.
18880 * dominance.c: Likewise.
18881 * domwalk.c: Likewise.
18882 * double-int.c: Likewise.
18884 * dumpfile.c: Likewise.
18885 * dumpfile.h: Likewise.
18886 * dwarf2asm.c: Likewise.
18887 * dwarf2cfi.c: Likewise.
18888 * dwarf2out.c: Likewise.
18889 * emit-rtl.c: Likewise.
18890 * et-forest.c: Likewise.
18891 * except.c: Likewise.
18892 * explow.c: Likewise.
18893 * expmed.c: Likewise.
18894 * expr.c: Likewise.
18895 * final.c: Likewise.
18896 * fixed-value.c: Likewise.
18897 * fold-const.c: Likewise.
18898 * function.c: Likewise.
18899 * fwprop.c: Likewise.
18900 * gcc-plugin.h: Likewise.
18901 * gcse.c: Likewise.
18902 * generic-match-head.c: Likewise.
18903 * ggc-page.c: Likewise.
18904 * gimple-builder.c: Likewise.
18905 * gimple-expr.c: Likewise.
18906 * gimple-fold.c: Likewise.
18907 * gimple-iterator.c: Likewise.
18908 * gimple-low.c: Likewise.
18909 * gimple-match-head.c: Likewise.
18910 * gimple-pretty-print.c: Likewise.
18911 * gimple-ssa-isolate-paths.c: Likewise.
18912 * gimple-ssa-strength-reduction.c: Likewise.
18913 * gimple-streamer-in.c: Likewise.
18914 * gimple-streamer-out.c: Likewise.
18915 * gimple-streamer.h: Likewise.
18916 * gimple-walk.c: Likewise.
18917 * gimple.c: Likewise.
18918 * gimplify-me.c: Likewise.
18919 * gimplify.c: Likewise.
18920 * godump.c: Likewise.
18921 * graph.c: Likewise.
18922 * graphite-blocking.c: Likewise.
18923 * graphite-dependences.c: Likewise.
18924 * graphite-interchange.c: Likewise.
18925 * graphite-isl-ast-to-gimple.c: Likewise.
18926 * graphite-optimize-isl.c: Likewise.
18927 * graphite-poly.c: Likewise.
18928 * graphite-scop-detection.c: Likewise.
18929 * graphite-sese-to-poly.c: Likewise.
18930 * graphite.c: Likewise.
18931 * haifa-sched.c: Likewise.
18932 * hw-doloop.c: Likewise.
18933 * ifcvt.c: Likewise.
18934 * init-regs.c: Likewise.
18935 * input.c: Likewise.
18936 * internal-fn.c: Likewise.
18937 * ipa-chkp.c: Likewise.
18938 * ipa-comdats.c: Likewise.
18939 * ipa-cp.c: Likewise.
18940 * ipa-devirt.c: Likewise.
18941 * ipa-icf-gimple.c: Likewise.
18942 * ipa-icf.c: Likewise.
18943 * ipa-inline-analysis.c: Likewise.
18944 * ipa-inline-transform.c: Likewise.
18945 * ipa-inline.c: Likewise.
18946 * ipa-polymorphic-call.c: Likewise.
18947 * ipa-profile.c: Likewise.
18948 * ipa-prop.c: Likewise.
18949 * ipa-pure-const.c: Likewise.
18950 * ipa-ref.c: Likewise.
18951 * ipa-reference.c: Likewise.
18952 * ipa-split.c: Likewise.
18953 * ipa-utils.c: Likewise.
18954 * ipa-visibility.c: Likewise.
18956 * ira-build.c: Likewise.
18957 * ira-color.c: Likewise.
18958 * ira-conflicts.c: Likewise.
18959 * ira-costs.c: Likewise.
18960 * ira-emit.c: Likewise.
18961 * ira-lives.c: Likewise.
18963 * jump.c: Likewise.
18964 * langhooks.c: Likewise.
18966 * loop-doloop.c: Likewise.
18967 * loop-init.c: Likewise.
18968 * loop-invariant.c: Likewise.
18969 * loop-iv.c: Likewise.
18970 * loop-unroll.c: Likewise.
18971 * lower-subreg.c: Likewise.
18972 * lra-assigns.c: Likewise.
18973 * lra-coalesce.c: Likewise.
18974 * lra-constraints.c: Likewise.
18975 * lra-eliminations.c: Likewise.
18976 * lra-lives.c: Likewise.
18977 * lra-remat.c: Likewise.
18978 * lra-spills.c: Likewise.
18980 * lto-cgraph.c: Likewise.
18981 * lto-compress.c: Likewise.
18982 * lto-opts.c: Likewise.
18983 * lto-section-in.c: Likewise.
18984 * lto-section-out.c: Likewise.
18985 * lto-streamer-in.c: Likewise.
18986 * lto-streamer-out.c: Likewise.
18987 * lto-streamer.c: Likewise.
18989 * mode-switching.c: Likewise.
18990 * modulo-sched.c: Likewise.
18991 * omega.c: Likewise.
18992 * omp-low.c: Likewise.
18993 * optabs.c: Likewise.
18994 * opts-global.c: Likewise.
18995 * opts.h: Likewise.
18996 * passes.c: Likewise.
18997 * plugin.c: Likewise.
18998 * postreload-gcse.c: Likewise.
18999 * postreload.c: Likewise.
19000 * predict.c: Likewise.
19001 * pretty-print.h: Likewise.
19002 * print-rtl.c: Likewise.
19003 * print-tree.c: Likewise.
19004 * profile.c: Likewise.
19005 * real.c: Likewise.
19006 * realmpfr.c: Likewise.
19007 * recog.c: Likewise.
19009 * reg-stack.c: Likewise.
19010 * regcprop.c: Likewise.
19011 * reginfo.c: Likewise.
19012 * regrename.c: Likewise.
19013 * regstat.c: Likewise.
19014 * reload.c: Likewise.
19015 * reload1.c: Likewise.
19016 * reorg.c: Likewise.
19017 * resource.c: Likewise.
19018 * rtl-chkp.c: Likewise.
19019 * rtl-error.c: Likewise.
19020 * rtlanal.c: Likewise.
19021 * rtlhooks.c: Likewise.
19022 * sanopt.c: Likewise.
19023 * sched-deps.c: Likewise.
19024 * sched-ebb.c: Likewise.
19025 * sched-rgn.c: Likewise.
19026 * sched-vis.c: Likewise.
19027 * sdbout.c: Likewise.
19028 * sel-sched-dump.c: Likewise.
19029 * sel-sched-ir.c: Likewise.
19030 * sel-sched.c: Likewise.
19031 * sese.c: Likewise.
19032 * shrink-wrap.c: Likewise.
19033 * simplify-rtx.c: Likewise.
19034 * stack-ptr-mod.c: Likewise.
19035 * statistics.c: Likewise.
19036 * stmt.c: Likewise.
19037 * stor-layout.c: Likewise.
19038 * store-motion.c: Likewise.
19039 * streamer-hooks.c: Likewise.
19040 * stringpool.c: Likewise.
19041 * symtab.c: Likewise.
19042 * target-globals.c: Likewise.
19043 * targhooks.c: Likewise.
19044 * toplev.c: Likewise.
19045 * tracer.c: Likewise.
19046 * trans-mem.c: Likewise.
19047 * tree-affine.c: Likewise.
19048 * tree-browser.c: Likewise.
19049 * tree-call-cdce.c: Likewise.
19050 * tree-cfg.c: Likewise.
19051 * tree-cfgcleanup.c: Likewise.
19052 * tree-chkp-opt.c: Likewise.
19053 * tree-chkp.c: Likewise.
19054 * tree-chrec.c: Likewise.
19055 * tree-complex.c: Likewise.
19056 * tree-data-ref.c: Likewise.
19057 * tree-dfa.c: Likewise.
19058 * tree-diagnostic.c: Likewise.
19059 * tree-dump.c: Likewise.
19060 * tree-eh.c: Likewise.
19061 * tree-emutls.c: Likewise.
19062 * tree-if-conv.c: Likewise.
19063 * tree-inline.c: Likewise.
19064 * tree-into-ssa.c: Likewise.
19065 * tree-iterator.c: Likewise.
19066 * tree-loop-distribution.c: Likewise.
19067 * tree-nested.c: Likewise.
19068 * tree-nrv.c: Likewise.
19069 * tree-object-size.c: Likewise.
19070 * tree-outof-ssa.c: Likewise.
19071 * tree-parloops.c: Likewise.
19072 * tree-phinodes.c: Likewise.
19073 * tree-predcom.c: Likewise.
19074 * tree-pretty-print.c: Likewise.
19075 * tree-profile.c: Likewise.
19076 * tree-scalar-evolution.c: Likewise.
19077 * tree-sra.c: Likewise.
19078 * tree-ssa-address.c: Likewise.
19079 * tree-ssa-alias.c: Likewise.
19080 * tree-ssa-ccp.c: Likewise.
19081 * tree-ssa-coalesce.c: Likewise.
19082 * tree-ssa-copy.c: Likewise.
19083 * tree-ssa-copyrename.c: Likewise.
19084 * tree-ssa-dce.c: Likewise.
19085 * tree-ssa-dom.c: Likewise.
19086 * tree-ssa-dse.c: Likewise.
19087 * tree-ssa-forwprop.c: Likewise.
19088 * tree-ssa-ifcombine.c: Likewise.
19089 * tree-ssa-live.c: Likewise.
19090 * tree-ssa-loop-ch.c: Likewise.
19091 * tree-ssa-loop-im.c: Likewise.
19092 * tree-ssa-loop-ivcanon.c: Likewise.
19093 * tree-ssa-loop-ivopts.c: Likewise.
19094 * tree-ssa-loop-manip.c: Likewise.
19095 * tree-ssa-loop-niter.c: Likewise.
19096 * tree-ssa-loop-prefetch.c: Likewise.
19097 * tree-ssa-loop-unswitch.c: Likewise.
19098 * tree-ssa-loop.c: Likewise.
19099 * tree-ssa-math-opts.c: Likewise.
19100 * tree-ssa-operands.c: Likewise.
19101 * tree-ssa-phiopt.c: Likewise.
19102 * tree-ssa-phiprop.c: Likewise.
19103 * tree-ssa-pre.c: Likewise.
19104 * tree-ssa-propagate.c: Likewise.
19105 * tree-ssa-reassoc.c: Likewise.
19106 * tree-ssa-sccvn.c: Likewise.
19107 * tree-ssa-scopedtables.c: Likewise.
19108 * tree-ssa-sink.c: Likewise.
19109 * tree-ssa-strlen.c: Likewise.
19110 * tree-ssa-structalias.c: Likewise.
19111 * tree-ssa-tail-merge.c: Likewise.
19112 * tree-ssa-ter.c: Likewise.
19113 * tree-ssa-threadedge.c: Likewise.
19114 * tree-ssa-threadupdate.c: Likewise.
19115 * tree-ssa-uncprop.c: Likewise.
19116 * tree-ssa-uninit.c: Likewise.
19117 * tree-ssa.c: Likewise.
19118 * tree-ssanames.c: Likewise.
19119 * tree-stdarg.c: Likewise.
19120 * tree-streamer-in.c: Likewise.
19121 * tree-streamer-out.c: Likewise.
19122 * tree-streamer.c: Likewise.
19123 * tree-switch-conversion.c: Likewise.
19124 * tree-tailcall.c: Likewise.
19125 * tree-vect-data-refs.c: Likewise.
19126 * tree-vect-generic.c: Likewise.
19127 * tree-vect-loop-manip.c: Likewise.
19128 * tree-vect-loop.c: Likewise.
19129 * tree-vect-patterns.c: Likewise.
19130 * tree-vect-slp.c: Likewise.
19131 * tree-vect-stmts.c: Likewise.
19132 * tree-vectorizer.c: Likewise.
19133 * tree-vrp.c: Likewise.
19134 * tree.c: Likewise.
19135 * tsan.c: Likewise.
19136 * ubsan.c: Likewise.
19137 * valtrack.c: Likewise.
19138 * value-prof.c: Likewise.
19139 * var-tracking.c: Likewise.
19140 * varasm.c: Likewise.
19141 * varpool.c: Likewise.
19142 * vmsdbgout.c: Likewise.
19143 * vtable-verify.c: Likewise.
19145 * wide-int.cc: Likewise.
19146 * xcoffout.c: Likewise.
19147 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
19148 * common/common-targhooks.c: Likewise.
19149 * config/aarch64/aarch64-builtins.c: Likewise.
19150 * config/aarch64/aarch64.c: Likewise.
19151 * config/alpha/alpha.c: Likewise.
19152 * config/arc/arc.c: Likewise.
19153 * config/arm/aarch-common.c: Likewise.
19154 * config/arm/arm-builtins.c: Likewise.
19155 * config/arm/arm-c.c: Likewise.
19156 * config/arm/arm.c: Likewise.
19157 * config/avr/avr-c.c: Likewise.
19158 * config/avr/avr-log.c: Likewise.
19159 * config/avr/avr.c: Likewise.
19160 * config/bfin/bfin.c: Likewise.
19161 * config/c6x/c6x.c: Likewise.
19162 * config/cr16/cr16.c: Likewise.
19163 * config/cris/cris.c: Likewise.
19164 * config/darwin-c.c: Likewise.
19165 * config/darwin.c: Likewise.
19166 * config/default-c.c: Likewise.
19167 * config/epiphany/epiphany.c: Likewise.
19168 * config/epiphany/mode-switch-use.c: Likewise.
19169 * config/epiphany/resolve-sw-modes.c: Likewise.
19170 * config/fr30/fr30.c: Likewise.
19171 * config/frv/frv.c: Likewise.
19172 * config/ft32/ft32.c: Likewise.
19173 * config/glibc-c.c: Likewise.
19174 * config/h8300/h8300.c: Likewise.
19175 * config/i386/i386-c.c: Likewise.
19176 * config/i386/i386.c: Likewise.
19177 * config/i386/msformat-c.c: Likewise.
19178 * config/i386/winnt-cxx.c: Likewise.
19179 * config/i386/winnt-stubs.c: Likewise.
19180 * config/i386/winnt.c: Likewise.
19181 * config/ia64/ia64-c.c: Likewise.
19182 * config/ia64/ia64.c: Likewise.
19183 * config/iq2000/iq2000.c: Likewise.
19184 * config/lm32/lm32.c: Likewise.
19185 * config/m32c/m32c-pragma.c: Likewise.
19186 * config/m32c/m32c.c: Likewise.
19187 * config/m32r/m32r.c: Likewise.
19188 * config/m68k/m68k.c: Likewise.
19189 * config/mcore/mcore.c: Likewise.
19190 * config/mep/mep-pragma.c: Likewise.
19191 * config/mep/mep.c: Likewise.
19192 * config/microblaze/microblaze-c.c: Likewise.
19193 * config/microblaze/microblaze.c: Likewise.
19194 * config/mips/mips.c: Likewise.
19195 * config/mmix/mmix.c: Likewise.
19196 * config/mn10300/mn10300.c: Likewise.
19197 * config/moxie/moxie.c: Likewise.
19198 * config/msp430/msp430-c.c: Likewise.
19199 * config/msp430/msp430.c: Likewise.
19200 * config/nds32/nds32-cost.c: Likewise.
19201 * config/nds32/nds32-fp-as-gp.c: Likewise.
19202 * config/nds32/nds32-intrinsic.c: Likewise.
19203 * config/nds32/nds32-isr.c: Likewise.
19204 * config/nds32/nds32-md-auxiliary.c: Likewise.
19205 * config/nds32/nds32-memory-manipulation.c: Likewise.
19206 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19207 * config/nds32/nds32-predicates.c: Likewise.
19208 * config/nds32/nds32.c: Likewise.
19209 * config/nios2/nios2.c: Likewise.
19210 * config/nvptx/nvptx.c: Likewise.
19211 * config/pa/pa.c: Likewise.
19212 * config/pdp11/pdp11.c: Likewise.
19213 * config/rl78/rl78-c.c: Likewise.
19214 * config/rl78/rl78.c: Likewise.
19215 * config/rs6000/rs6000-c.c: Likewise.
19216 * config/rs6000/rs6000.c: Likewise.
19217 * config/rx/rx.c: Likewise.
19218 * config/s390/s390-c.c: Likewise.
19219 * config/s390/s390.c: Likewise.
19220 * config/sh/sh-c.c: Likewise.
19221 * config/sh/sh-mem.cc: Likewise.
19222 * config/sh/sh.c: Likewise.
19223 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19224 * config/sh/sh_treg_combine.cc: Likewise.
19225 * config/sol2-c.c: Likewise.
19226 * config/sol2-cxx.c: Likewise.
19227 * config/sol2-stubs.c: Likewise.
19228 * config/sol2.c: Likewise.
19229 * config/sparc/sparc-c.c: Likewise.
19230 * config/sparc/sparc.c: Likewise.
19231 * config/spu/spu-c.c: Likewise.
19232 * config/spu/spu.c: Likewise.
19233 * config/stormy16/stormy16.c: Likewise.
19234 * config/tilegx/mul-tables.c: Likewise.
19235 * config/tilegx/tilegx-c.c: Likewise.
19236 * config/tilegx/tilegx.c: Likewise.
19237 * config/tilepro/mul-tables.c: Likewise.
19238 * config/tilepro/tilepro-c.c: Likewise.
19239 * config/tilepro/tilepro.c: Likewise.
19240 * config/v850/v850-c.c: Likewise.
19241 * config/v850/v850.c: Likewise.
19242 * config/vax/vax.c: Likewise.
19243 * config/visium/visium.c: Likewise.
19244 * config/vms/vms-c.c: Likewise.
19245 * config/vms/vms.c: Likewise.
19246 * config/vxworks.c: Likewise.
19247 * config/winnt-c.c: Likewise.
19248 * config/xtensa/xtensa.c: Likewise.
19250 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
19252 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
19254 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
19256 2015-06-17 Richard Biener <rguenther@suse.de>
19258 PR tree-optimization/66251
19259 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
19260 stmts for SLP strided stores.
19263 2015-05-22 Richard Biener <rguenther@suse.de>
19265 PR tree-optimization/66251
19266 * tree-vect-stmts.c (vectorizable_conversion): Properly
19267 set STMT_VINFO_VEC_STMT even for the SLP case.
19269 2015-05-26 Michael Matz <matz@suse.de>
19271 PR middle-end/66251
19272 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
19273 STMT_VINFO_VEC_STMT, also with SLP.
19275 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
19278 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
19279 (*avx_addsubv4df3_1s): Ditto.
19280 (*sse3_addsubv2df3_1): Ditto.
19281 (*sse3_addsubv2df3_1s): Ditto.
19282 (*avx_addsubv8sf3_1): Ditto.
19283 (*avx_addsubv8sf3_1s): Ditto.
19284 (*sse3_addsubv4sf3_1): Ditto.
19285 (*sse3_addsubv4sf3_1s): Ditto.
19287 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
19289 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
19290 (SYSROOT_SUFFIX_SPEC): Update.
19291 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
19292 (STARTFILE_PREFIX_SPEC): Update.
19293 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
19294 (MULTILIB_REQUIRED): New.
19295 (MULTILIB_OSDIRNAMES): New.
19296 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
19297 (MULTILIB_REQUIRED): New.
19298 (MULTILIB_OSDIRNAMES): New.
19300 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
19302 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
19303 * config/aarch64/aarch64-options-extensions.def: Update "fP",
19304 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
19305 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
19306 (AARCH64_FL_PAN): New.
19307 (AARCH64_FL_LOR): New.
19308 (AARCH64_FL_RDMA): New.
19309 (AARCH64_FL_FOR_ARCH8_1): New.
19310 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
19311 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
19313 2015-06-16 Martin Liska <mliska@suse.cz>
19315 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
19316 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
19319 2015-06-16 Richard Biener <rguenther@suse.de>
19321 * tree-vect-stmts.c (vectorizable_store): Adjust.
19322 (vectorizable_load): Likewise.
19323 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19325 (vect_create_data_ref_ptr): Likewise.
19326 (bump_vector_ptr): Adjust.
19328 2015-06-16 Richard Biener <rguenther@suse.de>
19330 * tree-vect-stmts.c (vectorizable_load): Properly start loads
19331 with the first element if this is grouped loads.
19333 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
19335 * config/arm/arm-protos.h (struct tune_params): Rename
19336 log_op_non_sc to log_op_non_short_circuit, and rename enum
19337 values to expand SC to SHORT_CIRCUIT.
19338 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
19339 to LOG_OP_NON_SHORT_CIRCUIT.
19340 (arm_fastmul_tune):Likewise
19341 (arm_strongarm_tune): Likewise.
19342 (arm_xscale_tune): Likewise.
19343 (arm_9e_tune): Likewise.
19344 (arm_marvell_pj4_tune): Likewise.
19345 (arm_v6t2_tune): Likewise.
19346 (arm_cortex_tune): Likewise.
19347 (arm_cortex_a8_tune): Likewise.
19348 (arm_cortex_a7_tune): Likewise.
19349 (arm_cortex_a15_tune): Likewise.
19350 (arm_cortex_a53_tune): Likewise.
19351 (arm_cortex_a57_tune): Likewise.
19352 (arm_xgene1_tune): Likewise.
19353 (arm_cortex_a5_tune): Likewise.
19354 (arm_cortex_a9_tune): Likewise.
19355 (arm_cortex_a12_tune): Likewise.
19356 (arm_v7m_tune): Likewise.
19357 (arm_cortex_m7_tune): Likewise.
19358 (arm_v6m_tune): Likewise.
19359 (arm_fa726te_tune): Likewise.
19361 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
19363 * altivec.md: Delete UNSPEC_VMLADDUHM.
19364 (mulv4si3_p8): New pattern.
19365 (mulv4si3): Use it for POWER8.
19366 (mulv8hi3): Use vmladduhm with zero addend.
19367 (altivec_vmladduhm): Descriptive RTL.
19369 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
19371 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
19372 to use neon_move instead of mov_imm.
19373 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
19374 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
19376 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
19377 aarch64_float_const_zero_rtx_p check before TFmode check.
19378 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
19380 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
19381 code and attributes to match. Change condition from register_operand
19382 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
19383 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
19386 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
19389 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
19390 there is no parent.
19392 2015-06-14 Shiva Chen <shiva0217@gmail.com>
19394 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
19395 HOST_WIDE_INT parameter.
19397 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
19400 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
19401 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
19403 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
19405 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
19407 * rtl.h (classify_insn): Declare.
19408 * emit-rtl.c (classify_insn): Move to...
19409 * rtl.c: ...here and add generator support.
19410 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
19411 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
19412 * genemit.c (gen_emit_seq): New function.
19413 (gen_expand, gen_split): Use it.
19415 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
19417 * tree.c (make_vector_stat): Fix comment to state that the
19418 function returns a VECTOR_CST.
19420 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
19422 * gensupport.h (add_implicit_parallel): Declare.
19423 * genrecog.c (add_implicit_parallel): Move to...
19424 * gensupport.c (add_implicit_parallel): ...here.
19425 (process_one_cond_exec): Use it.
19426 * genemit.c (gen_insn): Likewise.
19428 2015-06-13 Iain Sandoe <iain@codesourcery.com>
19431 * passes.c (rest_of_decl_compilation): Do not register globals for
19432 early debug if they are declared in built-ins.
19434 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
19436 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
19438 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19440 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
19442 (noce_try_cmove_arith): Likewise.
19443 (noce_get_alt_condition): Likewise.
19445 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
19447 * common/config/i386/i386-common.c
19448 (OPTION_MASK_ISA_MWAITX_SET): New.
19449 (ix86_handle_option): Handle mwaitx.
19450 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
19451 (x86_64-*-*): Likewise.
19452 * config/i386/mwaitxintrin.h: New header.
19453 * config/i386/cpuid.h (bit_MWAITX): Define.
19454 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
19456 * config/i386/i386.opt (mwaitx): New.
19457 * config/i386/i386-builtin-types.def
19458 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
19459 * config/i386/i386-c.c: Define __MWAITX__ if needed.
19460 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
19462 (ix86_option_override_internal): Handle new option.
19463 (processor_alias_table): Added PTA_MWAITX.
19464 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
19465 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
19466 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
19467 IX86_BUILTIN_MONITORX built-ins.
19468 * config/i386/i386.h (TARGET_MWAITX): New.
19469 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
19471 (mwaitx): New pattern.
19472 (monitorx_<mode>): New pattern.
19473 * config/i386/x86intrin.h: Include mwaitxintrin.h.
19474 * doc/extend.texi: Document monitorx and mwaitx builtins.
19475 * doc/invoke.texi: Document -mmwaitx option.
19477 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
19479 * emit-rtl.c (need_atomic_barrier_p): Mask model with
19480 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
19482 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19484 * dbxout.c (xcoff_debug_hooks): Provide a function for
19485 register_main_translation_unit hook.
19487 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
19489 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
19490 variants cases from switch.
19491 (rs6000_post_atomic_barrier): Same.
19492 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
19493 (rs6000_expand_atomic_exchange): Same.
19494 (rs6000_expand_atomic_op): Same.
19495 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
19496 SYNC variants cases from switch.
19497 (atomic_load): Same.
19498 (atomic_store): Same.
19500 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
19502 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
19503 CONST_INT for goto.
19505 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
19508 * dwarf2out.c (check_die): Check for common duplicate attributes.
19509 (add_location_or_const_value_attribute): Do not add duplicate
19511 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
19513 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
19514 (gen_type_die_with_usage): Call check_die.
19515 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
19517 2015-06-11 Jason Merrill <jason@redhat.com>
19519 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
19522 2015-06-11 Marek Polacek <polacek@redhat.com>
19524 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
19526 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
19529 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
19530 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
19531 (*addx_extend_sp32): Fix pasto.
19532 (*subx_extend): Rename into...
19533 (*subx_extend_sp32): ...this.
19534 (*adddi3_extend_sp32): Add earlyclobber.
19535 (*subdi3_insn_sp32): Likewise.
19536 (*subdi3_extend_sp32): Likewise.
19537 (*and_not_di_sp32): Likewise.
19538 (*or_not_di_sp32): Likewise.
19539 (*xor_not_di_sp32): Likewise.
19540 (*negdi2_sp32): Likewise.
19541 (*one_cmpldi2_sp32): Likewise.
19543 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
19545 * debug.h (struct gcc_debug_hooks): Add a
19546 register_main_translation_unit hook.
19547 * debug.c (do_nothing_debug_hooks): Provide a function for this
19549 * dbxout.c (dbx_debug_hooks): Likewise.
19550 * sdbout.c (sdb_debug_hooks): Likewise.
19551 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19552 * dwarf2out.c (main_translation_unit): New global variable.
19553 (dwarf2out_register_main_translation_unit): New function
19554 implementing the new hook.
19555 (dwarf2_debug_hooks): Assign
19556 dwarf2out_register_main_translation_unit to this new hook.
19557 (dwarf2out_init): Associate any main translation unit to
19560 2015-06-11 Marek Polacek <polacek@redhat.com>
19562 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
19564 2015-06-11 Marek Polacek <polacek@redhat.com>
19566 * match.pd: Use single_use throughout.
19568 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19570 * config/arm/arm.c (arm_option_params_internal): When optimising
19571 for speed set max_insns_skipped when arm_restrict_it.
19573 2015-06-11 Christian Bruel <christian.bruel@st.com>
19576 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
19578 (arm_cpu_builtins): New function.
19579 (arm_pragma_target_parse): Call arm_cpu_builtins.
19580 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
19581 (arm_register_target_pragmas): Likewise.
19582 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
19583 Call arm_register_target_pragmas.
19584 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
19585 (arm_pragma_target_parse): Likewise.
19587 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
19589 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
19590 of the second operand.
19592 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
19595 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
19596 to prepare mask operand for AVX512 modes.
19598 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
19601 * doc/md.texi (Machine Constraints): Document that on the PowerPC
19602 if you use a constraint that targets a VSX register, you must use
19603 %x<n> in the template.
19605 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
19607 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
19608 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
19609 (define_insn "trap"): New definition.
19611 2015-06-10 Richard Biener <rguenther@suse.de>
19613 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
19615 (vect_supported_load_permutation_p): ... here. Handle
19616 supportable permutations in reductions.
19617 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
19618 for vectorizing strided group loads.
19620 2015-06-10 Jakub Jelinek <jakub@redhat.com>
19623 * config/i386/i386.c (ix86_split_long_move): For collisions
19624 involving direct tls segment refs, move the UNSPEC_TP possibly
19625 wrapped in ZERO_EXTEND out of the address for lea, to each of
19628 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19630 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
19631 dmb sy. Adjust tabs.
19633 2015-06-10 Tom de Vries <tom@codesourcery.com>
19635 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
19637 2015-06-10 Martin Liska <mliska@suse.cz>
19640 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
19641 all enum values in mem_alloc_origin.
19642 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
19644 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
19645 * bitmap.c (bitmap_register): Likewise.
19646 (dump_bitmap_statistics): Likewise.
19647 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
19648 (ggc_record_overhead): Likewise.
19649 * hash-map.h: Likewise.
19650 * hash-set.h: Likewise.
19651 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
19652 * hash-table.h: Likewise.
19653 * vec.c (vec_prefix::register_overhead): Likewise.
19654 (vec_prefix::release_overhead): Likewise.
19655 (dump_vec_loc_statistics): Likewise.
19657 2015-06-09 Christian Bruel <christian.bruel@st.com>
19660 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
19661 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
19662 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
19663 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
19664 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
19665 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
19666 (arm_valid_target_attribute_p): Likewise.
19667 (arm_set_current_function, arm_can_inline_p): Likewise.
19668 (arm_valid_target_attribute_rec): Likewise.
19669 (arm_previous_fndecl): New variable.
19670 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
19671 (TARGET_CAN_INLINE_P): Define.
19672 (arm_asm_trampoline_template): Emit mode.
19673 (arm_file_start): Don't set unified syntax.
19674 (arm_declare_function_name): Set unified syntax and mode.
19675 (arm_option_override): Init target_option_default_node.
19676 and target_option_current_node.
19677 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
19678 (*call_symbol): Likewise.
19679 * doc/extend.texi: Document ARM/Thumb target attribute.
19680 * doc/invoke.texi: Likewise.
19682 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19685 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19686 PR rtl-optimization/64164
19687 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19688 * tree-ssa-copyrename.c: Removed.
19689 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19690 -ftree-coalesce-vars.
19691 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19692 * common.opt (ftree-copyrename): Ignore.
19693 (ftree-coalesce-inlined-vars): Likewise.
19694 * doc/invoke.texi: Remove the ignored options above.
19695 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19696 * tree-ssa-coalesce.h: ... here.
19697 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19698 headers required by it.
19699 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19700 across variables when flag_tree_coalesce_vars. Check register
19701 use and promoted modes to allow coalescing. Moved to
19702 tree-ssa-coalesce.c.
19703 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19704 with its member functions to tree-ssa-coalesce.c.
19705 (var_map_base_init): Likewise. Renamed to
19706 compute_samebase_partition_bases.
19707 (partition_view_normal): Drop want_bases parameter.
19708 (partition_view_bitmap): Likewise.
19709 * tree-ssa-live.h: Adjust declarations.
19710 * tree-ssa-coalesce.c: Include explow.h.
19711 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19712 default defs at the entry point.
19713 (dump_part_var_map): New.
19714 (compute_optimized_partition_bases): New, called by...
19715 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19716 of compute_samebase_partition_bases. Adjust.
19717 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19718 * cfgexpand.c (leader_merge): New.
19719 (get_rtl_for_parm_ssa_default_def): New.
19720 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19721 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19722 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19723 redundant MEM attr setting.
19724 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19726 (expand_one_stack_var): ... this. New wrapper to check and
19727 skip already expanded SSA partitions.
19728 (record_alignment_for_reg_var): New, factored out of...
19729 (expand_one_var): ... this.
19730 (expand_one_ssa_partition): New.
19731 (adjust_one_expanded_partition_var): New.
19732 (expand_one_register_var): Check and skip already expanded SSA
19734 (expand_used_vars): Don't create DECLs for anonymous SSA
19735 names. Expand all SSA partitions, then adjust all SSA names.
19736 (pass::execute): Replace the loops that set
19737 SA.partition_to_pseudo from partition leaders and cleared
19738 DECL_RTL for multi-location variables, and that which used to
19739 rename vars and set attrs, with one that clears DECL_RTL and
19740 checks that PARMs and RESULTs default_defs match DECL_RTL.
19741 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19742 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19743 * explow.c (promote_ssa_mode): New.
19744 * explow.h (promote_ssa_mode): Declare.
19745 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19746 * function.c: Include cfgexpand.h.
19747 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19748 (use_register_for_parm_decl): Wrapper for the above to
19749 special-case the result_ptr.
19750 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19751 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19752 multiple locations.
19753 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19754 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19755 (assign_parm_setup_block): Prefer SSA-assigned location.
19756 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19757 if stack_parm is NULL.
19758 (assign_parm_setup_stack): Prefer SSA-assigned location.
19759 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19760 rtl before testing for pointer bounds. Special-case result_ptr.
19761 (expand_function_start): Maybe reset DECL_RTL of result.
19762 Prefer SSA-assigned location for result and static chain.
19763 Factor out DECL_RESULT and SET_DECL_RTL.
19764 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19765 anonymous SSA names. Use promote_ssa_mode.
19766 (get_temp_reg): Likewise.
19767 (remove_ssa_form): Adjust.
19768 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19769 and get its reg_usage for reg invalidation.
19770 (compute_bb_dataflow): Pass it insn.
19771 (emit_notes_in_bb): Likewise.
19772 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19773 fail assert on conversion between unsigned types.
19775 2015-06-09 Tom de Vries <tom@codesourcery.com>
19777 PR tree-optimization/65460
19778 * omp-low.c (expand_omp_target): Set parallelized_function on
19779 cgraph_node for child_fn.
19781 2015-06-09 Tom de Vries <tom@codesourcery.com>
19783 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
19784 parallelized_function before add_new_function.
19786 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
19788 * gcc-plugin.h: Move decls to plugin.h and include it.
19789 * plugin.h: Relocate decls from gcc-plugin.h
19790 * ggc-page.c: Include required header files.
19791 * passes.c: Likewise.
19792 * cgraphunit.c: Likewise.
19794 2015-06-09 Tom de Vries <tom@codesourcery.com>
19796 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
19798 2015-06-09 Jason Merrill <jason@redhat.com>
19801 * toplev.c (check_global_declaration): Don't warn about a clone.
19803 2015-06-09 Marek Polacek <polacek@redhat.com>
19805 PR tree-optimization/66299
19806 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
19807 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
19810 2015-06-09 Richard Biener <rguenther@suse.de>
19812 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
19813 (vect_analyze_slp_instance): Instead do not falsely drop
19816 2015-06-09 Richard Biener <rguenther@suse.de>
19818 PR middle-end/66423
19819 * match.pd: Handle A % (unsigned)(1 << B).
19821 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
19823 * varasm.c (output_object_block_htab): Remove.
19824 (output_object_block_compare): New.
19825 (output_object_blocks): Sort named object_blocks before outputting
19828 2015-06-09 Richard Biener <rguenther@suse.de>
19830 PR tree-optimization/66419
19831 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
19832 consider GROUP_GAP when detecting a perfect subchain.
19834 2015-06-09 Nick Clifton <nickc@redhat.com>
19836 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
19837 place read only data in the .frodata section.
19839 2015-06-09 Shiva Chen <shiva0217@gmail.com>
19841 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
19842 (atomic_store<mode>): Likewise.
19844 2015-06-09 Richard Biener <rguenther@suse.de>
19846 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
19848 2015-06-09 Richard Biener <rguenther@suse.de>
19850 PR middle-end/66413
19851 * tree-inline.c (insert_init_debug_bind): Unshare value.
19853 2015-06-09 Richard Biener <rguenther@suse.de>
19855 PR tree-optimization/66396
19856 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
19857 Rename virtual operands.
19859 2015-06-09 Tom de Vries <tom@codesourcery.com>
19861 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
19862 always return false.
19864 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19866 PR rtl-optimization/64164
19867 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19868 * tree-ssa-copyrename.c: Removed.
19869 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19870 -ftree-coalesce-vars.
19871 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19872 * common.opt (ftree-copyrename): Ignore.
19873 (ftree-coalesce-inlined-vars): Likewise.
19874 * doc/invoke.texi: Remove the ignored options above.
19875 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19876 * tree-ssa-coalesce.h: ... here.
19877 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19878 headers required by it.
19879 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19880 across variables when flag_tree_coalesce_vars. Check register
19881 use and promoted modes to allow coalescing. Moved to
19882 tree-ssa-coalesce.c.
19883 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19884 with its member functions to tree-ssa-coalesce.c.
19885 (var_map_base_init): Likewise. Renamed to
19886 compute_samebase_partition_bases.
19887 (partition_view_normal): Drop want_bases parameter.
19888 (partition_view_bitmap): Likewise.
19889 * tree-ssa-live.h: Adjust declarations.
19890 * tree-ssa-coalesce.c: Include explow.h.
19891 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19892 default defs at the entry point.
19893 (dump_part_var_map): New.
19894 (compute_optimized_partition_bases): New, called by...
19895 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19896 of compute_samebase_partition_bases. Adjust.
19897 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19898 * cfgexpand.c (leader_merge): New.
19899 (get_rtl_for_parm_ssa_default_def): New.
19900 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19901 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19902 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19903 redundant MEM attr setting.
19904 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19906 (expand_one_stack_var): ... this. New wrapper to check and
19907 skip already expanded SSA partitions.
19908 (record_alignment_for_reg_var): New, factored out of...
19909 (expand_one_var): ... this.
19910 (expand_one_ssa_partition): New.
19911 (adjust_one_expanded_partition_var): New.
19912 (expand_one_register_var): Check and skip already expanded SSA
19914 (expand_used_vars): Don't create DECLs for anonymous SSA
19915 names. Expand all SSA partitions, then adjust all SSA names.
19916 (pass::execute): Replace the loops that set
19917 SA.partition_to_pseudo from partition leaders and cleared
19918 DECL_RTL for multi-location variables, and that which used to
19919 rename vars and set attrs, with one that clears DECL_RTL and
19920 checks that PARMs and RESULTs default_defs match DECL_RTL.
19921 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19922 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19923 * explow.c (promote_ssa_mode): New.
19924 * explow.h (promote_ssa_mode): Declare.
19925 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19926 * function.c: Include cfgexpand.h.
19927 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19928 (use_register_for_parm_decl): Wrapper for the above to
19929 special-case the result_ptr.
19930 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19931 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19932 multiple locations.
19933 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19934 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19935 (assign_parm_setup_block): Prefer SSA-assigned location.
19936 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19937 if stack_parm is NULL.
19938 (assign_parm_setup_stack): Prefer SSA-assigned location.
19939 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19940 rtl before testing for pointer bounds. Special-case result_ptr.
19941 (expand_function_start): Maybe reset DECL_RTL of result.
19942 Prefer SSA-assigned location for result and static chain.
19943 Factor out DECL_RESULT and SET_DECL_RTL.
19944 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19945 anonymous SSA names. Use promote_ssa_mode.
19946 (get_temp_reg): Likewise.
19947 (remove_ssa_form): Adjust.
19948 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19949 and get its reg_usage for reg invalidation.
19950 (compute_bb_dataflow): Pass it insn.
19951 (emit_notes_in_bb): Likewise.
19952 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
19953 fail assert on conversion between unsigned types.
19955 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
19958 * tree-inline.c (reset_debug_binding): New.
19959 (reset_debug_bindings): Likewise.
19960 (expand_call_inline): Call it.
19962 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19964 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
19967 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
19969 * lto-streamer-out.c (lto_output_location): Stream
19970 reserved locations correctly.
19971 * lto-streamer-in.c (lto_output_location): Likewise.
19973 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
19975 * coretypes.h: Include hash-table.h and hash-set.h for host files.
19976 * ggc.h: Don't include statistics.h>
19977 * hash-map.h: Remove all includes.
19978 * hash-set.h: Likewise.
19979 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
19980 the include list. Remove <new>.
19981 * inchash.h: Remove all includes.
19982 * mem-stats.h: Likewise.
19983 * vec.h: No special processing for generators or ggc.
19984 * alias.c : Adjust include files.
19985 * alloc-pool.c : Likewise.
19986 * alloc-pool.h : Likewise.
19987 * asan.c : Likewise.
19988 * attribs.c : Likewise.
19989 * auto-inc-dec.c : Likewise.
19990 * auto-profile.c : Likewise.
19991 * bb-reorder.c : Likewise.
19992 * bitmap.c : Likewise.
19993 * bitmap.h : Likewise.
19994 * bt-load.c : Likewise.
19995 * builtins.c : Likewise.
19996 * caller-save.c : Likewise.
19997 * calls.c : Likewise.
19998 * ccmp.c : Likewise.
19999 * cfg.c : Likewise.
20000 * cfganal.c : Likewise.
20001 * cfgbuild.c : Likewise.
20002 * cfgcleanup.c : Likewise.
20003 * cfgexpand.c : Likewise.
20004 * cfghooks.c : Likewise.
20005 * cfgloop.c : Likewise.
20006 * cfgloop.h : Likewise.
20007 * cfgloopanal.c : Likewise.
20008 * cfgloopmanip.c : Likewise.
20009 * cfgrtl.c : Likewise.
20010 * cgraph.c : Likewise.
20011 * cgraphbuild.c : Likewise.
20012 * cgraphclones.c : Likewise.
20013 * cgraphunit.c : Likewise.
20014 * cilk-common.c : Likewise.
20015 * combine-stack-adj.c : Likewise.
20016 * combine.c : Likewise.
20017 * compare-elim.c : Likewise.
20018 * context.c : Likewise.
20019 * convert.c : Likewise.
20020 * coverage.c : Likewise.
20021 * cppbuiltin.c : Likewise.
20022 * cprop.c : Likewise.
20023 * cse.c : Likewise.
20024 * cselib.c : Likewise.
20025 * data-streamer-in.c : Likewise.
20026 * data-streamer-out.c : Likewise.
20027 * data-streamer.c : Likewise.
20028 * data-streamer.h : Likewise.
20029 * dbxout.c : Likewise.
20030 * dce.c : Likewise.
20031 * ddg.c : Likewise.
20032 * debug.c : Likewise.
20033 * df-core.c : Likewise.
20034 * df-problems.c : Likewise.
20035 * df-scan.c : Likewise.
20037 * dfp.c : Likewise.
20038 * dojump.c : Likewise.
20039 * dominance.c : Likewise.
20040 * domwalk.c : Likewise.
20041 * double-int.c : Likewise.
20042 * dse.c : Likewise.
20043 * dumpfile.c : Likewise.
20044 * dwarf2asm.c : Likewise.
20045 * dwarf2cfi.c : Likewise.
20046 * dwarf2out.c : Likewise.
20047 * emit-rtl.c : Likewise.
20048 * et-forest.c : Likewise.
20049 * except.c : Likewise.
20050 * except.h : Likewise.
20051 * explow.c : Likewise.
20052 * expmed.c : Likewise.
20053 * expr.c : Likewise.
20054 * final.c : Likewise.
20055 * fixed-value.c : Likewise.
20056 * fold-const.c : Likewise.
20057 * function.c : Likewise.
20058 * fwprop.c : Likewise.
20059 * gcc-plugin.h : Likewise.
20060 * gcc.c : Likewise.
20061 * gcse-common.c : Likewise.
20062 * gcse.c : Likewise.
20063 * genattrtab.c : Likewise.
20064 * genautomata.c : Likewise.
20065 * genconditions.c : Likewise.
20066 * genemit.c : Likewise.
20067 * generic-match-head.c : Likewise.
20068 * genextract.c : Likewise.
20069 * gengtype-state.c : Likewise.
20070 * gengtype.c : Likewise.
20071 * genhooks.c : Likewise.
20072 * genmatch.c : Likewise.
20073 * genmodes.c : Likewise.
20074 * genrecog.c : Likewise.
20075 * gensupport.c : Likewise.
20076 * ggc-common.c : Likewise.
20077 * ggc-internal.h : Likewise.
20078 * ggc-none.c : Likewise.
20079 * ggc-page.c : Likewise.
20080 * gimple-builder.c : Likewise.
20081 * gimple-expr.c : Likewise.
20082 * gimple-fold.c : Likewise.
20083 * gimple-iterator.c : Likewise.
20084 * gimple-low.c : Likewise.
20085 * gimple-match-head.c : Likewise.
20086 * gimple-pretty-print.c : Likewise.
20087 * gimple-ssa-isolate-paths.c : Likewise.
20088 * gimple-ssa-strength-reduction.c : Likewise.
20089 * gimple-ssa.h : Likewise.
20090 * gimple-streamer-in.c : Likewise.
20091 * gimple-streamer-out.c : Likewise.
20092 * gimple-streamer.h : Likewise.
20093 * gimple-walk.c : Likewise.
20094 * gimple.c : Likewise.
20095 * gimplify-me.c : Likewise.
20096 * gimplify.c : Likewise.
20097 * godump.c : Likewise.
20098 * graph.c : Likewise.
20099 * graphds.c : Likewise.
20100 * graphite-blocking.c : Likewise.
20101 * graphite-dependences.c : Likewise.
20102 * graphite-interchange.c : Likewise.
20103 * graphite-isl-ast-to-gimple.c : Likewise.
20104 * graphite-optimize-isl.c : Likewise.
20105 * graphite-poly.c : Likewise.
20106 * graphite-scop-detection.c : Likewise.
20107 * graphite-sese-to-poly.c : Likewise.
20108 * graphite.c : Likewise.
20109 * haifa-sched.c : Likewise.
20110 * hard-reg-set.h : Likewise.
20111 * hw-doloop.c : Likewise.
20112 * ifcvt.c : Likewise.
20113 * inchash.c : Likewise.
20114 * incpath.c : Likewise.
20115 * init-regs.c : Likewise.
20116 * input.c : Likewise.
20117 * internal-fn.c : Likewise.
20118 * ipa-chkp.c : Likewise.
20119 * ipa-comdats.c : Likewise.
20120 * ipa-cp.c : Likewise.
20121 * ipa-devirt.c : Likewise.
20122 * ipa-icf-gimple.c : Likewise.
20123 * ipa-icf.c : Likewise.
20124 * ipa-inline-analysis.c : Likewise.
20125 * ipa-inline-transform.c : Likewise.
20126 * ipa-inline.c : Likewise.
20127 * ipa-polymorphic-call.c : Likewise.
20128 * ipa-profile.c : Likewise.
20129 * ipa-prop.c : Likewise.
20130 * ipa-pure-const.c : Likewise.
20131 * ipa-ref.c : Likewise.
20132 * ipa-reference.c : Likewise.
20133 * ipa-split.c : Likewise.
20134 * ipa-utils.c : Likewise.
20135 * ipa-visibility.c : Likewise.
20136 * ipa.c : Likewise.
20137 * ira-build.c : Likewise.
20138 * ira-color.c : Likewise.
20139 * ira-conflicts.c : Likewise.
20140 * ira-costs.c : Likewise.
20141 * ira-emit.c : Likewise.
20142 * ira-lives.c : Likewise.
20143 * ira.c : Likewise.
20144 * jump.c : Likewise.
20145 * langhooks.c : Likewise.
20146 * lcm.c : Likewise.
20147 * libfuncs.h : Likewise.
20148 * lists.c : Likewise.
20149 * loop-doloop.c : Likewise.
20150 * loop-init.c : Likewise.
20151 * loop-invariant.c : Likewise.
20152 * loop-iv.c : Likewise.
20153 * loop-unroll.c : Likewise.
20154 * lower-subreg.c : Likewise.
20155 * lra-assigns.c : Likewise.
20156 * lra-coalesce.c : Likewise.
20157 * lra-constraints.c : Likewise.
20158 * lra-eliminations.c : Likewise.
20159 * lra-lives.c : Likewise.
20160 * lra-remat.c : Likewise.
20161 * lra-spills.c : Likewise.
20162 * lra.c : Likewise.
20163 * lto-cgraph.c : Likewise.
20164 * lto-compress.c : Likewise.
20165 * lto-opts.c : Likewise.
20166 * lto-section-in.c : Likewise.
20167 * lto-section-out.c : Likewise.
20168 * lto-streamer-in.c : Likewise.
20169 * lto-streamer-out.c : Likewise.
20170 * lto-streamer.c : Likewise.
20171 * lto-streamer.h : Likewise.
20172 * mcf.c : Likewise.
20173 * mode-switching.c : Likewise.
20174 * modulo-sched.c : Likewise.
20175 * omega.c : Likewise.
20176 * omp-low.c : Likewise.
20177 * optabs.c : Likewise.
20178 * opts-global.c : Likewise.
20179 * opts.h : Likewise.
20180 * passes.c : Likewise.
20181 * plugin.c : Likewise.
20182 * postreload-gcse.c : Likewise.
20183 * postreload.c : Likewise.
20184 * predict.c : Likewise.
20185 * print-rtl.c : Likewise.
20186 * print-tree.c : Likewise.
20187 * profile.c : Likewise.
20188 * read-md.c : Likewise.
20189 * read-md.h : Likewise.
20190 * read-rtl.c : Likewise.
20191 * real.c : Likewise.
20192 * realmpfr.c : Likewise.
20193 * recog.c : Likewise.
20194 * ree.c : Likewise.
20195 * reg-stack.c : Likewise.
20196 * regcprop.c : Likewise.
20197 * reginfo.c : Likewise.
20198 * regrename.c : Likewise.
20199 * regstat.c : Likewise.
20200 * reload.c : Likewise.
20201 * reload1.c : Likewise.
20202 * reorg.c : Likewise.
20203 * resource.c : Likewise.
20204 * rtl-chkp.c : Likewise.
20205 * rtl.c : Likewise.
20206 * rtl.h : Likewise.
20207 * rtlanal.c : Likewise.
20208 * rtlhash.c : Likewise.
20209 * rtlhash.h : Likewise.
20210 * rtlhooks.c : Likewise.
20211 * sanopt.c : Likewise.
20212 * sched-deps.c : Likewise.
20213 * sched-ebb.c : Likewise.
20214 * sched-rgn.c : Likewise.
20215 * sched-vis.c : Likewise.
20216 * sdbout.c : Likewise.
20217 * sel-sched-dump.c : Likewise.
20218 * sel-sched-ir.c : Likewise.
20219 * sel-sched-ir.h : Likewise.
20220 * sel-sched.c : Likewise.
20221 * sese.c : Likewise.
20222 * shrink-wrap.c : Likewise.
20223 * shrink-wrap.h : Likewise.
20224 * simplify-rtx.c : Likewise.
20225 * stack-ptr-mod.c : Likewise.
20226 * statistics.c : Likewise.
20227 * stmt.c : Likewise.
20228 * stor-layout.c : Likewise.
20229 * store-motion.c : Likewise.
20230 * stringpool.c : Likewise.
20231 * symtab.c : Likewise.
20232 * target-globals.c : Likewise.
20233 * targhooks.c : Likewise.
20234 * tlink.c : Likewise.
20235 * toplev.c : Likewise.
20236 * tracer.c : Likewise.
20237 * trans-mem.c : Likewise.
20238 * tree-affine.c : Likewise.
20239 * tree-affine.h : Likewise.
20240 * tree-browser.c : Likewise.
20241 * tree-call-cdce.c : Likewise.
20242 * tree-cfg.c : Likewise.
20243 * tree-cfgcleanup.c : Likewise.
20244 * tree-chkp-opt.c : Likewise.
20245 * tree-chkp.c : Likewise.
20246 * tree-chrec.c : Likewise.
20247 * tree-complex.c : Likewise.
20248 * tree-data-ref.c : Likewise.
20249 * tree-dfa.c : Likewise.
20250 * tree-diagnostic.c : Likewise.
20251 * tree-dump.c : Likewise.
20252 * tree-eh.c : Likewise.
20253 * tree-eh.h : Likewise.
20254 * tree-emutls.c : Likewise.
20255 * tree-hasher.h : Likewise.
20256 * tree-if-conv.c : Likewise.
20257 * tree-inline.c : Likewise.
20258 * tree-inline.h : Likewise.
20259 * tree-into-ssa.c : Likewise.
20260 * tree-iterator.c : Likewise.
20261 * tree-loop-distribution.c : Likewise.
20262 * tree-nested.c : Likewise.
20263 * tree-nrv.c : Likewise.
20264 * tree-object-size.c : Likewise.
20265 * tree-outof-ssa.c : Likewise.
20266 * tree-parloops.c : Likewise.
20267 * tree-phinodes.c : Likewise.
20268 * tree-predcom.c : Likewise.
20269 * tree-pretty-print.c : Likewise.
20270 * tree-profile.c : Likewise.
20271 * tree-scalar-evolution.c : Likewise.
20272 * tree-sra.c : Likewise.
20273 * tree-ssa-address.c : Likewise.
20274 * tree-ssa-alias.c : Likewise.
20275 * tree-ssa-ccp.c : Likewise.
20276 * tree-ssa-coalesce.c : Likewise.
20277 * tree-ssa-copy.c : Likewise.
20278 * tree-ssa-copyrename.c : Likewise.
20279 * tree-ssa-dce.c : Likewise.
20280 * tree-ssa-dom.c : Likewise.
20281 * tree-ssa-dse.c : Likewise.
20282 * tree-ssa-forwprop.c : Likewise.
20283 * tree-ssa-ifcombine.c : Likewise.
20284 * tree-ssa-live.c : Likewise.
20285 * tree-ssa-loop-ch.c : Likewise.
20286 * tree-ssa-loop-im.c : Likewise.
20287 * tree-ssa-loop-ivcanon.c : Likewise.
20288 * tree-ssa-loop-ivopts.c : Likewise.
20289 * tree-ssa-loop-manip.c : Likewise.
20290 * tree-ssa-loop-niter.c : Likewise.
20291 * tree-ssa-loop-prefetch.c : Likewise.
20292 * tree-ssa-loop-unswitch.c : Likewise.
20293 * tree-ssa-loop.c : Likewise.
20294 * tree-ssa-math-opts.c : Likewise.
20295 * tree-ssa-operands.c : Likewise.
20296 * tree-ssa-phiopt.c : Likewise.
20297 * tree-ssa-phiprop.c : Likewise.
20298 * tree-ssa-pre.c : Likewise.
20299 * tree-ssa-propagate.c : Likewise.
20300 * tree-ssa-reassoc.c : Likewise.
20301 * tree-ssa-sccvn.c : Likewise.
20302 * tree-ssa-scopedtables.c : Likewise.
20303 * tree-ssa-sink.c : Likewise.
20304 * tree-ssa-strlen.c : Likewise.
20305 * tree-ssa-structalias.c : Likewise.
20306 * tree-ssa-tail-merge.c : Likewise.
20307 * tree-ssa-ter.c : Likewise.
20308 * tree-ssa-threadedge.c : Likewise.
20309 * tree-ssa-threadupdate.c : Likewise.
20310 * tree-ssa-uncprop.c : Likewise.
20311 * tree-ssa-uninit.c : Likewise.
20312 * tree-ssa.c : Likewise.
20313 * tree-ssanames.c : Likewise.
20314 * tree-stdarg.c : Likewise.
20315 * tree-streamer-in.c : Likewise.
20316 * tree-streamer-out.c : Likewise.
20317 * tree-streamer.c : Likewise.
20318 * tree-streamer.h : Likewise.
20319 * tree-switch-conversion.c : Likewise.
20320 * tree-tailcall.c : Likewise.
20321 * tree-vect-data-refs.c : Likewise.
20322 * tree-vect-generic.c : Likewise.
20323 * tree-vect-loop-manip.c : Likewise.
20324 * tree-vect-loop.c : Likewise.
20325 * tree-vect-patterns.c : Likewise.
20326 * tree-vect-slp.c : Likewise.
20327 * tree-vect-stmts.c : Likewise.
20328 * tree-vectorizer.c : Likewise.
20329 * tree-vectorizer.h : Likewise.
20330 * tree-vrp.c : Likewise.
20331 * tree.c : Likewise.
20332 * tsan.c : Likewise.
20333 * ubsan.c : Likewise.
20334 * valtrack.c : Likewise.
20335 * valtrack.h : Likewise.
20336 * value-prof.c : Likewise.
20337 * var-tracking.c : Likewise.
20338 * varasm.c : Likewise.
20339 * varpool.c : Likewise.
20341 * vmsdbgout.c : Likewise.
20342 * vtable-verify.c : Likewise.
20343 * vtable-verify.h : Likewise.
20344 * web.c : Likewise.
20345 * wide-int.cc : Likewise.
20346 * xcoffout.c : Likewise.
20347 * config/aarch64/aarch64-builtins.c : Likewise.
20348 * config/aarch64/aarch64.c : Likewise.
20349 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
20350 * config/alpha/alpha.c : Likewise.
20351 * config/arc/arc.c : Likewise.
20352 * config/arm/aarch-common.c : Likewise.
20353 * config/arm/arm-builtins.c : Likewise.
20354 * config/arm/arm-c.c : Likewise.
20355 * config/arm/arm.c : Likewise.
20356 * config/avr/avr-c.c : Likewise.
20357 * config/avr/avr-log.c : Likewise.
20358 * config/avr/avr.c : Likewise.
20359 * config/bfin/bfin.c : Likewise.
20360 * config/c6x/c6x.c : Likewise.
20361 * config/cr16/cr16.c : Likewise.
20362 * config/cris/cris.c : Likewise.
20363 * config/darwin-c.c : Likewise.
20364 * config/darwin.c : Likewise.
20365 * config/default-c.c : Likewise.
20366 * config/epiphany/epiphany.c : Likewise.
20367 * config/epiphany/mode-switch-use.c : Likewise.
20368 * config/epiphany/resolve-sw-modes.c : Likewise.
20369 * config/fr30/fr30.c : Likewise.
20370 * config/frv/frv.c : Likewise.
20371 * config/ft32/ft32.c : Likewise.
20372 * config/glibc-c.c : Likewise.
20373 * config/h8300/h8300.c : Likewise.
20374 * config/i386/i386-c.c : Likewise.
20375 * config/i386/i386.c : Likewise.
20376 * config/i386/msformat-c.c : Likewise.
20377 * config/i386/winnt-cxx.c : Likewise.
20378 * config/i386/winnt-stubs.c : Likewise.
20379 * config/i386/winnt.c : Likewise.
20380 * config/ia64/ia64-c.c : Likewise.
20381 * config/ia64/ia64.c : Likewise.
20382 * config/iq2000/iq2000.c : Likewise.
20383 * config/lm32/lm32.c : Likewise.
20384 * config/m32c/m32c-pragma.c : Likewise.
20385 * config/m32c/m32c.c : Likewise.
20386 * config/m32r/m32r.c : Likewise.
20387 * config/m68k/m68k.c : Likewise.
20388 * config/mcore/mcore.c : Likewise.
20389 * config/mep/mep-pragma.c : Likewise.
20390 * config/mep/mep.c : Likewise.
20391 * config/microblaze/microblaze-c.c : Likewise.
20392 * config/microblaze/microblaze.c : Likewise.
20393 * config/mips/mips.c : Likewise.
20394 * config/mmix/mmix.c : Likewise.
20395 * config/mn10300/mn10300.c : Likewise.
20396 * config/moxie/moxie.c : Likewise.
20397 * config/msp430/msp430-c.c : Likewise.
20398 * config/msp430/msp430.c : Likewise.
20399 * config/nds32/nds32-cost.c : Likewise.
20400 * config/nds32/nds32-fp-as-gp.c : Likewise.
20401 * config/nds32/nds32-intrinsic.c : Likewise.
20402 * config/nds32/nds32-isr.c : Likewise.
20403 * config/nds32/nds32-md-auxiliary.c : Likewise.
20404 * config/nds32/nds32-memory-manipulation.c : Likewise.
20405 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
20406 * config/nds32/nds32-predicates.c : Likewise.
20407 * config/nds32/nds32.c : Likewise.
20408 * config/nios2/nios2.c : Likewise.
20409 * config/nvptx/nvptx.c : Likewise.
20410 * config/pa/pa.c : Likewise.
20411 * config/pdp11/pdp11.c : Likewise.
20412 * config/rl78/rl78-c.c : Likewise.
20413 * config/rl78/rl78.c : Likewise.
20414 * config/rs6000/rs6000-c.c : Likewise.
20415 * config/rs6000/rs6000.c : Likewise.
20416 * config/rx/rx.c : Likewise.
20417 * config/s390/s390-c.c : Likewise.
20418 * config/s390/s390.c : Likewise.
20419 * config/sh/sh-c.c : Likewise.
20420 * config/sh/sh-mem.cc : Likewise.
20421 * config/sh/sh.c : Likewise.
20422 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
20423 * config/sh/sh_treg_combine.cc : Likewise.
20424 * config/sol2-c.c : Likewise.
20425 * config/sol2-cxx.c : Likewise.
20426 * config/sol2-stubs.c : Likewise.
20427 * config/sol2.c : Likewise.
20428 * config/sparc/sparc-c.c : Likewise.
20429 * config/sparc/sparc.c : Likewise.
20430 * config/spu/spu-c.c : Likewise.
20431 * config/spu/spu.c : Likewise.
20432 * config/stormy16/stormy16.c : Likewise.
20433 * config/tilegx/mul-tables.c : Likewise.
20434 * config/tilegx/tilegx-c.c : Likewise.
20435 * config/tilegx/tilegx.c : Likewise.
20436 * config/tilepro/mul-tables.c : Likewise.
20437 * config/tilepro/tilepro-c.c : Likewise.
20438 * config/tilepro/tilepro.c : Likewise.
20439 * config/v850/v850-c.c : Likewise.
20440 * config/v850/v850.c : Likewise.
20441 * config/vax/vax.c : Likewise.
20442 * config/visium/visium.c : Likewise.
20443 * config/vms/vms-c.c : Likewise.
20444 * config/vms/vms.c : Likewise.
20445 * config/vxworks.c : Likewise.
20446 * config/winnt-c.c : Likewise.
20447 * config/xtensa/xtensa.c : Likewise.
20449 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
20452 * ipa-utils.h (warn_types_mismatch): Update prototype.
20453 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
20455 (type_mismatch_p): New function.
20456 (warn_types_mismatch): Reorg to work better on non-C++ types.
20457 (odr_types_equivalent_p): Add loc1/loc2 parameters.
20458 (add_type_duplicate): Update.
20460 2015-06-08 Tom de Vries <tom@codesourcery.com>
20462 PR rtl-optimization/66444
20463 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
20466 2015-06-08 Richard Biener <rguenther@suse.de>
20468 PR tree-optimization/66422
20469 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
20470 block after inserted gcc_unreachable.
20472 2015-06-08 Nick Clifton <nickc@redhat.com>
20474 * config/rx/rx.c (rx_function_value): Do not promote vector types.
20475 (rx_promote_function_mode): Likewise.
20476 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
20478 2015-06-08 Jakub Jelinek <jakub@redhat.com>
20480 * genattrtab.c (insn_alternatives): Change type from int *
20482 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
20483 (get_attr_value): Change type of num_alt to uint64_t.
20484 (compute_alternative_mask): Change return type from
20485 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
20486 (make_alternative_compare, mk_attr_alt): Change argument type
20487 from int to uint64_t.
20488 (simplify_test_exp): Change type of i from int to uint64_t.
20489 Shift ((uint64_t) 1) instead of 1 up.
20490 (main): Adjust oballocvec first argument from int to uint64_t.
20491 Shift ((uint64_t) 1) instead of 1 up.
20493 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
20496 * gdbhooks.py: Import sys.
20497 (intptr): New function. Replace int(...) by intptr(...).
20499 2015-06-08 Richard Biener <rguenther@suse.de>
20501 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
20502 adjustment for gaps at the end of a SLP load group properly.
20503 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
20504 all permutations we can generate.
20505 (vect_transform_slp_perm_load): Use the correct group-size.
20507 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
20509 * genmatch.c (expr::gen_transform): For conditions, guess the type
20510 from the second operand.
20512 2015-06-08 Tom de Vries <tom@codesourcery.com>
20514 PR tree-optimization/66442
20515 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
20516 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
20517 if the loop latch is not a singleton. Use
20518 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
20520 2015-06-08 Marek Polacek <polacek@redhat.com>
20523 * toplev.c (check_global_declaration): Don't warn about artificial
20526 2015-06-08 Tom de Vries <tom@codesourcery.com>
20528 PR tree-optimization/66436
20529 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
20531 * gimplify.c: Add tree-dump.h include.
20532 (gimplify_function_tree): Dump function to gimple dump file.
20533 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
20536 2015-06-08 Tom de Vries <tom@codesourcery.com>
20538 PR tree-optimization/66435
20539 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
20542 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
20544 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
20545 of ptr_type_node to not be ptr_to_node.
20546 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
20547 TREE_TYPE of pointers.
20548 * gimple-expr.c (useless_type_conversion): Reorder the check for
20549 function pointers and TYPE_CANONICAL.
20551 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
20554 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
20555 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
20556 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
20558 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
20559 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
20560 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
20561 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
20562 and non iso if unix2003.
20564 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
20566 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
20568 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
20570 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
20571 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
20572 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
20573 except.c, final.c, function.c, gcse-common.c, genemit.c,
20574 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
20575 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
20576 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
20577 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
20580 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
20582 * combine.c (combine_split_insns): Remove cast.
20583 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
20584 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
20585 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
20586 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
20587 * genemit.c (gen_split): Change return type of generated functions to
20589 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
20590 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
20591 gen_peephole2_* functions.
20592 (print_subroutine, main): Likewise.
20593 * recog.c (peephole2_optimize): Remove cast.
20594 (peep2_next_insn): Promote return type to rtx_insn.
20595 * recog.h (peep2_next_insn): Fix prototype.
20596 * rtl.h (try_split, split_insns): Likewise.
20598 2015-06-06 DJ Delorie <dj@redhat.com>
20600 * config/msp430/msp430.c (msp430_asm_integer): Support addition
20601 and subtraction too.
20603 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
20606 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
20607 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
20608 instead of Snd. Disparage Sid/z alternative with '^'.
20610 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
20612 * dwarf2out.c: Remove deferred_locations*.
20613 (dwarf2_debug_hooks): Add early_finish hook.
20614 Remove global_decl hook.
20615 Add early_global_decl and late_global_decl hook.
20616 New global early_dwarf.
20617 New structure set_early_dwarf.
20618 (output_die): Indicate whether a DIE was generated early
20619 when generating assembly with -dA.
20620 (struct limbo_die_struct): Document created_for field.
20621 Remove file_table_last_lookup.
20622 (remove_AT): Return TRUE if successful.
20623 (remove_child_TAG): Clear die_parent.
20624 (reparent_child): New function abstracted from...
20625 (splice_child_die): ...here.
20626 (new_die): ICE if a DIE ends up in limbo too late.
20628 (defer_location): Remove.
20629 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
20630 (fill_variable_array_bounds): New.
20631 (decl_start_label): Call fill_variable_array_bounds.
20632 (gen_formal_parameter_die): Rewrite to reuse previously generated
20634 (gen_subprogram_die): Same.
20635 (gen_variable_die): Same.
20636 (gen_const_die): Same.
20637 (gen_label_die): Same.
20638 (gen_lexical_block_die): Same.
20639 (decl_will_get_specification_p): New.
20640 (local_function_static): New.
20641 (gen_struct_or_union_type_die): Fill in variable-length fields.
20642 (gen_typedef_die): Fill in variable-length typedefs.
20643 (gen_tagged_type_die): Gracefully return on error_mark_node.
20644 Handle re-entrancy.
20645 (gen_type_die_with_usage): Handle variable-length types.
20646 Remove duplicate code for ARRAY_TYPE case.
20647 (process_scope_var): Only process imported modules during early
20649 (dwarf2out_early_global_decl): New.
20650 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
20651 (dwarf2out_type_decl): Set early_dwarf while calling
20653 (dwarf2out_decl): Verify that we did not recreate a previously
20655 Do not return on DECL_EXTERNALs in VAR_DECLs.
20656 Abstract some code to local_function_static.
20657 (lookup_filename): Remove use of file_table_last_lookup.
20658 Gracefully exit on missing file_name.
20659 (dwarf2out_finish): Verify limbo list.
20660 Remove deferred_locations_list use.
20661 Move deferred_asm_name and limbo flushing to...
20662 (dwarf2out_early_finish): ...here. New.
20663 (dwarf2out_c_finalize): Remove set of deferred_location_list,
20664 deferred_asm_name, and file_table_last_lookup.
20665 * cgraph.h (referred_to_p): Add default argument.
20666 * cgraphunit.c (referred_to_p): Add and handle include_self
20668 (analyze_functions): Add first_time argument.
20669 Call check_global_declaration for all symbols.
20670 Call late_global_decl for nodes for moribund nodes.
20671 (finalize_compilation_unit): Add new argument to
20673 Call early_global_decl for functions.
20674 Call early_finish debug hook.
20675 * dbxout.c (dbxout_early_global_decl): New.
20676 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
20677 (dbx_debug_hooks): Add new hooks.
20678 (xcoff_debug_hooks): Same.
20679 * debug.c (do_nothing_debug_hooks): Add early_finish field.
20680 Add early and late debug hooks.
20681 Remove global_decl hook.
20682 * debug.h (struct gcc_debug_hooks): Add early_finish,
20683 early_global_decl, and late_global_decl fields.
20684 Remove global_decl field.
20685 Document gcc_debug_hooks.
20686 * gengtype.c (output_typename): Remove.
20687 * godump.c (go_early_global_decl): New.
20688 (go_late_global_decl): New.
20689 (go_global_decl): Remove.
20690 (dump_go_spec_init): Remove global_decl. Add
20691 {early,late}_global_decl.
20692 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
20693 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
20694 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
20695 (write_global_declarations): Remove.
20696 (global_decl_processing): New.
20697 * langhooks.h (struct lang_hooks_for_decls): Remove
20698 final_write_globals field.
20699 Add post_compilation_parsing_cleanups field.
20700 * passes.c (rest_of_decl_compilation): Call early_global_decl.
20701 * sdbout.c: Add early and late_global_decl hooks. Remove
20702 sdbout_global_decl hook.
20703 Add early_finish field for sdb_debug_hooks.
20704 (sdbout_global_decl): Remove.
20705 (sdbout_early_global_decl): New.
20706 (sdbout_late_global_decl): New.
20707 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
20708 * toplev.c (check_global_declaration): Rename from
20709 check_global_declaration_1.
20710 Adapt to use symtab infrastructure.
20711 (check_global_declarations): Remove.
20712 (emit_debug_global_declarations): Remove.
20713 (compile_file): Remove call to final_write_globals langhook.
20714 Run the actual compilation process.
20715 Perform any post compilation parser cleanups.
20716 Generate late debug info.
20717 * toplev.h (check_global_declaration): New.
20718 (check_global_declaration_1): Remove.
20719 (check_global_declarations): Remove.
20720 (write_global_declarations): Remove.
20721 (emit_debug_global_declarations): Remove.
20722 (global_decl_processing): New.
20723 * tree-core.h (struct tree_block): Add DIE field.
20724 * tree.h (BLOCK_DIE): New.
20725 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
20727 (vmsdbgout_early_global_decl): New.
20728 (vmsdbgout_late_global_decl): New.
20729 Add early_finish debug hook field to vmsdbg_debug_hooks.
20730 Remove vmsdbgout_decl to vmsdbgout_function_decl.
20731 Add early and late_global_decl debug hooks.
20733 2015-06-05 Julian Brown <julian@codesourcery.com>
20734 Sandra Loosemore <sandra@codesourcery.com>
20736 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
20737 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
20738 to print-sysroot-suffix.sh script.
20740 2015-06-05 Tom de Vries <tom@codesourcery.com>
20742 merge from gomp4 branch:
20743 2015-05-28 Tom de Vries <tom@codesourcery.com>
20745 PR tree-optimization/65443
20746 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
20747 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
20748 (try_transform_to_exit_first_loop_alt): New function.
20749 (transform_to_exit_first_loop): Use
20750 try_transform_to_exit_first_loop_alt.
20752 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
20754 * builtins.c (expand_builtin_atomic_compare_exchange): Call
20755 emit_cmp_and_jump_insns with the mode of target.
20757 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20759 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
20761 2015-06-04 DJ Delorie <dj@redhat.com>
20763 * config/msp430/msp430.md (movsi_s): New. Special case for
20764 storing a 20-bit symbol into a 32-bit register.
20765 * config/msp430/msp430.c (msp430_subreg): Add support for it.
20766 * config/msp430/predicates.md (msp430_symbol_operand): New.
20768 2015-06-04 Sriraman Tallam <tmsriram@google.com>
20770 * c-family/c-common.c (noplt): New attribute.
20771 (handle_noplt_attribute): New handler.
20772 * calls.c (prepare_call_address): Check for noplt
20774 * config/i386/i386.c (ix86_expand_call): Check
20775 for noplt attribute.
20776 (ix86_nopic_noplt_attribute_p): New function.
20777 (ix86_output_call_insn): Output indirect call for non-pic
20779 * doc/extend.texi (noplt): Document new attribute.
20780 * doc/invoke.texi: Document new attribute.
20782 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
20784 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
20785 real.h, and fixed-value.h when included in host source files.
20786 * double-int.h: Remove redundant #includes listed above.
20787 * fixed-value.h: Likewise.
20788 * real.h: Likewise.
20789 * wide-int.h: Likewise.
20790 * inchash.h: Likewise.
20791 * rtl.h: Add some include files When included from a generator file.
20792 * target.h: Remove wide-int.h and insn-modes.h from the include list.
20793 * internal-fn.h: Don't include coretypes.h.
20794 * alias.c: Adjust includes for restructured coretypes.h.
20795 * asan.c: Likewise.
20796 * attribs.c: Likewise.
20797 * auto-inc-dec.c: Likewise.
20798 * auto-profile.c: Likewise.
20799 * bb-reorder.c: Likewise.
20800 * bt-load.c: Likewise.
20801 * builtins.c: Likewise.
20802 * caller-save.c: Likewise.
20803 * calls.c: Likewise.
20804 * ccmp.c: Likewise.
20806 * cfganal.c: Likewise.
20807 * cfgbuild.c: Likewise.
20808 * cfgcleanup.c: Likewise.
20809 * cfgexpand.c: Likewise.
20810 * cfghooks.c: Likewise.
20811 * cfgloop.c: Likewise.
20812 * cfgloop.h: Likewise.
20813 * cfgloopanal.c: Likewise.
20814 * cfgloopmanip.c: Likewise.
20815 * cfgrtl.c: Likewise.
20816 * cgraph.c: Likewise.
20817 * cgraphbuild.c: Likewise.
20818 * cgraphclones.c: Likewise.
20819 * cgraphunit.c: Likewise.
20820 * cilk-common.c: Likewise.
20821 * combine-stack-adj.c: Likewise.
20822 * combine.c: Likewise.
20823 * compare-elim.c: Likewise.
20824 * convert.c: Likewise.
20825 * coverage.c: Likewise.
20826 * cppbuiltin.c: Likewise.
20827 * cprop.c: Likewise.
20829 * cselib.c: Likewise.
20830 * data-streamer-in.c: Likewise.
20831 * data-streamer-out.c: Likewise.
20832 * data-streamer.c: Likewise.
20833 * dbxout.c: Likewise.
20836 * debug.c: Likewise.
20837 * df-core.c: Likewise.
20838 * df-problems.c: Likewise.
20839 * df-scan.c: Likewise.
20842 * dojump.c: Likewise.
20843 * dominance.c: Likewise.
20844 * domwalk.c: Likewise.
20845 * double-int.c: Likewise.
20847 * dumpfile.c: Likewise.
20848 * dwarf2asm.c: Likewise.
20849 * dwarf2cfi.c: Likewise.
20850 * dwarf2out.c: Likewise.
20851 * dwarf2out.h: Likewise.
20852 * emit-rtl.c: Likewise.
20853 * et-forest.c: Likewise.
20854 * except.c: Likewise.
20855 * explow.c: Likewise.
20856 * expmed.c: Likewise.
20857 * expr.c: Likewise.
20858 * final.c: Likewise.
20859 * fixed-value.c: Likewise.
20860 * fold-const.c: Likewise.
20861 * function.c: Likewise.
20862 * fwprop.c: Likewise.
20863 * gcc-plugin.h: Likewise.
20864 * gcse.c: Likewise.
20865 * generic-match-head.c: Likewise.
20866 * ggc-page.c: Likewise.
20867 * gimple-builder.c: Likewise.
20868 * gimple-expr.c: Likewise.
20869 * gimple-fold.c: Likewise.
20870 * gimple-iterator.c: Likewise.
20871 * gimple-low.c: Likewise.
20872 * gimple-match-head.c: Likewise.
20873 * gimple-pretty-print.c: Likewise.
20874 * gimple-ssa-isolate-paths.c: Likewise.
20875 * gimple-ssa-strength-reduction.c: Likewise.
20876 * gimple-streamer-in.c: Likewise.
20877 * gimple-streamer-out.c: Likewise.
20878 * gimple-streamer.h: Likewise.
20879 * gimple-walk.c: Likewise.
20880 * gimple.c: Likewise.
20881 * gimplify-me.c: Likewise.
20882 * gimplify.c: Likewise.
20883 * godump.c: Likewise.
20884 * graph.c: Likewise.
20885 * graphite-blocking.c: Likewise.
20886 * graphite-dependences.c: Likewise.
20887 * graphite-interchange.c: Likewise.
20888 * graphite-isl-ast-to-gimple.c: Likewise.
20889 * graphite-optimize-isl.c: Likewise.
20890 * graphite-poly.c: Likewise.
20891 * graphite-scop-detection.c: Likewise.
20892 * graphite-sese-to-poly.c: Likewise.
20893 * graphite.c: Likewise.
20894 * haifa-sched.c: Likewise.
20895 * hooks.h: Likewise.
20896 * hw-doloop.c: Likewise.
20897 * ifcvt.c: Likewise.
20898 * incpath.c: Likewise.
20899 * init-regs.c: Likewise.
20900 * internal-fn.c: Likewise.
20901 * ipa-chkp.c: Likewise.
20902 * ipa-comdats.c: Likewise.
20903 * ipa-cp.c: Likewise.
20904 * ipa-devirt.c: Likewise.
20905 * ipa-icf-gimple.c: Likewise.
20906 * ipa-icf.c: Likewise.
20907 * ipa-inline-analysis.c: Likewise.
20908 * ipa-inline-transform.c: Likewise.
20909 * ipa-inline.c: Likewise.
20910 * ipa-polymorphic-call.c: Likewise.
20911 * ipa-profile.c: Likewise.
20912 * ipa-prop.c: Likewise.
20913 * ipa-pure-const.c: Likewise.
20914 * ipa-ref.c: Likewise.
20915 * ipa-reference.c: Likewise.
20916 * ipa-split.c: Likewise.
20917 * ipa-utils.c: Likewise.
20918 * ipa-visibility.c: Likewise.
20920 * ira-build.c: Likewise.
20921 * ira-color.c: Likewise.
20922 * ira-conflicts.c: Likewise.
20923 * ira-costs.c: Likewise.
20924 * ira-emit.c: Likewise.
20925 * ira-lives.c: Likewise.
20927 * jump.c: Likewise.
20928 * langhooks.c: Likewise.
20930 * loop-doloop.c: Likewise.
20931 * loop-init.c: Likewise.
20932 * loop-invariant.c: Likewise.
20933 * loop-iv.c: Likewise.
20934 * loop-unroll.c: Likewise.
20935 * lower-subreg.c: Likewise.
20936 * lra-assigns.c: Likewise.
20937 * lra-coalesce.c: Likewise.
20938 * lra-constraints.c: Likewise.
20939 * lra-eliminations.c: Likewise.
20940 * lra-lives.c: Likewise.
20941 * lra-remat.c: Likewise.
20942 * lra-spills.c: Likewise.
20944 * lto-cgraph.c: Likewise.
20945 * lto-compress.c: Likewise.
20946 * lto-opts.c: Likewise.
20947 * lto-section-in.c: Likewise.
20948 * lto-section-out.c: Likewise.
20949 * lto-streamer-in.c: Likewise.
20950 * lto-streamer-out.c: Likewise.
20951 * lto-streamer.c: Likewise.
20953 * mode-switching.c: Likewise.
20954 * modulo-sched.c: Likewise.
20955 * omega.c: Likewise.
20956 * omp-low.c: Likewise.
20957 * optabs.c: Likewise.
20958 * opts-global.c: Likewise.
20959 * passes.c: Likewise.
20960 * plugin.c: Likewise.
20961 * postreload-gcse.c: Likewise.
20962 * postreload.c: Likewise.
20963 * predict.c: Likewise.
20964 * print-rtl.c: Likewise.
20965 * print-tree.c: Likewise.
20966 * profile.c: Likewise.
20967 * real.c: Likewise.
20968 * realmpfr.c: Likewise.
20969 * realmpfr.h: Likewise.
20970 * recog.c: Likewise.
20972 * reg-stack.c: Likewise.
20973 * regcprop.c: Likewise.
20974 * reginfo.c: Likewise.
20975 * regrename.c: Likewise.
20976 * regs.h: Likewise.
20977 * regstat.c: Likewise.
20978 * reload.c: Likewise.
20979 * reload1.c: Likewise.
20980 * reorg.c: Likewise.
20981 * resource.c: Likewise.
20982 * rtl-chkp.c: Likewise.
20983 * rtlanal.c: Likewise.
20984 * rtlhooks.c: Likewise.
20985 * sanopt.c: Likewise.
20986 * sched-deps.c: Likewise.
20987 * sched-ebb.c: Likewise.
20988 * sched-rgn.c: Likewise.
20989 * sched-vis.c: Likewise.
20990 * sdbout.c: Likewise.
20991 * sel-sched-dump.c: Likewise.
20992 * sel-sched-ir.c: Likewise.
20993 * sel-sched.c: Likewise.
20994 * sese.c: Likewise.
20995 * shrink-wrap.c: Likewise.
20996 * shrink-wrap.h: Likewise.
20997 * simplify-rtx.c: Likewise.
20998 * stack-ptr-mod.c: Likewise.
20999 * statistics.c: Likewise.
21000 * stmt.c: Likewise.
21001 * stor-layout.c: Likewise.
21002 * store-motion.c: Likewise.
21003 * stringpool.c: Likewise.
21004 * symtab.c: Likewise.
21005 * target-globals.c: Likewise.
21006 * targhooks.c: Likewise.
21007 * toplev.c: Likewise.
21008 * tracer.c: Likewise.
21009 * trans-mem.c: Likewise.
21010 * tree-affine.c: Likewise.
21011 * tree-affine.h: Likewise.
21012 * tree-browser.c: Likewise.
21013 * tree-call-cdce.c: Likewise.
21014 * tree-cfg.c: Likewise.
21015 * tree-cfgcleanup.c: Likewise.
21016 * tree-chkp-opt.c: Likewise.
21017 * tree-chkp.c: Likewise.
21018 * tree-chrec.c: Likewise.
21019 * tree-complex.c: Likewise.
21020 * tree-data-ref.c: Likewise.
21021 * tree-dfa.c: Likewise.
21022 * tree-diagnostic.c: Likewise.
21023 * tree-dump.c: Likewise.
21024 * tree-eh.c: Likewise.
21025 * tree-emutls.c: Likewise.
21026 * tree-if-conv.c: Likewise.
21027 * tree-inline.c: Likewise.
21028 * tree-into-ssa.c: Likewise.
21029 * tree-iterator.c: Likewise.
21030 * tree-loop-distribution.c: Likewise.
21031 * tree-nested.c: Likewise.
21032 * tree-nrv.c: Likewise.
21033 * tree-object-size.c: Likewise.
21034 * tree-outof-ssa.c: Likewise.
21035 * tree-parloops.c: Likewise.
21036 * tree-phinodes.c: Likewise.
21037 * tree-predcom.c: Likewise.
21038 * tree-pretty-print.c: Likewise.
21039 * tree-pretty-print.h: Likewise.
21040 * tree-profile.c: Likewise.
21041 * tree-scalar-evolution.c: Likewise.
21042 * tree-sra.c: Likewise.
21043 * tree-ssa-address.c: Likewise.
21044 * tree-ssa-alias.c: Likewise.
21045 * tree-ssa-ccp.c: Likewise.
21046 * tree-ssa-coalesce.c: Likewise.
21047 * tree-ssa-copy.c: Likewise.
21048 * tree-ssa-copyrename.c: Likewise.
21049 * tree-ssa-dce.c: Likewise.
21050 * tree-ssa-dom.c: Likewise.
21051 * tree-ssa-dse.c: Likewise.
21052 * tree-ssa-forwprop.c: Likewise.
21053 * tree-ssa-ifcombine.c: Likewise.
21054 * tree-ssa-live.c: Likewise.
21055 * tree-ssa-loop-ch.c: Likewise.
21056 * tree-ssa-loop-im.c: Likewise.
21057 * tree-ssa-loop-ivcanon.c: Likewise.
21058 * tree-ssa-loop-ivopts.c: Likewise.
21059 * tree-ssa-loop-manip.c: Likewise.
21060 * tree-ssa-loop-niter.c: Likewise.
21061 * tree-ssa-loop-prefetch.c: Likewise.
21062 * tree-ssa-loop-unswitch.c: Likewise.
21063 * tree-ssa-loop.c: Likewise.
21064 * tree-ssa-loop.h: Likewise.
21065 * tree-ssa-math-opts.c: Likewise.
21066 * tree-ssa-operands.c: Likewise.
21067 * tree-ssa-phiopt.c: Likewise.
21068 * tree-ssa-phiprop.c: Likewise.
21069 * tree-ssa-pre.c: Likewise.
21070 * tree-ssa-propagate.c: Likewise.
21071 * tree-ssa-reassoc.c: Likewise.
21072 * tree-ssa-sccvn.c: Likewise.
21073 * tree-ssa-scopedtables.c: Likewise.
21074 * tree-ssa-sink.c: Likewise.
21075 * tree-ssa-strlen.c: Likewise.
21076 * tree-ssa-structalias.c: Likewise.
21077 * tree-ssa-tail-merge.c: Likewise.
21078 * tree-ssa-ter.c: Likewise.
21079 * tree-ssa-threadedge.c: Likewise.
21080 * tree-ssa-threadupdate.c: Likewise.
21081 * tree-ssa-uncprop.c: Likewise.
21082 * tree-ssa-uninit.c: Likewise.
21083 * tree-ssa.c: Likewise.
21084 * tree-ssanames.c: Likewise.
21085 * tree-stdarg.c: Likewise.
21086 * tree-streamer-in.c: Likewise.
21087 * tree-streamer-out.c: Likewise.
21088 * tree-streamer.c: Likewise.
21089 * tree-switch-conversion.c: Likewise.
21090 * tree-tailcall.c: Likewise.
21091 * tree-vect-data-refs.c: Likewise.
21092 * tree-vect-generic.c: Likewise.
21093 * tree-vect-loop-manip.c: Likewise.
21094 * tree-vect-loop.c: Likewise.
21095 * tree-vect-patterns.c: Likewise.
21096 * tree-vect-slp.c: Likewise.
21097 * tree-vect-stmts.c: Likewise.
21098 * tree-vectorizer.c: Likewise.
21099 * tree-vrp.c: Likewise.
21100 * tree.c: Likewise.
21101 * tsan.c: Likewise.
21102 * ubsan.c: Likewise.
21103 * valtrack.c: Likewise.
21104 * value-prof.c: Likewise.
21105 * var-tracking.c: Likewise.
21106 * varasm.c: Likewise.
21107 * varpool.c: Likewise.
21108 * vmsdbgout.c: Likewise.
21109 * vtable-verify.c: Likewise.
21111 * wide-int-print.cc: Likewise.
21112 * wide-int-print.h: Likewise.
21113 * wide-int.cc: Likewise.
21114 * xcoffout.c: Likewise.
21115 * config/aarch64/aarch64-builtins.c: Likewise.
21116 * config/aarch64/aarch64.c: Likewise.
21117 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21118 * config/alpha/alpha.c: Likewise.
21119 * config/arc/arc.c: Likewise.
21120 * config/arm/aarch-common.c: Likewise.
21121 * config/arm/arm-builtins.c: Likewise.
21122 * config/arm/arm-c.c: Likewise.
21123 * config/arm/arm.c: Likewise.
21124 * config/avr/avr-c.c: Likewise.
21125 * config/avr/avr-log.c: Likewise.
21126 * config/avr/avr.c: Likewise.
21127 * config/bfin/bfin.c: Likewise.
21128 * config/c6x/c6x.c: Likewise.
21129 * config/cr16/cr16.c: Likewise.
21130 * config/cris/cris.c: Likewise.
21131 * config/darwin-c.c: Likewise.
21132 * config/darwin.c: Likewise.
21133 * config/default-c.c: Likewise.
21134 * config/epiphany/epiphany.c: Likewise.
21135 * config/epiphany/mode-switch-use.c: Likewise.
21136 * config/epiphany/resolve-sw-modes.c: Likewise.
21137 * config/fr30/fr30.c: Likewise.
21138 * config/frv/frv.c: Likewise.
21139 * config/ft32/ft32.c: Likewise.
21140 * config/glibc-c.c: Likewise.
21141 * config/h8300/h8300.c: Likewise.
21142 * config/i386/i386-c.c: Likewise.
21143 * config/i386/i386.c: Likewise.
21144 * config/i386/msformat-c.c: Likewise.
21145 * config/i386/winnt-cxx.c: Likewise.
21146 * config/i386/winnt-stubs.c: Likewise.
21147 * config/i386/winnt.c: Likewise.
21148 * config/ia64/ia64-c.c: Likewise.
21149 * config/ia64/ia64.c: Likewise.
21150 * config/iq2000/iq2000.c: Likewise.
21151 * config/lm32/lm32.c: Likewise.
21152 * config/m32c/m32c-pragma.c: Likewise.
21153 * config/m32c/m32c.c: Likewise.
21154 * config/m32r/m32r.c: Likewise.
21155 * config/m68k/m68k.c: Likewise.
21156 * config/mcore/mcore.c: Likewise.
21157 * config/mep/mep-pragma.c: Likewise.
21158 * config/mep/mep.c: Likewise.
21159 * config/microblaze/microblaze-c.c: Likewise.
21160 * config/microblaze/microblaze.c: Likewise.
21161 * config/mips/mips.c: Likewise.
21162 * config/mmix/mmix.c: Likewise.
21163 * config/mn10300/mn10300.c: Likewise.
21164 * config/moxie/moxie.c: Likewise.
21165 * config/msp430/msp430-c.c: Likewise.
21166 * config/msp430/msp430.c: Likewise.
21167 * config/nds32/nds32-cost.c: Likewise.
21168 * config/nds32/nds32-fp-as-gp.c: Likewise.
21169 * config/nds32/nds32-intrinsic.c: Likewise.
21170 * config/nds32/nds32-isr.c: Likewise.
21171 * config/nds32/nds32-md-auxiliary.c: Likewise.
21172 * config/nds32/nds32-memory-manipulation.c: Likewise.
21173 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21174 * config/nds32/nds32-predicates.c: Likewise.
21175 * config/nds32/nds32.c: Likewise.
21176 * config/nios2/nios2.c: Likewise.
21177 * config/nvptx/nvptx.c: Likewise.
21178 * config/pa/pa.c: Likewise.
21179 * config/pdp11/pdp11.c: Likewise.
21180 * config/rl78/rl78-c.c: Likewise.
21181 * config/rl78/rl78.c: Likewise.
21182 * config/rs6000/rs6000-c.c: Likewise.
21183 * config/rs6000/rs6000.c: Likewise.
21184 * config/rx/rx.c: Likewise.
21185 * config/s390/s390-c.c: Likewise.
21186 * config/s390/s390.c: Likewise.
21187 * config/sh/sh-c.c: Likewise.
21188 * config/sh/sh-mem.cc: Likewise.
21189 * config/sh/sh.c: Likewise.
21190 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21191 * config/sh/sh_treg_combine.cc: Likewise.
21192 * config/sol2-c.c: Likewise.
21193 * config/sol2-cxx.c: Likewise.
21194 * config/sol2-stubs.c: Likewise.
21195 * config/sol2.c: Likewise.
21196 * config/sparc/sparc-c.c: Likewise.
21197 * config/sparc/sparc.c: Likewise.
21198 * config/spu/spu-c.c: Likewise.
21199 * config/spu/spu.c: Likewise.
21200 * config/stormy16/stormy16.c: Likewise.
21201 * config/tilegx/mul-tables.c: Likewise.
21202 * config/tilegx/tilegx-c.c: Likewise.
21203 * config/tilegx/tilegx.c: Likewise.
21204 * config/tilepro/mul-tables.c: Likewise.
21205 * config/tilepro/tilepro-c.c: Likewise.
21206 * config/tilepro/tilepro.c: Likewise.
21207 * config/v850/v850-c.c: Likewise.
21208 * config/v850/v850.c: Likewise.
21209 * config/vax/vax.c: Likewise.
21210 * config/visium/visium.c: Likewise.
21211 * config/vms/vms-c.c: Likewise.
21212 * config/vms/vms.c: Likewise.
21213 * config/vxworks.c: Likewise.
21214 * config/winnt-c.c: Likewise.
21215 * config/xtensa/xtensa.c: Likewise.
21216 * common/config/bfin/bfin-common.c: Likewise.
21218 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
21220 * tree.h (tree_code_for_canonical_type_merging): New function.
21221 * tree.c (gimple_canonical_types_compatible_p): Use
21222 tree_code_for_canonical_type_merging..
21224 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21228 * doc/tm.texi: Regenerate.
21229 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
21230 * target.def (TARGET_RELAXED_ORDERING): Likewise.
21231 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
21232 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
21233 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
21234 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
21235 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
21236 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
21237 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
21239 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21241 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
21242 register fma steering pass.
21243 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
21244 AARCH64_TUNE_FMA_STEERING.
21246 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
21248 * tree.c (verify_type_variant): Verify that type and variant is
21250 (gimple_canonical_types_compatible_p): Look for main variants.
21252 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21254 * config.gcc (powerpc*-*-*): Add support for a new configure
21255 option --with-advance-toolchain=<xxx> which overrides using the
21256 default header files, libraries and dynamic linker.
21258 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
21259 specs to support the configure --with-advance-toolchain=<xxx>
21261 (INCLUDE_EXTRA_SPEC): Likewise.
21262 (LINK_OS_EXTRA_SPEC32): Likewise.
21263 (LINK_OK_EXTRA_SPEC64): Likewise.
21264 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
21265 (DYNAMIC_LINKER_PREFIX): Likewise.
21266 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
21268 (GLIBC_DYNAMIC_LINKER32): Likewise.
21269 (GLIBC_DYNAMIC_LINKER64): Likewise.
21270 (LINK_OS_LINUX_SPEC32): Likewise.
21271 (LINK_OS_LINUX_SPEC64): Likewise.
21273 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
21274 configuration option.
21276 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
21279 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
21280 to determine current function ABI.
21281 (ix86_function_value_regno_p): Ditto.
21283 2015-06-03 Martin Liska <mliska@suse.cz>
21285 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
21286 * bitmap.h (struct bitmap_usage): Likewise.
21287 * ggc-common.c (struct ggc_usage): Likewise.
21288 * mem-stats.h (struct mem_location): Likewise.
21289 (struct mem_usage): Likewise.
21290 * vec.c (struct vec_usage): Likewise.
21292 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
21294 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
21297 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
21299 * doc/plugins.texi (enum plugin_event): New event.
21300 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
21301 and PLUGIN_FINISH_FUNCTION.
21302 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
21303 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
21305 2015-06-03 Richard Biener <rguenther@suse.de>
21307 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21308 compute GROUP_GAP for the first element.
21309 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
21312 2015-06-03 Nick Clifton <nickc@redhat.com>
21314 * config/rl78/rl78-real.md: Add peepholes to avoid a register
21315 copy when calling a function.
21316 * config/rl78/rl78.c (need_to_save): Do not push the frame
21317 pointer in an interrupt handler prologue if it is never used.
21319 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21321 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
21323 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21325 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
21326 reference when cloning alias node.
21328 2015-06-03 Martin Liska <mliska@suse.cz>
21330 * alloc-pool.h (struct pool_usage): Correct space padding.
21331 * ggc-page.c (ggc_print_statistics): Align columns in a report.
21332 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
21333 * tree.c (dump_tree_statistics): Align columns in a report.
21335 2015-06-03 Martin Liska <mliska@suse.cz>
21337 * alloc-pool.c (allocate_pool_descriptor): Remove.
21338 (struct pool_output_info): Likewise.
21339 (print_alloc_pool_statistics): Likewise.
21340 (dump_alloc_pool_statistics): Likewise.
21341 * alloc-pool.h (struct pool_usage): New struct.
21342 (pool_allocator::initialize): Change usage of memory statistics
21343 to a new interface.
21344 (pool_allocator::release): Likewise.
21345 (pool_allocator::allocate): Likewise.
21346 (pool_allocator::remove): Likewise.
21347 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
21348 for a pool allocator.
21349 * mem-stats.h (struct mem_location): Add new ctor.
21350 (struct mem_usage): Add counter for number of
21352 (mem_alloc_description::register_descriptor): New overload of
21353 * mem-stats.h (mem_location::to_string): New function.
21354 * bitmap.h (struct bitmap_usage): Use this new function.
21355 * ggc-common.c (struct ggc_usage): Likewise.
21358 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21360 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
21361 of GCC_INSN_FLAGS_H block.
21363 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
21365 * explow.c (plus_constant): Update check after force_const_mem call
21366 to see if the value returned is not a NULL_RTX.
21368 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
21370 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
21371 remove instumentation thunks calling reachable functions.
21372 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
21373 * lto/lto-partition.c (privatize_symbol_name_1): New.
21374 (privatize_symbol_name): Privatize both decl and orig_decl
21375 names for instrumented functions.
21376 * cgraph.c (cgraph_node::verify_node): Add transparent
21377 alias chain check for instrumented node.
21379 2015-06-03 Marek Polacek <polacek@redhat.com>
21383 * tree.c (attribute_value_equal): Handle attribute format.
21384 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
21386 2015-06-03 Richard Biener <rguenther@suse.de>
21388 PR tree-optimization/63916
21389 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
21390 Forward-propagate non-invariant addresses by splicing their
21391 reference ops if the result isn't going to be used by PRE.
21392 (vn_reference_lookup_3): Remove pointless assert.
21394 2015-06-03 Richard Biener <rguenther@suse.de>
21396 PR tree-optimization/66375
21397 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
21398 add to the evolution before following SSA edges.
21400 2015-06-03 Bin Cheng <bin.cheng@arm.com>
21402 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
21403 (dump_use, dump_cand, find_induction_variables): Pass new argument
21405 (record_use): Preserve the ssa name information in IV.
21407 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
21409 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
21411 (add_mode_tests): Don't add mode tests if the predicate only
21412 accepts scalar constant integers. Otherwise, allow the mode
21413 of "op" to be VOIDmode if the predicate does accept such integers.
21415 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
21418 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
21419 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
21420 (aarch64_secondary_reload): Likewise
21421 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
21423 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
21426 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
21427 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21430 * cprop.c (try_replace_reg): Check cost of constants before propagating.
21432 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21434 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
21435 provide access to the IBM extended double floating point mode if
21436 long double is IEEE 128-bit floating point.
21437 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
21438 point if long double is the IBM extended double type.
21440 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
21441 enable adding IEEE 128-bit floating point support.
21442 (-mfloat128-software): Likewise.
21443 (-mfloat128-sw): Likewise.
21445 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
21446 128-bit floating point types to occupy any register if
21447 -mlong-double-64. Do not allow use of IFmode/KFmode unless
21448 -mfloat128-software is enabled.
21449 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
21451 (rs6000_option_override_internal): Add -mfloat128-* support.
21452 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
21454 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
21455 and float128 type nodes.
21456 (ieee128_float_type_node): Likewise.
21457 (ibm128_float_type_node): Likewise.
21459 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
21462 * config/aarch64/geniterators.sh: Rewrite in awk.
21464 2015-06-02 Martin Liska <mliska@suse.cz>
21466 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
21467 values to avoid -Wmaybe-uninitialized errors.
21469 2015-06-02 Richard Biener <rguenther@suse.de>
21472 * dwarf2out.c (lookup_context_die): New function.
21473 (resolve_addr): Avoid forcing a full DIE for the
21474 target of a DW_TAG_GNU_call_site during late compilation.
21475 Instead create a stub DIE without a type if we have a
21476 context DIE present.
21478 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
21480 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
21482 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21484 PR tree-optimization/48052
21485 * cfgloop.h (struct control_iv): New.
21486 (struct loop): New field control_ivs.
21487 * tree-ssa-loop-niter.c : Include "stor-layout.h".
21488 (number_of_iterations_lt): Set no_overflow information.
21489 (number_of_iterations_exit): Init control iv in niter struct.
21490 (record_control_iv): New.
21491 (estimate_numbers_of_iterations_loop): Call record_control_iv.
21492 (loop_exits_before_overflow): New. Interface factored out of
21493 scev_probably_wraps_p.
21494 (scev_probably_wraps_p): Factor loop niter related code into
21495 loop_exits_before_overflow.
21496 (free_numbers_of_iterations_estimates_loop): Free control ivs.
21497 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
21499 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
21501 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
21502 the target doesn't belong to the current function.
21504 2015-06-02 Marek Polacek <polacek@redhat.com>
21506 PR middle-end/66345
21507 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
21508 get_maxval_strlen does not produce an INTEGER_CST.
21510 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
21512 * config/arc/constraints.md: Use lower-case names in match_code.
21513 * config/mmix/constraints.md: Likewise.
21515 2015-06-02 Richard Biener <rguenther@suse.de>
21517 PR tree-optimization/65961
21518 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
21519 check and clarify dump message.
21520 (vect_build_slp_tree): If all children are built up from scalars
21521 build up the parent from scalars instead.
21522 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
21524 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
21527 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
21528 instead of print ... .
21530 2015-06-02 Alan Modra <amodra@gmail.com>
21532 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
21535 2015-06-02 Bin Cheng <bin.cheng@arm.com>
21537 PR tree-optimization/52563
21538 PR tree-optimization/62173
21539 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
21540 (alloc_iv, set_iv): New parameter.
21541 (determine_biv_step): Delete.
21542 (find_bivs): Inline original determine_biv_step. Pass new
21543 argument to set_iv.
21544 (idx_find_step): Use no_overflow information for conversion.
21545 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
21546 resolve_mixers handle folded_casts.
21547 (instantiate_scev_name): Change bool parameter to bool pointer.
21548 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
21549 (instantiate_array_ref, instantiate_scev_not): Ditto.
21550 (instantiate_scev_3, instantiate_scev_2): Ditto.
21551 (instantiate_scev_1, instantiate_scev_r): Ditto.
21552 (instantiate_scev_convert, ): Change parameter. Pass argument
21553 to chrec_convert_aggressive.
21554 (instantiate_scev): Change argument.
21555 (resolve_mixers): New parameter and set it.
21556 (scev_const_prop): New argument.
21557 * tree-scalar-evolution.h (resolve_mixers): New parameter.
21558 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
21560 (chrec_convert): New parameter. Move definition below.
21561 (chrec_convert_aggressive): New parameter and set it. Call
21562 convert_affine_scev.
21563 * tree-chrec.h (chrec_convert): New parameter.
21564 (chrec_convert_aggressive): Ditto.
21566 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
21568 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
21569 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
21570 the LHS of a no-return call if its type has variable size.
21571 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21572 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
21574 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
21576 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
21577 * config.in: Regenerate.
21579 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
21581 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
21582 consecutive accesses within outer-loop with force_vectorize
21583 for references with zero step in inner-loop.
21585 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21587 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
21588 rather than from gcc/build directory.
21590 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21593 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
21594 for __sync memory models, emit initial loads and final barriers as
21597 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
21600 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
21601 (aarch64_split_atomic_op): Check for __sync memory models, emit
21602 appropriate initial loads and final barriers.
21604 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
21606 * Makefile.in: Fix gcov dependencies that should
21607 not point to a build folder.
21609 2015-06-01 Richard Biener <rguenther@suse.de>
21612 2015-05-29 Richard Biener <rguenther@suse.de>
21614 PR tree-optimization/66314
21615 * tree-ssa-threadupdate.c (create_block_for_threading): Add
21616 parameter that says which loop the new block belongs to.
21617 (ssa_create_duplicates): Blocks duplicated for the threaded
21618 path belong to the loop of the thread destination.
21620 2015-06-01 Martin Liska <mliska@suse.cz>
21622 * sched-deps.c: Include pool-alloc.h before
21623 cselib.h header file is included.
21625 2015-06-01 Richard Biener <rguenther@suse.de>
21627 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
21630 2015-06-01 Martin Liska <mliska@suse.cz>
21632 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
21633 a function local variable.
21635 2015-06-01 Martin Liska <mliska@suse.cz>
21637 * alloc-pool.c (create_alloc_pool): Remove.
21638 (empty_alloc_pool): Likewise.
21639 (free_alloc_pool): Likewise.
21640 (free_alloc_pool_if_empty): Likewise.
21641 (pool_alloc): Likewise.
21642 (pool_free): Likewise.
21643 * alloc-pool.h: Remove old declarations.
21645 2015-06-01 Martin Liska <mliska@suse.cz>
21647 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
21648 (ira_create_object): Likewise.
21649 (ira_create_allocno): Likewise.
21650 (ira_create_live_range): Likewise.
21651 (copy_live_range): Likewise.
21652 (ira_finish_live_range): Likewise.
21653 (ira_free_allocno_costs): Likewise.
21654 (finish_allocno): Likewise.
21655 (finish_allocnos): Likewise.
21656 (initiate_prefs): Likewise.
21657 (ira_create_pref): Likewise.
21658 (finish_pref): Likewise.
21659 (finish_prefs): Likewise.
21660 (initiate_copies): Likewise.
21661 (ira_create_copy): Likewise.
21662 (finish_copy): Likewise.
21663 (finish_copies): Likewise.
21664 (finish_prefs): Likewise.
21666 2015-06-01 Martin Liska <mliska@suse.cz>
21668 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
21669 (allocate_and_init_ipcp_value): Likewise.
21670 (ipcp_lattice::add_value): Likewise.
21671 (merge_agg_lats_step): Likewise.
21672 (ipcp_driver): Likewise.
21673 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
21674 (ipa_free_all_structures_after_iinln): Likewise.
21675 * ipa-prop.h: Likewise.
21677 2015-06-01 Martin Liska <mliska@suse.cz>
21679 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
21681 (set_hint_predicate): Likewise.
21682 (inline_summary_alloc): Likewise.
21683 (reset_inline_edge_summary): Likewise.
21684 (reset_inline_summary): Likewise.
21685 (set_cond_stmt_execution_predicate): Likewise.
21686 (set_switch_stmt_execution_predicate): Likewise.
21687 (compute_bb_predicates): Likewise.
21688 (estimate_function_body_sizes): Likewise.
21689 (inline_free_summary): Likewise.
21691 2015-06-01 Martin Liska <mliska@suse.cz>
21693 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
21694 (ipa_edge_duplication_hook): Likewise.
21695 (ipa_free_all_structures_after_ipa_cp): Likewise.
21696 (ipa_free_all_structures_after_iinln): Likewise.
21698 2015-06-01 Martin Liska <mliska@suse.cz>
21700 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
21701 (ipa_profile_generate_summary): Likewise.
21702 (ipa_profile_read_summary): Likewise.
21703 (ipa_profile): Likewise.
21705 2015-06-01 Martin Liska <mliska@suse.cz>
21707 * tree-ssa-structalias.c (new_var_info): Use new type-based
21709 (new_constraint): Likewise.
21710 (init_alias_vars): Likewise.
21711 (delete_points_to_sets): Likewise.
21713 2015-06-01 Martin Liska <mliska@suse.cz>
21715 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
21716 (free_strinfo): Likewise.
21717 (pass_strlen::execute): Likewise.
21719 2015-06-01 Martin Liska <mliska@suse.cz>
21721 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
21723 (vn_reference_insert_pieces): Likewise.
21724 (vn_phi_insert): Likewise.
21725 (visit_reference_op_call): Likewise.
21726 (copy_phi): Likewise.
21727 (copy_reference): Likewise.
21728 (process_scc): Likewise.
21729 (allocate_vn_table): Likewise.
21730 (free_vn_table): Likewise.
21732 2015-06-01 Martin Liska <mliska@suse.cz>
21734 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
21736 (add_repeat_to_ops_vec): Likewise.
21737 (get_ops): Likewise.
21738 (maybe_optimize_range_tests): Likewise.
21739 (init_reassoc): Likewise.
21740 (fini_reassoc): Likewise.
21742 2015-06-01 Martin Liska <mliska@suse.cz>
21744 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
21746 (bitmap_set_new): Likewise.
21747 (get_or_alloc_expr_for_constant): Likewise.
21748 (get_or_alloc_expr_for): Likewise.
21749 (phi_translate_1): Likewise.
21750 (compute_avail): Likewise.
21751 (init_pre): Likewise.
21752 (fini_pre): Likewise.
21754 2015-06-01 Martin Liska <mliska@suse.cz>
21756 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
21757 (delete_dep_node): Likewise.
21758 (create_deps_list): Likewise.
21759 (free_deps_list): Likewise.
21760 (sched_deps_init): Likewise.
21761 (sched_deps_finish): Likewise.
21763 2015-06-01 Martin Liska <mliska@suse.cz>
21765 * regcprop.c (free_debug_insn_changes): Use new type-based
21767 (replace_oldest_value_reg): Likewise.
21768 (pass_cprop_hardreg::execute): Likewise.
21770 2015-06-01 Martin Liska <mliska@suse.cz>
21772 * ira-build.c (initiate_cost_vectors): Use new type-based
21774 (ira_allocate_cost_vector): Likewise.
21775 (ira_free_cost_vector): Likewise.
21776 (finish_cost_vectors): Likewise.
21778 2015-06-01 Martin Liska <mliska@suse.cz>
21780 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
21782 (free_sched_pools): Likewise.
21783 * sel-sched-ir.h (_list_alloc): Likewise.
21784 (_list_remove): Likewise.
21786 2015-06-01 Martin Liska <mliska@suse.cz>
21788 * stmt.c (add_case_node): Use new type-based pool allocator.
21789 (expand_case): Likewise.
21790 (expand_sjlj_dispatch_table): Likewise.
21792 2015-06-01 Martin Liska <mliska@suse.cz>
21794 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
21795 (free_bb): Likewise.
21796 (pass_cse_reciprocals::execute): Likewise.
21798 2015-06-01 Martin Liska <mliska@suse.cz>
21800 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
21801 (sra_deinitialize) Likewise.
21802 (create_access_1) Likewise.
21803 (build_accesses_from_assign) Likewise.
21804 (create_artificial_child_access) Likewise.
21806 2015-06-01 Martin Liska <mliska@suse.cz>
21808 * dse.c (get_group_info):Use new type-based pool allocator.
21809 (dse_step0) Likewise.
21810 (free_store_info) Likewise.
21811 (delete_dead_store_insn) Likewise.
21812 (free_read_records) Likewise.
21813 (record_store) Likewise.
21814 (replace_read) Likewise.
21815 (check_mem_read_rtx) Likewise.
21816 (scan_insn) Likewise.
21817 (dse_step1) Likewise.
21818 (dse_step7) Likewise.
21820 2015-06-01 Martin Liska <mliska@suse.cz>
21822 * df-scan.c (struct df_scan_problem_data):Use new type-based
21824 (df_scan_free_internal) Likewise.
21825 (df_scan_alloc) Likewise.
21826 (df_grow_reg_info) Likewise.
21827 (df_free_ref) Likewise.
21828 (df_insn_create_insn_record) Likewise.
21829 (df_mw_hardreg_chain_delete) Likewise.
21830 (df_insn_info_delete) Likewise.
21831 (df_free_collection_rec) Likewise.
21832 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
21833 (df_sort_and_compress_mws) Likewise.
21834 (df_ref_create_structure) Likewise.
21835 (df_ref_record) Likewise.
21837 2015-06-01 Martin Liska <mliska@suse.cz>
21839 * df-problems.c (df_chain_create):Use new type-based pool allocator.
21840 (df_chain_unlink_1) Likewise.
21841 (df_chain_unlink) Likewise.
21842 (df_chain_remove_problem) Likewise.
21843 (df_chain_alloc) Likewise.
21844 (df_chain_free) Likewise.
21845 * df.h (struct dataflow) Likewise.
21847 2015-06-01 Martin Liska <mliska@suse.cz>
21849 * cselib.c (new_elt_list):Use new type-based pool allocator.
21850 (new_elt_loc_list) Likewise.
21851 (unchain_one_elt_list) Likewise.
21852 (unchain_one_elt_loc_list) Likewise.
21853 (unchain_one_value) Likewise.
21854 (new_cselib_val) Likewise.
21855 (cselib_init) Likewise.
21856 (cselib_finish) Likewise.
21858 2015-06-01 Martin Liska <mliska@suse.cz>
21860 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
21861 (sh_reorg) Likewise.
21863 2015-06-01 Martin Liska <mliska@suse.cz>
21865 * cfg.c (initialize_original_copy_tables):Use new type-based
21867 (free_original_copy_tables) Likewise.
21868 (copy_original_table_clear) Likewise.
21869 (copy_original_table_set) Likewise.
21871 2015-06-01 Martin Liska <mliska@suse.cz>
21873 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
21875 (asan_mem_ref_new) Likewise.
21876 (free_mem_ref_resources) Likewise.
21878 2015-06-01 Martin Liska <mliska@suse.cz>
21880 * var-tracking.c (variable_htab_free):Use new type-based
21882 (attrs_list_clear) Likewise.
21883 (attrs_list_insert) Likewise.
21884 (attrs_list_copy) Likewise.
21885 (shared_hash_unshare) Likewise.
21886 (shared_hash_destroy) Likewise.
21887 (unshare_variable) Likewise.
21888 (var_reg_delete_and_set) Likewise.
21889 (var_reg_delete) Likewise.
21890 (var_regno_delete) Likewise.
21891 (drop_overlapping_mem_locs) Likewise.
21892 (variable_union) Likewise.
21893 (insert_into_intersection) Likewise.
21894 (canonicalize_values_star) Likewise.
21895 (variable_merge_over_cur) Likewise.
21896 (dataflow_set_merge) Likewise.
21897 (remove_duplicate_values) Likewise.
21898 (variable_post_merge_new_vals) Likewise.
21899 (dataflow_set_preserve_mem_locs) Likewise.
21900 (dataflow_set_remove_mem_locs) Likewise.
21901 (variable_from_dropped) Likewise.
21902 (variable_was_changed) Likewise.
21903 (set_slot_part) Likewise.
21904 (clobber_slot_part) Likewise.
21905 (delete_slot_part) Likewise.
21906 (loc_exp_insert_dep) Likewise.
21907 (notify_dependents_of_changed_value) Likewise.
21908 (emit_notes_for_differences_1) Likewise.
21909 (vt_emit_notes) Likewise.
21910 (vt_initialize) Likewise.
21911 (vt_finalize) Likewise.
21913 2015-06-01 Martin Liska <mliska@suse.cz>
21915 * ira-color.c (init_update_cost_records):Use new type-based
21917 (get_update_cost_record) Likewise.
21918 (free_update_cost_record_list) Likewise.
21919 (finish_update_cost_records) Likewise.
21920 (initiate_cost_update) Likewise.
21922 2015-06-01 Martin Liska <mliska@suse.cz>
21924 * lra.c (init_insn_regs): Use new type-based pool allocator.
21925 (new_insn_reg) Likewise.
21926 (free_insn_reg) Likewise.
21927 (free_insn_regs) Likewise.
21928 (finish_insn_regs) Likewise.
21929 (init_insn_recog_data) Likewise.
21930 (init_reg_info) Likewise.
21931 (finish_reg_info) Likewise.
21932 (lra_free_copies) Likewise.
21933 (lra_create_copy) Likewise.
21934 (invalidate_insn_data_regno_info) Likewise.
21936 2015-06-01 Martin Liska <mliska@suse.cz>
21938 * lra-lives.c (free_live_range): Use new type-based pool allocator.
21939 (free_live_range_list) Likewise.
21940 (create_live_range) Likewise.
21941 (copy_live_range) Likewise.
21942 (lra_merge_live_ranges) Likewise.
21943 (remove_some_program_points_and_update_live_ranges) Likewise.
21944 (lra_live_ranges_init) Likewise.
21945 (lra_live_ranges_finish) Likewise.
21947 2015-06-01 Martin Liska <mliska@suse.cz>
21949 * et-forest.c (et_new_occ): Use new type-based pool allocator.
21950 (et_new_tree): Likewise.
21951 (et_free_tree): Likewise.
21952 (et_free_tree_force): Likewise.
21953 (et_free_pools): Likewise.
21954 (et_split): Likewise.
21956 2015-06-01 Martin Liska <mliska@suse.cz>
21958 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
21960 * alloc-pool.h (pool_allocator::pool_allocator): New function.
21961 (pool_allocator::release): Likewise.
21962 (inline pool_allocator::release_if_empty): Likewise.
21963 (inline pool_allocator::~pool_allocator): Likewise.
21964 (pool_allocator::allocate): Likewise.
21965 (pool_allocator::remove): Likewise.
21967 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21969 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
21972 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21974 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
21976 * config/arm/arm.c (arm_print_tune_info): Likewise.
21977 (arm_macro_fusion_p): Likewise.
21978 (arm_macro_fusion_pair_p): Likewise.
21980 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
21982 * config/aarch64/aarch64-protos.h (tune_params): Rename
21983 fuseable_ops to fusible_ops.
21984 * config/aarch64/aarch64.c (generic_tunings): Rename
21985 fuseable_ops to fusible_ops.
21986 (cortexa53_tunings): Likewise.
21987 (cortexa57_tunings): Likewise.
21988 (thunderx_tunings): Likewise.
21989 (xgene1_tunings): Likewise.
21990 (aarch64_macro_fusion_p): Likewise.
21991 (aarch64_macro_fusion_pair_p): Likewise.
21993 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
21995 * config/s390/driver-native.c: New file.
21996 * config/s390/x-native: New file.
21997 * config.host: Add new files for s390.
21998 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
22000 * config.gcc: Likewise.
22001 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
22002 * config/s390/s390-opts.h (enum processor_type): Ditto.
22003 * config/s390/s390.c (s390_option_override): Catch unhandled
22006 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
22009 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
22010 redirection for instrumented calls.
22011 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
22012 (append_compiler_options): Append -fcheck-pointer-bounds.
22013 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
22014 (chkp_redirect_edge): New.
22015 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
22016 (chkp_redirect_edge): New.
22018 2015-06-01 Richard Biener <rguenther@suse.de>
22020 PR tree-optimization/66280
22021 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
22024 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22026 * config/aarch64/aarch64.md
22027 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
22030 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
22032 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
22033 Remove obsolete kludge.
22035 2015-06-01 Richard Biener <rguenther@suse.de>
22037 * tree-ssa-reassoc.c (get_rank): Simplify.
22039 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
22041 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
22042 * configure: Regenerated.
22044 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
22046 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
22047 issue (add space between string literal and macro).
22048 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
22050 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
22052 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
22053 implict or explicit -fPIE or -fpie.
22055 2015-05-30 Mike Frysinger <vapier@gentoo.org>
22057 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
22059 2015-05-28 DJ Delorie <dj@redhat.com>
22061 * expmed.c (extract_bit_field_1): Avoid clobbering a
22062 yet-to-be-used base/index register.
22064 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
22066 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
22067 (alias_stats): Add num_universal.
22068 (alias_set_subset_of): Special case pointers; be ready for NULL
22070 (alias_sets_conflict_p): Special case pointers; be ready for NULL
22072 (init_alias_set_entry): Break out from ...
22073 (record_alias_subset): ... here; propagate new fields;
22074 allocate children only when really needed.
22075 (get_alias_set): Do less generous pointer globbing.
22076 (dump_alias_stats_in_alias_c): Update statistics.
22078 2015-05-30 Alan Modra <amodra@gmail.com>
22080 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
22081 correct block for use of r12.
22082 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
22084 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
22087 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
22090 2015-05-29 Jakub Jelinek <jakub@redhat.com>
22092 PR tree-optimization/66142
22093 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
22094 virtual phis that feed themselves.
22096 2015-05-29 Richard Biener <rguenther@suse.de>
22098 PR tree-optimization/66314
22099 * tree-ssa-threadupdate.c (create_block_for_threading): Add
22100 parameter that says which loop the new block belongs to.
22101 (ssa_create_duplicates): Blocks duplicated for the threaded
22102 path belong to the loop of the thread destination.
22104 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22106 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
22107 to cleanup-saved-temps.
22108 * doc/sourcebuild.texi (Clean up generated test files): Expand
22110 (dg-keep-saved-temps): Document new proc.
22111 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
22112 cleanup-saved-temps): Remove.
22114 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
22116 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
22117 gcc_AC_CHECK_DECLS.
22118 * configure: Regenerate.
22120 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22122 * config/nios2/linux.h (CPP_SPEC): Define.
22124 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22126 * config/microblaze/linux.h (CPP_SPEC): Define.
22128 2015-05-28 Mike Frysinger <vapier@gentoo.org>
22130 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
22131 -pthread is specified.
22133 2015-05-28 Richard Biener <rguenther@suse.de>
22135 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
22136 (vect_fixup_scalar_cycles_with_patterns): Likewise.
22137 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
22138 after pattern recog.
22139 (vect_create_epilog_for_reduction): Properly handle reductions
22141 (vectorizable_reduction): Likewise.
22142 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
22144 (vect_get_constant_vectors): Create the correct number of
22145 initial values for reductions.
22146 (vect_schedule_slp_instance): Handle reduction chains that are
22147 type changing properly.
22148 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
22150 2015-05-28 Richard Biener <rguenther@suse.de>
22152 PR tree-optimization/66142
22153 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
22154 values better in memcpy destination handling. Handle non-aliasing
22157 2015-05-28 Lawrence Velázquez <vq@larryv.me>
22160 * config/darwin-c.c (version_components): New global enum.
22161 (parse_version, version_as_legacy_macro)
22162 (version_as_modern_macro, macosx_version_as_macro): New functions.
22163 (version_as_macro): Remove.
22164 (darwin_cpp_builtins): Use new function.
22166 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
22168 * builtins.c (expand_builtin_acc_on_device): Mark parameters
22169 with ATTRIBUTE_UNUSED.
22171 2015-05-28 Julian Brown <julian@codesourcery.com>
22175 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
22176 sequence for !ACCEL_COMPILER.
22178 2015-05-28 Nick Clifton <nickc@redhat.com>
22180 * config/rx/rx.c (push_regs): New function. Extracts code from...
22181 (rx_expand_prologue): ... here. Use push_regs to push even small
22182 spans of registers.
22183 (pop_regs): New function.
22184 (rx_expand_epilogue): Use pop_regs to pop even small spans of
22187 2015-05-28 Richard Biener <rguenther@suse.de>
22189 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
22191 (SLP_INSTANCE_BODY_COST_VEC): Remove.
22192 (vect_update_slp_costs_according_to_vf): Likewise.
22193 (vect_slp_analyze_operations): Update prototype.
22194 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
22195 vect_update_slp_costs_according_to_vf, adjust.
22196 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
22197 (vect_analyze_slp_cost_1): Likewise.
22198 (vect_analyze_slp_cost): Likewise. Properly deal with
22199 widening reduction ops. Commit body costs.
22200 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
22201 cost for loops from here.
22202 (vect_slp_analyze_operations): But do it from here when
22203 the vectorization factor is known and stmts are analyzed.
22204 (vect_bb_vectorization_profitable_p): Simplify.
22205 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
22206 (vect_update_slp_costs_according_to_vf): Remove.
22208 2015-05-27 Magnus Granberg <zorry@gentoo.org>
22209 H.J. Lu <hongjiu.lu@intel.com>
22211 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
22212 (BUILD_CFLAGS): Likewise.
22213 (BUILD_CXXFLAGS): Likewise.
22214 (LINKER): Add @NO_PIE_FLAG@.
22215 (BUILD_LDFLAGS): Likewise.
22216 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
22217 --enable-default-pie.
22218 * common.opt (fPIE): Initialize to -1.
22220 (no-pie): New option.
22221 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
22222 * configure.ac: Add --enable-default-pie.
22223 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
22224 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
22225 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
22226 * gcc.c (NO_PIE_SPEC): New.
22227 (PIE_SPEC): Likewise.
22228 (NO_FPIE1_SPEC): Likewise.
22229 (FPIE1_SPEC): Likewise.
22230 (NO_FPIE2_SPEC): Likewise.
22231 (FPIE2_SPEC): Likewise.
22232 (NO_FPIE2_SPEC): Likewise.
22233 (FPIE_SPEC): Likewise.
22234 (NO_FPIE_SPEC): Likewise.
22235 (NO_FPIC1_SPEC): Likewise.
22236 (FPIC1_SPEC): Likewise.
22237 (NO_FPIC2_SPEC): Likewise.
22238 (FPIC2_SPEC): Likewise.
22239 (NO_FPIC2_SPEC): Likewise.
22240 (FPIC_SPEC): Likewise.
22241 (NO_FPIC_SPEC): Likewise.
22242 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
22243 (FPIE1_OR_FPIC1_SPEC): Likewise.
22244 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
22245 (FPIE2_OR_FPIC2_SPEC): Likewise.
22246 (NO_FPIE_AND_FPIC_SPEC): Likewise.
22247 (FPIE_OR_FPIC_SPEC): Likewise.
22248 (LD_PIE_SPEC): Likewise.
22249 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
22250 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
22251 * config/darwin.h (PIE_SPEC): Renamed to ...
22252 (DARWIN_PIE_SPEC): This.
22253 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
22254 * config/darwin9.h (PIE_SPEC): Renamed to ...
22255 (DARWIN_PIE_SPEC): This.
22256 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
22257 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
22258 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
22259 FPIE2_OR_FPIC2_SPEC.
22260 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22261 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22262 * config/sol2.h (ASM_PIC_SPEC): Likewise.
22263 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22264 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22265 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
22266 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
22267 * config/m32r/m32r.h (ASM_SPEC): Likewise.
22268 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
22269 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22270 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
22271 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
22272 * config/sparc/linux.h (ASM_SPEC): Likewise.
22273 * config/sparc/linux64.h (ASM_SPEC): Likewise.
22274 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
22275 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
22276 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22277 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
22278 * config/sparc/sparc.h (ASM_SPEC): Likewise.
22279 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
22280 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
22281 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
22282 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
22283 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
22284 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
22285 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
22286 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
22287 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
22288 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
22289 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
22290 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
22291 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22292 * config/vax/linux.h (ASM_SPEC): Likewise.
22293 * doc/install.texi: Document --enable-default-pie.
22294 * doc/invoke.texi: Document -no-pie.
22295 * config.in: Regenerated.
22296 * configure: Likewise.
22298 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22300 PR rtl-optimization/66168
22301 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
22302 can_move_invariant_reg.
22304 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
22307 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
22308 REG_EQUAL note when doing insert.
22310 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
22311 instead of "%d" for 'o' operand.
22313 2015-05-27 Nathan Sidwell <nathan@acm.org>
22316 * tree.c (build_pointer_type_for_mode): Canonical type does not
22317 inherit can_alias_all.
22318 (build_reference_type_for_mode): Likewise.
22320 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
22322 * expr.h (array_at_struct_end_p): Move to...
22323 (array_ref_element_size): Likewise.
22324 (component_ref_field_offset): Likewise.
22325 * tree.h (array_ref_element_size): ...here.
22326 (array_at_struct_end_p): Likewise.
22327 (component_ref_field_offset): Likewise.
22328 * expr.c (array_ref_element_size): Move to...
22329 (array_ref_low_bound): Likewise.
22330 (array_at_struct_end_p): Likewise.
22331 (array_ref_up_bound): Likewise.
22332 (component_ref_field_offset): Likewise.
22333 * tree.c (array_ref_element_size): ...here.
22334 (array_ref_low_bound): Likewise.
22335 (array_ref_up_bound): Likewise.
22336 (array_at_struct_end_p): Likewise.
22337 (component_ref_field_offset): Likewise.
22339 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22340 Szabolcs Nagy <szabolcs.nagy@arm.com>
22342 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
22344 2015-05-27 Jason Merrill <jason@redhat.com>
22347 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
22348 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
22349 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
22351 2015-05-22 Aditya Kumar <hiraditya@msn.com>
22353 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
22356 * statistics.c (statistics_fini_pass): Print pass name.
22358 2015-05-27 Richard Biener <rguenther@suse.de>
22360 PR tree-optimization/66272
22362 2014-08-15 Richard Biener <rguenther@suse.de>
22364 PR tree-optimization/62031
22365 * tree-data-ref.c (dr_analyze_indices): Do not set
22366 DR_UNCONSTRAINED_BASE.
22367 (dr_may_alias_p): All indirect accesses have to go the
22368 formerly DR_UNCONSTRAINED_BASE path.
22369 * tree-data-ref.h (struct indices): Remove
22370 unconstrained_base member.
22371 (DR_UNCONSTRAINED_BASE): Remove.
22373 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
22375 * dwarf2out.c: Remove block_map.
22376 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
22377 (gen_lexical_block_die): Same.
22378 (dwarf2out_function_decl): Remove block_map use.
22379 (dwarf2out_c_finalize): Same.
22380 * tree-core.h (struct tree_block): Add die field.
22381 * tree.h (BLOCK_DIE): New.
22383 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22386 * expr.c (memory_load_overlap): New function.
22387 (emit_push_insn): When pushing partial args to the stack would
22388 clobber the register part load the overlapping part into a pseudo
22389 and put it into the hard reg after pushing. Change return type
22390 to bool. Add bool argument.
22391 * expr.h (emit_push_insn): Change return type to bool.
22393 * calls.c (expand_call): Cancel sibcall optimization when encountering
22394 partial argument on targets with ARGS_GROW_DOWNWARD and
22395 !STACK_GROWS_DOWNWARD.
22396 (emit_library_call_value_1): Update callsite of emit_push_insn.
22397 (store_one_arg): Likewise.
22399 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
22401 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
22403 2015-05-27 Martin Liska <mliska@suse.cz>
22405 * Makefile.in: Add additional dependencies related to memory report
22407 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
22408 * bitmap.c (struct bitmap_descriptor_d): Remove.
22409 (struct loc): Likewise.
22410 (struct bitmap_desc_hasher): Likewise.
22411 (bitmap_desc_hasher::hash): Likewise.
22412 (bitmap_desc_hasher::equal): Likewise.
22413 (get_bitmap_descriptor): Likewise.
22414 (bitmap_register): User new memory descriptor API.
22415 (register_overhead): Likewise.
22416 (bitmap_find_bit): Register nsearches and search_iter statistics.
22417 (struct bitmap_output_info): Remove.
22418 (print_statistics): Likewise.
22419 (dump_bitmap_statistics): Use new memory descriptor.
22420 * bitmap.h (struct bitmap_usage): New class.
22421 * genmatch.c: Extend header file inclusion.
22422 * genpreds.c: Likewise.
22423 * ggc-common.c (struct ggc_usage): New class.
22424 (struct ggc_loc_desc_hasher): Remove.
22425 (ggc_loc_desc_hasher::hash): Likewise.
22426 (ggc_loc_desc_hasher::equal): Likewise.
22427 (struct ggc_ptr_hash_entry): Likewise.
22428 (struct ptr_hash_hasher): Likewise.
22429 (ptr_hash_hasher::hash): Likewise.
22430 (ptr_hash_hasher::equal): Likewise.
22431 (make_loc_descriptor): Likewise.
22432 (ggc_prune_ptr): Likewise.
22433 (dump_ggc_loc_statistics): Use new memory descriptor.
22434 (ggc_record_overhead): Likewise.
22435 (ggc_free_overhead): Likewise.
22436 (final_cmp_statistic): Remove.
22437 (cmp_statistic): Likewise.
22438 (ggc_add_statistics): Liekwise.
22439 (ggc_prune_overhead_list): Likewise.
22440 * hash-map-traits.h: New file.
22441 * hash-map.h (struct default_hashmap_traits): Move the traits to a
22442 separate header file.
22443 * hash-set.h: Pass memory statistics info to ctor.
22444 * hash-table.c (void dump_hash_table_loc_statistics): New function.
22445 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
22446 (hash_table::~hash_table): Register memory release operation.
22447 (hash_table::alloc_entries): Handle memory allocation operation.
22448 (hash_table::expand): Likewise.
22449 * inchash.c (iterative_hash_hashval_t): Move implementation to header
22451 (iterative_hash_host_wide_int): Likewise.
22452 * inchash.h (class hash): Likewise.
22453 * mem-stats-traits.h: New file.
22454 * mem-stats.h: New file.
22455 (mem_location): Add new class.
22456 (mem_usage): Likewise.
22457 (mem_alloc_description): Likewise.
22458 * sese.c: Add new header file inclusision.
22459 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
22461 * tree-sra.c: Add new header file inclusision.
22462 * vec.c (struct vec_descriptor): Remove.
22463 (hash_descriptor): Likewise.
22464 (struct vec_usage): Likewise.
22465 (struct ptr_hash_entry): Likewise.
22466 (hash_ptr): Likewise.
22467 (eq_ptr): Likewise.
22468 (vec_prefix::register_overhead): Use new memory descriptor API.
22469 (vec_prefix::release_overhead): Likewise.
22470 (add_statistics): Remove.
22471 (dump_vec_loc_statistics): Use new memory descriptor API.
22472 * vec.h (struct vec_prefix): Likewise.
22473 (va_heap::reserve): Likewise.
22474 (va_heap::release): Likewise.
22475 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
22477 2015-05-27 Richard Biener <rguenther@suse.de>
22479 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
22480 earlier and remove ??? comment.
22481 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
22482 and got called from loop analysis bail out. Always pass the SLP
22483 node to the vectorizable_* functions.
22484 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
22485 the premature SLP check here.
22486 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
22487 detected SLP stmts.
22488 (vect_detect_hybrid_slp_1): Likewise.
22490 2015-05-26 Jeff Law <law@redhat.com>
22492 * combine.c (find_split_point): Verify that the shift count is a
22493 constant when choosing (plus (ashift ...)) as a split point.
22495 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
22496 No functional changes.
22498 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
22500 * ipa-polymorphic-call.c
22501 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
22502 case when call target is already known.
22504 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
22507 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
22508 take into account the case that operands[1] and operands[2]
22509 are the same register.
22511 2015-05-26 Michael Matz <matz@suse.de>
22513 PR middle-end/66251
22515 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
22517 (vect_create_vectorized_demotion_stmts): Always set
22518 STMT_VINFO_VEC_STMT, also with SLP.
22519 (vectorizable_store): Handle strided group stores.
22521 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22524 * config/aarch64/aarch64.md
22525 (*adds_shift_imm_<mode>): New pattern.
22526 (*subs_shift_imm_<mode>): Likewise.
22527 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22528 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
22529 (*add_uxt<mode>_shift2): Likewise.
22530 (*add_uxtsi_shift2_uxtw): Likewise.
22531 (*sub_uxt<mode>_shift2): Likewise.
22532 (*sub_uxtsi_shift2_uxtw): Likewise.
22534 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
22536 * config/rs6000/constraints.md (Y, U): Use match_test.
22538 2015-05-26 Christian Bruel <christian.bruel@st.com>
22541 * config/arm/arm.c (arm_option_check_internal)
22542 (arm_option_params_internal): Check opts->target_flags to set macros.
22543 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22544 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
22545 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22546 (builtin_define): Replaced with def_or_undef_macro.
22547 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
22548 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
22549 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
22550 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
22551 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
22552 (TARGET_ARM_FEATURE_LDREX_P)
22553 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
22554 * config/arm/arm-c.c (def_or_undef_macro): New function.
22555 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
22557 2015-05-26 Christian Bruel <christian.bruel@st.com>
22559 * c-common.h (builtin_define_with_int_value)
22560 (builtin_define_type_sizeof): Declare.
22561 * c-cppbuiltin.c (builtin_define_with_int_value)
22562 (builtin_define_type_sizeof): Externalize.
22563 (builtin_define_std): Cleanup declaration.
22564 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
22565 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
22566 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
22567 (builtin_define, builtin_assert): New macros.
22569 2015-05-26 Richard Biener <rguenther@suse.de>
22571 PR tree-optimization/66142
22572 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
22573 MEM_REFs for the same base address.
22575 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22578 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
22580 2015-05-26 Jason Merrill <jason@redhat.com>
22582 * configure.ac: Set CXXFLAGS for ISL test.
22583 * configure: Regenerate.
22585 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
22586 strstr and basename.
22587 * configure: Regenerate.
22589 2015-05-26 Richard Biener <rguenther@suse.de>
22591 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
22592 X % C -> X & (C - 1) for C being a power-of two to ...
22593 * match.pd: ... patterns.
22595 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
22597 * match.pd (swapped_tcc_comparison): New operator list.
22598 (-A CMP -B): New simplification.
22599 * fold-const.c (fold_comparison): Remove corresponding code.
22601 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22603 * caller-save.c (init_caller_save): Base temporary register numbers
22604 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
22605 * cfgloopanal.c (init_set_costs): Likewise.
22606 * dojump.c (prefer_and_bit_test): Likewise.
22607 * expr.c (init_expr_target): Likewise.
22608 * ira.c (setup_prohibited_mode_move_regs): Likewise.
22609 * lower-subreg.c (init_lower_subreg): Likewise.
22610 * postreload.c (reload_cse_regs_1): Likewise.
22612 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
22614 * gensupport.h (compute_test_codes): Declare.
22615 * gensupport.c (compute_predicate_codes): Rename to...
22616 (compute_test_codes): ...this. Generalize error message.
22617 (process_define_predicate): Update accordingly.
22618 * genpreds.c (compute_maybe_allows): Delete.
22619 (add_constraint): Use compute_test_codes to determine whether
22620 something can accept a SUBREG, REG or MEM.
22622 2015-05-26 Torvald Riegel <triegel@redhat.com>
22624 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
22625 'memory model' to align with C++11; fix description of memory orders;
22628 2015-05-26 Richard Biener <rguenther@suse.de>
22630 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
22631 (vect_analyze_loop_operations): ... here. Remove slp parameter,
22632 detect whether we apply SLP. Remove call to
22633 vect_update_slp_costs_according_to_vf.
22634 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
22635 vect_update_slp_costs_according_to_vf from here. Dispatch
22636 to vect_slp_analyze_operations to analyze SLP stmts.
22637 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
22638 unused bb_vec_info parameter, adjust assert.
22639 (vect_slp_analyze_operations): Pass in the slp instance tree
22640 instead of bb_vec_info.
22641 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
22642 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
22644 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22646 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
22647 Q_REGS. Expand comment.
22648 (REG_CLASS_NAMES): Ditto.
22649 (REG_CLASS_CONTENTS): Ditto.
22651 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
22654 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
22655 when LEGACY_INT_REGNO_P is processed.
22657 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
22659 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
22661 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22663 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
22664 register if not marked dead/unused, before return.
22666 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22669 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
22670 is set; check for assembler name at LTO time.
22671 (type_in_anonymous_namespace): Remove hacks, check that all
22672 anonymous types are called "<anon>"
22673 (odr_type_p): Simplify; add check for "<anon>"
22674 (odr_subtypes_equivalent): Add odr_type_p check.
22675 * tree.c (need_assembler_name_p): Even anonymous namespace needs
22678 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22680 * ipa-utils.h (method_class_type): Remove.
22681 * cgraphunit.c (walk_polymorphic_call_targets): Use
22682 TYPE_METHOD_BASETYPE.
22683 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
22684 on main variants only.
22685 (method_class_type): Remove.
22686 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
22687 (build_type_inheritance_graph): Likewise.
22688 * ipa-icf.c (sem_function::equals_wpa): Likewise.
22689 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
22690 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
22692 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
22694 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
22695 is_typedef_decl, typedef_variant_p): Constify.
22696 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
22697 is_typedef_decl, typedef_variant_p): Constify.
22699 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22701 * defaults.h (gen_tablejump): New function.
22702 (HAVE_tablejump): Add default value.
22704 * stmt.c: Likewise.
22706 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22708 * defaults.h (gen_store_multiple): New function.
22709 (HAVE_store_multiple): Add default value.
22710 * expr.c (move_block_from_reg): Adjust.
22712 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22714 * defaults.h (gen_load_multiple): New function.
22715 (HAVE_load_multiple): Add default value.
22716 * expr.c (move_block_to_reg): Adjust.
22718 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22720 * defaults.h (gen_mem_signal_fence): New function.
22721 (HAVE_mem_signal_fence): Add default value.
22722 * optabs.c: Adjust.
22724 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22726 * defaults.h (gen_memory_barrier): New function.
22727 (HAVE_memory_barrier): Add default value.
22728 * optabs.c: Adjust.
22730 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22732 * defaults.h (gen_mem_thread_fence): New function.
22733 (HAVE_mem_thread_fence): Add default definition.
22734 * optabs.c: Adjust.
22736 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22738 * combine.c (find_split_point): Check the value of HAVE_lo_sum
22739 instead of if it is defined.
22740 (combine_simplify_rtx): Likewise.
22741 * lra-constraints.c (process_address_1): Likewise.
22742 * config/darwin.c: Adjust.
22743 * genconfig.c (main): Always define HAVE_lo_sum.
22745 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22747 * genmatch.c (parser::parse_operation): Reject expanding
22748 operator-list inside 'for'.
22750 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22752 * genmatch.c (parser::parse_for): Reject iterator if used as
22755 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22757 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
22758 after end of id-list.
22760 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22762 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
22763 we do not try to compute canonical type for type that does not need
22765 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
22767 * tree.h (type_with_alias_set_p): New.
22769 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
22771 * tree.c (gimple_canonical_types_compatible_p): Do not compare
22772 function attributes.
22773 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
22775 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
22777 * Makefile.in (check_gcc_parallelize): Delete.
22778 (lang_checks_parallelized): Update comment.
22780 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
22782 PR rtl-optimization/66237
22783 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
22784 location of an "as_a" cast.
22786 2015-05-22 Jeff Law <law@redhat.com>
22788 * config/pa/pa.md (non-canonical shift-add insns): Remove.
22789 (peepholes with non-canonical RTL sources): Remove.
22790 (peepholes for indexed stores of FP regs in integer modes): Match and
22791 generate canonical RTL.
22793 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22795 PR tree-optimization/63387
22796 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
22797 ((x ord x) & (y ord y) -> (x ord y),
22798 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
22799 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
22800 vectors like scalars.
22802 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22804 * convert.c (convert_to_integer, convert_to_vector): Include the
22805 types in the error message.
22807 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
22809 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
22812 2015-05-22 Jeff Law <law@redhat.com>
22814 * config/pa/pa.md (integer_indexed_store splitters): Use
22815 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
22816 insns -- adjusting the constant 2nd operand accordingly.
22818 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
22819 (plus (ashift X log2) Y) if it is a split point.
22821 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
22822 out of hppa_legitimize_address to handle both forms of a multiply
22824 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
22825 Always generate the ASHIFT variant as the result is not directly
22826 used in a MEM. Update comments and refactor slightly to improve
22829 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22832 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
22833 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
22834 (aarch64_composite_type_p): Return false if given type and mode are
22835 for a short vector.
22837 2015-05-22 Richard Biener <rguenther@suse.de>
22839 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
22841 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
22842 patterns when determining whether SLP is pure.
22843 (vect_is_slp_reduction): Remove check for pattern stmts.
22844 (vect_is_simple_reduction_1): Remove dead code.
22845 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
22846 (vect_get_and_check_slp_defs): Pass in the stmt number.
22847 Allow the first def in a reduction to be not a pattern stmt when
22848 the rest of the stmts def are patterns.
22849 (vect_build_slp_tree_1): Allow tcc_expression codes like
22850 SAD_EXPR and DOT_PROD_EXPR.
22851 (vect_build_slp_tree): Adjust.
22852 (vect_analyze_slp): Refactor and move BB vect error message ...
22853 (vect_slp_analyze_bb_1): ... here.
22855 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
22857 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
22858 for CSWTCH temporary.
22860 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22862 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
22863 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
22866 2015-05-22 Richard Biener <rguenther@suse.de>
22868 PR tree-optimization/66251
22869 * tree-vect-stmts.c (vectorizable_conversion): Properly
22870 set STMT_VINFO_VEC_STMT even for the SLP case.
22872 2015-05-22 Marek Polacek <polacek@redhat.com>
22874 * doc/extend.texi: Use @pxref instead of @xref.
22876 2015-05-22 hiraditya <hiraditya@msn.com>
22878 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
22881 2015-05-22 Richard Biener <rguenther@suse.de>
22883 PR tree-optimization/65701
22884 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22885 Move peeling cost models into one place. Peel for alignment
22886 for single loads only if an aligned load is cheaper than
22889 2015-05-22 Marek Polacek <polacek@redhat.com>
22892 * doc/extend.texi (Enumerator Attributes): New section.
22893 Document syntax of enumerator attributes.
22895 2015-05-22 Richard Biener <rguenther@suse.de>
22897 * tree-vect-loop.c (get_reduction_op): New function.
22898 (vect_model_reduction_cost): Use it, add reduc_index parameter.
22899 Make ready for BB reductions.
22900 (vect_create_epilog_for_reduction): Use get_reduction_op.
22901 (vectorizable_reduction): Init reduc_index to a valid value.
22902 Adjust vect_model_reduction_cost call.
22903 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
22904 operand for reduction defaults. Add SAD_EXPR support.
22905 Assert we have a neutral op for SLP reductions.
22906 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
22907 walking pattern stmt ops only recurse to SSA names.
22909 2015-05-22 Richard Biener <rguenther@suse.de>
22911 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
22912 assert with guard, remove check on detected reduction.
22913 (vect_recog_sad_pattern): Likewise.
22914 (vect_recog_widen_sum_pattern): Likewise.
22916 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22918 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
22919 __always_inline__ attribute.
22920 (vaesdq_u8): Likewise.
22921 (vaesmcq_u8): Likewise.
22922 (vaesimcq_u8): Likewise.
22923 (vsha1cq_u32): Likewise.
22924 (vsha1mq_u32): Likewise.
22925 (vsha1pq_u32): Likewise.
22926 (vsha1h_u32): Likewise.
22927 (vsha1su0q_u32): Likewise.
22928 (vsha1su1q_u32): Likewise.
22929 (vsha256hq_u32): Likewise.
22930 (vsha256h2q_u32): Likewise.
22931 (vsha256su0q_u32): Likewise.
22932 (vsha256su1q_u32): Likewise.
22933 (vmull_p64): Likewise.
22934 (vmull_high_p64): Likewise.
22936 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22938 * final.c (final_scan_insn): Don't check HAVE_peephole with the
22940 * output.h: Likewise.
22941 * genconfig.c (main): Alwways define HAVE_peephole.
22942 * genpeep.c: Don't emit checks of HAVE_peephole.
22944 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22946 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
22947 check HAVE_conditional_move with the preprocessor.
22949 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22951 * genconfig.c (main): Always define HAVE_conditional_move.
22952 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
22953 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
22956 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22958 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
22959 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
22960 and FRAME_POINTER_REGNUM with the preprocessor.
22962 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22964 * defaults.h: Add default for STACK_PUSH_CODE.
22965 * expr.c: Don't redefine STACK_PUSH_CODE.
22966 * recog.c: Likewise.
22968 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22970 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
22971 sched-deps.c: Use if instead of preprocessor checks with
22972 STACK_GROWS_DOWNWARD.
22974 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22976 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
22978 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
22979 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
22980 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
22981 * doc/tm.texi: Regenerate.
22983 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
22986 * config/i386/constraints.md (Bg): New constraint for GOT memory
22988 * config/i386/i386.md (*call_got_x32): New pattern.
22989 (*call_value_got_x32): Likewise.
22990 * config/i386/predicates.md (GOT_memory_operand): New predicate.
22992 2015-05-21 Jakub Jelinek <jakub@redhat.com>
22994 PR tree-optimization/66233
22995 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
22998 2015-05-21 Jeff Law <law@redhat.com>
23000 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
23001 than MULT for shadd sequences.
23003 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
23005 * alias.c (alias_stats): New static var.
23006 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
23007 (dump_alias_stats_in_alias_c): New function.
23008 * alias.h (dump_alias_stats_in_alias_c): Declare.
23009 * tree-ssa-alias.c (dump_alias_stats): Call it.
23011 2015-05-08 Michael Matz <matz@suse.de>
23013 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
23015 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
23016 (STMT_VINFO_STRIDED_P): ... this.
23017 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
23018 (vect_verify_datarefs_alignment): Likewise.
23019 (vect_enhance_data_refs_alignment): Likewise.
23020 (vect_analyze_data_ref_access): Likewise.
23021 (vect_analyze_data_refs): Accept strided stores.
23022 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
23023 (vect_model_load_cost): Adjust for macro rename.
23024 (vectorizable_mask_load_store): Likewise.
23025 (vectorizable_load): Likewise.
23026 (vectorizable_store): Open code strided stores.
23028 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23030 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
23031 Document sqrt_insn.
23033 2015-05-21 Richard Biener <rguenther@suse.de>
23036 * match.pd: Guard pattern optimzing (int)(float)int
23037 conversions to apply only on GIMPLE.
23039 2015-05-21 Jeff Law <law@redhat.com>
23041 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
23042 multiply-accumulate/shift-add insn generation.
23044 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23047 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
23048 operands[1] are the same.
23050 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
23052 PR middle-end/66221
23053 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
23054 build_distinct_type_copy to copy bounds.
23056 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
23058 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
23059 Change to unsigned int.
23061 2015-05-20 Jeff Law <law@redhat.com>
23063 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
23064 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
23065 (pa_shadd_constant_p): Allow constants for shadd insns rather
23066 than valid scaling constants for memory addresses.
23067 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
23068 * config/pa/predicates.md (mem_shadd_operand): New predicate.
23069 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
23070 (shift-add insns using ASHIFT): New patterns.
23072 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
23074 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
23076 (fix_up_fall_thru_edges): Likewise.
23077 (fix_crossing_conditional_branches): Likewise. Promote jump targets
23078 from to rtx_insn to rtx_code_label where feasible.
23079 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
23080 gen_move_insn (returned type changed to rtx_insn).
23081 * builtins.c (expand_errno_check): Fix arguments of
23082 do_compare_rtx_and_jump (now expects rtx_code_label).
23083 (expand_builtin_acc_on_device): Likewise.
23084 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
23085 invert_jump (now exprects rtx_jump_insn).
23086 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
23087 (construct_init_block): Use rtx_code_label.
23088 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
23089 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
23090 calling redirect_jump.
23091 (patch_jump_insn): Likewise.
23092 (redirect_branch_edge): Likewise.
23093 (force_nonfallthru_and_redirect): Likewise.
23094 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
23096 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
23097 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
23098 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
23099 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
23100 to store the value retured by gen_label_rtx.
23101 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
23103 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
23104 (split_branches): Fix calls of redirect_jump.
23105 * dojump.c (jumpifnot): Promote argument type from rtx to
23107 (jumpifnot_1): Likewise.
23108 (jumpif): Likewise.
23109 (jumpif_1): Likewise.
23110 (do_jump_1): Likewise.
23111 (do_jump): Likewise. Use rtx_code_label when feasible.
23112 (do_jump_by_parts_greater_rtx): Likewise.
23113 (do_jump_by_parts_zero_rtx): Likewise.
23114 (do_jump_by_parts_equality_rtx): Likewise.
23115 (do_compare_rtx_and_jump): Likewise.
23116 * dojump.h: Update function prototypes.
23117 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
23119 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
23121 (emit_label_before): Likewise.
23122 (emit_jump_insn_after_noloc): Likewise.
23123 (emit_jump_insn_after_setloc): Likewise.
23124 (emit_jump_insn_after): Likewise
23125 (emit_jump_insn_before_setloc): Likewise.
23126 (emit_jump_insn_before): Likewise.
23127 (emit_label_before): Promote return type to rtx_code_label.
23128 (emit_label): Likewise.
23129 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
23130 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
23132 (emit_stack_restore): Likewise.
23133 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
23134 (do_cmp_and_jump): Likewise.
23135 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
23136 from rtx to rtx_code_label.
23137 (gen_move_insn_uncast): New function.
23138 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
23139 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
23140 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
23141 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
23142 invert_jump_1 and redirect_jump_1.
23143 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
23144 do_compare_rtx_and_jump.
23145 (expand_addsub_overflow): Likewise.
23146 (expand_neg_overflow): Likewise.
23147 (expand_mul_overflow): Likewise.
23148 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
23149 return value of gen_move_insn.
23150 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
23151 * loop-doloop.c (add_test): Use rtx_code_label.
23152 (doloop_modify): Likewise.
23153 (doloop_optimize): Likewise.
23154 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
23155 * lra-constraints.c (emit_spill_move): Remove cast of value returned
23157 (inherit_reload_reg): Add cast when calling dump_insn_slim.
23158 (split_reg): Likewise.
23159 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
23161 * optabs.c (expand_binop_directly): Remove casts of values returned by
23163 (expand_unop_direct): Likewise.
23164 (expand_abs): Likewise.
23165 (maybe_emit_unop_insn): Likewise.
23166 (maybe_gen_insn): Promote return type to rtx_insn.
23167 * optabs.h: Update prototype of maybe_gen_insn.
23168 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
23170 * recog.c (struct peep2_insn_data): Promote type of insn field to
23172 (peep2_reinit_state): Use NULL instead of NULL_RTX.
23173 (peep2_attempt): Remove casts of insn in peep2_insn_data.
23174 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
23175 * recog.h (struct insn_gen_fn): Promote return types of function
23176 pointers and operator ().from rtx to rtx_insn.
23177 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
23178 (fill_eager_delay_slots): Likewise.
23179 (relax_delay_slots): Likewise.
23180 (make_return_insns): Likewise.
23181 (dbr_schedule): Likewise.
23182 (optimize_skips): Likewise.
23183 (reorg_redirect_jump): Likewise.
23184 (fill_slots_from_thread): Likewise.
23185 * reorg.h: Update prototypes.
23186 * resource.c (find_dead_or_set_registers): Use dyn_cast to
23187 rtx_jump_insn instead of check. Use it's jump_target method.
23188 * rtl.h (rtx_jump_insn::jump_label): Define new method.
23189 (rtx_jump_insn::jump_target): Define new method.
23190 (rtx_jump_insn::set_jump_target): Define new method.
23191 * rtlanal.c (tablejump_p): Promote type of one local variable.
23192 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
23193 (sched_analyze_insn): Likewise.
23194 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
23195 (print_insn): Likewise.
23196 * stmt.c (label_rtx): Promote return type to rtx_insn.
23197 (force_label_rtx): Likewise.
23198 (jump_target_rtx): Define new function.
23199 (expand_label): Use it, get rid of one cast.
23200 (expand_naked_return): Promote rtx to rtx_code_label.
23201 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
23202 (expand_case): Use rtx_code_label instread of rtx where feasible.
23203 (expand_sjlj_dispatch_table): Likewise.
23204 (emit_case_nodes): Likewise.
23205 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
23206 * store-motion.c (insert_store): Make use of new return type of
23207 gen_move_insn and remove a cast.
23208 (replace_store_insn): Likewise.
23210 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
23212 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
23213 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
23215 2015-05-20 Jeff Law <law@redhat.com>
23217 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
23218 dispose of the jump thread path when the jump threading
23219 opportunity is cancelled.
23221 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
23223 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
23224 when printing the caret character.
23226 2015-05-20 Marek Polacek <polacek@redhat.com>
23228 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
23230 2015-05-20 Marek Polacek <polacek@redhat.com>
23232 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
23233 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
23234 * gimple-fold.c (canonicalize_bool): Likewise.
23235 (same_bool_result_p): Likewise.
23236 * tree-if-conv.c (parse_predicate): Likewise.
23238 2015-05-20 Marek Polacek <polacek@redhat.com>
23240 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
23241 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
23243 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23245 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
23246 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
23249 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
23251 * config/mips/mips.h (micromips_globals): Declare.
23253 2015-05-20 David Malcolm <dmalcolm@redhat.com>
23255 * timevar.def (TV_INITIALIZE_RTL): New.
23256 * toplev.c (initialize_rtl): Use an auto_timevar to account this
23257 function's time to TV_INITIALIZE_RTL.
23259 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
23261 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
23262 gimple_build_nop calls.
23263 (chkp_find_bounds_for_elem): Likewise.
23264 (chkp_get_zero_bounds): Likewise.
23265 (chkp_get_none_bounds): Likewise.
23266 (chkp_get_bounds_by_definition): Likewise.
23267 (chkp_generate_extern_var_bounds): Likewise.
23268 (chkp_get_bounds_for_decl_addr): Likewise.
23269 (chkp_get_bounds_for_string_cst): Likewise.
23271 2015-05-20 Bin Cheng <bin.cheng@arm.com>
23273 PR tree-optimization/65447
23274 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
23275 (dump_use, dump_uses): Support to dump sub use.
23276 (record_use): New parameters to support sub use. Remove call to
23278 (record_sub_use, record_group_use): New functions.
23279 (compute_max_addr_offset, split_all_small_groups): New functions.
23280 (group_address_uses, rewrite_use_address): New functions.
23281 (strip_offset): New declaration.
23282 (find_interesting_uses_address): Call record_group_use.
23283 (add_candidate): New assertion.
23284 (infinite_cost_p): Move definition forward.
23285 (add_costs): Check INFTY cost and return immediately.
23286 (get_computation_cost_at): Clear setup cost and dependent bitmap
23288 (determine_use_iv_cost_address): Compute cost for sub uses.
23289 (rewrite_use_address_1): Rename from old rewrite_use_address.
23290 (free_loop_data): Free sub uses.
23291 (tree_ssa_iv_optimize_loop): Call group_address_uses.
23293 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23294 Jim Wilson <jim.wilson@linaro.org>
23296 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
23297 new fields loadv and storev.
23298 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
23299 Initialize loadv and storev.
23300 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
23301 (cortexa53_extra_costs): Likewise.
23302 (cortexa57_extra_costs): Likewise.
23303 (xgene1_extra_costs): Likewise.
23304 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
23307 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
23309 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
23311 (cortexa8_extra_costs): Likewise.
23312 (cortexa5_extra_costs): Likewise.
23313 (cortexa7_extra_costs): Likewise.
23314 (cortexa12_extra_costs): Likewise.
23315 (cortexa15_extra_costs): Likewise.
23316 (v7m_extra_costs): Likewise.
23318 2015-05-20 Jeff Law <law@redhat.com>
23320 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
23321 instead of open-coded version. Also delete the jump thread created
23322 within this function.
23324 2015-05-20 Alan Modra <amodra@gmail.com>
23326 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
23327 stack adjusting insn. Formatting.
23328 (rs6000_emit_prologue): Track stack adjusting insn, and use of
23329 r12. If possible, emit first -fsplit-stack arg pointer insn
23330 before stack adjust. Don't use r12 to save cr if split-stack.
23332 2015-05-20 Alan Modra <amodra@gmail.com>
23334 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
23336 (rs6000_supports_split_stack): New function.
23337 * config/rs6000/rs6000.c (machine_function): Add
23338 split_stack_arg_pointer.
23339 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
23340 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
23341 rather than virtual_incoming_args_rtx.
23342 (rs6000_va_start): Likewise.
23343 (split_stack_arg_pointer_used_p): New function.
23344 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
23345 (morestack_ref): New var.
23346 (gen_add3_const, rs6000_expand_split_stack_prologue,
23347 rs6000_internal_arg_pointer, rs6000_live_on_entry,
23348 rs6000_split_stack_space_check): New functions.
23349 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
23350 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
23351 (UNSPECV_SPLIT_STACK_RETURN): Define.
23352 (split_stack_prologue, load_split_stack_limit,
23353 load_split_stack_limit_di, load_split_stack_limit_si,
23354 split_stack_return, split_stack_space_check): New expands and insns.
23355 * config/rs6000/rs6000-protos.h
23356 (rs6000_expand_split_stack_prologue): Declare.
23357 (rs6000_split_stack_space_check): Declare.
23359 2015-05-20 Alan Modra <amodra@gmail.com>
23361 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
23362 (direct_return): Test vrsave_size rather than vrsave_mask.
23363 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
23364 (rs6000_emit_epilogue): Likewise.
23366 2015-05-20 Alan Modra <amodra@gmail.com>
23368 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
23369 when not saving registers.
23370 (debug_stack_info): Adjust to omit printing unused offsets,
23372 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
23375 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23378 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
23379 value_type to const char *.
23381 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
23383 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
23384 to build a biarch toolchain again.
23386 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23388 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
23389 or implicit declarations.
23390 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
23392 (get_odr_type): Check type has linkage before adding bases.
23393 (register_odr_type): Check that type has linkage before adding it.
23394 (type_known_to_have_no_deriavations_p): Rename to ..
23395 (type_known_to_have_no_derivations_p): This one.
23396 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
23397 (type_known_to_have_no_derivations_p): This one.
23398 * ipa-polymorphic-call.c
23399 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
23402 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23404 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
23405 (layout_type): Use RECORD_OR_UNION_TYPE_P.
23407 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23409 * config/s390/s390.c (s390_vector_bool_type_p): New function.
23410 (s390_invalid_binary_op): New function.
23411 (TARGET_INVALID_BINARY_OP): Define macro.
23413 2015-05-19 David Sherwood <david.sherwood@arm.com>
23415 * loop-invariant.c (create_new_invariant): Don't calculate address cost
23416 if mode is not a scalar integer.
23417 (get_inv_cost): Increase computational cost for unused invariants.
23419 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23421 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
23422 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
23423 * config/s390/s390-builtin-types.def: New file.
23424 * config/s390/s390-builtins.def: New file.
23425 * config/s390/s390-builtins.h: New file.
23426 * config/s390/s390-c.c: New file.
23427 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
23428 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
23429 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
23430 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
23432 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
23434 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
23435 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
23436 variable definitions.
23437 (s390_const_operand_ok): New function.
23438 (s390_expand_builtin): Rewrite.
23439 (s390_init_builtins): New function.
23440 (s390_handle_vectorbool_attribute): New function.
23441 (s390_attribute_table): Add s390_vector_bool attribute.
23442 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
23443 (s390_branch_condition_mask): Generate masks for new modes.
23444 (s390_expand_vec_compare_cc): New function.
23445 (s390_mangle_type): Add mangling for vector bool types.
23446 (enum s390_builtin): Remove.
23447 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
23449 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
23450 s390_cpu_cpp_builtins.
23451 (REGISTER_TARGET_PRAGMAS): New macro.
23452 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
23453 (insn_cmp mode attribute): Add new CC modes.
23454 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
23455 (lcbb): New pattern definition.
23456 * config/s390/s390intrin.h: Include vecintrin.h.
23457 * config/s390/t-s390: New file.
23458 * config/s390/vecintrin.h: New file.
23459 * config/s390/vector.md: Include vx-builtins.md.
23460 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
23463 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23465 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
23467 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
23468 (s390_select_ccmode): Likewise.
23469 (s390_canonicalize_comparison): Swap operands if necessary.
23470 (s390_expand_vec_compare_scalar): Expand DFmode compare using
23471 single element vector instructions.
23472 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
23473 (s390_branch_condition_mask): Generate CC masks for the new modes.
23474 * config/s390/s390.md (v0, vf, vd): New mode attributes.
23475 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
23476 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
23477 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
23478 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
23479 (*extend<DSF:mode><BFP:mode>2): New insn definition.
23480 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
23481 (extend<DSF:mode><BFP:mode>2): Turn into expander.
23482 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
23483 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
23484 (sqrt<mode>2): Add vector instruction.
23486 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23488 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
23490 * config/s390/predicates.md (const0_operand, constm1_operand)
23491 (constable_operand): Accept vector operands.
23492 * config/s390/s390-modes.def: Add supported vector modes.
23493 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
23494 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
23495 (s390_bytemask_vector_p, s390_expand_vec_strlen)
23496 (s390_expand_vec_compare, s390_expand_vcond)
23497 (s390_expand_vec_init): Add prototypes.
23498 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
23499 (s390_vector_mode_supported_p): New function.
23500 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
23501 (s390_contiguous_bitmask_vector_p): New function.
23502 (s390_bytemask_vector_p): New function.
23503 (s390_split_ok_p): Vector regs don't work either.
23504 (regclass_map): Add VEC_REGS.
23505 (s390_legitimate_constant_p): Handle vector constants.
23506 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
23507 (legitimate_reload_vector_constant_p): New function.
23508 (s390_preferred_reload_class): Handle CONST_VECTOR.
23509 (s390_reload_symref_address): Likewise.
23510 (s390_secondary_reload): Vector memory instructions only support
23511 short displacements. Rename reload*_nonoffmem* to reload*_la*.
23512 (s390_emit_ccraw_jump): New function.
23513 (s390_expand_vec_strlen): New function.
23514 (s390_expand_vec_compare): New function.
23515 (s390_expand_vcond): New function.
23516 (s390_expand_vec_init): New function.
23517 (s390_dwarf_frame_reg_mode): New function.
23518 (print_operand): Handle addresses with 'O' and 'R' constraints.
23519 (NR_C_MODES, constant_modes): Add vector modes.
23520 (s390_output_pool_entry): Handle vector constants.
23521 (s390_hard_regno_mode_ok): Handle vector registers.
23522 (s390_class_max_nregs): Likewise.
23523 (s390_cannot_change_mode_class): New function.
23524 (s390_invalid_arg_for_unprototyped_fn): New function.
23525 (s390_function_arg_vector): New function.
23526 (s390_function_arg_float): Remove size variable.
23527 (s390_pass_by_reference): Handle vector arguments.
23528 (s390_function_arg_advance): Likewise.
23529 (s390_function_arg): Likewise.
23530 (s390_return_in_memory): Vector values are returned in a VR if
23532 (s390_function_and_libcall_value): Handle vector arguments.
23533 (s390_gimplify_va_arg): Likewise.
23534 (s390_call_saved_register_used): Consider the arguments named.
23535 (s390_conditional_register_usage): Disable v16-v31 for non-vec
23537 (s390_preferred_simd_mode): New function.
23538 (s390_support_vector_misalignment): New function.
23539 (s390_vector_alignment): New function.
23540 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
23541 (TARGET_VECTOR_MODE_SUPPORTED_P)
23542 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
23543 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
23544 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
23545 (TARGET_VECTOR_ALIGNMENT): Define target macro.
23546 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
23547 (FIRST_PSEUDO_REGISTER): Increase value.
23548 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
23549 (VECTOR_REG_P): Define macros.
23550 (FIXED_REGISTERS, CALL_USED_REGISTERS)
23551 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
23552 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
23553 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
23554 Add vector registers.
23555 (CANNOT_CHANGE_MODE_CLASS): Call C function.
23556 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
23557 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
23559 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
23560 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
23561 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
23562 (VR*_REGNUM): New constants.
23563 (ALL): New mode iterator.
23564 (INTALL): Remove mode iterator.
23566 (movti): Implement TImode moves for VRs.
23567 Disable TImode splitter for VR targets.
23568 Implement splitting TImode GPR<->VR moves.
23569 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
23570 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
23571 reload<mode>_la_in, reload<mode>_la_out.
23572 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
23573 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
23574 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
23575 (mov<mode> SF SD): Prefer lder, lde for loading.
23576 Add lrl and strl instructions.
23577 Add vector instructions.
23578 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
23579 Call s390_expand_vec_strlen on z13.
23580 (*cc_to_int): Change predicate to nonimmediate_operand.
23581 (addti3): Rename to *addti3. New expander.
23582 (subti3): Rename to *subti3. New expander.
23583 * config/s390/vector.md: New file.
23585 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23587 * common/config/s390/s390-common.c (processor_flags_table): Add
23589 * config.gcc: Add z13.
23590 * config/s390/s390-opts.h (enum processor_type): Add
23591 PROCESSOR_2964_Z13.
23592 * config/s390/s390.c (s390_adjust_priority): Check for
23593 PROCESSOR_2964_Z13.
23594 (s390_reorg): Likewise.
23595 (s390_sched_reorder): Likewise.
23596 (s390_sched_variable_issue): Likewise.
23597 (s390_loop_unroll_adjust): Likewise.
23598 (s390_option_override): Likewise. Default to -mvx when available.
23599 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
23600 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
23601 (TARGET_VX_ABI): Define macros.
23603 (TARGET_DEFAULT): Add MASK_OPT_VX.
23604 * config/s390/s390.md ("cpu" attribute): Add z13.
23605 ("cpu_facility" attribute): Add vec.
23606 * config/s390/s390.opt (processor_type): Add z13.
23607 (mvx): New options.
23608 * doc/invoke.texi: Add z13 option for -march.
23610 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23612 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
23613 mode check to make sure that only scalar integer values are
23616 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
23618 * tree.c (verify_type_variant): Fix #undef.
23619 (gimple_canonical_types_compatible_p): Move here from lto.c
23620 (verify_type): Verify TYPE_CANONICAL compatibility.
23621 * tree.h (gimple_canonical_types_compatible_p): Declare.
23623 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23625 PR middle-end/66199
23626 * tree.h (OMP_TEAMS_COMBINED): Define.
23627 * gimplify.c (enum gimplify_omp_var_data): Add
23628 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
23629 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
23630 (omp_notice_variable): Accept both ORT_TEAMS
23631 and ORT_COMBINED_TEAMS. Don't recurse if
23632 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
23633 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
23635 (omp_no_lastprivate): New function.
23636 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
23637 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
23638 notice_outer and set appropriate bits, otherwise make
23639 sure default(none) combined constructs won't complain.
23640 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
23641 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
23642 omp_no_lastprivate either remove the clause or turn it
23643 into OMP_CLAUSE_PRIVATE.
23644 (gimplify_omp_for): Fix up handling of implicit
23645 lastprivate or linear iterators.
23646 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
23647 ORT_COMBINED_TEAMS.
23648 * omp-low.c (lower_omp_for_lastprivate): For combined
23649 for simd use fd.loop.n2 from the for rather than simd.
23651 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23653 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
23654 instead of gen_rtx_raw_REG.
23655 (cris_expand_epilogue): Likewise.
23656 * config/microblaze/microblaze.c (microblaze_classify_address):
23658 * config/sparc/sparc.md: Likewise.
23660 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
23662 * config/alpha/alpha.c (alpha_legitimize_reload_address)
23663 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
23664 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
23665 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
23666 Use CASE_CONST_SCALAR_INT.
23667 (print_operand) <case 'M'>: Use mode_width_operand to check the
23668 value of the constant.
23669 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
23670 * config/alpha/predicates.md (input_operand): Use general_operand
23671 instead of match_code as operand check.
23672 (symbolic_operand): Use match_code with subexpression digits.
23673 * config/alpha/constraints.md (Q): Ditto.
23675 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23677 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
23679 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23681 * config/s390/s390.c (s390_secondary_reload): Fix check for
23682 load/store relative.
23684 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23686 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
23687 alternative_mask to uint64_t.
23689 2015-05-19 Jakub Jelinek <jakub@redhat.com>
23691 PR tree-optimization/66187
23692 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
23693 Pass TYPE_SIGN to tree_int_cst_min_precision. If
23694 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
23696 2015-05-19 David Malcolm <dmalcolm@redhat.com>
23698 * diagnostic.c (diagnostic_report_current_module): Strengthen
23699 local "new_map" from const line_map * to
23700 const line_map_ordinary *.
23701 * genmatch.c (error_cb): Likewise for local "map".
23702 (output_line_directive): Likewise for local "map".
23703 * input.c (expand_location_1): Likewise for local "map".
23704 Pass NULL rather than &map to
23705 linemap_unwind_to_first_non_reserved_loc, since the value is never
23706 read from there, and the value written back not read from here.
23707 (is_location_from_builtin_token): Strengthen local "map" from
23708 const line_map * to const line_map_ordinary *.
23709 (dump_location_info): Strengthen locals "map" from
23710 line_map *, one to const line_map_ordinary *, the other
23711 to const line_map_macro *.
23712 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
23713 const line_map * to const line_map_macro *.
23714 (maybe_unwind_expanded_macro_loc): Add a call to
23715 linemap_check_macro when writing to the "map" field of the
23717 Introduce local const line_map_ordinary * "ord_map", using it in
23718 place of "map" in the part of the function where we know we have
23719 an ordinary map. Strengthen local "m" from const line_map * to
23720 const line_map_ordinary *.
23722 2015-05-19 Nick Clifton <nickc@redhat.com>
23725 * config/msp430/msp430.md (zero_extendhisi2): Add support for
23726 separate source and destination registers.
23728 2015-05-19 Richard Biener <rguenther@suse.de>
23730 PR tree-optimization/66165
23731 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
23732 for no load permutation.
23734 PR tree-optimization/66185
23735 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
23736 when building the SLP node from scalars.
23738 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
23739 Tristan Gingold <gingold@adacore.com>
23741 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
23742 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
23743 (expand_stack_restore): Call record_new_stack_level.
23744 (expand_stack_save): Do not call do_pending_stack_adjust.
23745 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
23746 * calls.c (expand_call): Call record_new_stack_level for alloca.
23747 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
23748 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
23749 (update_sjlj_context): New global function.
23750 * except.h (update_sjlj_context): Declare.
23751 * explow.c (record_new_stack_level): New global function.
23752 (allocate_dynamic_stack_space): Call record_new_stack_level.
23753 * explow.h (record_new_stack_level): Declare.
23754 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
23755 * cfgrtl.c (duplicate_insn_chain): Likewise.
23757 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23759 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
23760 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
23761 STACK_GROWS_DOWNWARD as normal if.
23762 (expand_call): Likewise.
23764 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
23767 * config/sh/sh.md (*round_int_even): New insn_and_split and
23768 accompanying new unnamed split.
23770 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23772 * bitmap.c (bitmap_set_range): Handle count==1 specially.
23773 (bitmap_clear_range): Likewise.
23774 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
23775 bitmap_set_range unconditionally.
23776 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23777 * df-scan.c (df_mark_reg): Likewise.
23778 * haifa-sched.c (setup_ref_regs): Likewise.
23779 * sched-rgn.c (update_live_1): Likewise.
23781 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23783 * regs.h (END_HARD_REGNO): Delete.
23784 (END_REGNO): Move to...
23786 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
23787 * caller-save.c (mark_set_regs): Likewise.
23788 * combine.c (move_deaths, distribute_notes): Likewise.
23789 * cse.c (invalidate, invalidate_for_call): Likewise.
23790 * df-scan.c (df_ref_record): Likewise.
23791 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
23792 (record_last_reg_set_info): Likewise.
23793 * reg-stack.c (convert_regs_exit): Likewise.
23794 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
23795 * resource.c (update_live_status): Likewise.
23796 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
23798 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23800 * rtl.h (reg_info): Add an nregs field.
23801 (REG_NREGS): Use it.
23802 (SET_REGNO_RAW): Delete.
23803 (set_regno_raw): New function.
23804 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
23805 (END_REGNO): Redefine in terms of REG_NREGS.
23806 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
23808 * emit-rtl.c (set_mode_and_regno): Likewise.
23809 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
23810 instead of SET_REGNO_RAW.
23812 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23814 * rtl.h (PUT_MODE_RAW): New macro.
23815 (PUT_REG_NOTE_KIND): Use it.
23816 (set_mode_and_regno): Declare.
23817 (gen_raw_REG): Change regno to "unsigned int".
23818 (gen_rtx_REG): Change "unsigned" to "unsigned int".
23819 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
23820 use set_mode_and_regno to change the mode of registers.
23821 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
23822 * emit-rtl.c (set_mode_and_regno): New function.
23823 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
23824 * caller-save.c (reg_save_code): Use set_mode_and_regno.
23825 * expr.c (init_expr_target): Likewise.
23826 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23827 * postreload.c (reload_cse_simplify_operands): Likewise.
23829 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23831 * caller-save.c (init_caller_save): Use word_mode and
23832 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
23833 * expr.c (init_expr_target): Likewise.
23834 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23835 * postreload.c (reload_cse_regs_1): Likewise.
23837 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23839 * rtl.def (REG): Change format to "r".
23840 * rtl.h (rtunion): Remove rt_reg.
23841 (reg_info): New structure.
23842 (rtx_def): Add reg field to main union.
23843 (X0REGATTR): Delete.
23844 (REG_CHECK): New macro.
23845 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
23846 * rtl.c (rtx_format): Document "r".
23847 (rtx_code_size): Handle REG specially.
23848 * gengenrtl.c (special_format): Return true for formats
23850 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
23851 Deal with REG_ATTRS after the field loop.
23852 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
23853 * expmed.c (init_expmed): Call gen_raw_REG instead of
23855 * expr.c (init_expr_target): Likewise.
23856 * regcprop.c (maybe_mode_change): Likewise.
23857 * varasm.c (make_decl_rtl): Likewise.
23858 * final.c (leaf_renumber_regs_insn): Return early after
23860 * genemit.c (gen_exp): Handle 'r' fields.
23861 * genpeep.c (match_rtx): Likewise.
23862 * gensupport.c (subst_pattern_match): Likewise.
23863 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
23864 (alter_constraints, subst_dup): Likewise.
23865 * read-rtl.c (read_rtx_code): Likewise.
23866 * print-rtl.c (print_rtx): Likewise.
23867 * genrecog.c (find_operand, find_matching_operand): Likewise.
23868 (validate_pattern, match_pattern_2): Likewise.
23869 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
23870 (rtx_test::regno_field): New function.
23871 (operator ==, safe_to_hoist_p, transition_parameter_type)
23872 (parameter_type_string, print_parameter_value)
23873 (print_nonbool_test, print_test): Handle new enum values.
23874 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
23875 * lra-constraints.c (operands_match_p): Likewise.
23877 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23879 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
23880 Change type of new_regno to unsigned int.
23881 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
23882 new_regno to unsigned int.
23883 (df_ref_change_reg_with_loc): Remove old_regno parameter.
23884 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
23885 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
23886 (SET_REGNO_RAW): Add space after ",".
23888 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23890 * rtl.h (REG_NREGS): New macro
23891 * alias.c (record_set): Use it.
23892 * cfgcleanup.c (mark_effect): Likewise.
23893 * combine.c (likely_spilled_retval_1): Likewise.
23894 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
23895 (move_deaths, distribute_notes): Likewise.
23896 * cselib.c (cselib_record_set): Likewise.
23897 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
23898 * df-scan.c (df_mark_reg): Likewise.
23899 * dse.c (look_for_hardregs): Likewise.
23900 * dwarf2out.c (reg_loc_descriptor): Likewise.
23901 (multiple_reg_loc_descriptor): Likewise.
23902 * expr.c (write_complex_part, read_complex_part): Likewise.
23903 (emit_move_complex): Likewise.
23904 * haifa-sched.c (setup_ref_regs): Likewise.
23905 * ira-lives.c (mark_hard_reg_live): Likewise.
23906 * lra.c (lra_set_insn_recog_data): Likewise.
23907 * mode-switching.c (create_pre_exit): Likewise.
23908 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
23909 (reload_combine_recognize_pattern): Likewise.
23910 (reload_combine_note_use, move2add_record_mode): Likewise.
23911 (reload_cse_move2add): Likewise.
23912 * reg-stack.c (subst_stack_regs_pat): Likewise.
23913 * regcprop.c (kill_value, copy_value): Likewise.
23914 (copyprop_hardreg_forward_1): Likewise.
23915 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
23916 (build_def_use): Likewise.
23917 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
23918 (deps_analyze_insn): Likewise.
23919 * sched-rgn.c (check_live_1, update_live_1): Likewise.
23920 * sel-sched.c (count_occurrences_equiv): Likewise.
23921 * valtrack.c (dead_debug_insert_temp): Likewise.
23923 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
23925 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
23926 * dse.c (note_add_store): Likewise.
23927 * ira-lives.c (mark_hard_reg_dead): Likewise.
23928 * loop-invariant.c (mark_reg_store): Likewise.
23929 (mark_reg_death): Likewise.
23930 * postreload.c (reload_combine): Likewise.
23931 (reload_combine_note_store): Likewise.
23932 (reload_combine_note_use): Likewise.
23933 * recog.c (peep2_reg_dead_p): Likewise.
23935 2015-05-19 Alan Modra <amodra@gmail.com>
23937 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
23938 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
23939 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
23941 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
23942 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
23943 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
23944 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
23946 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
23948 * config/mips/mips.md (JOIN_MODE): New mode iterator.
23949 (join2_load_Store<JOIN_MODE:mode>): New pattern.
23950 (join2_loadhi): Likewise.
23951 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
23952 load-load and store-stores.
23953 * config/mips/mips.opt (mload-store-pairs): New option.
23954 (TARGET_LOAD_STORE_PAIRS): New macro.
23955 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
23956 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
23957 * config/mips/mips.c (mips_load_store_bonding_p): New function.
23959 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
23961 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
23963 * dojump.c (do_compare_rtx_and_jump): Likewise.
23964 * expmed.c (emit_store_flag_1): Likewise.
23965 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
23966 * final.c (sprint_ul): Use std::reverse for reversing a string.
23967 * fold-const.c (extract_muldiv_1): Use std::swap.
23968 * genmodes.c (emit_mode_int_n): Likewise.
23969 * ifcvt.c (dead_or_predicable): Likewise.
23970 * ira-build.c (ira_merge_live_ranges): Likewise.
23971 (swap_allocno_copy_ends_if_necessary): Likewise.
23972 * ira.c (ira_setup_alts): Likewise.
23973 * loop-iv.c (iv_analyze_expr): Likewise.
23974 (implies_p): Likewise.
23975 (canon_condition): Likewise.
23976 * lra-constraints.c (swap_operands): Likewise.
23977 * lra-lives.c (lra_merge_live_ranges): Likewise.
23978 * omega.c (swap): Remove.
23980 (omega_unprotect_1): Use std::swap.
23981 (omega_solve_geq): Likewise.
23982 * optabs.c (expand_binop_directly): Likewise.
23983 (expand_binop): Likewise.
23984 (emit_conditional_move): Likewise.
23985 (emit_conditional_add): Likewise.
23986 * postreload.c (reload_cse_simplify_operands): Likewise.
23987 * reg-stack.c (emit_swap_insn): Likewise.
23988 (swap_to_top): Likewise.
23989 (compare_for_stack_reg): Likewise.
23990 (subst_asm_stack_regs): Likewise.
23991 * reload.c (find_reloads): Likewise.
23992 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
23993 * sel-sched.c (invoke_reorder_hooks): Likewise.
23994 (create_block_for_bookkeeping): Likewise.
23995 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
23996 (lambda_matrix_right_hermite): Use std::swap.
23997 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
23998 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
23999 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
24000 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
24001 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
24002 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
24003 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
24004 * tree-vrp.c (compare_ranges): Likewise.
24005 * var-tracking.c (add_with_sets): Likewise.
24006 (vt_find_locations): Likewise.
24008 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
24010 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
24012 (FBSD_ENDFILE_SPEC): Likewise.
24013 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
24014 config/freebsd-spec.h.
24015 (ENDFILE_SPEC): Likewise.
24017 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
24018 Richard Henderson <rth@redhat.com>
24021 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
24022 Check for a memory location that is not a reference (using an AND)
24023 to an unaligned location here.
24024 * config/alpha/predicates.md (normal_memory_operand): Remove.
24026 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
24028 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
24029 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
24031 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
24033 * config/mips/mips.c (micromips_globals): New variable.
24034 (mips_set_compression_mode): Save and reinitialize target-dependent
24035 state for microMIPS.
24037 2015-05-18 Martin Liska <mliska@suse.cz>
24039 * dbgcnt.def: Add new counter.
24040 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
24042 2015-05-18 Martin Liska <mliska@suse.cz>
24044 * dbgcnt.def: Sort counters.
24045 * opts.c (common_handle_option): Do not compile if
24046 -fdbg-cnt-list is enabled.
24048 2015-05-18 Tom de Vries <tom@codesourcery.com>
24050 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
24051 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
24052 address operator to va_list operand.
24053 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
24055 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
24057 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
24058 * config/s390/s390.c (s390_gimplify_va_arg): Same.
24059 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
24061 2015-05-18 Tom de Vries <tom@codesourcery.com>
24063 * tree-ssa-tail-merge.c: Fix whitespace.
24065 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
24067 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
24068 cortex-a17, and cortex-a17.cortex-a7.
24070 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
24073 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
24075 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
24078 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
24079 QImode inner modes for TARGET_AVX512BW. Force mask operand
24080 to a register for AVX512F modes.
24082 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24084 * toplev.c (emit_debug_global_declarations): Do not output debug info
24085 when doing slim LTO objects.
24087 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24089 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
24090 odr_types_equivalent_p): Declare.
24091 (odr_type_p): Use gcc_checking_assert.
24092 (type_in_anonymous_namespace_p) Declare.
24093 (type_with_linkage_p): Declare.
24094 * common.opt (Wlto-type-mismatch): New warning.
24095 * ipa-devirt.c (compound_type_base): New function.
24096 (odr_or_derived_type_p): New function.
24097 (odr_types_equivalent_p): New function.
24098 (add_type_duplicate): Simplify.
24099 (type_with_linkage_p): Add hack to prevent false positives on C types
24100 (type_in_anonymous_namespace_p): Likewise.
24101 * tree.c (need_assembler_name_p): Use type_with_linkage.
24102 * tree.h (type_in_anonymous_namespace_p): Remove.
24103 * doc/invoke.texi (-Wlto-type-mismatch): Document
24105 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
24107 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
24108 (verify_type): Verify STRING_FLAG.
24110 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
24113 * tree-pretty-print.c (percent_K_format): Replace locus pointer
24114 with accessor function.
24115 * tree-diagnostic.c (diagnostic_report_current_function): Use
24116 diagnostic_location function.
24117 (maybe_unwind_expanded_macro_loc): Likewise.
24118 (virt_loc_aware_diagnostic_finalizer): Likewise.
24119 (default_tree_printer): Replace locus pointer with accessor function.
24120 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
24121 (diagnostic_set_info_translated): Initialize second location.
24122 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
24123 (diagnostic_show_locus): Handle two locations. Call
24124 diagnostic_print_caret_line.
24125 (diagnostic_print_caret_line): New.
24126 (default_diagnostic_starter): Use diagnostic_location function.
24127 (diagnostic_report_diagnostic): Use diagnostic_location function.
24128 (verbatim): Do not set text.locus.
24129 * diagnostic.h (struct diagnostic_info): Remove location field.
24130 (struct diagnostic_context): Make caret_chars an array of two.
24131 (diagnostic_location): New inline.
24132 (diagnostic_expand_location): Handle two locations.
24133 (diagnostic_same_line): New inline.
24134 (diagnostic_print_caret_line): Declare.
24135 (CARET_LINE_MARGIN): New constant.
24136 * pretty-print.c (pp_printf): Do not set text.locus.
24137 (pp_verbatim): Do not set text.locus.
24138 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
24139 (struct text_info): Replace locus pointer with locations
24140 array. Add accessor functions.
24142 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
24143 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24146 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
24147 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
24148 large constants in register instead of splitting them.
24150 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
24153 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
24154 replacements in memory addresses.
24155 (get_unaligned_address): Ditto.
24157 2015-05-16 James Bowman <james.bowman@ftdichip.com>
24159 * config/ft32/*: New files for FT32 port.
24160 * doc/install.texi: Add FT32 information.
24161 * doc/invoke.texi: Add FT32 information.
24162 * doc/md.texi: Add FT32 information.
24163 * doc/contrib.texi: Self added.
24165 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
24167 PR tree-optimization/64454
24168 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
24169 (-1 - A -> ~A): Remove unnecessary condition.
24171 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
24173 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
24174 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
24175 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
24177 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
24179 * ipa-chkp.h (chkp_wrap_function): New.
24180 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
24181 (chkp_wrap_function_name): New.
24182 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
24183 to get wrapper name.
24184 * lto-cgraph.c: Include ipa-chkp.h.
24185 (input_cgraph_1): Avoid alias chain for wrappers.
24187 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
24189 PR middle-end/66134
24190 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
24191 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
24193 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24195 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
24196 (AARCH64_FL_SLOWMUL): Delete.
24197 (AARCH64_FL_CRC): Redefine to 1<<3.
24198 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
24200 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24202 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
24205 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24207 * config/alpha/alpha.md (extendqidi2): Use general_operand
24208 instead of some_operand for operand[1] predicate.
24209 (extendhidi2): Ditto.
24210 (cbranchdi4): Use general_operand instead of some_operand
24211 for operand[1] and operands[2] predicates.
24212 (cstoredi4): Ditto.
24213 * config/alpha/predicates.md (some_operand): Remove unused predicate.
24214 (some_ni_operand): Ditto.
24216 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
24218 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
24219 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
24220 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
24221 low part of the constant using alpha_emit_set_const_1.
24222 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
24224 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
24226 * varasm.c (output_constant_pool_1): Pass down alignment from
24227 constant pool entry's descriptor to output_constant_pool_2.
24228 (output_object_block): Add comment prior to call to
24229 output_constant_pool_1.
24231 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
24233 PR rtl-optimization/65862
24234 * target.def (ira_change_pseudo_allocno_class): New hook.
24235 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
24237 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
24238 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
24240 * ira-costs.c (find_costs_and_classes): Call the hook and change
24241 classes when it is necessary.
24242 * doc/tm.texi: Update.
24244 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
24246 * config/i386/i386.md (sibcall_memory): Check that register with
24247 callee address is not also used as one of the arguments, instead
24248 of checking that it is not live after the sibcall.
24249 (sibcall_pop_memory): Ditto.
24250 (sibcall_value_memory): Ditto.
24251 (sibcall_value_pop_memory): Ditto.
24253 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
24255 * generic-match-head.c (types_match): Handle non-types.
24256 * gimple-match-head.c (types_match): Likewise.
24257 * match.pd: Remove unnecessary TREE_TYPE for types_match.
24259 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
24261 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
24262 (csneg3<mode>_insn): Enable expansion of pattern.
24264 2015-05-14 Nick Clifton <nickc@redhat.com>
24266 * config/rl78/rl78.c (rl78_select_section): Select the correct
24267 default section based upon the category of the decl.
24269 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24271 PR rtl-optimization/30967
24272 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
24273 destination mode for the cost of scc patterns.
24275 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24277 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
24278 using SWIM248 mode iterator.
24279 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
24280 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
24281 for operand[2] constraint.
24282 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
24284 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24286 PR middle-end/66133
24287 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
24288 make sure it is never noreturn, even when the task body does not
24290 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
24291 right before GIMPLE_OMP_RETURN.
24292 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
24293 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
24294 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
24296 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24298 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
24299 * tree-ssa-math-opts.c: Include params.h
24300 (pow_synth_sqrt_info): New struct.
24301 (representable_as_half_series_p): New function.
24302 (get_fn_chain): Likewise.
24303 (print_nested_fn): Likewise.
24304 (dump_fractional_sqrt_sequence): Likewise.
24305 (dump_integer_part): Likewise.
24306 (expand_pow_as_sqrts): Likewise.
24307 (gimple_expand_builtin_pow): Use above to attempt to expand
24308 pow as series of square roots. Removed now unused variables.
24310 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
24312 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
24313 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
24314 Remove *p0 and *p1 arguments. Rewrite function.
24315 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
24316 (alpha_split_const_mov): Update calls to alpha_extract_integer and
24317 alpha_emit_set_long_const.
24318 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
24319 (alpha_output_mi_thunk_osf): Ditto.
24320 * config/alpha/alpha.md (movti): Do not check operands[1]
24323 2015-05-13 Richard Biener <rguenther@suse.de>
24325 PR tree-optimization/66129
24326 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
24328 (vect_schedule_slp_instance): Fix typo.
24330 2015-05-13 David Malcolm <dmalcolm@redhat.com>
24332 * common.opt (fdump-internal-locations): New option.
24333 * input.c: Include diagnostic-core.h.
24334 (get_end_location): New function.
24335 (write_digit): New function.
24336 (write_digit_row): New function.
24337 (dump_location_range): New function.
24338 (dump_labelled_location_range): New function.
24339 (dump_location_info): New function.
24340 * input.h (dump_location_info): New prototype.
24341 * toplev.c (compile_file): Handle flag_dump_locations.
24343 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
24345 * gimple-expr.h (is_gimple_constant): Reorder.
24346 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
24348 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
24350 * combine.c (simplify_set): When generating a CC set, if the
24351 source already is in the correct mode, do not wrap it in a
24352 compare. Simplify the rest of that code.
24354 2015-05-13 Richard Biener <rguenther@suse.de>
24356 PR tree-optimization/66123
24357 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
24360 2015-05-13 Richard Biener <rguenther@suse.de>
24362 PR middle-end/66110
24363 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
24365 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
24367 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
24369 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
24370 * aclocal.m4: Regenerated with automake-1.11.6.
24372 2015-05-13 Tom de Vries <tom@codesourcery.com>
24374 PR tree-optimization/66010
24375 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
24376 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
24377 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
24378 and rval based on do_deref.
24380 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24383 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
24384 link time constants into adress expressions and therefore set
24387 2015-05-13 Jakub Jelinek <jakub@redhat.com>
24390 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
24391 Use SWI248 iterator instead of SWI.
24392 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
24393 Use eq_attr "alternative" "0" instead of match_test in
24394 length_immediate attribute computation.
24395 (*mulvhi4, *mulvhi4_1): New define_insns.
24398 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
24399 SIGNED to get precision of non-negative value.
24401 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
24404 * function.c (diddle_return_value_1): Process bounds first.
24405 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
24408 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24410 PR rtl-optimization/64616
24411 * loop-invariant.c (can_move_invariant_reg): New.
24412 (move_invariant_reg): Call above new function to decide whether
24413 instruction can just be moved, skipping creation of temporary
24416 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24418 PR target/pr66047.c
24419 * i386.c (ix86_function_sseregparm): Only return -1 if local function
24420 with implied regparm is called from -mno-sse function.
24421 (init_cumulative_args): Output error if ix86_function_sseregparm
24422 return -1 and SSE register would be needed.
24423 (function_arg_advance_32): Likewise.
24424 (function_arg_32): Likewise.
24425 * i386.h (ix86_args): Add decl field.
24427 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24430 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
24431 inlines across optimization boundary.
24433 2015-05-12 Jason Merrill <jason@redhat.com>
24435 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
24436 string literal and macro name.
24438 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
24440 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
24441 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
24442 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
24444 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24446 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
24447 (-Wmisleading-indentation): New option.
24448 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
24450 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
24452 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
24453 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
24454 (alpha_extract_integer): Ditto.
24455 (alpha_legitimate_constant_p): Ditto.
24456 (alpha_split_tmode_pair): Ditto.
24457 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
24458 (alpha_expand_mov): Ditto.
24459 (print_operand): Remove handling of 'H' modifier.
24460 <case 'm'>: Remove CONST_DOUBLE handling.
24461 (summarize_insn): Handle CONST_WIDE_INT.
24462 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
24464 (movti): Handle CONST_WIDE_INT.
24465 * config/alpha/constraints.md ('H'): Remove constraint definition.
24466 ('G'): Do not match MODE_FLOAT class.
24467 * config/alpha/predicates.md (const0_operand): Also match
24469 (non_add_const_operand): Ditto.
24470 (non_zero_const_operand): Ditto.
24471 (some_operand): Ditto.
24472 (input_operand): Ditto. Handle CONST_WIDE_INT.
24473 (and_operand): Do not match const_double.
24474 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
24476 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
24479 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
24480 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
24481 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
24482 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
24483 is_mm_seq_cst, is_mm_sync): New accessor functions.
24484 * builtins.c (expand_builtin_sync_operation,
24485 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
24486 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
24487 (get_memmodel, expand_builtin_atomic_compare_exchange,
24488 expand_builtin_atomic_load, expand_builtin_atomic_store,
24489 expand_builtin_atomic_clear): Use new accessor routines.
24490 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
24491 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
24492 (maybe_emit_sync_lock_test_and_set): Use new accessors and
24493 MEMMODEL_SYNC_ACQUIRE.
24494 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
24495 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
24496 expand_atomic_store): Use new accessors.
24497 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
24498 * tsan.c (instrument_builtin_call): Update check for memory model beyond
24499 final enum to use MEMMODEL_LAST.
24500 * c-family/c-common.c: Use new accessor for memmodel_base.
24501 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
24503 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
24504 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
24505 mem_thread_fence, *dmb): Likewise.
24506 * config/alpha/alpha.c (alpha_split_compare_and_swap,
24507 alpha_split_compare_and_swap_12): Likewise.
24508 * config/arm/arm.c (arm_expand_compare_and_swap,
24509 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
24510 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
24511 atomic_loaddi): Likewise.
24512 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
24514 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
24515 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
24517 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
24518 atomic_store<mode>, atomic_compare_and_swap<mode>,
24519 atomic_exchange<mode>): Use new accessors.
24520 * config/mips/mips.c (mips_process_sync_loop): Likewise.
24521 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
24522 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
24523 rs6000_post_atomic_barrier): Add new cases.
24524 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
24525 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
24526 (atomic_load<mode>): Add new cases and use new accessors.
24527 (store_quadpti): Add new cases.
24528 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
24530 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
24531 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
24534 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
24536 * ipa-devirt.c (type_with_linkage_p): New function.
24537 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
24539 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
24540 (can_be_name_hashed_p): Simplify.
24541 (hash_odr_name): Check that type has linkage before checking if it is
24543 (types_same_for_odr): Likewise.
24544 (odr_name_hasher::equal): Likewise.
24545 (odr_subtypes_equivalent_p): Likewise.
24546 (warn_types_mismatch): Likewise.
24547 (get_odr_type): Likewise.
24548 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
24549 * ipa-utils.h (odr_type_p): Move offline.
24550 * tree.c (need_assembler_name_p): Fix handling of types
24552 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
24554 2015-05-12 David Malcolm <dmalcolm@redhat.com>
24556 * timevar.c (timevar_enable): Delete in favor of...
24557 (g_timer): New global.
24558 (struct timevar_def): Move to timevar.h inside class timer.
24559 (struct timevar_stack_def): Likewise.
24560 (timevars): Delete global in favor of field "m_timevars" within
24561 class timer in timevar.h
24562 (stack): Likewise, in favor of field "m_stack".
24563 (unused_stack_instances): Likewise, in favor of field
24564 "m_unused_stack_instances".
24565 (start_time): Likewise, in favor of field "m_start_time".
24566 (get_time): Eliminate check for timevar_enable.
24567 (timer::timer): New function, built from part of timevar_init.
24568 (timevar_init): Rewrite idempotency test from using
24569 "timevar_enable" bool to using dynamic allocation of "g_timer".
24570 Move rest of implementation into timer's constructor.
24571 (timevar_push_1): Rename to...
24572 (timer::push): ...this, adding "m_" prefixes to variables that
24573 are now fields of timer.
24574 (timevar_pop_1): Likewise, rename to...
24575 (timer::pop): ...this, and add "m_" prefixes.
24576 (timevar_start): Replace test for "timevar_enable" with one for
24577 "g_timer", and move bulk of implementation to...
24578 (timer::start): ...here, adding "m_" prefixes.
24579 (timevar_stop): Likewise, from here...
24580 (timer::stop): ...to here.
24581 (timevar_cond_start): Likewise, from here...
24582 (timer::cond_start): ...to here.
24583 (timevar_cond_stop): Likewise, from here...
24584 (timer::cond_stop): ...to here.
24585 (validate_phases): Rename to...
24586 (timer::validate_phases): ...this, and add "m_" prefixes. Make
24587 locals "total" and "tv" const.
24588 (timevar_print): Rename to...
24589 (timer::print): ...this, and add "m_" prefixes. Make locals
24590 "total" and "tv" const. Eliminate test for timevar_enable.
24591 * timevar.h (timevar_enable): Eliminate.
24592 (g_timer): New declaration.
24593 (timevar_push_1): Eliminate.
24594 (timevar_pop_1): Eliminate.
24595 (timevar_print): Eliminate.
24596 (class timer): New class.
24597 (timevar_push): Rewrite to use g_timer.
24598 (timevar_pop): Likewise.
24599 * toplev.c (toplev::~toplev): Likewise.
24601 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
24603 * arm-protos.h (arm_sched_autopref): Delete.
24604 (tune_params): Re-organize, use enums for flag values.
24605 (FUSE_OPS): New macro.
24606 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
24607 (ARM_PREFETCH_BENEFICIAL): Likewise.
24608 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
24609 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24610 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
24611 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
24612 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
24613 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
24614 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
24615 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
24617 (arm_option_override, thumb2_reorg, arm_print_tune_info)
24618 (aarch_macro_fusion_pair_p): Update uses of current_tune.
24619 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
24621 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
24623 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
24626 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
24627 Sandra Loosemore <sandra@codesourcery.com>
24629 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
24631 (REG_CLASS_NAMES): Add "IJMP_REGS".
24632 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
24633 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
24634 use new "c" register constraint.
24635 * config/nios2/constraint.md (c): New register constraint
24636 corresponding to IJMP_REGS.
24638 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24640 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
24641 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
24642 define_splits): Delete, revamp, transmogrify into ...
24643 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
24644 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
24645 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
24648 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24650 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
24651 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
24653 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24655 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
24656 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
24657 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
24658 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
24659 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
24660 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
24661 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
24662 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
24663 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
24664 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24665 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
24666 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
24667 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
24668 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
24669 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
24670 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
24671 and 30 corresponding splitters): Delete.
24673 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24675 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
24678 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24680 * combine.c (recog_for_combine_1): New function, factored out
24681 from recog_for_combine.
24682 (change_zero_ext): New function.
24683 (recog_for_combine): If recog fails, try again with the pattern
24684 modified by change_zero_ext; if that still fails, restore the
24687 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
24689 * combine.c (get_undo_marker): New function.
24690 (undo_to_marker): New function, largely factored out from ...
24691 (undo_all): ... this. Adjust.
24693 2015-05-12 Richard Biener <rguenther@suse.de>
24695 PR tree-optimization/66101
24696 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
24697 fixup if we turn a loop exit edge to a fallthru edge.
24699 2015-05-12 Richard Biener <rguenther@suse.de>
24701 PR tree-optimization/37021
24702 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
24703 (SLP_TREE_TWO_OPERATORS): New define.
24704 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
24705 SLP_TREE_TWO_OPERATORS.
24706 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
24708 (vect_build_slp_tree): Adjust.
24709 (vect_analyze_slp_cost_1): Likewise.
24710 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
24711 emitting two vector stmts and mixing the results.
24713 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
24715 * call.c (print_z_candidates): Remove dead code.
24717 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24719 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
24720 and zEC12_simple_fp.
24721 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
24724 2015-05-12 Tom de Vries <tom@codesourcery.com>
24726 PR tree-optimization/66010
24727 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
24729 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
24730 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
24731 va_lists are passed, and remove corresponding handling.
24732 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
24733 do_deref argument to ifn_va_arg.
24734 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
24737 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24740 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
24741 REG before taking its REGNO.
24743 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
24745 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
24746 rsp->sign_bit_copies and rsp->nonzero_bits into ...
24747 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
24748 present to get more accurate information about the number of sign bit
24749 copies and non zero bits.
24751 2015-05-12 Richard Biener <rguenther@suse.de>
24753 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
24754 do not allow unrolling.
24756 2015-05-11 Richard Henderson <rth@redhat.com>
24758 * config/i386/i386-modes.def (CCP): New.
24759 * config/i386/i386.c (put_condition_code): Handle it.
24760 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
24762 2015-05-11 Richard Henderson <rth@redhat.com>
24764 * target.def (md_asm_clobbers): Replace with...
24765 (md_asm_adjust): this.
24766 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
24767 (TARGET_MD_ASM_ADJUST): New.
24768 * tm.texi: Rebuild.
24769 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
24770 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
24771 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
24773 * cfgexpand.c (check_operand_nalternatives): Accept vector of
24774 constraints instead of lists of outputs and inputs.
24775 (expand_asm_stmt): Save and restore input_location around the
24776 body of the function. Move asm data into vectors instead of
24777 building tree lists. Generate cleanup sequences as needed,
24778 rather than waiting til the end. Use new md_asm_adjust hook.
24780 * config/vxworks.c: Include vec.h before target.h.
24781 * gimple.c: Likewise.
24782 * incpath.c: Likewise.
24783 * mode-switching.c: Likewise.
24785 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
24786 (cris_md_asm_adjust): this.
24787 (TARGET_MD_ASM_CLOBBERS): Remove.
24788 (TARGET_MD_ASM_ADJUST): New.
24789 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
24790 (ix86_md_asm_adjust): this.
24791 (TARGET_MD_ASM_CLOBBERS): Remove.
24792 (TARGET_MD_ASM_ADJUST): New.
24793 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
24794 (mn10300_md_asm_adjust): this.
24795 (TARGET_MD_ASM_CLOBBERS): Remove.
24796 (TARGET_MD_ASM_ADJUST): New.
24797 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
24798 (rs6000_md_asm_adjust): this.
24799 (TARGET_MD_ASM_CLOBBERS): Remove.
24800 (TARGET_MD_ASM_ADJUST): New.
24801 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
24802 (visium_md_asm_adjust): this.
24803 (TARGET_MD_ASM_CLOBBERS): Remove.
24804 (TARGET_MD_ASM_ADJUST): New.
24806 2015-05-11 Richard Henderson <rth@redhat.com>
24808 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
24809 if noutputs is zero.
24810 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
24812 * cfgexpand.c (expand_asm_operands): Merge into...
24813 (expand_asm_stmt): ... here.
24815 * cfgexpand.c (expand_asm_operands): Don't call
24816 resolve_asm_operand_names.
24817 * stmt.c (resolve_asm_operand_names): Clarify block comment.
24819 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
24821 * dwarf2out.c (gen_member_die): Sanity check that we access
24822 TYPE_MAIN_VARIANT for TYPE_METHODS.
24823 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
24824 checking TYPE_METHODS.
24825 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
24827 (build_distinct_type_copy): Clear TYPE_METHODS.
24828 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
24829 (verify_type): Allow TYPE_METHODS to be error_mark_node.
24830 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
24832 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
24834 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
24835 (emit_pattern_before_setloc): Likewise.
24837 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24839 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
24840 for define_peephole2s.
24841 (get_peephole2_pattern): New function.
24842 (main): Use it. Call validate_pattern.
24844 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24846 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
24847 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
24848 (Last callee saved reg is different for AVR_TINY architecture)
24850 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24852 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
24853 when looking for memory references.
24855 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24858 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
24859 via function pointers.
24861 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
24863 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
24864 indirect call by forcing address into a pseudo with -fno-plt.
24865 * common.opt (flag_plt): New option.
24866 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
24867 ([-fno-plt]): Document.
24869 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
24872 * config/rs6000/option-defaults.h: Add space between string literal
24875 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
24877 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
24878 accross ARM targets.
24880 2015-05-11 Christian Bruel <christian.bruel@st.com>
24882 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
24883 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
24885 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
24887 PR rtl-optimization/66076
24888 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
24889 Don't grow the heap array if it is already big enough from a
24890 previous iteration.
24892 2015-05-11 Christian Bruel <christian.bruel@st.com>
24894 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
24895 (is_called_in_ARM_mode): Remove.
24896 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
24897 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
24898 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
24899 arm_declare_function_name.
24901 2015-05-11 Christian Bruel <christian.bruel@st.com>
24903 * config/arm/arm.c (arm_option_override): Reoganized and split into :
24904 (arm_option_params_internal); New function.
24905 (arm_option_check_internal): New function.
24906 (arm_option_override_internal): New function.
24907 (thumb_code, thumb1_code): Remove.
24908 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
24909 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
24910 (thumb_code, thumb1_code): Remove.
24911 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
24913 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
24915 * config/alpha/alpha.c (alpha_emit_set_const_1)
24916 (alpha_emit_set_long_const, alpha_extract_integer)
24917 (alpha_legitimate_constant_p, alpha_split_const_mov)
24918 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
24919 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24920 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
24922 * config/alpha/predicates.md (mode_mask_operand): Do not match
24924 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24925 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
24926 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
24927 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
24928 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
24930 2015-05-11 Jakub Jelinek <jakub@redhat.com>
24933 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
24934 default_binds_local_p_2.
24935 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
24936 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
24938 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24940 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
24942 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24944 Patch by Richard Biener
24945 * coverage.c (coverage_obj_init): Delay building of type variant
24946 until the type is finished.
24948 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24950 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
24951 mismatch between C and C++ type; compoare correctly ARG_TYPES
24952 for non-prototypes and output correctly parameter index for METHOD_TYPE.
24953 (odr_types_equivalent_p): Fix wording of warning about attributes;
24954 it is OK to match prototype and non-prototype.
24956 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24958 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
24959 TYPE_ARG_TYPES list.
24960 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
24961 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
24963 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
24965 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
24966 * tree.h (is_lang_specific): Constify.
24968 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
24970 PR tree-optimization/64454
24971 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
24974 2015-05-08 Jason Merrill <jason@redhat.com>
24976 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
24977 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
24978 config/darwin.h, config/darwin9.h, config/elfos.h,
24979 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
24980 config/microblaze/microblaze.h, config/mips/mips.h,
24981 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
24982 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
24983 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
24984 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
24985 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
24986 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
24987 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
24988 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
24989 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
24990 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
24991 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
24992 between string literal and macro name.
24994 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24996 * jump.c: Change argument types to rtx_insn *.
24999 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25001 * lra-constraints.c: Change argument type to rtx_insn *.
25003 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25005 * df-problems.c: Change argument type to rtx_insn *.
25007 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25009 * combine.c: Change argument type to rtx_insn *.
25011 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25014 * rtlanal.c: Change argument type to rtx_insn *.
25016 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25018 * sched-deps.c: Change argument types to rtx_insn *.
25019 * sched-int.h: Adjust.
25021 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25023 * dwarf2cfi.c: Change argument type to rtx_insn *.
25025 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25027 * ira.c (decrease_live_ranges_number): Changetype of local
25028 variable to rtx_insn *.
25029 * recog.c: Change argument types to rtx_insn *.
25032 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25034 * reorg.c: Change argument types to rtx_insn *.
25036 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25038 * ira-color.c: Change argument types to rtx_insn *.
25039 * lra-eliminations.c: Likewise.
25042 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25044 * gcse.c: Change argument types to rtx_insn *.
25046 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25048 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
25050 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25052 * emit-rtl.c (emit_debug_insn_before): Change argument type to
25056 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25058 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
25061 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25063 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
25066 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25068 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
25071 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25073 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
25076 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25078 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
25082 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25084 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
25088 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25090 * except.c (can_nonlocal_goto): Change type of argument to
25094 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25096 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
25099 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25101 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
25102 * cfgrtl.c (can_delete_label_p): Adjust.
25105 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25107 * reorg.c (stop_search_p): Change argument to rtx_insn *.
25109 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25111 * except.c (make_reg_eh_region_note): Change argument to
25113 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
25114 * except.h: Adjust.
25116 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25118 * mode-switching.c (commit_mode_sets): Change type of local
25119 variable from rtx to rtx_insn *.
25121 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
25123 * doc/install.texi (--enable-languages): Add missing jit and lto info.
25124 Add ^ to grep command.
25125 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
25126 arg to last gimple_simplify declaration. Add missing gimple_build
25127 declaration for built-in function case with four tree args.
25129 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
25130 Szabolcs Nagy <szabolcs.nagy@arm.com>
25132 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
25133 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
25134 (GNU_USER_DYNAMIC_LINKERN32): Update.
25136 2015-05-08 Richard Biener <rguenther@suse.de>
25138 PR tree-optimization/66036
25139 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
25140 Handle strided group loads.
25141 (vect_verify_datarefs_alignment): Likewise.
25142 (vect_enhance_data_refs_alignment): Likewise.
25143 (vect_analyze_group_access): Likewise.
25144 (vect_analyze_data_ref_access): Likewise.
25145 (vect_analyze_data_ref_accesses): Likewise.
25146 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
25147 (vectorizable_load): Likewise.
25149 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
25151 * config/rs6000/rs6000.md: Require operand inequality in one
25154 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
25155 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
25157 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
25159 * config/rx/rx.md (movdi, movdf): Likewise.
25160 Likewise for define_peephole2s.
25162 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25164 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
25165 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
25166 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
25167 vtst_u64): Rewrite using gcc vector extensions.
25169 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25171 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
25172 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
25174 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
25176 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
25178 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
25180 * config/glibc-stdint.h (OPTION_MUSL): Define.
25181 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
25182 Change the definition based on OPTION_MUSL for 64 bit targets.
25183 * config/linux.h (OPTION_MUSL): Redefine.
25184 * config/alpha/linux.h (OPTION_MUSL): Redefine.
25185 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
25186 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
25188 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
25189 Szabolcs Nagy <szabolcs.nagy@arm.com>
25191 * config.gcc (LIBC_MUSL): New tm_defines macro.
25192 * config/linux.h (OPTION_MUSL): Define.
25193 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
25194 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
25195 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
25196 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
25197 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
25198 * config/linux.opt (mmusl): New option.
25199 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
25200 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
25201 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
25202 * configure: Regenerate.
25204 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
25205 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25208 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
25209 * config/i386/knetbsd-gnu64.h: New file.
25211 2015-05-08 Marek Polacek <polacek@redhat.com>
25214 * doc/invoke.texi: Document -Woverride-init-side-effects.
25216 2015-05-07 Marek Polacek <polacek@redhat.com>
25219 * doc/invoke.texi: Document -Wshift-negative-value.
25221 2015-05-06 Aditya Kumar <hiraditya@msn.com>
25223 * gcov-tool.c (do_merge): Refactore to remove int ret.
25224 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
25225 !type == FUNC to type != FUNC.
25226 * reload.h (struct target_reload): Changee to type of
25227 x_spill_indirect_levels from bool to unsigned char.
25229 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
25231 * rtl.h (always_void_p): New function.
25232 * gengenrtl.c (always_void_p): Likewise.
25233 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
25234 with code foo are always VOIDmode.
25235 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
25236 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
25237 compare-elim.c, config/aarch64/aarch64.c,
25238 config/aarch64/aarch64.md, config/alpha/alpha.c,
25239 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
25240 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
25241 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
25242 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25243 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
25244 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
25245 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
25246 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
25247 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
25248 config/ia64/vect.md, config/iq2000/iq2000.c,
25249 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
25250 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
25251 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
25252 config/mep/mep.c, config/microblaze/microblaze.c,
25253 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
25254 config/mn10300/mn10300.c, config/msp430/msp430.c,
25255 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
25256 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
25257 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
25258 config/rs6000/altivec.md, config/rs6000/rs6000.c,
25259 config/rs6000/rs6000.md, config/rs6000/vector.md,
25260 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
25261 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
25262 config/sh/sh.md, config/sh/sh_treg_combine.cc,
25263 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
25264 config/spu/spu.md, config/stormy16/stormy16.c,
25265 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
25266 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
25267 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
25268 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
25269 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
25270 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
25271 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
25272 var-tracking.c: Update calls accordingly.
25274 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25277 PR middle-end/54303
25278 * varasm.c (function_mergeable_rodata_prefix): New function.
25279 (mergeable_string_section): Use it.
25280 (mergeable_constant_section): Use it.
25282 2015-05-07 Jeff Law <law@redhat.com>
25285 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25286 simplifier to narrow arithmetic.
25287 * generic-match-head.c: (types_match, single_use): New functions.
25288 * gimple-match-head.c: (types_match, single_use): New functions.
25290 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25292 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
25295 2015-05-07 Richard Biener <rguenther@suse.de>
25297 PR tree-optimization/66002
25298 * passes.def: Schedule another pass_merge_phi after ifcombine, right
25301 2015-05-07 Marek Polacek <polacek@redhat.com>
25302 Martin Uecker <uecker@eecs.berkeley.edu>
25304 * doc/invoke.texi: Document -fsanitize=bounds-strict.
25305 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
25306 into SANITIZE_NONDEFAULT.
25307 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
25309 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
25312 * config/alpha/alpha.c (alpha_override_options_after_change): New.
25313 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
25314 (alpha_override_options): Move align_loops, align_jumps and
25315 align_functions handling into alpha_override_options_after_change.
25317 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
25318 Chris Jones <chrisj@nvidia.com>
25319 Joshua Conner <jconner@nvidia.com>
25321 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
25322 linking of crtfastmath.o.
25323 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
25325 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25327 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
25328 (cstore<mode>4_unsigned_imm): New expander.
25329 (cstore<mode>4): Remove empty constraint strings. Use the new
25332 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
25335 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
25338 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25340 * config/aarch64/geniterators.sh: Use standard BRE in sed.
25342 2015-05-06 Alan Modra <amodra@gmail.com>
25345 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
25346 (UNSPEC_NOP): Define.
25347 (reload_vsx_from_gpr<mode>): Add missing DONE.
25348 (reload_gpr_from_vsx<mode>): Likewise.
25349 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
25350 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
25352 2015-05-06 Christian Bruel <christian.bruel@st.com>
25355 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
25356 align_jumps, align_functions into aarch64_override_options_after_change.
25358 2015-05-06 Richard Biener <rguenther@suse.de>
25360 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
25361 vect_transform_slp_perm_load to check if we support a permutation
25362 for basic-block vectorization.
25364 2015-05-06 Nick Clifton <nickc@redhat.com>
25366 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
25367 used, even if it is not being used as a frame pointer.
25369 2015-05-05 Jason Merrill <jason@redhat.com>
25371 * dwarf2out.c (gen_member_die): Don't emit anything for an
25372 anonymous class constructor.
25374 2015-05-05 David Malcolm <dmalcolm@redhat.com>
25376 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
25377 that it reflects the block structure.
25378 (afdo_propagate_edge): Likewise.
25379 (afdo_calculate_branch_prob): Likewise.
25380 (afdo_annotate_cfg): Likewise.
25381 * cfgcleanup.c (equal_different_set_p): Likewise.
25382 (try_crossjump_to_edge): Likewise.
25383 * cgraph.c (cgraph_node::verify_node): Likewise.
25384 * cgraphunit.c (expand_all_functions): Likewise.
25385 * config/i386/i386.c (ix86_expand_copysign): Likewise.
25386 (exact_dependency_1): Likewise.
25387 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
25388 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
25389 * gensupport.c (process_define_subst): Likewise.
25390 * lto-wrapper.c (merge_and_complain): Likewise.
25391 * tree-if-conv.c (if_convertible_bb_p): Likewise.
25392 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
25393 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
25394 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
25395 * tree-vect-loop.c (vectorizable_reduction): Likewise.
25396 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
25397 * tree-vect-stmts.c (vectorizable_shift): Likewise.
25398 * tree-vrp.c (vrp_finalize): Likewise.
25399 * tree.c (variably_modified_type_p): Likewise.
25401 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
25403 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
25404 on darwin12 and later.
25405 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
25406 file to pass -rdynamic on darwin12 and later.
25407 * config/darwin.opt (rdynamic): Add.
25409 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25411 * doc/extend.texi (C Extensions): Update menu for moved Variable
25412 Attributes and Type Attributes sections.
25414 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25417 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
25418 if rep_8byte stringop strategy was specified for 32-bit target.
25420 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
25423 * config/i386/i386.md (vector convert to float spltiter): Check for
25424 xmm16+, when splitting scalar float conversion.
25425 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
25427 2015-05-05 Nick Clifton <nickc@redhat.com>
25429 * config/msp430/msp430-opts.h (enum msp430_regions): New.
25430 * config/msp430/msp430.c (msp430_override_options): Complain if
25431 -mcode-region or -mdata-region is used on a non MSP430X.
25432 (msp430_section_attr): New function. Checks lower, upper and
25434 (msp430_attribute_table): Add lower, upper and either.
25435 (gen_prefix): New function. Generates a prefix for a section
25437 (msp430_select_section): New function - handles the choice of
25438 section for an object. Takes into account memory region
25439 attributes and options.
25440 (msp430_function_section): Use gen_prefix.
25441 (TARGET_SECTION_TYPE_FLAGS): Define.
25442 (msp430_section_type_flags): New function.
25443 (TARGET_ASM_UNIQUE_SECTION): Define.
25444 (msp430_unique_section): New function.
25445 (msp430_output_aligned_decl_common): New function.
25446 (msp430_do_not_relax_short_jumps): New function.
25447 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
25449 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
25450 * config/msp430/msp430-protos.h
25451 (msp430_do_not_relax_short_jumps): New prototype.
25452 (msp430_output_aligned_decl_common): New prototype.
25453 * config/msp430/msp430.md (length): New attribute.
25454 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
25455 then use a long code sequence for short jumps.
25456 * config/msp430/msp430.opt (mcode-region): New.
25457 (mdata-region): New.
25458 * doc/invoke.texi: Document new options.
25459 * doc/extend.texi: Document new attributes.
25461 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25463 * config/aarch64-protos.h (struct cpu_branch_cost): New.
25464 (tune_params): Add field branch_costs.
25465 (aarch64_branch_cost): Declare.
25466 * config/aarch64.c (generic_branch_cost): New.
25467 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
25468 (cortexa53_tunings): Likewise.
25469 (cortexa57_tunings): Likewise.
25470 (thunderx_tunings): Likewise.
25471 (xgene1_tunings): Likewise.
25472 (aarch64_branch_cost): Define.
25473 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
25475 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25477 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
25478 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
25479 * config/i386/i386.md: Ditto.
25480 * config/i386/winnt.c: Ditto.
25482 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
25484 * doc/extend.texi (__atomic Builtins): Move implementation details
25485 to the end of the description, rewrite opening paragraphs, state
25486 difference with __sync builtins, state C11/C++11 assumptions,
25487 weaken itemized descriptions, add explanation of memory model
25488 behaviour, expand description of compare-exchange, simplify text.
25490 2015-05-05 Renlin Li <renlin.li@arm.com>
25492 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
25494 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
25496 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
25497 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25498 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
25499 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
25500 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
25501 * configure: Regenerate.
25502 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
25503 * doc/install.texi (aarch64*-*-*): Document new
25504 --enable-fix-cortex-a53-843419 option.
25505 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
25506 and -mno-fix-cortex-a53-843419 options.
25508 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
25511 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
25513 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
25515 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
25516 fix overactive TYPE_MIN_VALUE check and add FIXME for type
25517 compatibility problems.
25519 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25521 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
25523 (cbranchsi4_reg): New.
25524 * config/microblaze/microblaze.c
25525 (microblaze_expand_conditional_branch_reg): New.
25526 * config/microblaze/microblaze-protos.h
25527 (microblaze_expand_conditional_branch_reg): New prototype.
25529 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
25531 * config/microblaze/microblaze.md (peephole2): New.
25533 2015-05-04 Jeff Law <law@redhat.com>
25536 2015-05-04 Jeff Law <law@redhat.com>
25538 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25539 simplifier to narrow arithmetic.
25540 * generic-match-head.c: (types_match, single_use): New functions.
25541 * gimple-match-head.c: (types_match, single_use): New functions.
25543 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25546 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
25547 (split_branches): Likewise.
25549 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
25551 * common.opt (fdelete-null-pointer-checks): Init to -1.
25552 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
25553 override flag_delete_null_pointer_checks default.
25554 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
25555 behavior re address zero. Better document target-specific behavior.
25556 (-fisolate-errneous-paths-dereference): Mention relationship to
25557 -fdelete-null-pointer-checks.
25559 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25561 PR tree-optimization/65984
25562 * ubsan.c: Include tree-cfg.h.
25563 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
25564 stmt_could_throw_p test, rename can_throw variable to ends_bb.
25566 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25568 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
25569 to CONST_DOUBLE_P predicate.
25570 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
25571 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
25572 allow only operands that satisfy standard_sse_constant_p predicate.
25573 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
25574 to CONST_DOUBLE_P predicate.
25576 2015-05-04 Jeff Law <law@redhat.com>
25578 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
25579 simplifier to narrow arithmetic.
25580 * generic-match-head.c: (types_match, single_use): New functions.
25581 * gimple-match-head.c: (types_match, single_use): New functions.
25583 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
25585 * config/arm/arm.c: Restore bootstrap.
25587 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
25589 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
25590 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
25591 as CONST_WIDE_INT, not CONST_DOUBLE.
25592 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
25593 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
25594 (ix86_find_base_term): Do not check for CONST_DOUBLE.
25595 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
25596 (ix86_build_signbit_mask): Rewrite using wide ints.
25597 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
25598 (ix86_rtx_costs): Handle CONST_WIDE_INT.
25599 (find_constant): Ditto.
25600 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
25601 using gen_int_mode.
25602 * config/i386/predicates.md (x86_64_immediate_operand)
25603 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25604 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
25605 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
25606 (const0_operand): Also match const_wide_int.
25607 (constm1_operand): Ditto.
25608 (const1_operand): Ditto.
25610 2015-05-04 Richard Biener <rguenther@suse.de>
25612 PR tree-optimization/65965
25613 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
25614 store groups at gaps.
25616 2015-05-04 Richard Biener <rguenther@suse.de>
25618 PR tree-optimization/65935
25619 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
25620 then make sure to apply that swapping to the IL.
25622 2015-05-04 Jakub Jelinek <jakub@redhat.com>
25624 * Makefile.in (PATCHLEVEL_c): New variable.
25625 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
25626 expand the same way as if DEVPHASE_c was non-empty.
25628 2015-05-04 Kai Tietz <ktietz@redhat.com>
25631 * lto-wrapper.c (run_gcc): Open filename
25634 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
25636 * doc/extend.texi (Variable Attributes, Type Attributes): Move
25637 sections up in file, to immediately after the Function Attributes
25640 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
25642 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
25644 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25646 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
25647 (insert_partition_copy_on_edge): Adjust.
25648 (insert_rtx_to_part_on_edge): Likewise.
25649 (insert_part_to_rtx_on_edge): Likewise.
25651 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25653 * function.c (set_return_jump_label): Change type of argument to
25655 * function.h (set_return_jump_label): Adjust.
25657 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25659 * reload.h (struct reg_equivs_t): Change type of init to
25661 * ira.c (fix_reg_equiv_init): Adjust.
25662 * reload1.c (eliminate_regs_1): Likewise.
25663 (init_eliminable_invariants): Likewise.
25665 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25667 * cselib.c (fp_setter_insn): Take a rtx_insn *.
25668 * cselib.h (fp_setter_insn): Adjust.
25670 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25672 * recog.c (struct validate_replace_src_data): Change type of
25673 insn field to rtx_insn *.
25674 (validate_replace_src_group): Change type of argument to rtx_insn *.
25675 * recog.h (validate_replace_src_group): Adjust.
25677 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25679 * haifa-sched.c: Change the type of some variables to rtx_insn *.
25680 * sched-deps.c: Likewise.
25681 * sched-int.h: Likewise.
25682 * sched-rgn.c: Likewise.
25683 * sel-sched.c: Likewise.
25685 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25688 * config/i386/i386.c: Change the type of some arguments to
25690 * config/arm/arm.c: Likewise.
25692 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25694 * lra-constraints.c: Change type of some arguments to rtx_insn *.
25696 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25698 * regcprop.c (kill_autoinc_value): Change type of argument to
25701 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25703 * genrecog.c (print_subroutine): Adjust.
25704 * recog.c (get_bool_attr_mask_uncached): Likewise.
25705 * recog.h (struct recog_data_d): Change the type of insn to
25708 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25710 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
25712 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25714 * df-problems.c (df_set_note): Change type of argument to
25717 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25719 * builtins.c (expand_builtin_trap): Change type of local
25720 variable to rtx_insn *.
25721 (add_sched_insns_for_speculation): Likewise.
25722 (ix86_emit_save_regs): Likewise.
25723 (get_scratch_register_on_entry): Likewise.
25724 (ix86_emit_restore_reg_using_pop): Likewise.
25725 (ix86_emit_leave): Likewise.
25726 (ix86_emit_restore_regs_using_mov): Likewise.
25727 (ix86_expand_epilogue): Likewise.
25729 (rl78_alloc_physical_registers_umul): Likewise.
25730 * cselib.c (discard_useless_locs): Likewise.
25731 (cselib_invalidate_regno): Likewise.
25732 (cselib_invalidate_mem): Likewise.
25733 * function.c (expand_function_start): Likewise.
25734 (emit_use_return_register_into_block): Likewise.
25735 * gcse.c: Likewise.
25736 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
25737 * ifcvt.c (noce_get_alt_condition): Likewise.
25738 * loop-doloop.c (doloop_condition_get): Likewise.
25739 * lra-constraints.c (inherit_in_ebb): Likewise.
25740 * modulo-sched.c (sms_schedule_by_order): Likewise.
25741 * recog.c (next_insn_tests_no_inequality): Likewise.
25742 * reorg.c (emit_delay_sequence): Likewise.
25743 (update_reg_dead_notes): Likewise.
25744 (fix_reg_dead_note): Likewise.
25745 (fill_slots_from_thread): Likewise.
25746 (delete_computation): Likewise.
25748 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
25750 * doc/extend.texi (Variable Attributes): Add menu and proper
25751 @nodes to subsections. Move Microsoft Windows attributes to
25752 their own subsection.
25753 (Type Attributes): Reorganize introduction to remove duplicate
25754 list of attributes. Add menu and proper @nodes to subsections.
25755 Alphabetize the main table of common attributes.
25757 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
25759 * match.pd: New simplification patterns.
25760 (x + (x & 1)) -> ((x + 1) & ~1)
25761 (x & ~(x & y)) -> ((x & ~y))
25762 (x | ~(x | y)) -> ((x | ~y))
25764 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25766 * target.def (attribute_table): Mention that struct attribute_spec
25767 is defined in tree-core.h rather than tree.h
25768 * doc/tm.texi: Regenerate.
25770 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
25772 * genrecog.c (test): Rename to rtx_test. Update rest of file
25775 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
25777 PR translation/65959
25778 * params.h (DEFPARAM): Rename msgid to nocmsgid.
25780 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25782 * config/aarch64/aarch64-protos.h (tune_params):
25783 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
25784 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
25785 Return value depending on target.
25786 (generic_tunings): Initialize new target settings.
25787 (cortexa53_tunings): Likewise.
25788 (cortexa57_tunings): Likewise.
25789 (thunderx_tunings): Likewise.
25790 (xgene1_tunings): Likewise.
25792 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25794 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
25795 Make Cortex-A53 shift costs more accurate.
25797 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25799 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
25802 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
25804 * config/aarch64/aarch64.c (aarch64_rtx_costs):
25805 Calculate cost of op0 and op1 in PLUS and MINUS cases.
25807 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25809 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25810 Add cost of op0 in the compare-with-fpzero case.
25812 2015-04-30 David Malcolm <dmalcolm@redhat.com>
25814 * builtins.c (fold_builtin_1): Remove spurious second
25816 * cgraph.h (symtab_node::get_availability): Likewise.
25817 * opts.c (common_handle_option): Remove spurious second semicolon.
25818 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25819 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
25821 2015-04-30 Caroline Tice <cmtice@google.com>
25823 PR gcov-profile/65929
25824 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
25825 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
25826 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
25827 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
25828 * doc/tm.texi: Regenerate.
25829 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
25830 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
25831 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
25832 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
25834 2015-04-30 Marek Polacek <polacek@redhat.com>
25836 * varasm.c (handle_cache_entry): Fix logic.
25838 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25840 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
25841 (*extrsi5_insn_uxtw_alt): Likewise.
25842 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
25843 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
25846 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25848 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
25851 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25853 * config/aarch64/aarch64.md
25854 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
25855 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
25856 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
25857 appropriately. Handle alternative EON form.
25859 2015-04-30 Renlin Li <renlin.li@arm.com>
25861 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
25862 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
25864 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25867 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
25868 -fstrict-aliasing boundaries.
25870 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25872 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
25873 and [SU]MNEGL patterns.
25875 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25877 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
25878 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
25879 combined arithmetic-shift ops. Properly handle all shift and extend
25880 operations that can occur in combination with PLUS/MINUS.
25881 Rename maybe_fma to compound_p.
25882 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
25883 arithmetic and shift operations.
25885 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25887 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
25888 rather than arith_shift cost when costing ADD/MINUS of an
25891 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
25894 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
25897 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
25899 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
25900 are for the same position.
25902 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
25904 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
25906 (vectorize_loops): Use it.
25908 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25910 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
25911 for aggregate types.
25912 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
25913 type to be non_ODR.
25914 * tree.c (need_assembler_name_p): Compute mangled name for
25915 non-fundamental types and integer types.
25917 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
25919 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
25921 * expr.c (expand_expr_real_2): Likewise.
25923 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25925 * tree.c (build_common_builtin_nodes): Do not build
25926 __builtin_alloca_with_align as equivalent of library alloca.
25928 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
25930 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
25931 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
25933 * tree.c: Include print-tree.h and ipa-utils.h
25934 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
25935 (free_lang_data_in_cgraph): Call verify_type.
25936 (verify_type_variant): New function.
25937 (verify_type): New function.
25938 * tree.h (verify_type): Declare.
25940 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
25942 * config/mips/mips-cpus.def: (mips4): Change default processor
25943 from PROCESSOR_R8000 to PROCESSOR_R10000.
25945 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
25947 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
25948 la/jalr instead of jal.
25950 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
25953 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
25954 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
25955 (setcc+movzbl peephole2): Check also clobbered reg.
25956 (setcc+andl peephole2): Ditto.
25958 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25961 * config/nvptx/mkoffload.c (target_ilp32): New variable.
25962 (main): Set it depending on "-foffload-abi=[...]".
25963 (compile_native, main): Use it to pass "-m32" or "-m64" to the
25966 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
25969 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
25970 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
25971 Flip lane index back at assembly time for bigendian.
25973 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
25975 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
25976 * gimplify.c (gimplify_omp_workshare): Use it.
25978 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25980 * Makefile.in (build/genrecog.o): Depend on inchash.h.
25981 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
25983 * genrecog.c: Rewrite most of the code except for the third page.
25985 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25987 * inchash.h, inchash.c: Include bconfig.h for build objects.
25988 * Makefile.in (build/inchash.o): New rule.
25990 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
25993 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
25994 number in type attribute expression.
25996 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
25998 * loop-iv.c (canon_condition): Generalize to all types of integer
26001 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
26003 * gimple-walk.c: Prune duplicate or unneeded includes.
26004 (walk_gimple_asm): Only call parse_input_constraint or
26005 parse_output_constraint if their findings are used.
26006 Honour parse_input_constraint and parse_output_constraint
26009 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
26011 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
26013 2015-04-29 Tom de Vries <tom@codesourcery.com>
26015 PR tree-optimization/65893
26016 * passes.def (pass_all_optimizations): Move pass_stdarg to after
26019 2015-04-29 Richard Biener <rguenther@suse.de>
26021 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
26022 compute GROUP_SIZE for basic-block SLP.
26023 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
26024 take into account gaps.
26025 (vect_get_mask_element): Properly reject references to previous
26027 (vect_transform_slp_perm_load): Likewise.
26029 2015-04-29 Christian Bruel <christian.bruel@st.com>
26032 * config/i386/i386.c (ix86_default_align): New function.
26033 (ix86_override_options_after_change): Call ix86_default_align.
26034 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
26035 (ix86_override_options_after_change): New function.
26037 2015-04-28 Jeff Law <law@redhat.com>
26039 * tree-ssa-dom.c (record_equality); Fix comment typos.
26041 2015-04-28 Tom de Vries <tom@codesourcery.com>
26043 PR tree-optimization/65887
26044 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
26046 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
26048 * doc/extend.texi (Declaring Attributes of Functions): Split into
26049 subsections by target. Alphabetize the table of common attributes.
26050 Rewrite some of the introductory text to reflect the new structure.
26051 Update some cross-references to point to the new subsections.
26052 (Attribute Syntax): Put paragraph about "__" naming here. Remove
26053 duplicate copies in the discussion of function, label, and type
26056 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
26059 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
26061 2015-04-28 Jason Merrill <jason@redhat.com>
26064 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
26065 (finalize_type_size): Respect TYPE_USER_ALIGN.
26066 (layout_type) [ARRAY_TYPE]: Likewise.
26068 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
26070 * config/arm/arm.md (*arm_movt): Fix type attribute.
26071 (*cmpsi_shiftsi): Likewise.
26072 (*cmpsi_shiftsi_swp): Likewise.
26073 (*movsicc_insn): Likewise.
26074 (*cond_move): Likewise.
26075 (*if_plus_move): Likewise.
26076 (*if_move_plus): Likewise.
26077 (*if_arith_move): Likewise.
26078 (*if_move_arith): Likewise.
26079 (*if_shift_move): Likewise.
26080 (*if_move_shift): Likewise.
26081 (*arm_movtas_ze): Likewise.
26082 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
26083 redundancy and type attribute.
26084 (*thumb2_movsi_insn): Fix type attribute.
26085 (*thumb2_addsi_short): Likewise.
26086 (thumb2_addsi3_compare0): Likewise.
26087 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
26088 attributes accordingly.
26090 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
26093 * function.c (pad_to_arg_alignment): Add parentheses.
26095 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
26097 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
26098 libgcc/config/frv/elf-lib.h.
26100 2015-04-28 Tom de Vries <tom@codesourcery.com>
26102 * tree-call-cdce.c: Fix example in header comment.
26104 2015-04-28 Richard Biener <rguenther@suse.de>
26106 PR tree-optimization/62283
26107 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
26108 fails fatally and we are vectorizing a basic-block simply
26109 cause the child to be constructed piecewise.
26110 (vect_analyze_slp_cost_1): Adjust.
26111 (vect_detect_hybrid_slp_stmts): Likewise.
26112 (vect_bb_slp_scalar_cost): Likewise.
26113 (vect_get_constant_vectors): For piecewise constructed
26114 constants place them after the last def.
26115 (vect_get_slp_defs): Adjust.
26116 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
26117 externals for basic-block vectorization.
26119 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
26122 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
26124 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
26125 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
26126 (AARCH64_TUNE_FMA_STEERING): Likewise.
26127 * config/aarch64/aarch64-cores.def: Set
26128 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
26129 FMUL/FMADD instructions.
26130 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
26131 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
26132 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
26133 * config/aarch64/cortex-a57-fma-steering.h: New file.
26134 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26136 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
26138 * gensupport.c (std_preds): Add missing codes to address_operand entry.
26140 2015-04-28 Richard Biener <rguenther@suse.de>
26142 PR tree-optimization/65851
26143 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
26144 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
26145 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
26146 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
26147 (ccp_visit_phi_node): Adjust.
26148 (evaluate_stmt): For simplifications to SSA names return its
26149 lattice value if that isn't VARYING. Return immediately when
26150 simplified to a constant.
26151 (visit_assignment): Adjust.
26152 (ccp_visit_stmt): Likewise.
26154 2015-04-28 Tom de Vries <tom@codesourcery.com>
26156 PR tree-optimization/65818
26157 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
26160 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26162 * calls.c (save_fixed_argument_area): Don't check
26163 ARGS_GROW_DOWNWARD with the preprocessor.
26164 (restore_fixed_argument_area): Likewise.
26165 (mem_overlaps_already_clobbered_arg_p): Likewise.
26166 (check_sibcall_argument_overlap): Likewise.
26167 (expand_call): Likewise.
26168 (emit_library_call_value_1): Likewise.
26169 (store_one_arg): Likewise.
26170 * function.c (assign_parms): Likewise.
26171 (locate_and_pad_parm): Likewise.
26172 (pad_to_arg_alignment): Likewise.
26173 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26175 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26177 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
26178 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
26179 * calls.c (save_fixed_argument_area): Don't chekc if
26180 ARGS_GROW_DOWNWARD is defined.
26181 (restore_fixed_argument_area): Likewise.
26182 (mem_overlaps_already_clobbered_arg_p): Likewise.
26183 (check_sibcall_argument_overlap): Likewise.
26184 (expand_call): Likewise.
26185 (emit_library_call_value_1): Likewise.
26186 (store_one_arg): Likewise.
26187 * function.c (assign_parms): Likewise.
26188 (locate_and_pad_parm): Likewise.
26189 (pad_to_arg_alignment): Likewise.
26190 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
26192 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26194 * defaults.h (gen_epilogue): New function.
26195 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
26197 * cfgrtl.c (cfg_layout_finalize): Likewise.
26198 * df-scan.c: Likewise.
26199 * function.c (thread_prologue_and_epilogue_insns): Likewise.
26200 (reposition_prologue_and_epilogue_notes): Likewise.
26201 * reorg.c (find_end_label): Likewise.
26202 * toplev.c: Likewise.
26204 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26206 * bb-reorder.c (HAVE_return): Don't check if its undefined.
26207 * defaults.h (gen_simple_return): New function.
26208 (gen_simple_return): Likewise.
26209 (HAVE_return): Add default definition to false.
26210 (HAVE_simple_return): Likewise.
26211 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
26212 HAVE_return and HAVE_simple_return are defined.
26213 * function.c (gen_return_pattern): Likewise.
26214 (convert_jumps_to_returns): Likewise.
26215 (thread_prologue_and_epilogue_insns): Likewise.
26216 * reorg.c (find_end_label): Likewise.
26217 (dbr_schedule): Likewise.
26218 * shrink-wrap.c: Likewise.
26219 * shrink-wrap.h: Likewise.
26221 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26223 * defaults.h (EPILOGUE_USES): Add default definition of false.
26224 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
26225 * resource.c (init_resource_info): Likewise.
26227 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26229 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
26231 * dwarf2out.c (field_byte_offset): REmove check if
26232 PCC_BITFIELD_TYPE_MATTERS is defined.
26233 * stor-layout.c (layout_decl): Likewise.
26234 (update_alignment_for_field): Likewise.
26235 (place_field): Likewise.
26237 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26239 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
26241 * regrename.c (check_new_reg_p): Remove check if
26242 HARD_REGNO_RENAME_OK is defined.
26243 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
26245 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26247 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
26248 * cse.c (fold_rtx): Likewise.
26249 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
26250 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
26251 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
26252 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
26253 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
26254 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
26255 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
26256 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
26257 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
26258 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
26260 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
26261 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
26262 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
26263 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
26264 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
26265 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
26266 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
26267 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
26268 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
26269 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
26270 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
26271 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
26272 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
26273 * doc/tm.texi: Regenerate.
26274 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
26275 either true or false.
26277 2015-04-27 Jeff Law <law@redhat.com>
26279 PR tree-optimization/65217
26280 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
26281 of them has a single use, make sure it is the LHS of the implied
26284 2015-04-28 Alan Modra <amodra@gmail.com>
26287 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
26288 (offsettable_ok_by_alignment): Use minimum of decl and toc
26289 pointer alignment. Replace dead code with assertion.
26290 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
26291 case if size exceeds toc pointer alignment.
26292 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
26293 (rs6000_emit_move): Likewise.
26294 * configure.ac: Add linker toc pointer alignment check.
26295 * configure: Regenerate.
26296 * config.in: Regenerate.
26298 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
26300 * config.gcc: Add h8300-*-linux.
26301 * config/h8300/linux.h: New.
26302 * config/h8300/t-linux: New.
26303 * config/h8300/h8300.c (h8300_option_override): Normal mode
26304 is not supported for h8300-*-linux.
26305 (h8300_file_start): Target priority change.
26306 (get_shift_alg): Likewise.
26307 (h8300_shift_need_scratch_p): Likewise.
26308 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
26309 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
26311 2015-04-27 Caroline Tice <cmtice@google.com>
26313 * final.c (final_scan_insn): Output cold_function_name as function
26315 * varasm.c (cold_function_name): Make global.
26316 (assemble_start_function): Re-set cold_function_name.
26317 (assemble_end_function): Output cold partition size.
26318 * varasm.h (cold_function_name): Declare global.
26320 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
26322 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
26323 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
26325 (*movxi_internal_avx512f): Ditto.
26326 (define_split): Check for xmm16+, when splitting scalar float_extend.
26327 (*extendsfdf2_mixed): Use "v" constraint.
26328 (define_split): Check for xmm16+, when splitting scalar float_truncate.
26329 (*truncdfsf_fast_sse): Use "v" constraint.
26330 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
26331 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
26332 (define_peephole2): Check for xmm16+, when converting scalar
26334 (define_peephole2): Check for xmm16+, when converting scalar
26336 (*fop_<mode>_comm_mixed): Use "v" constraint.
26337 (*fop_<mode>_comm_sse): Ditto.
26338 (*fop_<mode>_1_mixed): Ditto.
26339 (*sqrt<mode>2_sse): Ditto.
26340 (*ieee_s<ieee_maxmin><mode>3): Ditto.
26342 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26344 * combine.c (simplify_if_then_else): Use std::swap instead
26345 of manually swapping.
26346 (known_cond): Likewise.
26347 (simplify_comparison): Likewise.
26349 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
26352 * config/rs6000/htm.md: Remove all define_expands.
26353 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
26354 UNSPECV_HTM_TABORTWCI): Remove.
26355 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
26356 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
26357 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
26358 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
26359 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
26360 tabortwci_internal): Remove define_insns.
26361 (tabort<wd>c, tabort<wd>ci): New define_insns.
26362 (tabort): Use gpc_reg_operand.
26363 (tcheck): Remove operand.
26364 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
26365 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
26367 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
26368 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
26369 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
26370 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
26371 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
26372 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
26373 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
26374 (tcheck): Remove builtin argument.
26375 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
26377 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
26378 tabortdc and tabortdci builtins when not in 64-bit mode.
26379 Modify code to handle the loss of the HTM define_expands.
26380 Emit code to copy the CR register to TARGET.
26381 (htm_init_builtins): Modify code to handle the loss of the HTM
26383 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
26384 (RS6000_BTC_64BIT): Likewise.
26385 (RS6000_BTC_CR): New macro.
26386 * doc/extend.texi: Update documentation for htm builtins.
26388 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26390 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
26391 of manually swapping.
26392 (simplify_associative_operation): Likewise.
26393 (simplify_binary_operation): Likewise.
26394 (simplify_plus_minus): Likewise.
26395 (simplify_relational_operation): Likewise.
26396 (simplify_ternary_operation): Likewise.
26398 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26400 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
26401 (xs_hi_nonmemory_operand): Remove error.
26402 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
26403 general_operand rather than xs_hi_general_operand.
26405 2015-04-27 Richard Biener <rguenther@suse.de>
26407 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
26408 (record_equivalences_from_stmt): Valueize rhs.
26409 (record_equality): Canonicalize x and y order via
26410 tree_swap_operands_p. Do not swap operands for same loop depth.
26412 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
26416 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
26417 Add hint how to use own spec file.
26419 2015-04-27 Jakub Jelinek <jakub@redhat.com>
26421 PR tree-optimization/65875
26422 * tree-vrp.c (update_value_range): If in is_new case setting
26423 old_vr to VR_VARYING, also set new_vr to it. Remove
26424 old_vr->type == VR_VARYING test.
26425 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
26426 SSA_PROP_INTERESTING if update_value_range returned true,
26427 but new range is VR_VARYING.
26429 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
26431 * combine.c (sign_extend_short_imm): New.
26432 (set_nonzero_bits_and_sign_copies): Use above new function for sign
26433 extension of src short immediate.
26434 (reg_nonzero_bits_for_combine): Likewise for tem.
26436 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26438 * stor-layout.c (self_referential_component_ref_p): New predicate.
26439 (copy_self_referential_tree_r): Use it.
26440 (self_referential_size): Punt for simple operations directly involving
26441 self-referential component references.
26442 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
26444 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
26446 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
26448 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
26450 * vec.h (vec): Make splice arguments const. Update definitions
26453 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
26455 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
26458 2015-04-26 Tom de Vries <tom@codesourcery.com>
26460 PR tree-optimization/65826
26461 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
26463 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
26465 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
26466 (*madd3<mode>): Ditto.
26467 (*msub4<mode>): Ditto.
26468 (*msub3<mode>): Ditto.
26469 (*nmadd4<mode>): Ditto.
26470 (*nmadd3<mode>): Ditto.
26471 (*nmadd4<mode>_fastmath): Ditto.
26472 (*nmadd3<mode>_fastmath): Ditto.
26473 (*nmsub4<mode>): Ditto.
26474 (*nmsub3<mode>): Ditto.
26475 (*nmsub4<mode>_fastmath): Ditto.
26476 (*nmsub3<mode>_fastmath): Ditto.
26478 2015-04-24 Jason Merrill <jason@redhat.com>
26481 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
26482 down when building TYPE_CANONICAL.
26483 (build_pointer_type_for_mode): Likewise.
26485 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
26487 * genrecog.c (validate_pattern): Check matching constraint refers
26488 to a lower numbered operand.
26490 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26493 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
26494 save to independent variables use the Save attribute. This will
26495 allow these options to be modified with the #pragma/attribute
26497 (-mallow-movmisalign): Likewise.
26498 (-mallow-df-permute): Likewise.
26499 (-msched-groups): Likewise.
26500 (-malways-hint): Likewise.
26501 (-malign-branch-targets): Likewise.
26502 (-mvectorize-builtins): Likewise.
26503 (-msave-toc-indirect): Likewise.
26505 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
26506 can be set via the #pragma/attribute target support.
26507 (rs6000_opt_vars): Likewise.
26508 (rs6000_inner_target_options): If VSX was set, also set
26509 -mno-avoid-indexed-addresses.
26511 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26513 * config/arm/iterators.md (shiftable_ops): Rename to...
26514 (SHIFTABLE_OPS): ... This. Update use in comments.
26515 (ior_xor): Rename to...
26516 (IOR_XOR): ... This.
26517 (vqh_ops): Rename to...
26518 (VQH_OPS): ... This.
26519 (vqhs_ops): Rename to...
26520 (VQHS_OPS): ... This.
26521 (rshifts): Rename to...
26522 (RSHIFTS): ... This.
26523 (returns): Rename to...
26524 (RETURNS): ... This.
26525 * config/arm/arm.md: Update uses of the above.
26526 * config/arm/neon.md: Likewise.
26528 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26530 * config.host (case ${host}): Add aarch64*-*-linux case.
26531 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
26532 fields to all the cores.
26533 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
26534 Add MCPU_MTUNE_NATIVE_SPECS.
26535 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
26536 field to all extensions.
26537 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
26538 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
26539 Adjust definition of AARCH64_OPT_EXTENSION.
26540 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
26541 (MCPU_MTUNE_NATIVE_SPECS): Define.
26542 * config/aarch64/driver-aarch64.c: New file.
26543 * config/aarch64/x-arch64: New file.
26544 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
26547 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26548 Wei Mi <wmi@google.com>
26550 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
26551 * config/i386/i386.c (extract_base_offset_in_addr): New function.
26552 (ix86_operands_ok_for_move_multiple): Ditto.
26553 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
26554 (movlpd/movhpd to movupd peephole2): Ditto.
26556 2015-04-24 Marek Polacek <polacek@redhat.com>
26559 * input.h (from_macro_expansion_at): Define.
26562 * doc/invoke.texi: Update description of -Wlogical-op.
26564 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26566 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
26567 ternary operator in fprintf and harmonize spacing.
26569 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26571 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
26572 Mark operand1 commutative.
26574 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
26576 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
26577 input operands in memory.
26578 (*vec_concatv2si_sse4_1): Ditto.
26579 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
26580 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
26582 (vec_extract_hi_v32hi): Ditto.
26583 (vec_extract_hi_v64hi): Ditto.
26584 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
26586 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
26587 Steven Bosscher <steven@gcc.gnu.org>
26589 PR rtl-optimization/34503
26590 * cprop.c (cprop_reg_p): New.
26591 (hash_scan_set): Use above function to check if register can be
26593 (find_avail_set): Return up to two sets, one whose source is a
26594 register and one whose source is a constant. Sets are returned in an
26595 array passed as parameter rather than as a return value.
26596 (cprop_insn): Use a do while loop rather than a goto. Try each of the
26597 sets returned by find_avail_set, starting with the one whose source is
26598 a constant. Use cprop_reg_p to check if register can be propagated.
26599 (do_local_cprop): Use cprop_reg_p to check if register can be
26601 (implicit_set_cond_p): Likewise.
26603 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26605 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
26606 (sem_function::equals): IGNORED_NODES parameter is now unused;
26607 update call of equals_private.
26608 (sem_function::equals_private): Do not call equals_wpa; skip
26609 gimple body matching if there is no body.
26610 (sem_function::init): Add logic to hash tthunk info.
26611 (sem_function::parse): Also parse thunks.
26612 * ipa-icf.h (equals_private): Update declaration.
26614 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26616 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
26617 asterisk from name so this can be generated directly.
26618 (*altivec_stvx_<mode>_internal): Likewise.
26619 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
26620 that this is never called during or after reload/lra.
26621 (rs6000_frame_related): Remove split_reg
26622 argument and logic that references it.
26623 (emit_frame_save): Remove last parameter from call to
26624 rs6000_frame_related.
26625 (rs6000_emit_prologue): Remove last parameter from eight calls to
26626 rs6000_frame_related. Force generation of stvx instruction for
26627 Altivec register saves. Remove split_reg handling, which is no
26629 (rs6000_emit_epilogue): Force generation of lvx instruction for
26630 Altivec register restores.
26632 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26634 * config/rs6000/rs6000.opt (mcrypto): Change option description to
26635 match category changes in ISA 2.07B.
26637 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26639 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
26641 (cmp_op, cmp_type): New code attributes.
26642 (NEON_VCMP, NEON_VACMP): New int iterators.
26643 (cmp_op_unsp): New int attribute.
26644 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
26645 (neon_vceq<mode>): Delete.
26646 (neon_vc<cmp_op><mode>_insn): New pattern.
26647 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
26648 (neon_vcgeu<mode>): Delete.
26649 (neon_vcle<mode>): Likewise.
26650 (neon_vclt<mode>: Likewise.
26651 (neon_vcage<mode>): Likewise.
26652 (neon_vcagt<mode>): Likewise.
26653 (neon_vca<cmp_op><mode>): New define_expand.
26654 (neon_vca<cmp_op><mode>_insn): New pattern.
26655 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
26657 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26659 * tree.h (attribute_value_equal): Declare.
26660 * tree.c (attribute_value_equal): Export.
26662 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26664 * ipa-icf.c (sem_item::compare_attributes): New function.
26665 (sem_item::compare_referenced_symbol_properties): Compare variable
26667 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
26668 (sem_function::param_used_p): New function.
26669 (sem_function::equals_wpa): Fix attribute comparsion; match
26670 parameter type codes; do not compare paremter flags when
26671 they are not used; compare edge flags; compare indirect calls.
26672 (sem_item::update_hash_by_addr_refs): Hash reference type.
26673 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
26674 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
26675 reference use type.
26676 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
26677 * ipa-icf.h (compare_attributes, param_used_p): Declare.
26679 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
26681 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
26683 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
26684 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
26685 (sem_item::compare_referenced_symbol_properties): New.
26686 (sem_item::hash_referenced_symbol_properties): New.
26687 (sem_item::compare_cgraph_references): Rename to ...
26688 (sem_item::compare_symbol_references): ... this one; use
26689 compare_referenced_symbol_properties.
26690 (sem_function::equals_wpa): Do not compare
26691 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
26692 DECL_IS_OPERATOR_NEW; compare pointer sizes.
26693 (sem_item::update_hash_by_addr_refs): Call
26694 hash_referenced_symbol_properties.
26695 (sem_item::update_hash_by_local_refs): Cleanup.
26696 (sem_function::merge): Do not mix up symbol properties.
26697 (sem_variable::equals_wpa): Use compare_symbol_references.
26698 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
26699 (sem_item::hash_referenced_symbol_properties): New.
26700 (sem_item::compare_symbol_references): New.
26701 (sem_item::compare_cgraph_references): Remove.
26703 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
26706 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
26707 Emit size of local.
26709 2015-04-23 Nick Clifton <nickc@redhat.com>
26711 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
26712 ATTRIBUTE_UNUSED to x parameter.
26713 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
26715 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26717 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
26718 TARGET_CRYPTO to TARGET_P8_VECTOR>
26719 (crypto_vpermxor_<mode>): Likewise.
26720 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
26721 (BU_CRYPTO_3A): Likewise.
26722 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
26723 (BU_CRYPTO_OVERLOAD_3A): New #define.
26724 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
26725 (VPMSUMH): Likewise.
26726 (VPMSUMW): Likewise.
26727 (VPMSUMD): Likewise.
26728 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
26729 (VPERMXOR_V4SI): Likewise.
26730 (VPERMXOR_V8HI): Likewise.
26731 (VPERMXOR_V16QI): Likewise.
26732 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
26733 BU_CRYPTO_OVERLOAD_2A.
26734 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
26735 BU_CRYPTO_OVERLOAD_3A.
26736 * config/rs6000/rs6000.opt (mcrypto): Change description of
26739 2015-04-23 Richard Biener <rguenther@suse.de>
26741 * passes.def: Remove copy propagation passes run directly after CCP.
26742 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
26744 (ccp_visit_phi_node): Rework to handle first executable edge
26747 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
26749 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
26750 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26751 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
26752 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
26753 (thumb_legimitimize_reload_address): Remove.
26754 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
26756 (thumb_legimitimize_reload_address): Remove.
26758 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26760 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
26762 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26764 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
26766 (store_multiple): Likewise.
26768 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26770 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
26771 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
26772 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
26773 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
26774 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
26775 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
26776 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
26777 Specify issue_rate value.
26778 (arm_issue_rate): Look up issue rate from tuning structs. Remove
26779 large switch statement.
26780 (arm_marvell_pj4_tune): New struct.
26781 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
26784 2015-04-23 Richard Biener <rguenther@suse.de>
26786 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
26787 (vect_find_last_store_in_slp_instance): Rename to ...
26788 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
26789 (vect_analyze_slp_cost_1): Use vector_load for constant defs
26790 and vec_construct for external defs when estimating prologue cost.
26791 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
26792 Compute costs here only when vectorizing loops.
26793 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
26794 have been determined.
26795 (vect_schedule_slp_instance): Simplify vectorized code placement
26796 and prepare for in-BB external defs.
26797 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
26798 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
26799 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
26801 (vect_model_load_cost): Likewise.
26802 (vectorizable_store): Instead add it here.
26803 (vectorizable_load): Likewise.
26804 (vect_is_simple_use): Dump def type textually.
26806 2015-04-23 Richard Biener <rguenther@suse.de>
26808 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
26809 * cfgloop.c (verify_loop_structure): Verify the root loop node.
26810 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
26811 instead of get_eh_region_from_lp_number.
26812 * loop-init.c (fix_loop_structure): If we removed a loop, reset
26815 2015-04-23 Anton Blanchard <anton@samba.org>
26817 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
26818 need for -mprofile-kernel to save LR to stack.
26820 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26822 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
26824 (insn_is_swappable_p): Return 1 for a convert from double to
26825 single precision when all of its uses are splats of BE element
26828 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
26830 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
26832 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26835 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
26836 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
26837 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
26839 (rs6000_builtin_mask_for_load): Return 0 for targets with
26840 efficient unaligned VSX accesses so that the vectorizer will use
26841 direct unaligned loads.
26842 (rs6000_builtin_support_vector_misalignment): Always return true
26843 for targets with efficient unaligned VSX accesses.
26844 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
26845 stores on targets with efficient unaligned VSX accesses is almost
26846 always the same as the cost of an aligned load or store, so model
26848 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
26849 unaligned vectors if we have efficient unaligned VSX accesses.
26850 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
26851 undocumented option.
26853 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26856 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26858 * config.gcc (LIBC_MUSL): New tm_defines macro.
26859 * config/linux.h (OPTION_MUSL): Define.
26860 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26861 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26862 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26864 * config/linux.opt (mmusl): New option.
26865 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26866 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26868 * configure: Regenerate.
26870 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
26872 * config.gcc (LIBC_MUSL): New tm_defines macro.
26873 * config/linux.h (OPTION_MUSL): Define.
26874 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26875 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26876 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26878 * config/linux.opt (mmusl): New option.
26879 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26880 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26882 * configure: Regenerate.
26884 2015-04-22 Yury Gribov <y.gribov@samsung.com>
26886 * doc/invoke.texi (-fsanitize-sections): Update description.
26887 * asan.c (set_sanitized_sections): Parse incoming arg.
26888 (section_sanitized_p): Support wildcards.
26890 2015-04-22 Tom de Vries <tom@codesourcery.com>
26892 PR tree-optimization/65823
26893 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
26894 equality between ap_copy and ap.
26896 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26899 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
26901 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26904 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
26906 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26909 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
26910 remove already contained t-files.
26912 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26914 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
26915 Remove unneeded forward declarations.
26916 (suitable_for_tail_call_opt_p): Commentary typo fix.
26918 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26920 * varasm.c (emit_bss): Remove redundant guard.
26922 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26924 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
26926 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26928 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
26930 2015-04-22 Hale Wang <hale.wang@arm.com>
26931 Terry Guo <terry.guo@arm.com>
26933 PR rtl-optimization/64818
26934 * combine.c (can_combine_p): Don't combine user-specified
26935 register if it is in an asm input.
26937 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
26940 * passes.def (early_optimizations): Add pass_dse.
26942 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26944 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
26945 * reorg.c (redundant_insn): Remove ifdef
26946 INSN_REFERENCES_ARE_DELAYED.
26947 * resource.c (mark_referenced_resources): Likewise.
26949 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26951 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
26952 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
26953 * resource.c (mark_set_resources): Likewise.
26955 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26957 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
26958 * cfgcleanup.c (flow_find_cross_jump): Likewise.
26959 (flow_find_head_matching_sequence): Likewise.
26960 (try_head_merge_bb): Likewise.
26961 * combine.c (can_combine_p): Likewise.
26962 (try_combine): Likewise.
26963 (distribute_notes): Likewise.
26964 * df-problems.c (can_move_insns_across): Likewise.
26965 * final.c (final): Likewise.
26966 * gcse.c (insert_insn_end_basic_block): Likewise.
26967 * ira.c (find_moveable_pseudos): Likewise.
26968 * reorg.c (try_merge_delay_insns): Likewise.
26969 (fill_simple_delay_slots): Likewise.
26970 (fill_slots_from_thread): Likewise.
26971 * sched-deps.c (sched_analyze_2): Likewise.
26973 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26975 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
26976 PIC_OFFSET_TABLE_REGNUM.
26978 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26980 * alias.c (init_alias_target): Remove ifdef
26981 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
26982 * df-scan.c (df_insn_refs_collect): Likewise.
26983 (df_get_regular_block_artificial_uses): Likewise.
26984 (df_get_eh_block_artificial_uses): Likewise.
26985 (df_get_entry_block_def_set): Likewise.
26986 (df_get_exit_block_use_set): Likewise.
26987 * emit-rtl.c (gen_rtx_REG): Likewise.
26988 * ira.c (ira_setup_eliminable_regset): Likewise.
26989 * reginfo.c (init_reg_sets_1): Likewise.
26990 * regrename.c (rename_chains): Likewise.
26991 * reload1.c (reload): Likewise.
26992 (eliminate_regs_in_insn): Likewise.
26993 * resource.c (mark_referenced_resources): Likewise.
26994 (init_resource_info): Likewise.
26996 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26998 * defaults.h (MASK_RETURN_ADDR): New definition.
26999 * except.c (expand_builtin_extract_return_addr): Remove ifdef
27002 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27004 * defaults.h (RETURN_ADDR_OFFSET): New definition.
27005 * except.c (expand_builtin_extract_return_addr): Remove ifdef
27006 RETURN_ADDR_OFFSET.
27007 (expand_builtin_frob_return_addr): Likewise.
27009 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27011 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
27012 (try_redirect_by_replacing_jump): Likewise.
27013 (rtl_tidy_fallthru_edge): Likewise.
27014 * combine.c (insn_a_feeds_b): Likewise.
27015 (find_split_point): Likewise.
27016 (simplify_set): Likewise.
27017 * cprop.c (cprop_jump): Likewise.
27018 * cse.c (cse_extended_basic_block): Likewise.
27019 * df-problems.c (can_move_insns_across): Likewise.
27020 * function.c (emit_use_return_register_into_block): Likewise.
27021 * haifa-sched.c (sched_init): Likewise.
27022 * ira.c (find_moveable_pseudos): Likewise.
27023 * loop-invariant.c (find_invariant_insn): Likewise.
27024 * lra-constraints.c (curr_insn_transform): Likewise.
27025 * postreload.c (reload_combine_recognize_const_pattern):
27027 * reload.c (find_reloads): Likewise.
27028 * reorg.c (delete_scheduled_jump): Likewise.
27029 (steal_delay_list_from_target): Likewise.
27030 (steal_delay_list_from_fallthrough): Likewise.
27031 (redundant_insn): Likewise.
27032 (fill_simple_delay_slots): Likewise.
27033 (fill_slots_from_thread): Likewise.
27034 (delete_computation): Likewise.
27035 * sched-rgn.c (add_branch_dependences): Likewise.
27037 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27039 * genconfig.c (main): Always define HAVE_cc0.
27040 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
27042 * cfgcleanup.c (flow_find_cross_jump): Likewise.
27043 (flow_find_head_matching_sequence): Likewise.
27044 (try_head_merge_bb): Likewise.
27045 * cfgrtl.c (rtl_merge_blocks): Likewise.
27046 (try_redirect_by_replacing_jump): Likewise.
27047 (rtl_tidy_fallthru_edge): Likewise.
27048 * combine.c (do_SUBST_MODE): Likewise.
27049 (insn_a_feeds_b): Likewise.
27050 (combine_instructions): Likewise.
27051 (can_combine_p): Likewise.
27052 (try_combine): Likewise.
27053 (find_split_point): Likewise.
27055 (simplify_set): Likewise.
27056 (distribute_notes): Likewise.
27057 * cprop.c (cprop_jump): Likewise.
27058 * cse.c (cse_extended_basic_block): Likewise.
27059 * df-problems.c (can_move_insns_across): Likewise.
27060 * final.c (final): Likewise.
27061 (final_scan_insn): Likewise.
27062 * function.c (emit_use_return_register_into_block): Likewise.
27063 * gcse.c (insert_insn_end_basic_block): Likewise.
27064 * haifa-sched.c (sched_init): Likewise.
27065 * ira.c (find_moveable_pseudos): Likewise.
27066 * loop-invariant.c (find_invariant_insn): Likewise.
27067 * lra-constraints.c (curr_insn_transform): Likewise.
27068 * optabs.c (prepare_cmp_insn): Likewise.
27069 * postreload.c (reload_combine_recognize_const_pattern):
27071 * reload.c (find_reloads): Likewise.
27072 (find_reloads_address_1): Likewise.
27073 * reorg.c (delete_scheduled_jump): Likewise.
27074 (steal_delay_list_from_target): Likewise.
27075 (steal_delay_list_from_fallthrough): Likewise.
27076 (try_merge_delay_insns): Likewise.
27077 (redundant_insn): Likewise.
27078 (fill_simple_delay_slots): Likewise.
27079 (fill_slots_from_thread): Likewise.
27080 (delete_computation): Likewise.
27081 (relax_delay_slots): Likewise.
27082 * sched-deps.c (sched_analyze_2): Likewise.
27083 * sched-rgn.c (add_branch_dependences): Likewise.
27085 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27087 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
27088 that is trivially ded on non cc0 targets.
27089 (simplify_set): Likewise.
27090 (mark_used_regs_combine): Likewise.
27091 * cse.c (new_basic_block): Likewise.
27092 (fold_rtx): Likewise.
27093 (cse_insn): Likewise.
27094 (cse_extended_basic_block): Likewise.
27095 (set_live_p): Likewise.
27096 * rtlanal.c (canonicalize_condition): Likewise.
27097 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
27099 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27101 * conditions.h: Define macros even if HAVE_cc0 is undefined.
27102 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
27103 * final.c: Likewise.
27104 * jump.c: Likewise.
27105 * recog.c: Likewise.
27106 * recog.h: Declare functions even when HAVE_cc0 is undefined.
27107 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
27109 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27111 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
27112 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
27113 * builtins.c (expand_builtin): Remove check if
27114 EH_RETURN_DATA_REGNO is defined.
27115 * df-scan.c (df_bb_refs_collect): Likewise.
27116 (df_get_exit_block_use_set): Likewise.
27117 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
27118 * ira-lives.c (process_bb_node_lives): Likewise.
27119 * lra-lives.c (process_bb_lives): Likewise.
27121 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27123 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
27124 FIRST_PSEUDO_REG): New.
27125 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
27126 (ARG_POINTER_REGNUM): Define to ARGP_REG.
27127 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
27128 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
27129 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
27130 (FIRST_INT_REG): New.
27131 (LAST_INT_REG): New.
27132 (FIRST_*_REG): Define using *_REG.
27133 (LAST_*_REG): Ditto.
27134 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
27135 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
27136 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
27138 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27140 * expmed.c: (synth_mult): Only assume overlapping
27141 shift with previous steps in alg_sub_t_m2 case.
27143 2015-04-21 Richard Biener <rguenther@suse.de>
27145 PR tree-optimization/65650
27146 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
27147 transitions involving copies.
27148 (set_lattice_value): Adjust for copy lattice state.
27149 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
27150 if that doesn't dominate the merge point.
27151 (bit_value_unop): Adjust what we treat as varying mask.
27152 (bit_value_binop): Likewise.
27153 (bit_value_assume_aligned): Likewise.
27154 (evaluate_stmt): When we simplified to a SSA name record a copy
27155 instead of dropping to varying.
27156 (visit_assignment): Simplify.
27158 * gimple-match.h (gimple_simplify): Add another callback.
27159 * gimple-fold.c (fold_stmt_1): Adjust caller.
27160 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
27161 for the 2nd callback.
27162 * gimple-match-head.c (gimple_simplify): Add a callback that is
27163 used to valueize the stmt operands and use it that way.
27165 2015-04-21 Richard Biener <rguenther@suse.de>
27167 PR tree-optimization/65788
27168 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
27170 2015-04-21 Richard Biener <rguenther@suse.de>
27172 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
27173 vec_construct cost by vec_stmt_cost.
27175 2015-04-21 Richard Biener <rguenther@suse.de>
27177 * cfghooks.h (create_basic_block): Replace with two overloads
27178 for RTL and GIMPLE.
27179 (split_block): Likewise.
27180 * cfghooks.c (split_block): Rename to ...
27181 (split_block_1): ... this.
27182 (split_block): Add two type-safe overloads for RTL and GIMPLE.
27183 (split_block_after_labels): Call split_block_1.
27184 (create_basic_block): Rename to ...
27185 (create_basic_block_1): ... this.
27186 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
27187 (create_empty_bb): Call create_basic_block_1.
27188 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
27189 split_block_after_labels.
27190 * omp-low.c (expand_parallel_call): Likewise.
27191 (expand_omp_target): Likewise.
27192 (simd_clone_adjust): Likewise.
27193 * tree-chkp.c (chkp_get_entry_block): Likewise.
27194 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
27195 create_basic_block overload.
27196 (cgraph_node::expand_thunk): Likewise.
27197 * tree-cfg.c (make_blocks): Likewise.
27198 (handle_abnormal_edges): Likewise.
27199 * tree-inline.c (copy_bb): Likewise.
27201 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27203 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
27205 (*xor_one_cmplsidi3_ze): Likewise.
27207 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
27209 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
27210 use df_remove_problem rather than manually removing problems, leaving
27211 holes in df->problems_in_order[].
27213 2015-04-21 Tom de Vries <tom@codesourcery.com>
27215 PR tree-optimization/65802
27216 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
27218 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27220 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
27222 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
27223 at '.'. Assert that there's enough space for everything.
27225 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
27227 PR tree-optimization/64950
27229 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
27232 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
27235 2015-04-20 Shiva Chen <shiva0217@gmail.com>
27237 PR rtl-optimization/64916
27238 * cfgcleanup.c (values_equal_p): New function.
27239 (can_replace_by): Use it.
27241 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
27244 * doc/invoke.texi ([-Wnarrowing]): Update.
27246 2015-04-20 Jeff Law <law@redhat.com>
27248 PR tree-optimization/65658
27249 * tree-ssa-threadupdate.c (redirection_block_p): Remove
27250 redundant test for GIMPLE_ASSIGN in last change.
27252 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
27254 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
27255 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
27256 (legitimize_tls_address): Ditto.
27257 (ix86_expand_move): Ditto.
27258 (ix86_expand_binary_operator): Remove reload_in_progress checks.
27259 (ix86_expand_unary_operator): Ditto.
27260 * config/i386/predicates.md (index_register_operand): Ditto.
27262 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
27264 * reorg.c (try_merge_delay_insns): Improve correctness checking
27265 for targets with multiple delay slots.
27267 2015-04-20 Jeff Law <law@redhat.com>
27269 PR tree-optimization/65658
27270 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
27273 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27275 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
27276 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
27279 2015-04-20 Jakub Jelinek <jakub@redhat.com>
27282 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
27284 2015-04-20 Richard Biener <rguenther@suse.de>
27286 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
27287 * gimple-fold.c (gimple_build_valueize): New function.
27288 (gimple_build): Always use gimple_build_valueize as valueize hook.
27290 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
27293 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
27294 and overwrite variable parts if <= 1/2 the elements are variable.
27296 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
27298 PR rtl-optimization/65805
27299 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
27300 Don't use difference of offset and previous offset if
27301 update_sp_offset is non-zero.
27302 (eliminate_regs_in_insn): Ditto.
27303 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
27304 lra_eliminate_regs_1 call.
27305 * lra-constraints.c (get_equiv_with_elimination): Ditto.
27307 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
27309 * hash-table.h: Remove version of hash_table that stored value_type *.
27310 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
27311 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
27312 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
27313 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
27314 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
27315 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
27316 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
27317 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
27318 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
27319 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
27320 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
27321 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
27322 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
27323 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
27324 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
27325 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
27327 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27328 Jakub Jelinek <jakub@redhat.com>
27331 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
27332 subsequent SH_NONE operand does not overwrite an existing *special
27334 (adjust_extract): Handle case where a vec_extract operation is
27335 wrapped in a PARALLEL.
27337 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27340 * config/i386/i386.c (ix86_binds_local_p): Define only if
27341 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
27343 2015-04-17 Jeff Law <law@redhat.com>
27345 PR tree-optimization/47679
27346 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
27347 * tree-ssa-scopedtables.c: New file.
27348 * tree-ssa-scopedtables.h: New file.
27349 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
27350 (const_and_copies): Change name/type.
27351 (record_const_or_copy): Move into tree-ssa-scopedtables.c
27352 (record_const_or_copy_1): Similarly.
27353 (restore_vars_to_original_value): Similarly.
27354 (pass_dominator::execute): Create and destroy const_and_copies table.
27355 (thread_across_edge): Update passing of const_and_copies.
27356 (record_temporary_equivalence): Use method calls rather than
27357 manipulating const_and_copies directly.
27358 (record_equality, cprop_into_successor_phis): Similarly.
27359 (dom_opt_dom_walker::before_dom_children): Similarly.
27360 (dom_opt_dom_walker::after_dom_children): Similarly.
27361 (eliminate_redundant_computations): Similarly.
27362 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
27363 (record_temporary_equivalence): Likewise.
27364 (invalidate_equivalences): Likewise.
27365 (record_temporary_equivalences_from_phis): Update due to type
27366 change of const_and_copies. Use method calls rather than
27367 manipulating the stack directly.
27368 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
27369 (thread_through_normal_block, thread_across_edge): Likewise.
27370 (thread_across_edge): Likewise.
27371 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
27372 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
27374 (identify_jump_threads): Update due to type change of equiv_stack.
27375 (finalize_jump_threads): Delete the equiv_stack when complete.
27377 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
27379 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
27380 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
27381 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
27383 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
27386 * config.gcc: Exit with a comment when we do not have a major version
27387 number for the FreeBSD target.
27389 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27392 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
27393 maybe_allows_mem bitfields.
27394 (maybe_allows_none_start, maybe_allows_none_end,
27395 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
27396 maybe_allows_mem_end): New variables.
27397 (compute_maybe_allows): New function.
27398 (add_constraint): Use it to initialize maybe_allows_reg and
27399 maybe_allows_mem fields.
27400 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
27401 is_address constraints such that those that allow neither mem nor
27402 reg come first, then those that only allow reg but not mem, then
27403 those that only allow mem but not reg, then the rest.
27404 (write_allows_reg_mem_function): New function.
27405 (write_tm_preds_h): Call it.
27406 * stmt.c (parse_output_constraint, parse_input_constraint): Use
27407 the generated insn_extra_constraint_allows_reg_mem function
27408 instead of always setting *allows_reg = true; *allows_mem = true;
27409 for unknown extra constraints.
27411 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
27414 * output.h (default_binds_local_p_3): New.
27415 * varasm.c (default_binds_local_p_3): Make it public. Take an
27416 argument to indicate if common symbol may be local. If common
27417 symbol may be local, treat non-external variable as defined
27419 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
27420 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
27421 * config/i386/i386.c (ix86_binds_local_p): New.
27422 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
27423 ix86_binds_local_p.
27425 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27428 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
27429 trying mem_loc_descriptor on XEXP (rtl, 0).
27431 2015-04-17 Martin Liska <mliska@suse.cz>
27433 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
27434 Release symbol_compare_collection.
27435 * ipa-reference.c: Add TODO that a vector should be released.
27437 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
27440 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
27441 to new AVR-LibC file layout (bug #44574).
27442 (*avrlibc_devicelib): Same.
27443 * config/avr/avr-mcus.def: Adjust comments.
27444 * config/avr/avr.opt (nodevicelib): Adjust help.
27446 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
27448 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
27450 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
27453 * gimplify.c (gimplify_init_constructor): Always emit a
27454 side-effecting constructor.
27456 2015-04-17 Tom de Vries <tom@codesourcery.com>
27458 PR tree-optimization/64950
27459 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
27460 in cfun->curr_properties.
27461 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
27462 if we generate an IFN_VA_ARG.
27463 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
27464 function if PROP_gimple_lva is not set in src function.
27466 2015-04-17 Tom de Vries <tom@codesourcery.com>
27467 Michael Matz <matz@suse.de>
27469 PR tree-optimization/64950
27470 * gimple-iterator.c (update_modified_stmts): Remove static.
27471 * gimple-iterator.h (update_modified_stmts): Declare.
27472 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
27473 (gimplify_va_arg_internal): New function.
27474 (gimplify_va_arg_expr): Use IFN_VA_ARG.
27475 * gimplify.h (gimplify_va_arg_internal): Declare.
27476 * internal-fn.c (expand_VA_ARG): New unreachable function.
27477 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
27478 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
27479 (expand_ifn_va_arg): New function.
27480 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
27481 (pass_stdarg::execute): Call expand_ifn_va_arg.
27482 (pass_data_lower_vaarg): New pass_data.
27483 (pass_lower_vaarg): New gimple_opt_pass.
27484 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
27485 (make_pass_lower_vaarg): New function.
27486 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
27487 properties_required field.
27488 * passes.def (all_passes): Add pass_lower_vaarg.
27489 * tree-pass.h (PROP_gimple_lva): Add define.
27490 (make_pass_lower_vaarg): Declare.
27492 2015-04-17 Tom de Vries <tom@codesourcery.com>
27494 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
27495 * calls.c (call_expr_flags): Same.
27497 2015-04-17 Tom de Vries <tom@codesourcery.com>
27499 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
27500 (pass_stdarg::execute): ... here.
27502 2015-04-17 Tom de Vries <tom@codesourcery.com>
27503 Michael Matz <matz@suse.de>
27505 * tree-cfg.c (make_blocks_1): Factor out of ...
27506 (make_blocks): ... here.
27507 (make_edges_bb): Factor out of ...
27508 (make_edges): ... here.
27509 (gimple_find_sub_bbs): New function.
27510 * tree-cfg.h (gimple_find_sub_bbs): Declare.
27512 2015-04-17 Tom de Vries <tom@codesourcery.com>
27514 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
27516 2015-04-17 Yury Gribov <y.gribov@samsung.com>
27518 * asan.c (set_sanitized_sections): New function.
27519 (section_sanitized_p): Ditto.
27520 (asan_protect_global): Optionally sanitize user-defined
27522 * asan.h (set_sanitized_sections): Declare new function.
27523 * common.opt (fsanitize-sections): New option.
27524 * doc/invoke.texi (-fsanitize-sections): Document new option.
27525 * opts-global.c (handle_common_deferred_options): Handle new
27528 2015-04-17 Jakub Jelinek <jakub@redhat.com>
27531 * dwarf2out.c (loc_list_from_tree): Return NULL
27532 for DEBUG_EXPR_DECL.
27534 2015-04-17 Christian Bruel <christian.bruel@st.com>
27536 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
27539 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
27541 * ira-color.c (setup_left_conflict_sizes_p): Do not process
27542 node itself when computing left conflict subnode size.
27544 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27546 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
27547 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
27548 *fop_<mode>_1_sse using enabled attribute. Use
27549 register_mixssei387nonimm_operand operand 1 predicate. Change
27550 alternative 3 constraints from "x" to "v".
27552 2015-04-16 Richard Biener <rguenther@suse.de>
27554 PR tree-optimization/65774
27555 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
27556 bit-value tracking on.
27558 2015-04-16 Richard Biener <rguenther@suse.de>
27560 PR tree-optimization/64277
27561 * tree-vrp.c (check_array_ref): Fix anti-range handling,
27562 simplify upper bound handling.
27563 (search_for_addr_array): Simplify.
27564 (check_array_bounds): Handle ADDR_EXPRs here.
27565 (check_all_array_refs): Simplify.
27567 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
27569 * config/i386/i386.c (print_reg): Rewrite function.
27571 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27573 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
27574 Invert the condition.
27576 2015-04-16 Renlin Li <renlin.li@arm.com>
27578 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
27579 simplifications for UNSIGNED_FLOAT.
27581 2015-04-16 Nick Clifton <nickc@redhat.com>
27583 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
27585 (enum rl78_cpu_type): New.
27586 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
27587 (umulhi3_shift_virt): Remove m constraint from operand 1.
27588 (umulqihi3_virt): Likewise.
27589 * config/rl78/rl78.c (rl78_option_override): Add code to process
27590 -mcpu and -mmul options.
27591 (rl78_alloc_physical_registers): Add code to handle divhi and
27592 divsi valloc attributes.
27593 (set_origin): Likewise.
27594 * config/rl78/rl78.h (RL78_MUL_G14): Define.
27595 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
27596 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
27598 (ASM_SPEC): Pass -mcpu on to assembler.
27599 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
27600 (mulqi3_rl78): Likewise.
27601 (mulhi3_g13): Likewise.
27602 (mulhi3): Generate the G13 or G14 versions of the insn directly.
27603 (mulsi3): Likewise.
27604 (mulhi3_g14): Add clobbers of AX and BC.
27605 (mulsi3_g14): Likewise.
27606 (mulsi3_g13): Likewise.
27607 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
27608 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
27609 * config/rl78/rl78.opt (mmul): Initialise value to
27611 (mcpu): New option.
27612 (m13, m14, mrl78): New option aliases.
27613 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
27614 (MULTILIB_DIRNAMES): Add g13 and g14.
27615 * doc/invoke.texi: Document -mcpu and -mmul options.
27617 2015-04-16 Richard Biener <rguenther@suse.de>
27619 * tree-ssa-ccp.c (likely_value): See if we have operands that
27620 are marked as never simulate again and return CONSTANT in this
27622 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
27623 not have any operands that will be simulated again as
27624 not being simulated again.
27626 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
27628 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
27629 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
27630 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
27632 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
27634 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
27635 *float<SWI48:mode><MODEF:mode>2_sse.
27636 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
27638 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
27641 2015-04-15 Tom de Vries <tom@codesourcery.com>
27644 * function.c (push_dummy_function): New function.
27645 (init_dummy_function_start): Use push_dummy_function.
27646 (pop_dummy_function): New function. Factored out of ...
27647 (expand_dummy_function_end): ... here.
27648 * function.h (push_dummy_function, pop_dummy_function): Declare.
27649 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
27650 pop_dummy_function.
27651 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
27653 2015-04-15 Jeff Law <law@redhat.com>
27655 PR tree-optimization/47679
27656 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
27657 need for forward declaration in upcoming changes.
27658 (record_conditions, record_edge_info): Likewise.
27660 PR rtl-optimization/42522
27661 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
27662 SIGN_EXTRACT as a whole object rather than simplifying
27665 2015-04-15 Jakub Jelinek <jakub@redhat.com>
27668 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
27669 and GIMPLE_PREDICT use break instead of return true. For
27670 GIMPLE_EH_DISPATCH, compare dispatch region.
27672 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
27674 * doc/extend.texi (__sync Builtins): Simplify some text. Update
27675 details about the implementation. Make clear preference for
27676 __atomic builtins. Reduce possibility of future change.
27678 2015-04-15 Nick Clifton <nickc@redhat.com>
27680 * config/rx/rx.opt (mallow-string-insns): New option.
27681 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
27682 builtin if string instructions are denied.
27683 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
27684 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
27686 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
27687 * config/rx/rx.md (movstr): Enable pattern only if string
27688 instructions are allowed.
27689 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
27690 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
27691 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
27692 (MULTILIB_DIRNAMES): Add no-strings.
27693 * doc/invoke.texi: Document -mno-allow-string-insns.
27695 2015-04-15 Alan Modra <amodra@gmail.com>
27699 PR middle-end/36043
27700 * calls.c (load_register_parameters): Don't load past end of
27701 mem unless suitably aligned.
27703 2015-04-15 Nick Clifton <nickc@redhat.com>
27705 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
27706 decrement instruction as being frame related.
27707 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
27709 If zero extending a function address enclose the operation in
27711 (rl78_preferred_reload_class): New function.
27712 (TARGET_PREFERRED_RELOAD_CLASS): Define.
27713 * config/rl78/rl78.md: Remove useless constraints in expanders.
27714 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
27715 (mulhi3_rl78): Likewise.
27716 (mulhi3_g13): Likewise.
27717 (mulsi3_rl78): Likewise.
27718 (es_addr): Move to before the multiply patterns.
27720 2015-04-15 Alan Modra <amodra@gmail.com>
27722 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
27723 and sequence_stack. Add seq.
27724 (seq_stack): Delete.
27725 * function.c (prepare_function_start): Don't access x_last_insn.
27726 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
27727 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
27728 * emit_rtl.c (start_sequence, push_topmost_sequence,
27729 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
27730 sequence accessors.
27731 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
27732 remove_insn): Likewise. Simplify.
27733 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
27734 and pop_topmost_sequence.
27735 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
27737 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
27739 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
27742 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
27745 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27747 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
27748 (LEGACY_INT_REGNO_P): Ditto.
27749 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
27750 (ANY_MASK_REG_P): Remove.
27751 (BND_REG_P): Rename from ANY_BND_REG_P.
27752 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
27753 legacy integer registers. Do not handle MMX_REG_P in a special way.
27754 Merge 64byte and 32byte SSE handling.
27756 2015-04-14 Nick Clifton <nickc@redhat.com>
27758 * expr.c (expand_assignment): Force an address offset computation
27759 into a register before changing its mode.
27760 (expand_expr_real_1): Likewise.
27762 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
27764 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
27765 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
27766 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
27767 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
27768 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
27769 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
27770 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
27771 and __aarch64_vget_lane_any.
27773 2015-04-14 Jakub Jelinek <jakub@redhat.com>
27775 PR rtl-optimization/65761
27776 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
27777 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
27779 2015-04-14 Richard Biener <rguenther@suse.de>
27781 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
27782 (graphite_can_represent_scev): Use POINTER_TYPE_P.
27784 2015-04-14 Richard Biener <rguenther@suse.de>
27786 PR tree-optimization/65758
27787 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
27789 (ccp_lattice_meet): Likewise.
27790 (bit_value_unop): Likewise.
27791 (bit_value_binop): Likewise.
27792 (bit_value_assume_aligned): Likewise.
27794 2015-04-14 Christian Bruel <christian.bruel@st.com>
27796 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
27799 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
27801 PR tree-optimization/63387
27802 * match.pd ((x unord x) | (y unord y) -> (x unord y),
27803 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
27805 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
27807 * config/i386/predicates.md (any_QIreg_operand): Rename from
27808 q_regs_operand. Do not process subregs.
27809 (QIreg_operand): Use QI_REGNO_P predicate.
27810 (ext_QIreg_operand): Ditto.
27811 (ext_register_operand): Ditto.
27812 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
27813 (AND splitters): Ditto.
27814 (AND with -65536 splitter): Add SWI48 mode for operand 0.
27815 (AND with -256 splitter): Use any_QIreg_operand predicate and
27816 SWI248 mode for operand 0.
27817 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
27818 mode for operand 0.
27819 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
27821 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
27823 * doc/plugins.texi: Rewrite first introductory paragraph.
27825 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27827 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
27828 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
27830 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27832 * ipa-profie.c (ipa_profile): Check number of parameters
27833 and possible polymorphic call targets before
27836 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
27838 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
27839 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
27841 2015-04-13 Richard Biener <rguenther@suse.de>
27843 PR tree-optimization/65204
27844 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
27845 takens for bit-CCP.
27847 2015-04-13 Richard Biener <rguenther@suse.de>
27850 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
27851 and cond_not_taken_branch_cost to 4 and 2.
27852 (bdver2_cost): Likewise.
27853 (bdver3_cost): Likewise.
27854 (bdver4_cost): Likewise.
27856 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27858 * hash-table.h (hash_table constructor): Add mem stats.
27859 (alloc_entries): Likewise.
27861 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27863 * ipa-cp.c (ipcp_driver): Relase prev_edge.
27864 * passes.c (execute_one_pass): Only add transform if pass has one.
27866 2015-04-12 Joseph Myers <joseph@codesourcery.com>
27868 * config/i386/i386.c (ix86_option_override_internal): Don't set
27869 -fprefetch-loop-arrays if optimizing for size.
27871 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
27872 Gerald Pfeifer <gerald@pfeifer.com>
27874 * doc/contrib.texi (Contributors): Add Martin Jambor and
27877 2015-04-12 Jakub Jelinek <jakub@redhat.com>
27879 * BASE-VER: Set to 6.0.0.
27881 PR tree-optimization/65747
27882 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
27883 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
27885 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27887 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
27888 sentence. Improve grammar.
27890 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
27892 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
27894 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27897 * ipa-inline-transform.c (speculation_removed): Remove static var.
27898 (check_speculations): New function.
27899 (clone_inlined_nodes): Do not check spculations.
27900 (inline_call): Call check_speculations.
27901 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
27902 consider non-invariants.
27904 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
27905 Martin Liska <mliska@suse.cz>
27908 * ipa-icf.c (sem_item::compare_cgraph_references): function and
27909 variable can not match.
27910 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
27911 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
27913 2015-04-11 Jakub Jelinek <jakub@redhat.com>
27915 PR tree-optimization/65735
27916 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
27917 Remove visited_phis argument, add visited_bbs, avoid recursing into the
27918 same bb rather than just into the same phi node.
27919 (thread_through_normal_block): Adjust caller.
27921 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27923 * doc/contrib.texi (Contributors): Add Ira Rosen.
27925 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
27927 * gcov.c (find_source): Fix miswording in error message.
27928 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
27929 (ix86_expand_sse_comi_round): Fix typo in error message.
27931 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
27933 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
27935 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
27937 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
27939 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27942 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
27943 Print bad_spills_num and insn_pseudos_num.
27945 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27948 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
27949 when creating +1 values for SImode.
27951 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
27954 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
27957 2015-04-10 Jakub Jelinek <jakub@redhat.com>
27958 Iain Sandoe <iain@codesourcery.com>
27961 * configure: Regenerate.
27963 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
27966 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
27968 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
27970 * doc/contrib.texi (Contributors): Add John Marino.
27972 2015-04-09 Jakub Jelinek <jakub@redhat.com>
27974 PR tree-optimization/65709
27975 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
27976 TREE_TYPE (TREE_TYPE (t)).
27978 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
27981 * lra-int.h (lra_bad_spill_regno_start): New.
27982 * lra.c (lra_bad_spill_regno_start): New.
27983 (lra): Set up lra_bad_spill_regno_start. Set up
27984 lra_constraint_new_regno_start unconditionally.
27985 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
27988 2015-04-09 Marek Polacek <polacek@redhat.com>
27989 Jakub Jelinek <jakub@redhat.com>
27991 PR middle-end/65554
27992 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
27993 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
27996 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
27998 PR rtl-optimization/65693
27999 * combine.c (is_parallel_of_n_reg_sets): Move outside of
28002 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
28005 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
28006 device specs file if "device-specs%s" didn't resolve to a path.
28008 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
28011 * config/i386/i386.c (fixup_modeless_constant): New.
28012 (ix86_expand_args_builtin): Fixup modeless constant operand.
28013 (ix86_expand_round_builtin): Ditto.
28014 (ix86_expand_special_args_builtin): Ditto.
28015 (ix86_expand_builtin): Ditto.
28017 2015-04-09 Jakub Jelinek <jakub@redhat.com>
28020 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
28021 any pow2 integer in between 2 and 0x80000000U inclusive.
28023 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
28025 PR rtl-optimization/65693
28026 * combine.c (is_parallel_of_n_reg_sets): Change first argument
28027 from an rtx_insn * to an rtx.
28028 (try_combine): Adjust both callers. Use it once more.
28030 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28032 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
28033 (chkp_make_static_const_bounds): Search existing
28034 symbol by assembler name. Use make_decl_one_only.
28035 (chkp_get_zero_bounds_var): Remove node search which
28036 is now performed in chkp_make_static_const_bounds.
28037 (chkp_get_none_bounds_var): Likewise.
28039 2015-04-08 Michael Witten <mfwitten@gmail.com>
28041 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
28044 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28046 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
28048 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
28050 * doc/extend.texi (__sync Builtins): Fix grammar.
28052 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28054 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
28056 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28058 * varasm.c (emit_local): Move definition of align.
28060 2015-04-08 Julian Brown <julian@codesourcery.com>
28062 * config/nvptx/mkoffload.c (process): Support variable mapping.
28064 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
28066 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
28068 (alpha_write_one_linkage): Correct typo.
28070 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28072 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
28074 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
28076 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
28078 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
28080 * tree-chkp.h (chkp_insert_retbnd_call): New.
28081 * tree-chkp.c (chkp_insert_retbnd_call): New.
28082 * ipa-split.c (insert_bndret_call_after): Remove.
28083 (split_function): Use chkp_insert_retbnd_call.
28084 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
28085 bounds for instrumented functions.
28087 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
28090 * calls.c (initialize_argument_information): When producing tail
28091 call also turn SSA_NAMES passed by references to original PARM_DECLs
28093 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
28096 * lra-remat.c (do_remat): Process input and non-input insn
28097 registers separately.
28099 2015-04-07 Jakub Jelinek <jakub@redhat.com>
28102 * valtrack.c (debug_lowpart_subreg): New function.
28103 (dead_debug_insert_temp): Use it.
28105 PR middle-end/65680
28106 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
28107 into signed HOST_WIDE_INT the same as negative bit_offset.
28109 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
28111 * ipa-comdats.c (ipa_comdats): Visit all thunks
28112 to set proper comdat group.
28114 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28117 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
28118 on constants for NEON VSTRUCT modes.
28120 2015-04-07 Jakub Jelinek <jakub@redhat.com>
28121 Iain Sandoe <iain@codesourcery.com>
28124 * configure: Regenerate.
28126 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28129 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
28130 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
28131 that LFD is used to load double constants instead of LFS. Add
28132 defaults for all costs structures. Add comments for missing
28133 initialization fields.
28134 (size32_cost): Likewise.
28135 (size64_cost): Likewise.
28136 (rs64a_cost): Likewise.
28137 (mpccore_cost): Likewise.
28138 (ppc403_cost): Likewise.
28139 (ppc405_cost): Likewise.
28140 (ppc440_cost): Likewise.
28141 (ppc476_cost): Likewise.
28142 (ppc601_cost): Likewise.
28143 (ppc603_cost): Likewise.
28144 (ppc604_cost): Likewise.
28145 (ppc604e_cost): Likewise.
28146 (ppc620_cost): Likewise.
28147 (ppc630_cost): Likewise.
28148 (ppccell_cost): Likewise.
28149 (ppc750_cost): Likewise.
28150 (ppc7450_cost): Likewise.
28151 (ppc8540_cost): Likewise.
28152 (ppce300c2c3_cost): Likewise.
28153 (ppce500mc_cost): Likewise.
28154 (ppce500mc64_cost): Likewise.
28155 (ppce5500_cost): Likewise.
28156 (ppce6500_cost): Likewise.
28157 (titan_cost): Likewise.
28158 (power4_cost): Likewise.
28159 (power6_cost): Likewise.
28160 (power7_cost): Likewise.
28161 (power8_cost): Likewise.
28162 (ppca2_cost): Likewise.
28163 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
28165 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
28166 instead of XXLOR to copy SFmode to clear out dirty bits created
28167 when SFmode denormals are generated.
28168 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
28169 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
28171 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28173 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
28174 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
28175 * config/aarch64/aarch64-tune.md: Regenerate.
28177 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
28179 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
28180 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
28181 * config/arm/arm-cores.def (exynos-m1): New core.
28182 * config/arm/arm-tune.md: Regenerate.
28183 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
28184 * config/arm/bpabi.h: Likewise.
28186 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28188 * ipa-cp (set_single_call_flag): Remove too
28189 restrictive assert.
28191 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
28193 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
28194 GOMP_offload_unregister from the destructor.
28196 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
28198 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
28199 flags for instrumentation thunk.
28200 (chkp_produce_thunks): Likewise.
28202 2015-04-05 Martin Liska <mliska@suse.cz>
28205 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
28206 has computed data structure.
28207 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28209 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
28211 * invoke.texi (inline-unit-growth): Increase growth to 20%
28212 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
28214 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
28217 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
28219 (lra_rematerialization_iter): New.
28220 * lra.c (lra): Initialize lra_rematerialization_iter.
28221 Stop updating lra_constraint_new_regno_start after switching of
28222 inheritance and rematerialization.
28223 * lra-remat.c (lra_rematerialization_iter): New.
28224 (lra_remat): Add printing pass iteration. Do rematerialization
28225 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
28227 2015-04-04 Richard Biener <rguenther@suse.de>
28229 PR tree-optimization/64909
28230 PR tree-optimization/65660
28231 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
28232 to take a cost vector for scalar iteration cost.
28233 (vect_get_single_scalar_iteration_cost): Likewise.
28234 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
28235 Compute the scalar iteration cost into a cost vector.
28236 (vect_get_known_peeling_cost): Use the scalar cost vector to
28237 account for the cost of the peeled iterations.
28238 (vect_estimate_min_profitable_iters): Likewise.
28239 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
28242 2015-04-04 Alan Modra <amodra@gmail.com>
28246 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
28247 0.0 constant unless TARGET_VSX.
28248 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
28251 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28254 * ipa-inline-transform.c (inline_call): Skip sanity check to work
28257 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28260 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
28261 speculative indirect edges to avoid ordering issue.
28263 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
28266 * ipa-inline.c (edge_badness): Add combined size to the denominator.
28268 2015-04-03 Jakub Jelinek <jakub@redhat.com>
28270 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
28271 TYPE_ARTIFICIAL on the .omp_data* types.
28273 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28275 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
28276 instrumentation thunks.
28278 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28280 * config/i386/i386.c (ix86_expand_call): Avoid nested
28281 PARALLEL in returned call value.
28283 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28285 * lto-cgraph.c (input_cgraph_1): Always link instrumented
28286 assembler name with original one.
28288 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28290 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
28292 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28294 Revert parts of r216820.
28295 * config/i386/i386.md (movqi_internal): Correct type calculation
28296 for alternatives 3 and 5.
28298 2015-04-02 Jakub Jelinek <jakub@redhat.com>
28300 PR preprocessor/61977
28301 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
28302 predefine __vector/__bool/__pixel macros nor context sensitive
28303 macros for CLK_ASM.
28304 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
28306 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
28308 * config/pa/pa.c (pa_output_move_double): Directly handle register
28309 indexed memory operand. Simplify handling of scaled register indexed
28312 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
28315 * config/i386/linux-common.h (MPX_SPEC): New.
28316 (CHKP_SPEC): Add MPX_SPEC.
28317 * doc/invoke.texi (-fcheck-pointer-boudns): Document
28318 possible issues with '-z bndplt' support in linker.
28320 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
28322 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
28323 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
28324 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
28325 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
28326 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
28328 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
28330 * config/i386/sync.md (UNSPEC_MOVA): Remove.
28331 (atomic_load<mode>): Change operand 0 predicate to
28332 nonimmediate_operand and fix up the destination when needed.
28334 (atomic_loaddi_fpu): Use UNSPEC_LDA.
28335 (atomic_store<mode>): Change operand 1 predicate to
28336 nonimmendate_operand and move the source to register when needed.
28338 (atomic_store<mode>_1): Use UNSPEC_STA.
28339 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
28340 Fix moves from memory operand. Use UNSPEC_STA.
28342 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
28344 * expmed.c (strict_volatile_bitfield_p): Check that the access will
28345 not cross a MODESIZE boundary.
28346 (store_bit_field, extract_bit_field): Added assertions in the
28347 strict volatile bitfields code path.
28349 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
28352 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
28353 Increase args array size by one to avoid buffer overflow.
28355 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28357 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28359 * ipa-inline.c (edge_badness): Add wrapper penalty.
28360 (sum_callers): Move up.
28361 (inline_small_functions): Set single_caller.
28362 * ipa-inline.h (inline_summary): Add single_caller.
28363 * ipa-split.c (split_function): Set split_part.
28364 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
28365 * cgraph.h (cgraph_node): Add split_part.
28367 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
28370 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
28371 Do not split operands 0 and operands 2 to halfmode.
28372 (atomic_compare_and_swap<mode>): Update for
28373 atomic_compare_and_swap<dwi>_doubleword changes.
28375 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
28377 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
28378 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
28379 no caching is done.
28381 2015-03-31 Martin Liska <mliska@suse.cz>
28384 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
28385 has already filled up function summary.
28386 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
28388 2015-03-31 Richard Biener <rguenther@suse.de>
28390 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
28393 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
28395 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
28397 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
28398 (s390_asm_output_function_label): Adapt to new signature of
28399 s390_function_num_hotpatch_hw
28400 Optimise the code generating assembler output.
28401 Add comments to assembler file.
28403 2015-03-31 Richard Biener <rguenther@suse.de>
28405 PR middle-end/65626
28406 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
28407 of the noreturn call so it is last and cleanup_control_flow_bb
28408 can do the CFG part.
28410 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
28413 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
28414 same_comdat_group for external symbols.
28415 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
28416 infinite same_comdat_group traversal loop.
28418 2015-03-31 Jakub Jelinek <jakub@redhat.com>
28421 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
28422 automatically to $headers.
28424 2015-03-30 Jakub Jelinek <jakub@redhat.com>
28427 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
28428 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
28430 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
28432 * ipa-prop.c (param_type_may_change_p): Likewise.
28433 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
28434 (remove_unused_scope_block_p): Add in_ctor_dtor_block
28435 argument. Before inlining, preserve
28436 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
28437 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
28439 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
28441 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28444 * ipa-inline.c (edge_badness): Base denominator on callee's
28447 2015-03-27 Martin Jambor <mjambor@suse.cz>
28450 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
28451 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
28452 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
28453 node_calling_single_call.
28454 * ipa-cp.c (count_callers): New function.
28455 (set_single_call_flag): Likewise.
28456 (initialize_node_lattices): Count callers and set single_flag_call if
28458 (incorporate_penalties): New function.
28459 (good_cloning_opportunity_p): Use it, dump new flags.
28460 (propagate_constants_topo): Set node_within_scc flag if appropriate.
28461 * doc/invoke.texi (ipa-cp-recursion-penalty,
28462 ipa-cp-single-call-pentalty): Document.
28464 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28467 * symtab.c (symtab_node::get_partitioning_class): Register vars
28469 * varpool.c (symbol_table::output_variables) Do not assemble unefined
28470 decls for non-symbols.
28472 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
28475 * output.h (default_binds_local_p_2): New.
28476 * varasm.c (default_binds_local_p_2): Renamed to ...
28477 (default_binds_local_p_3): This. Don't return true on protected
28478 data symbol if protected data may be external.
28479 (default_binds_local_p): Use default_binds_local_p_3.
28480 (default_binds_local_p_1): Likewise.
28481 (default_binds_local_p_2): New.
28482 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
28483 default_binds_local_p_2 if TARGET_MACHO is undefined.
28485 2015-03-27 Jakub Jelinek <jakub@redhat.com>
28488 * config/i386/i386.c (legitimize_pic_address): If base
28489 is SYMBOL_REF or LABEL_REF using %rip addressing, force
28490 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
28492 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28495 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
28498 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
28501 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
28502 of optimized out indirect call.
28503 (redirect_to_unreachable): Always build symbol table node for
28504 BUILT_IN_UNREACHABLE
28506 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
28509 * ira-costs.c (record_reg_classes): Process all constraint string
28512 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
28514 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
28518 * config/c6x/constraints.md (S3): New constraint.
28519 * config/c6x/c6x.md (real_jump): Use it.
28521 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28523 PR middle-end/65595
28524 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
28525 do redirection if the call is not optimized out.
28527 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
28530 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
28531 (fchkp-check-incomplete-type): Add LTO.
28532 (fchkp-zero-input-bounds-for-main): Likewise.
28533 (fchkp-first-field-has-own-bounds): Likewise.
28534 (fchkp-narrow-bounds): Likewise.
28535 (fchkp-narrow-to-innermost-array): Likewise.
28536 (fchkp-use-static-bounds): Likewise.
28537 (fchkp-use-static-const-bounds): Likewise.
28538 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
28540 2015-03-27 Marek Polacek <polacek@redhat.com>
28542 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
28544 2015-03-27 Marek Polacek <polacek@redhat.com>
28547 * ubsan.c (ubsan_create_edge): New function.
28548 (instrument_bool_enum_load): Call it.
28549 (instrument_nonnull_arg): Likewise.
28550 (instrument_nonnull_return): Likewise.
28551 (instrument_object_size): Likewise.
28553 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28555 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
28558 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28561 * lto-streamer.h (class lto_location_cache): New.
28562 (struct data_in): Add location_cache.
28563 (lto_input_location): Update prototype.
28564 (stream_input_location_now): New.
28565 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
28566 pointer to location.
28567 (stream_input_location): Update.
28568 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
28569 (warn_odr): Apply location cache before warning.
28570 (lto_input_location): Update prototype.
28571 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
28572 Use stream_input_location_now.
28573 * lto-streamer-in.c (lto_location_cache::current_cache): New static
28575 (lto_location_cache::cmp_loc): New function.
28576 (lto_location_cache::apply_location_cache): New function.
28577 (lto_location_cache::accept_location_cache): New function.
28578 (lto_location_cache::revert_location_cache): New function.
28579 (lto_location_cache::input_location): New function.
28580 (lto_input_location): Do location caching.
28581 (stream_input_location_now): New function.
28582 (input_eh_region, input_struct_function_base): Use
28583 stream_input_location_now.
28584 (lto_data_in_create): use new.
28585 (lto_data_in_delete): Use delete.
28586 * tree-streamer-in.c (unpack_ts_block_value_fields,
28587 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
28588 lto_input_ts_exp_tree_pointers): Update for cached location api.
28590 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28593 * passes.def: Add pass_nothrow.
28594 * ipa-pure-const.c: (pass_data_nothrow): New.
28595 (pass_nothrow): New.
28596 (pass_nothrow::execute): New.
28597 (make_pass_nothrow): New.
28598 * tree-pass.h (make_pass_nothrow): Declare.
28600 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28602 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
28603 edge to change by speculation resolution or redirection.
28604 (edge_set_predicate): Likewise.
28605 (inline_summary_t::duplicate): Likewise.
28606 (remap_edge_summaries): Likewise.
28608 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28610 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
28612 (can_inline_edge_p): Relax option matching for always inline functions.
28614 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
28617 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
28618 Check operand 4 and operand 0 for equality.
28619 (avx512f_vextract<shuffletype>32x4_1_maskm):
28620 Check operand 6 and operand 0 for equality.
28621 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
28623 (vec_extract_hi_<mode>_maskm): Ditto.
28625 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28627 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
28628 dead calls back to live.
28629 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
28631 (cgraph_node::verify_node): ... here; verify only callee edges,
28633 * cif-code.def (CILK_SPAWN): New code.
28635 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
28637 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
28638 (edge_set_predicate): Use it to mark unreachable edges.
28639 (inline_summary_t::duplicate): Remove unnecesary code.
28640 (remap_edge_summaries): Likewise.
28641 (dump_inline_summary): Report contains_cilk_spawn.
28642 (compute_inline_parameters): Compute contains_cilk_spawn.
28643 (inline_read_section, inline_write_summary): Stream
28644 contains_cilk_spawn.
28645 * ipa-inline.c (can_inline_edge_p): Do not touch
28646 DECL_STRUCT_FUNCTION that may not be available;
28647 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
28648 remove check for callee_fun->can_throw_non_call_exceptions and
28649 replace it by optimization attribute check; check for flag_exceptions.
28650 * ipa-inline-transform.c (inline_call): Maintain
28651 DECL_FUNCTION_PERSONALITY
28652 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
28654 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28656 PR tree-optimization/65551
28657 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
28658 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
28660 2015-03-26 Richard Biener <rguenther@suse.de>
28662 PR middle-end/65555
28663 * tree-cfg.c (verify_gimple_call): Do not require a call to
28664 have no LHS if it wasn't recognized as control altering yet.
28666 2015-03-26 Jakub Jelinek <jakub@redhat.com>
28668 PR tree-optimization/64715
28669 * passes.def: Add another instance of pass_object_sizes before ccp1.
28670 * tree-object-size.c (pass_object_sizes::execute): In
28671 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
28672 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
28673 __bos result and the computed constant. Remove redundant
28674 checks, obsoleted by gimple_call_builtin_p test.
28676 * var-tracking.c (variable_tracking_main_1): Don't track
28677 variables for targetm.no_register_allocation targets.
28679 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
28681 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
28682 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
28684 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
28687 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
28688 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
28689 0.0 is correctly setup.
28690 (extenddftf2_internal): Likewise.
28692 2015-03-25 Sebastian Pop <s.pop@samsung.com>
28694 PR tree-optimization/65177
28695 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
28697 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
28698 edges not adjacent on the path to the original code.
28700 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
28703 * doc/install.texi (Building a native compiler): Document new
28704 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
28705 configuration assumes that the host supports the linker plugin.
28707 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
28710 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
28711 chain for generated call.
28713 2015-03-25 Richard Biener <rguenther@suse.de>
28715 * passes.c (pass_manager::execute_early_local_passes): Guard
28716 execution of pass_chkp_instrumentation_passes with
28717 flag_check_pointer_bounds.
28718 (pass_chkp_instrumentation_passes::gate): Likewise.
28720 2015-03-25 Martin Liska <mliska@suse.cz>
28722 PR tree-optimization/65538
28723 * symbol-summary.h (function_summary::~function_summary):
28724 Relese memory for allocated summaries.
28725 (function_summary::release): New function.
28727 2015-03-25 Jakub Jelinek <jakub@redhat.com>
28730 * lto-streamer-out.c (DFS::worklist): New struct.
28731 (DFS::worklist_vec): New data member.
28732 (DFS::next_dfs_num): Remove.
28733 (DFS::DFS): Rewritten using worklist instead of recursion,
28734 using most of code from DFS::DFS_write_tree.
28735 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
28736 pass it to DFS_write_tree calls.
28737 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
28738 quick initial checks push it into worklist_vec and return.
28740 2015-03-25 Richard Biener <rguenther@suse.de>
28742 PR middle-end/65519
28743 * genmatch.c (expr::gen_transform): Re-write to avoid
28744 using gimple_build.
28746 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28748 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
28750 2015-03-25 Bin Cheng <bin.cheng@arm.com>
28752 * config/arm/arm.opt (print_tune_info): New option.
28753 * config/arm/arm.c (arm_print_tune_info): New function.
28754 (arm_file_start): Call arm_print_tune_info.
28755 * config/arm/arm-protos.h (struct tune_params): Add comment.
28756 * doc/invoke.texi (@item -mprint-tune-info): New item.
28757 (-mtune): mention it in ARM Option Summary.
28759 2015-03-25 DJ Delorie <dj@redhat.com>
28761 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
28764 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
28765 Martin Liska <mliska@suse.cz>
28767 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
28768 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
28769 (sem_item::add_type): New function.
28770 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
28771 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
28772 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
28773 (sem_function::equals_wpa): Fix typo.
28774 * ipa-icf.h (sem_item::add_type): New function.
28775 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
28778 2015-03-24 Jakub Jelinek <jakub@redhat.com>
28780 PR tree-optimization/65533
28781 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
28782 with swapped operands, call vect_free_slp_tree on
28783 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
28786 2015-03-24 Richard Biener <rguenther@suse.de>
28788 PR middle-end/65517
28789 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
28790 for fixup if necessary.
28792 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
28794 * doc/extend.texi (Function Attributes): Add @cindex entries
28795 for all attributes and regularize their format. Delete text
28796 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
28797 information about "eightbit_data", "tiny_data", and "model"
28798 variable attributes to the Variable Attributes section. Fix
28799 some obvious typos and copy-editing issues.
28800 (Variable Attributes, Type Attributes): Likewise add/fix
28801 @cindex entries for all attributes.
28803 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28806 * tree-chkp.c (chkp_build_returned_bound): Ignore
28807 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
28809 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
28812 * config/sh/predicates.md (simple_mem_operand,
28813 displacement_mem_operand): Add test for reg.
28814 (short_displacement_mem_operand): Test for displacement_mem_operand
28815 before invoking sh_disp_addr_displacement.
28816 * config/sh/constraints.md (Sdd, Sra): Simplify.
28817 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
28818 Remove redundant displacement_mem_operand tests.
28820 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
28823 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
28824 the same -mmcu=MCU more than once.
28826 2015-03-23 Jakub Jelinek <jakub@redhat.com>
28829 * ipa-devirt.c: Remove duplicate demangle.h include.
28832 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
28834 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
28835 REG_POINTER on *destptr after adjusting it for prologue size.
28838 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
28839 ultimate_alias_target ()->order ints instead of
28840 ultimate_alias_target () pointers.
28842 2015-03-23 Richard Biener <rguenther@suse.de>
28844 PR tree-optimization/65518
28845 * tree-vect-stmts.c (vectorizable_load): Reject single-element
28846 interleaving cases we generate absymal code for.
28848 2015-03-23 Richard Biener <rguenther@suse.de>
28850 PR tree-optimization/65494
28851 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
28853 (vect_analyze_slp_instance): But do that here, always and once.
28855 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28857 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
28858 adding T or multiplying by T+1 and subracting T.
28860 2015-03-22 Jeff Law <law@redhat.com>
28862 PR rtl-optimization/64317
28863 * Makefile.in (OBJS): Add gcse-common.c
28864 * gcse.c: Include gcse-common.h
28865 (struct modify_pair_s): Move structure definition to gcse-common.h
28866 (compute_transp): Move function to gcse-common.c.
28867 (canon_list_insert): Similarly.
28868 (record_last_mem_set_info): Break out some code and put it into
28869 gcse-common.c. Call into the new common code.
28870 (compute_local_properties): Pass additional arguments to compute_transp.
28871 * postreload-gcse.c: Include gcse-common.h and df.h
28872 (modify_mem_list_set, blocks_with_calls): New variables.
28873 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
28874 (get_bb_avail_insn): Pass in the expression index too.
28875 (alloc_mem): Allocate memory for the new bitmaps and lists.
28876 (free_mem): Free memory for the new bitmaps and lists.
28877 (insert_expr_in_table): Record a bitmap index for each entry we
28879 (record_last_mem_set_info): Call into common code in gcse-common.c.
28880 (get_bb_avail_insn): If no available insn was found in the requested
28881 BB. If BB has a single predecessor, see if the expression is
28882 transparent in BB and available in that single predecessor.
28883 (compute_expr_transp): New wrapper for compute_transp.
28884 (eliminate_partially_redundant_load): Pass expression's bitmap_index
28885 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
28886 (gcse_after_reload_main): If there are elements in the hash table,
28887 then compute transparency for all the elements in the hash table.
28888 * gcse-common.h: New file.
28889 * gcse-common.c: New file.
28891 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
28893 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
28895 (System Headers): Likewise.
28897 (Traditional macros): Likewise.
28898 (Invocation): Likewise.
28899 (Option Index): Likewise.
28900 * doc/cppopts.texi (-M): Likewise.
28901 (-finput-charset): Likewise.
28902 (--help): Likewise.
28903 * doc.invoke.texi (AVR Options): Likewise.
28904 (V850 Options): Likewise.
28906 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
28909 * ipa-devirt.c: Include demangle.h
28910 (odr_type_d): Add field rtti_broken.
28911 (odr_subtypes_equivalent_p): Do not require name to match.
28912 (compare_virtual_tables): Fix typo; if type already has ODR violation,
28913 bypass the tests; be ready for function referneces in vtables that are
28914 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
28915 (warn_odr): Give up for nameless types.
28916 (warn_types_mismatch): Report mismatch in mangled names;
28917 report mismatch in anonymous namespaces; look into component types to
28918 give useful error; report when mismatch is dragged in from other ODR
28920 (odr_types_equivalent_p): Match types for being polymorphic; avoid
28921 duplicated diagnostics.
28922 (add_type_duplicate): Reorder checks so more informative ones come
28923 first; fix typo; do not output "the extra base is defined here" when
28925 (BINFO_N_BASE_BINFOS): Relax sanity check.
28927 2015-03-22 Martin Liska <mliska@suse.cz>
28928 Jakub Jelinek <jakub@redhat.com>
28930 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
28931 masks that can potentially include a builtin.
28932 (ix86_add_new_builtins): Introduce fast filter for isa values
28933 that cannot trigger builtin inclusion.
28935 2015-03-22 Martin Liska <mliska@suse.cz>
28937 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
28938 (sem_item::update_hash_by_local_refs): Likewise.
28939 (sem_variable::get_hash): Empty line is fixed.
28940 (sem_item_optimizer::execute): Include adding of hash references.
28941 (sem_item_optimizer::update_hash_by_addr_refs): New function.
28942 (sem_item_optimizer::build_hash_based_classes): Use local hash.
28943 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
28944 (sem_item::update_hash_by_local_refs): Likewise.
28946 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28949 * ipa-comdats.c (enqueue_references): Walk through thunks.
28950 (ipa_comdats): Likewise.
28951 (set_comdat_group_1): New function.
28953 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
28956 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
28959 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
28960 Gerald Pfeifer <gerald@pfeifer.com>
28962 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
28964 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
28965 Sandra Loosemore <sandra@codesourcery.com>
28967 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
28968 function parameter declaration.
28969 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
28970 Update arguments to nios2_adjust_call_address().
28971 (sibcall_internal): Rename from *sibcall.
28972 (sibcall_value_internal): Rename from *sibcall_value.
28973 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
28974 (nios2_large_got_address): Add target temp reg parameter.
28975 (nios2_got_address): Adjust call to nios2_large_got_address, add
28976 force_reg around it.
28977 (nios2_load_pic_address): Add target temp reg parameter, replace call
28978 to nios2_got_address with corresponding code.
28979 (nios2_legitimize_constant_address): Update call to
28980 nios2_load_pic_address.
28981 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
28982 to use temp reg for PIC loading purposes.
28983 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
28984 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
28985 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
28987 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
28989 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
28990 usage of "the @option{...}".
28991 (-Wopenmp-simd): Likewise.
28992 (-fsanitize-recover): Likewise.
28993 (-fsanitize-undefined-trap-on-error): Likewise.
28995 (tracer-dynamic-coverage-feedback): Likewise.
28996 (reorder-block-duplicate-feedback): Likewise.
28997 (loop-unroll-jam-size): Likewise.
29000 (-mabs=legacy): Likewise.
29001 (-mupper-regs-df): Likewise.
29002 (-mupper-regs-sf): Likewise.
29003 (-mpointers-to-nested-functions): Likewise.
29005 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29007 * doc/extend.texi (Cilk Plus Builtins): Add markup.
29009 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
29011 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
29012 additional index entries and cross-references.
29013 (-fchkp-check-incomplete-type): Likewise.
29014 (-fchkp-first-field-has-own-bounds): Likewise.
29015 (-fchkp-narrow-to-innermost-array): Likewise.
29016 (-fchkp-use-fast-string-functions): Likewise.
29017 (-fchkp-use-nochk-string-functions): Likewise.
29018 (-fchkp-use-static-const-bounds): Likewise.
29019 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29020 (-fchkp-instrument-marked-only): Likewise.
29021 (-fchkp-use-wrappers): Likewise.
29022 (-static-libmpx): Likewise.
29023 (-static-libmpxwrappers): Likewise.
29024 * doc/extend.texi (bnd_legacy): Likewise.
29025 (bnd_instrument): Likewise.
29026 (bnd_variable_size): Likewise.
29027 (Pointer Bounds Checker builtins): Likewise.
29029 2015-03-21 Tom de Vries <tom@codesourcery.com>
29031 PR tree-optimization/65458
29032 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
29033 * cgraph.h (cgraph_node): Add parallelized_function field.
29034 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
29035 (input_overwrite_node): Read parallelized_function field.
29036 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
29037 parallelized_function on cgraph_node for child_fn.
29038 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
29039 Remove include of gt-tree-parloops.h.
29040 (parallelized_functions): Remove static variable.
29041 (parallelized_function_p): Rewrite using parallelized_function field of
29043 (create_loop_fn): Remove adding to parallelized_functions.
29044 * Makefile.in (GTFILES): Remove tree-parloops.c
29046 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
29048 PR rtl-optimization/64366
29049 * lra.c (lra_update_insn_regno_info): Consider regs in
29050 CALL_INSN_FUNCTION_USAGE memory.
29052 2015-03-20 Richard Biener <rguenther@suse.de>
29054 PR middle-end/64715
29055 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
29056 for type comparison and gcc_checking_assert.
29057 (chrec_fold_plus_poly_poly): Likewise.
29058 (chrec_fold_multiply_poly_poly): Likewise.
29059 (chrec_convert_1): Likewise.
29060 * gimplify.c (gimplify_expr): Remove premature folding of
29061 &X + CST to &MEM[&X, CST].
29063 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
29065 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
29067 (ipa_inline): Recompute inline_failed codes.
29068 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29069 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
29072 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
29074 PR rtl-optimization/60851
29075 * recog.c (constrain_operands): Accept a pseudo register before reload
29076 for LRA enabled targets.
29078 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
29081 * config/rs6000/predicates.md (easy_fp_constant): Remove special
29082 -ffast-math handling that kept non-0 constants live in the RTL
29083 until reload. Remove logic testing the number of instructions it
29084 took to create a constant in a GPR that was never used, due to a
29085 test for soft-float earlier.
29086 (memory_fp_constant): Delete, no longer used.
29088 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
29089 alternatives for loading non-0 constants into GPRs for hard
29090 floating point that is no longer needed due to changes in
29091 easy_fp_constant. Add support for loading 0.0 into GPRs.
29092 (mov<mode>_hardfloat32): Likewise.
29093 (mov<mode>_hardfloat64): Likewise.
29094 (mov<mode>_64bit_dm): Likewise.
29095 (movtd_64bit_nodm): Likewise.
29096 (pre-reload move FP constant define_split): Delete define_split,
29097 since it is no longer used.
29098 (extenddftf2_internal): Remove GHF constraints that are not valid
29101 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
29103 PR rtl-optimization/63491
29104 * lra-constraints.c (check_and_process_move): Use src instead of
29105 sreg. Remove some dead code.
29107 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
29110 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
29111 (sem_variable::merge): Likewise.
29113 2015-03-19 Martin Liska <mliska@suse.cz>
29116 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
29117 all fields of cgraph_thunk_info.
29119 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
29121 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
29122 clone instrumented thunks.
29124 2015-03-19 Richard Biener <rguenther@suse.de>
29127 2015-03-10 Richard Biener <rguenther@suse.de>
29129 PR middle-end/63155
29130 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29131 * tree-ssa-coalesce.c: Include timevar.h.
29132 (attempt_coalesce): Handle graph being NULL.
29133 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29134 Split out abnormal coalescing to ...
29135 (perform_abnormal_coalescing): ... this function.
29136 (coalesce_ssa_name): Perform abnormal coalescing without computing
29138 (verify_ssa_coalescing_worker): New function.
29139 (verify_ssa_coalescing): Likewise.
29141 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
29142 Jakub Jelinek <jakub@redhat.com>
29145 * tsan.c (instrument_gimple): Clear tail call flag on
29148 2015-03-19 Jakub Jelinek <jakub@redhat.com>
29151 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
29152 call in the return bb.
29153 (find_split_points): Add RETURN_BB argument, don't call
29155 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
29156 if true append TSAN_FUNC_EXIT internal call after the call to
29157 the split off function.
29158 (execute_split_functions): Call find_return_bb here.
29159 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
29160 Adjust find_split_points and split_function calls.
29162 2015-03-18 DJ Delorie <dj@redhat.com>
29164 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
29165 (iorqi3_virt): Likewise.
29167 2015-03-18 Tom de Vries <tom@codesourcery.com>
29169 * tree-parloops.c (parallelize_loops): Make static.
29170 * tree-parloops.h (parallelize_loops): Remove extern declaration.
29172 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
29174 PR middle-end/64491
29176 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
29178 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
29179 condition would be removed due to undefined behaviour.
29181 2015-03-18 Martin Liska <mliska@suse.cz>
29184 * cgraph.c (cgraph_node::get_create): Remove unnecessary
29185 xstrdup_for_dump wrapper.
29186 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
29188 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
29189 with xstrdup_for_dump.
29190 (sem_variable::equals): Likewise.
29191 (sem_item_optimizer::read_section): Use symtab_node::name instead of
29193 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
29194 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
29195 symtab_node::asm_name with xstrdup_for_dump.
29196 (congruence_class::dump): Use symtab_node::name instead of
29198 * ipa-icf.h (symtab_node::name): Remove.
29199 (symtab_node::asm_name): Likewise.
29201 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29203 PR tree-optimization/65450
29204 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
29206 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
29207 it instead of duplicate_ssa_name_ptr_info.
29210 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
29212 2015-03-18 Richard Biener <rguenther@suse.de>
29214 * tree-data-ref.h (struct access_matrix): Remove.
29215 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
29216 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
29217 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
29218 (am_vector_index_for_loop): Likewise.
29219 (struct data_reference): Remove access_matrix member.
29220 (DR_ACCESS_MATRIX): Remove.
29221 (lambda_vector_new): Add comment.
29222 (lambda_matrix_new): Use XOBNEWVEC.
29224 2015-03-18 Richard Biener <rguenther@suse.de>
29226 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
29227 (pass_ch::execute): Cleanup the CFG only if we did sth.
29228 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
29230 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29232 * expmed.c (synth_mult): Use std::swap instead of manually
29233 swapping algorithms.
29235 2015-03-18 Jakub Jelinek <jakub@redhat.com>
29238 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
29240 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
29243 * config/avr/avr.opt (-nodevicelib): New option.
29244 * doc/invoke.texi (AVR Options): Document it.
29245 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
29246 libgcc.a, libc.a, libm.a.
29247 * config/avr/specs.h: Same.
29248 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
29249 which don't (directly) depend on the device. Print more help.
29250 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
29251 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
29252 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
29254 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
29255 for specs file name.
29256 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
29257 * config/avr/avr-mcus.def: Adjust initializers and comments.
29259 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
29261 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
29262 DECL_ONE_ONLY to check if decl is one only.
29263 * ipa-split.c (consider_split): Limit splitt of one only functions.
29265 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29267 PR tree-optimization/65427
29268 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
29270 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
29272 2015-03-16 Marek Polacek <polacek@redhat.com>
29274 * cgraph.h (add_new_static_var): Remove declaration.
29275 * varpool.c (add_new_static_var): Remove function.
29277 2015-03-16 Jakub Jelinek <jakub@redhat.com>
29279 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
29280 instead of vec<tree> * with vec_alloc and release for args.
29283 PR middle-end/65431
29284 * omp-low.c (delete_omp_context): Only splay_tree_delete
29285 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
29286 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
29288 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
29291 * cfgexpand.c (align_base): New function.
29292 (alloc_stack_frame_space): Call it.
29293 (expand_stack_vars): Align prev_frame to be sure
29294 data->asan_vec elements aligned properly.
29296 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
29298 PR middle-end/65409
29299 * expr.c (store_field): Do not do a direct block copy if the source is
29300 a PARALLEL with BLKmode.
29302 2015-03-16 Tom de Vries <tom@codesourcery.com>
29304 PR middle-end/65414
29306 2015-03-12 Tom de Vries <tom@codesourcery.com>
29308 PR rtl-optimization/64895
29309 * lra-lives.c (check_pseudos_live_through_calls): Use
29310 actual_call_used_reg_set instead of call_used_reg_set, if available.
29312 2015-03-16 Alan Modra <amodra@gmail.com>
29315 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
29316 Modify Z->r bswapdi splitter to use dest in place of scratch.
29317 In r->Z and Z->r bswapdi splitter rename word_high, word_low
29318 to word1, word2 and rearrange logic to suit.
29319 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
29320 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
29321 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
29322 Add one '?' on r->r. Modify Z->r splitter to avoid need for
29325 2015-03-14 Jakub Jelinek <jakub@redhat.com>
29327 PR tree-optimization/65369
29328 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
29329 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
29330 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
29332 PR tree-optimization/65418
29333 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
29334 are casts in the first PLUS_EXPR operand, ensure tbias and
29335 *totallowp are in the inner type.
29337 PR rtl-optimization/65401
29338 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
29339 argument. If true, adjust_address_nv of x with big-endian
29340 correction for the mode widening to GET_MODE (y).
29341 (make_field_assignment): Don't do MEM mode widening here.
29342 Use MEM_P instead of GET_CODE == MEM.
29344 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
29346 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
29347 the external decls.
29349 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29352 * config/arm/arm.c (arm_gen_constant, AND case): Use
29353 ARM_SIGN_EXTEND when constructing AND mask.
29355 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
29357 * graph.c (print_graph_cfg): Make function names visible and append
29358 parenthesis to it. Also make groups of basic blocks belonging to the
29359 same function visible.
29361 2015-03-12 Richard Biener <rguenther@suse.de>
29363 PR middle-end/44563
29364 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
29365 to avoid quadratic behavior with inline expansion splitting blocks.
29366 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
29367 with the successor if the predecessor will be merged with it.
29368 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
29369 entry block with its successor.
29371 2015-03-13 Richard Biener <rguenther@suse.de>
29373 PR middle-end/44563
29374 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
29375 (cleanup_tree_cfg_1): Do not call it.
29376 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
29377 (fixup_noreturn_call): Mark the stmt as control altering.
29378 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
29380 (pass_data_fixup_cfg): Produce a dump file.
29381 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
29382 (need_noreturn_fixup): New global.
29383 (pass_dominator::execute): Fixup queued noreturn calls.
29384 (optimize_stmt): Queue calls that became noreturn for fixup.
29385 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
29386 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
29387 (el_to_fixup): New global.
29388 (eliminate_dom_walker::before_dom_childre): Queue calls that
29389 became noreturn for fixup.
29390 (eliminate): Fixup queued noreturn calls.
29391 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
29392 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
29393 (substitute_and_fold_dom_walker::before_dom_children): Queue
29394 alls that became noreturn for fixup.
29395 (substitute_and_fold): Fixup queued noreturn calls.
29397 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
29399 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
29400 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
29401 are building; for methods check ODR type of class they belong to if
29402 they may lead to a polymorphic call.
29403 (sem_function::compare_polymorphic_p): Be bit smarter about testing
29404 when function may lead to a polymorphic call.
29405 (sem_function::compare_type_list): Remove.
29406 (sem_variable::equals): Update use of compatible_types_p.
29407 (sem_variable::parse_tree_refs): Remove.
29408 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
29410 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
29412 (func_checker::compatible_polymorphic_types_p): Break out from ...
29413 (unc_checker::compatible_types_p): ... here.
29414 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
29416 (unc_checker::compatible_types_p): Update.
29417 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
29420 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29422 PR rtl-optimization/65235
29423 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
29424 When first element of vec_concat is const_int, calculate its size
29425 using second element.
29427 2015-03-12 Richard Biener <rguenther@suse.de>
29429 PR middle-end/65270
29430 * fold-const.c (operand_equal_p): Fix ordering of resetting
29431 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
29433 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
29435 * config/s390/s390.c (s390_reorg): Move code to output nops after label
29437 (s390_asm_output_function_label): Likewise.
29438 * config/s390/s390.c (s390_asm_output_function_label):
29439 Fix function label alignment with -mhtopatch.
29440 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
29441 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
29442 ("nop_2_byte"): New define_insn.
29443 ("nop_4_byte"): Likewise.
29444 ("nop_6_byte"): Likewise.
29445 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
29446 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
29448 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29451 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
29454 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
29457 * toplev.c (process_options): Restrict Pointer Bounds Checker
29458 usage with Address Sanitizer.
29460 2015-03-12 Richard Biener <rguenther@suse.de>
29462 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
29464 * omp-low.c (expand_omp_taskreg): Split block before removing
29466 (expand_omp_target): Likewise.
29467 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
29468 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
29469 stmt to split_block.
29471 2015-03-12 Tom de Vries <tom@codesourcery.com>
29473 PR rtl-optimization/64895
29474 * lra-lives.c (check_pseudos_live_through_calls): Use
29475 actual_call_used_reg_set instead of call_used_reg_set, if available.
29477 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29479 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
29480 (cgraph_node::remove): Likewise.
29481 (cgraph_node::get_untransformed_body): Likewise.
29482 * varpool.c (varpool_node::remove): Likewise.
29483 (varpool_node::get_constructor): Add sanity check.
29485 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
29487 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
29489 (-fabi-compat-version): Likewise.
29490 (-ffriend-injection): Likewise.
29491 (-Wdeclaration-after-statement): Likewise.
29492 (-fomit-frame-pointer): Likewise.
29493 (-ftree-coalesce-inlined-vars): Likewise.
29494 (-fvisibility=): Likewise.
29495 * doc/extend.texi (Typeof): Likewise.
29496 (Zero Length): Likewise.
29497 (Escaped Newlines): Likewise.
29498 (Compound Literals): Likewise.
29499 (Function Attributes): Likewise.
29500 (Label Attributes): Likewise.
29501 (Type Attributes): Likewise.
29502 (Function Names): Likewise.
29503 (Other Builtins): Likewise.
29504 (Function Specific Option Pragmas): Likewise.
29505 (C++ Interface): Likewise.
29507 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
29509 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
29511 2015-03-11 Marek Polacek <polacek@redhat.com>
29513 PR tree-optimization/65388
29514 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
29516 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29519 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
29520 * configure: Regenerate.
29521 * config.in: Regenerate.
29522 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
29523 [-mn-flash]: Document it.
29524 [__AVR_ARCH__]: Document avrtiny.
29526 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
29527 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
29528 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
29530 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29532 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
29534 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
29537 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
29538 allow reloads of PLUS in floating point/VSX registers.
29540 2015-03-11 Junmo Park <junmoz.park@samsung.com>
29542 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
29543 crypto_sha256_fast.
29544 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
29546 2015-03-11 Richard Biener <rguenther@suse.de>
29548 PR tree-optimization/65310
29549 * tree-sra.c (build_ref_for_offset): Also preserve larger
29552 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
29554 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
29556 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29559 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
29561 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
29563 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29565 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
29566 (sem_function::equals_wpa): ... here.
29568 2015-03-10 Marek Polacek <polacek@redhat.com>
29569 Jakub Jelinek <jakub@redhat.com>
29572 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
29573 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
29576 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29579 * config/rs6000/t-linux: For powerpc64* target set
29580 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
29582 2015-03-10 Richard Biener <rguenther@suse.de>
29584 PR middle-end/44563
29585 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
29586 for redirect_all_calls.
29588 2015-03-10 Marek Polacek <polacek@redhat.com>
29590 * gdbinit.in (pcfun): Define and document.
29592 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
29594 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
29595 of libgomp-plugin.h.
29596 (find_target_compiler): Support a case when the path to gcc is
29597 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
29598 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
29599 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
29601 (main): Use GCC_INSTALL_NAME as target_driver_name.
29602 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
29604 (mkoffload.o): Remove obsolete include path and defines.
29605 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
29607 2015-03-10 Richard Biener <rguenther@suse.de>
29609 PR middle-end/63155
29610 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
29611 * tree-ssa-coalesce.c: Include timevar.h.
29612 (attempt_coalesce): Handle graph being NULL.
29613 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
29614 Split out abnormal coalescing to ...
29615 (perform_abnormal_coalescing): ... this function.
29616 (coalesce_ssa_name): Perform abnormal coalescing without computing
29618 (verify_ssa_coalescing_worker): New function.
29619 (verify_ssa_coalescing): Likewise.
29621 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
29624 * config.gcc (extra_options) [avr]: Remove.
29625 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
29626 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
29627 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
29629 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
29630 (-mmcu=): Add Var and MissingArgError properties.
29632 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
29633 * config/avr/t-multilib: Regenerate.
29634 * config/avr/specs.h: New file.
29635 * config/avr/driver-avr.c: New file.
29636 * config/avr/genopt.sh: Remove file.
29637 * config/avr/avr-tables.opt: Remove file.
29638 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
29639 * config/avr/avr-c.c: Same.
29640 * avr-arch.h: Same.
29641 (avr_current_device): Remove proto.
29642 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
29643 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
29644 (EXTRA_SPEC_FUNCTIONS): Define.
29645 (avr_devicespecs_file): New specs function proto.
29646 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
29647 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
29648 (avr_current_device): Remove definition and usage.
29649 (avr_set_core_architecture): New static function.
29650 (avr_option_override): Use it.
29651 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
29652 (mcu_name): New static array.
29653 (comparator, avr_archs_str, avr_mcus_str): New static functions.
29654 (avr_inform_devices, avr_inform_core_architectures): New functions.
29655 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
29656 (avrlibc.h) [WITH_AVRLIBC]: Include.
29657 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
29658 (print_mcu): Rewrite from scratch.
29659 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
29660 Forward to avr-specific specs defined in device-specs file.
29661 * config/avr/t-avr (driver-avr.o): New rule.
29662 (avr-devices.o): Depend on avr-arch.h.
29663 (avr-mcus): No more depend on avr-tables.opt.
29664 (avr-tables.opt): Remove rule.
29665 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
29667 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29669 * c-family/c.opt (fchkp-use-wrappers): New.
29670 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
29671 (chkp_wrap_function): New.
29672 (chkp_build_instrumented_fndecl): Support wrapped
29674 * doc/invoke.texi (-fcheck-pointer-bounds): New.
29675 (-fchkp-check-incomplete-type): New.
29676 (-fchkp-first-field-has-own-bounds): New.
29677 (-fchkp-narrow-bounds): New.
29678 (-fchkp-narrow-to-innermost-array): New.
29679 (-fchkp-optimize): New.
29680 (-fchkp-use-fast-string-functions): New.
29681 (-fchkp-use-nochk-string-functions): New.
29682 (-fchkp-use-static-bounds): New.
29683 (-fchkp-use-static-const-bounds): New.
29684 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
29685 (-fchkp-check-read): New.
29686 (-fchkp-check-write): New.
29687 (-fchkp-store-bounds): New.
29688 (-fchkp-instrument-calls): New.
29689 (-fchkp-instrument-marked-only): New.
29690 (-fchkp-use-wrappers): New.
29691 (-static-libmpx): New.
29692 (-static-libmpxwrappers): New.
29694 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29696 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
29697 (CHKP_SPEC): Add wrappers library.
29698 * c-family/c.opt (static-libmpxwrappers): New.
29700 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
29702 * config/i386/linux-common.h (LIBMPX_LIBS): New.
29703 (LIBMPX_SPEC): New.
29705 * gcc.c (CHKP_SPEC): New.
29706 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
29707 * c-family/c.opt (static-libmpx): New.
29709 2015-03-10 Richard Biener <rguenther@suse.de>
29711 PR middle-end/44563
29712 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
29714 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
29715 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
29716 (cgraph_add_edge_to_call_site_hash): Likewise.
29717 (cgraph_node::get_edge): Likewise.
29718 (cgraph_edge::set_call_stmt): Likewise.
29719 (cgraph_edge::remove_caller): Likewise.
29721 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
29723 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
29724 (callee_saved_gpr_regs_size): ... this.
29725 (callee_saved_regs_first_regno): Rename to ...
29726 (callee_saved_first_gpr_regno): ... this.
29727 (callee_saved_regs_last_regno) Rename to ...
29728 (callee_saved_last_gpr_regno): ... this.
29729 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
29731 (nds32_initial_elimination_offset): Likewise.
29732 (nds32_expand_prologue): Likewise.
29733 (nds32_expand_epilogue): Likewise.
29734 (nds32_expand_prologue_v3push): Likewise.
29735 (nds32_expand_epilogue_v3pop): Likewise.
29736 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
29737 Adjust renamed variables.
29738 (nds32_output_stack_pop): Likewise.
29740 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
29742 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
29745 2015-03-10 Jakub Jelinek <jakub@redhat.com>
29747 PR rtl-optimization/65321
29748 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
29750 * var-tracking.c (use_narrower_mode): Likewise.
29752 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
29754 PR tree-optimization/65355
29755 * varasm.c (notice_global_symbol): Do not produce RTL.
29756 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
29758 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
29759 check for section anchors.
29761 2015-03-10 Alan Modra <amodra@gmail.com>
29764 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
29765 to be single-arch by default. Set cpu_is_64bit for powerpc64
29766 given --with-cpu=native.
29767 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
29768 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
29770 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
29771 rs6000_isa_flags rather than TARGET_64BIT.
29773 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
29774 Kaz Kojima <kkojima@gcc.gnu.org>
29776 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
29778 2015-03-09 Jakub Jelinek <jakub@redhat.com>
29781 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
29782 on a TREE_BINFO, instead use BINFO_TYPE.
29784 2015-03-09 Richard Biener <rguenther@suse.de>
29786 PR middle-end/65270
29787 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
29788 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
29789 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
29790 of that. When comparing dereferences compare alignment.
29791 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
29793 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29795 * ipa-inline-analysis.c (check_callers): Check
29796 node->can_remove_if_no_direct_calls_and_refs_p.
29797 (growth_likely_positive): Reorganize to call
29798 can_remove_if_no_direct_calls_p later.
29799 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
29800 will_be_removed_from_program_if_no_direct_calls_p): Add
29801 will_inline parameter.
29802 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
29803 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
29804 Handle inliner case correctly.
29806 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
29808 PR tree-optimization/63743
29809 * cfgexpand.c (reorder_operands): Also reorder if only second operand
29810 had its definition forwarded by TER.
29812 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
29815 * ipa-utils.h (types_odr_comparable): Add strict argument.
29816 * ipa-devirt.c: Fix whitespace;
29817 (odr_hasher): Remove.
29818 (odr_name_hasher, odr_vtable_hasher): New hashers.
29819 (can_be_name_hashed_p): New predicate.
29820 (hash_type_name): remove.
29821 (hash_odr_name): New.
29822 (odr_name_hasher::hash): new.
29823 (can_be_vtable_hashed_p): New.
29824 (hash_odr_vtable): New.
29825 (odr_vtable_hasher::hash): New.
29826 (types_same_for_odr): Add strict parameter.
29827 (types_odr_comparable): Likewise.
29828 (odr_name_hasher::equal): New.
29829 (odr_vtable_hasher::equal): New.
29830 (odr_name_hasher::remove): New.
29831 (odr_hash_type): Change to hash_table<odr_name_hasher>.
29832 (odr_vtable_hash_type): New.
29833 (odr_vtable_hash): New.
29834 (odr_subtypes_equivalent_p): Do strict comparsion.
29835 (add_type_duplicate): Merge type names; cleanup; avoid type
29837 (register_odr_type): Initialize vtable hash.
29838 (build_type_inheritance_graph): Likewise
29839 (get_odr_type): Reorg to use two hashes.
29840 (dump_possible_polymorphic_call_targets): Move sanity check after debug
29842 (ipa_devirt): Dump type_inheritance_graph.
29843 (types_same_for_odr): Add strict mode.
29845 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29848 * cgraph.h (symtab_node): Add definition_alignment,
29849 can_increase_alignment_p and increase_alignment.
29850 * symtab.c (symtab_node::can_increase_alignment_p,
29851 increase_alignment_1, symtab_node::increase_alignment,
29852 symtab_node::definition_alignment): New.
29853 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
29854 can_increase_alignment_p.
29855 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
29856 * tree-vect-stmts.c (ensure_base_align): Likewise.
29857 * varasm.c (function_section_1): Use definition_alignment.
29858 (assemble_start_function): Likewise.
29859 (emit_local): likewise.
29860 (build_constant_desc): Likewsie.
29861 (output_constant_def_contents): Likewise.
29862 (place_block_symbol): Likewise.
29863 (output_object_block): Likewise.
29865 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29868 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
29869 when outputting debug.
29871 2015-03-07 Marek Polacek <polacek@redhat.com>
29872 Martin Uecker <uecker@eecs.berkeley.edu>
29875 * doc/invoke.texi: Update description of -fsanitize=bounds.
29877 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
29879 * tree-ssa-phiopt.c (neg_replacement): Remove.
29880 (tree_ssa_phiopt_worker): Remove negate optimization.
29882 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29885 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
29887 2015-03-06 Richard Biener <rguenther@suse.de>
29889 PR middle-end/64928
29890 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
29891 and liveout_obstack members.
29892 (calculate_live_on_exit): Remove.
29893 (calculate_live_ranges): Change declaration.
29894 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
29895 (new_tree_live_info): Adjust.
29896 (calculate_live_ranges): Delete livein when not wanted.
29897 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
29898 Deal with partly deleted live info.
29899 (loe_visit_block): Remove temporary bitmap by using
29900 bitmap_ior_and_compl_into.
29901 (live_worklist): Adjust accordingly.
29902 (calculate_live_on_exit): Make static.
29903 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
29904 we do not need livein.
29906 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
29908 * real.c (real_from_string): Fix typo in assertion.
29910 2015-03-06 Alex Velenko <alex.velenko@arm.com>
29912 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
29915 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
29917 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
29919 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
29922 * lra-assigns.c (find_hard_regno_for): Rename to
29923 find_hard_regno_for_1. Add a new parameter.
29924 (find_hard_regno_for): New function using find_hard_regno_for_1.
29926 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
29928 PR rtl-optimization/65067
29929 * expmed.c (store_bit_field, extract_bit_field): Reworked the
29930 strict volatile bitfield handling.
29932 2015-03-05 Martin Liska <mliska@suse.cz>
29935 * ipa-icf.c (sem_variable::equals): Compare variables types.
29937 2015-03-05 Richard Henderson <rth@redhat.com>
29940 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
29941 correctly check weak symbol binding.
29943 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
29945 PR middle-end/65315
29946 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
29949 2015-03-05 Martin Liska <mliska@suse.cz>
29951 * ipa-inline.c (inline_small_functions): Set default value to
29952 prevent warning during bootstrap.
29953 * tree.h: Add pragma guard that ignores false positives during
29956 2015-03-05 Richard Biener <rguenther@suse.de>
29958 PR tree-optimization/65310
29959 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
29960 Properly preserve alignment of the base of the access.
29962 2015-03-05 Richard Biener <rguenther@suse.de>
29965 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
29966 Compare dependence info.
29968 2015-03-05 Richard Biener <rguenther@suse.de>
29970 PR middle-end/65233
29971 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
29973 (walk_ssa_copies): Revert last chage. Instead do not walk
29974 SSA names registered for SSA update.
29976 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29979 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
29980 vtable references for their containing type.
29981 (sem_function::equals_wpa): Compare TYPE_RESTRICT
29982 and type attributes.
29984 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
29986 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
29987 before negating it.
29988 * stor-layout.c (finalize_record_size): Revert latest change.
29990 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
29992 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
29994 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
29996 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
29997 for correct comdat handling.
29998 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
30000 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
30001 (used_from_object_file_p_worker): Remove.
30002 (cgraph_node::only_called_directly_or_alised): Add
30003 used_from_object_file_p.
30004 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
30005 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
30006 can_remove_if_no_direct_calls_and_refs_p.
30008 2015-03-04 Nick Clifton <nickc@redhat.com>
30010 * config/rl78/rl78.h (enum reg_class): Remove real registers from
30011 General register class.
30012 * config/rl78/rl78-real.md: Replace general register constraints
30013 with real+virtual register constraints.
30015 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30017 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
30018 from checking for -mhtm option.
30020 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
30022 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
30023 (struct ipa_sra_check_caller_data): Add has_thunk field.
30024 (ipa_sra_check_caller): Check for thunk.
30025 (ipa_sra_preliminary_function_checks): Give up on function with
30027 (ipa_early_sra): Use call_for_symbol_and_aliases.
30029 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
30032 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
30033 called for __stack_chk_guard symbol.
30035 2015-03-03 DJ Delorie <dj@redhat.com>
30037 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
30039 (*addhi3_real): Likewise.
30040 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
30041 pattern to match incrementing memory.
30042 * config/rl78/predicates.md (rl78_1_2_operand): New.
30043 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
30044 it's the same and only mem.
30045 (rl78_alloc_physical_registers_op2): If there's effectively only
30046 one MEM, transcode it into HL.
30047 (rl78_far_p): Reject addresses that aren't legitimate.
30049 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30051 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
30054 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
30056 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30058 Implement call0 ABI for xtensa
30059 * config/xtensa/constraints.md ("a" constraint): Include stack
30060 pointer in case of call0 ABI.
30061 ("q" constraint): Make empty in case of call0 ABI.
30062 ("D" constraint): Include stack pointer in case of call0 ABI.
30063 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
30064 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
30066 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
30068 (xtensa_regno_to_class): Make it a local variable in the
30069 function xtensa_regno_to_class.
30070 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
30071 macro, function prototype and implementation.
30072 (reg_nonleaf_alloc_order): Make it a local variable in the
30073 function order_regs_for_local_alloc.
30074 (xtensa_conditional_register_usage): New function.
30075 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
30076 (xtensa_valid_move): Allow direct moves to stack pointer
30077 register in call0 ABI.
30078 (xtensa_setup_frame_addresses): Only spill register windows in
30080 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
30081 call0 ABI respectively.
30082 (xtensa_function_arg_1): Only mark a7 register for copying in
30084 (xtensa_call_save_reg): New function.
30085 (compute_frame_size): Add space for callee saved register
30086 storage to the frame size in call0 ABI.
30087 (xtensa_expand_prologue): Generate code to set up stack frame
30088 and save callee-saved registers in call0 ABI.
30089 (xtensa_expand_epilogue): New function.
30090 (xtensa_set_return_address): New function.
30091 (xtensa_return_addr): Calculate return address in call0 ABI.
30092 (xtensa_builtin_saveregs): Only mark a7 register for copying and
30093 emit copying code in windowed ABI.
30094 (order_regs_for_local_alloc): Add preferred register allocation
30095 order for non-leaf function in call0 ABI.
30096 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
30097 (xtensa_asm_trampoline_template): Add trampoline generation for
30099 (xtensa_trampoline_init): Add trampoline initialization for
30101 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
30103 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
30104 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
30105 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
30106 ABI call-used registers.
30107 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
30108 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
30110 (REG_CLASS_CONTENTS): Include all registers into the preferred
30111 reload registers set, adjust the set in the
30112 xtensa_conditional_register_usage.
30113 (xtensa_regno_to_class): Drop variable declaration.
30114 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
30116 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
30118 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
30119 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
30120 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
30121 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
30122 location in call0 ABI.
30123 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
30124 stack adjustment size when handling exception.
30125 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
30126 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
30128 ("return" pattern): Generate ret.n/ret in call0 ABI.
30129 ("epilogue" pattern): Expand epilogue.
30130 ("nonlocal_goto" pattern): Use default in call0 ABI.
30131 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
30132 emit eh_set_a0_* depending on ABI.
30133 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
30134 ("eh_set_a0_call0", "blockage"): New patterns.
30136 2015-03-03 Martin Liska <mliska@suse.cz>
30139 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
30141 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
30144 * config/rs6000/rs6000-tables.opt: Regenerate table.
30146 2015-03-03 Renlin Li <renlin.li@arm.com>
30148 * doc/md.texi (@item ^): Change ? into ^.
30150 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
30152 * doc/tm.texi: Regenerated.
30154 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
30156 * builtins.c (expand_builtin_return_addr): Add
30157 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
30158 surrounding #ifdef.
30159 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
30161 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
30163 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
30165 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
30168 2015-03-03 Martin Jambor <mjambor@suse.cz>
30169 Eric Botcazou <ebotcazou@adacore.com>
30171 * tree-sra.c (ipa_sra_check_caller_data): New type.
30172 (has_caller_p): Removed.
30173 (ipa_sra_check_caller): New function.
30174 (ipa_sra_preliminary_function_checks): Use it.
30176 2015-03-03 Martin Liska <mliska@suse.cz>
30178 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
30179 instead of if branch.
30181 2015-03-03 Martin Liska <mliska@suse.cz>
30184 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
30186 2015-03-23 Jeff Law <law@redhat.com>
30188 PR tree-optimization/65241
30189 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
30190 hash table if INSERT is true.
30192 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30195 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
30197 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30200 * config/avr/avr.c (context.h, tree-pass.h): Include them.
30201 (avr_pass_data_recompute_notes): New static variable.
30202 (avr_pass_recompute_notes): New class.
30203 (avr_register_passes): New static function.
30204 (avr_option_override): Call it.
30206 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
30208 Fix various problems with specs file generation.
30211 * config.gcc (extra_gcc_objs) [avr]: Remove.
30212 * config/avr/driver-avr.c: Remove file.
30213 * config/avr/t-avr (driver-avr.o): Remove rule.
30214 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
30215 INCLUDES to build. Depend on TM_H.
30216 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
30217 build warnings. Fix non-matching types and non-existing %-codes.
30219 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
30220 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
30221 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
30222 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
30223 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
30224 (LIBGCC_SPEC): Remove definitions.
30226 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
30228 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
30229 to create a register in testing mode.
30231 2015-03-03 Martin Liska <mliska@suse.cz>
30232 Jan Hubicka <hubicka@ucw.cz>
30235 * cgraph.c (cgraph_node::has_thunk_p): New function.
30236 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
30237 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
30238 (sem_function::merge): Assert is changed.
30240 2015-03-03 Martin Liska <mliska@suse.cz>
30241 Martin Jambor <mjambor@suse.cz>
30244 * ipa-icf.c (sem_item_optimizer::execute): Change function
30245 return value to boolean.
30246 (sem_item_optimizer::merge_classes): Likewise.
30247 (ipa_icf_driver): Return TODO_remove_functions in case there's
30248 a merge operation processed.
30249 * ipa-icf.h: Change function return value to boolean.
30251 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30254 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
30255 processor type for 64-bit little endian PowerPC.
30257 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
30258 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
30259 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
30260 printing built-in mask so it does not pass NULL pointers.
30262 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
30265 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
30268 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
30269 !ISA_HAS_FP_CONDMOVE.
30271 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
30273 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
30276 2015-03-02 Ulrich Drepper <drepper@gmail.com>
30278 * doc/invoke.texi (Options for Code Generation Conventions):
30279 Fix URL of DSO paper.
30281 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30284 * ipa-inline.c (check_callers): Looks for recursion.
30285 (inline_to_all_callers): Give up on uninlinable or recursive edges.
30286 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
30287 summary of inline clones.
30288 (do_estimate_growth_1): Fix recursion check.
30290 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30293 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
30296 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
30297 Aldy Hernandez <aldyh@redhat.com>
30300 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
30301 when checking TYPE_BINFO.
30303 2015-03-02 Richard Biener <rguenther@suse.de>
30306 * ipa-icf-gimple.c: Include builtins.h.
30307 (func_checker::compare_memory_operand): Compare base alignment.
30309 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30312 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
30313 passed by reference.
30315 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
30318 * tree-chkp.c (chkp_check_lower): Don't check against
30319 zero bounds for already instrumented functions.
30320 (chkp_check_upper): Likewise.
30321 (chkp_fini): Clean pass local data to avoid wrong reusage.
30323 2015-02-28 Martin Liska <mliska@suse.cz>
30324 Jan Hubicka <hubicka@ucw.cz>
30326 * ipa-icf.c (sem_variable::equals): Improve debug output;
30327 get variable constructor.
30328 (sem_variable::parse): Do not filter out too early; give up on
30329 volatile and register vars.
30330 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
30332 * ipa-icf.h (sem_variable::init): Do not set ctor.
30333 (sem_variable::ctor): Remove.
30335 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
30337 PR middle-end/65233
30338 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
30340 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30342 * ipa-icf.c: Include stor-layout.h
30343 (sem_function::compare_cgraph_references): Rename to ...
30344 (sem_item::compare_cgraph_references): ... this one.
30345 (sem_variable::equals_wpa): New function
30346 (sem_variable::equals): Do not check stuff already verified by
30348 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
30349 * ipa-icf.h (sem_item): Add compare_cgraph_references.
30350 (sem_function): Remove compare_cgraph_references.
30351 (sem_variable): Turns equals_wpa into non-inline.
30353 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30355 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
30356 (sem_item::add_expr): New function.
30357 (sem_function::hash_stmt): Handle operands of most statements.
30358 (sem_variable::get_hash): Hash the actual constructor.
30359 * ipa-icf.h (sem_item): Add add_expr.
30360 (sem_function): Update prototype of hash_stmt
30362 2015-02-28 Martin Liska <mliska@suse.cz>
30363 Jan Hubicka <hubicka@ucw.cz>
30366 * ipa-icf-gimple.c (func_checker::compare_function_decl):
30368 (func_checker::compare_variable_decl): Skip symtab vars.
30369 (func_checker::compare_cst_or_decl): Update.
30370 * ipa-icf.c (sem_function::parse): Do not consider aliases.
30371 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
30372 use correct symtab predicates.
30373 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
30374 (sem_variable::parse): Update comment.
30375 (sem_item_optimizer::build_graph): Consider ultimate aliases
30378 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30380 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
30383 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30385 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
30386 (sem_variable::merge) Likewise.
30388 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30390 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
30391 target; also match flag_ipa_devirt.
30393 2015-03-01 Martin Liska <mliska@suse.cz>
30394 Jan Hubicka <hubicka@ucw.cz>
30396 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
30397 Validate variable alignment.
30398 * ipa-icf.c (sem_function::equals_private): Be more precise
30399 about non-common function attributes.
30400 (sem_variable::equals): Likewise.
30402 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30405 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
30406 across COMDAT group boundary.
30408 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30411 * ipa-icf.c (clear_decl_rtl): New function.
30412 (sem_function::merge): Clear RTL before forming alias.
30413 (sem_variable::merge): Clear RTL before forming alias.
30415 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
30418 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
30420 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
30422 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
30425 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30427 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
30428 a typo in the description.
30430 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30433 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30434 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
30435 * lra-constraints.c: Include "params.h".
30436 (EBB_PROBABILITY_CUTOFF): Use
30437 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
30438 (lra_inheritance): Use '<' instead of '<=' for
30439 EBB_PROBABILITY_CUTOFF.
30440 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
30443 2015-02-27 Martin Liska <mliska@suse.cz>
30445 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
30446 vector length condition.
30448 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
30450 * doc/extend.texi (x86 transactional memory intrinsics):
30451 Reorganize discussion of _xbegin. Clarify that the return
30452 value is a bit mask. Expand example and move to end of section.
30454 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30455 Aldy Hernandez <aldyh@redhat.com>
30457 PR rtl-optimization/65220
30458 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
30460 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
30463 * lra-remat.c (update_scratch_ops): New.
30464 (do_remat): Call it.
30465 * lra.c (lra_register_new_scratch_op): New. Take code from ...
30466 (remove_scratches): ... here.
30467 * lra-int.h (lra_register_new_scratch_op): New prototype.
30469 2015-02-27 Marek Polacek <polacek@redhat.com>
30472 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
30473 -Wformat-signedness anymore.
30475 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30477 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
30479 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
30481 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30483 * config/s390/s390.c (enum s390_builtin):
30484 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
30485 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
30486 (s390_init_builtins): Generate new builtin functions.
30487 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
30488 (s390_sfpc, s390_efpc): New pattern definitions.
30490 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30492 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
30493 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
30494 (s390_builtin_decls): New array.
30495 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
30496 (s390_builtin_decl): New function.
30497 (TARGET_BUILTIN_DECL): Define macro.
30499 2015-02-27 Richard Biener <rguenther@suse.de>
30501 PR middle-end/63175
30502 * builtins.c (get_object_alignment_2): Make sure to re-apply
30503 the ANDed mask after recursing to its operand gets us a new
30504 misalignment bit position.
30506 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
30507 Martin Liska <mliska@suse.cz>
30510 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
30511 Use address_matters_p.
30512 (redirect_all_callers, set_addressable): New functions.
30513 (sem_function::merge): Reorganize and fix merging issues.
30514 (sem_variable::merge): Likewise.
30515 (sem_variable::compare_sections): Remove.
30516 * common.opt (fmerge-all-constants, fmerge-constants): Remove
30518 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
30520 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
30522 (address_matters_1): New function.
30523 (symtab_node::address_matters_p): New function.
30524 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
30525 check for merged flag.
30526 * cgraph.h (address_matters_p): Declare.
30527 (symtab_node::address_taken_from_non_vtable_p): Remove.
30528 (symtab_node::address_can_be_compared_p): New method.
30529 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
30530 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
30532 (comdat_can_be_unshared_p_1) Use address_matters_p.
30533 (update_vtable_references): Fix formating.
30534 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
30535 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
30536 * cgraphclones.c: Preserve merged and icf_merged flags.
30538 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
30540 * doc/extend.texi (Function Attributes): Fix spelling and typos.
30541 (Label Attributes): Likewise.
30542 (Cilk Plus Builtins): Likewise.
30543 (ARC SIMD Built-in Functions): Likewise.
30544 (ARM C Language Extensions (ACLE)): Likewise.
30545 (PowerPC Built-in Functions): Likewise.
30546 (PowerPC Hardware Transactional Memory Built-in Functions):
30549 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30551 PR tree-optimization/65216
30552 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
30553 new stmt and new SSA_NAME for lhs whenever the arguments have
30554 changed and weren't just swapped. Fix comment typo.
30556 PR tree-optimization/65215
30557 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
30558 for PDP endian targets.
30559 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
30560 Fix up formatting issues.
30561 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
30562 size is smaller than the original, adjust MEM_REF offset by the
30563 difference of sizes. Use is_gimple_mem_ref_addr instead of
30564 is_gimple_min_invariant test to avoid adding address temporaries.
30566 2015-02-26 Martin Liska <mliska@suse.cz>
30567 Jan Hubicka <hubicka@ucw.cz>
30570 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
30571 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
30572 (sem_item_optimizer::process_cong_reduction): Include division by
30573 sensitive references.
30574 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
30575 * ipa-ref.c (ipa_ref::address_matters_p): New function.
30576 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
30578 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
30581 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
30583 * config/avr/avr.c: Same.
30584 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
30585 Refuse any constant address not in 0..0xbf.
30586 * config/avr/avr.md (*mov<mode>, *movsf): Remove
30587 tiny_valid_direct_memory_access_range from insn conditions.
30588 (mov<mode>): Don't special-case expansion of avrtiny addresses.
30590 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
30593 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
30594 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
30595 * config/sh/predicates.md (const_logical_operand): New predicate.
30596 * config/sh/sh.md: Add new peephole2 patterns.
30598 2015-02-26 Marek Polacek <polacek@redhat.com>
30601 * ipa-inline.c (early_inliner): Recompute inline parameters.
30603 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30606 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
30607 instructions with TImode operands are included in the analysis.
30609 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30611 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
30612 of an EDGE_FSM_THREAD.
30614 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
30616 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
30618 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
30621 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
30623 2015-02-26 Sebastian Pop <s.pop@samsung.com>
30625 PR tree-optimization/65048
30626 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
30627 (thread_through_all_blocks): Call valid_jump_thread_path.
30628 Remove invalid FSM jump-thread paths.
30630 2015-02-26 Jakub Jelinek <jakub@redhat.com>
30632 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
30633 (ipa_write_optimization_summaries): Likewise.
30634 * tree-streamer.h: Include data-streamer.h.
30635 (streamer_mode_table): Declare extern variable.
30636 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
30637 * lto-streamer-out.c (lto_output_init_mode_table,
30638 lto_write_mode_table): New functions.
30639 (produce_asm_for_decls): Call lto_write_mode_table when streaming
30641 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
30642 (lto_create_simple_input_block): Add mode_table argument to the
30643 lto_input_block constructors.
30644 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
30646 * data-streamer-in.c (string_for_index): Likewise.
30647 * ipa-inline-analysis.c (inline_read_section): Likewise.
30648 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
30649 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
30650 * lto-streamer-in.c (lto_read_body_or_constructor,
30651 lto_input_toplevel_asms): Likewise.
30652 (lto_input_mode_table): New function.
30653 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
30654 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
30655 Use bp_pack_machine_mode.
30656 * real.h (struct real_format): Add name field.
30657 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
30658 (class lto_input_block): Add mode_table member.
30659 (lto_input_block::lto_input_block): Add mode_table_ argument,
30660 initialize mode_table.
30661 (struct lto_file_decl_data): Add mode_table field.
30662 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
30663 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
30664 unpack_ts_decl_common_value_fields,
30665 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
30666 * tree-streamer.c (streamer_mode_table): New variable.
30667 * real.c (ieee_single_format, mips_single_format,
30668 motorola_single_format, spu_single_format, ieee_double_format,
30669 mips_double_format, motorola_double_format,
30670 ieee_extended_motorola_format, ieee_extended_intel_96_format,
30671 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
30672 ibm_extended_format, mips_extended_format, ieee_quad_format,
30673 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
30674 decimal_single_format, decimal_double_format, decimal_quad_format,
30675 ieee_half_format, arm_half_format, real_internal_format): Add name
30677 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
30679 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
30682 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
30683 reordering for selective scheduling.
30685 2015-02-26 Terry Guo <terry.guo@arm.com>
30687 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
30688 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
30689 (arm_arch_no_volatile_ce): Declare new global variable.
30690 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
30691 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
30692 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
30693 (TARGET_NO_VOLATILE_CE): New macro.
30694 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
30695 volatile memory access in IT block
30697 2015-02-25 Kai Tietz <ktietz@redhat.com>
30699 PR tree-optimization/61917
30700 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
30701 that reduc_def_stmt is null.
30703 2015-02-25 Martin Liska <mliska@suse.cz>
30705 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
30706 hard register variables.
30708 2015-02-25 Kai Tietz <ktietz@redhat.com>
30711 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
30712 (symtab::noninterposable_alias): Likewise.
30714 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
30717 * config/i386/i386.c (ix86_function_arg_regno_p): Support
30719 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
30721 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
30724 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
30725 as split condition; force split via '#' in output pattern.
30727 2015-02-25 Richard Biener <rguenther@suse.de>
30728 Kai Tietz <ktietz@redhat.com>
30730 PR tree-optimization/61917
30731 * tree-vect-loop.c (vectorizable_reduction): Allow
30732 vect_internal_def without reduction to exit graceful.
30734 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30737 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
30738 only with NONDEBUG_INSN_P.
30740 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
30742 Use variadic macros with avr-log.c.
30744 * config/avr/avr-protos.h (avr_vdump): New prototype.
30745 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
30746 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
30747 * config/avr/avr-log.c: Adjust comments.
30748 (avr_vdump): New function.
30749 (avr_vadump): Pass caller as 2nd argument instead of format string.
30750 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
30751 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
30753 2015-02-25 Jakub Jelinek <jakub@redhat.com>
30756 * target.def (target_option_stream_in): New target hook.
30757 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
30758 targetm.target_option.post_stream_in if non-NULL.
30759 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
30760 * doc/tm.texi: Updated.
30761 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
30763 (TARGET_OPTION_POST_STREAM_IN): Redefine.
30765 2015-02-24 Jeff Law <law@redhat.com>
30768 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
30769 of operand 0 and operand 2.
30770 (zero_cost_loop_end, loop_end): Similarly.
30772 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
30774 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
30777 2015-02-24 DJ Delorie <dj@redhat.com>
30779 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
30780 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
30781 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
30782 instead of hardcoding SImode.
30784 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
30786 * omp-low.c (create_omp_child_function): Tag entrypoint
30787 functions with a special attribute.
30789 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30792 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
30794 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
30796 PR rtl-optimization/65123
30797 * lra-remat.c (operand_to_remat): Check hard regs in insn
30800 2015-02-24 Nick Clifton <nickc@redhat.com>
30802 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
30805 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
30808 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
30809 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
30810 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
30811 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
30812 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
30813 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
30814 (BUILT_IN_GOACC_PARALLEL): Specify as
30815 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
30816 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
30817 * builtin-types.def
30818 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30819 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30820 Remove function types.
30821 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
30822 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
30823 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
30824 New function types.
30826 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
30828 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
30830 2015-02-24 Jakub Jelinek <jakub@redhat.com>
30832 PR tree-optimization/65170
30833 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
30834 if val[1] < 0, clear also val[2] and return 3.
30836 2015-02-24 Alan Modra <amodra@gmail.com>
30839 * config/rs6000/rs6000.c (get_memref_parts): Only return true
30840 when *base is a reg. Handle nested plus addresses. Simplify
30843 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
30845 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
30846 use natural alignment when optimizing for size.
30848 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
30851 * config/sh/sh.md (movsicc_true+3): Remove peephole.
30852 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
30853 * config/sh/sh.c (replace_n_hard_rtx): Remove.
30855 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
30858 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
30859 too big for a wide_int. Implement missing wrapping operation.
30861 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
30864 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
30865 instead of const_int 4294901760.
30867 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
30869 * config/avr/t-avr: Fix typo in comment.
30871 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
30873 * doc/rtl.texi (fma): Clarify documentation.
30875 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
30878 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
30879 over input_location.
30881 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30883 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
30884 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
30885 restrict alignments to absolute_biggest_alignment.
30886 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
30888 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
30889 * doc/tm.texi: Regenerate.
30890 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
30892 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
30895 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
30897 2015-02-20 Richard Biener <rguenther@suse.de>
30899 PR tree-optimization/65136
30900 * tree-ssa-propagate.c: Include cfgloop.h.
30901 (replace_phi_args_in): Avoid replacing loop latch edge PHI
30902 arguments with constants.
30904 2015-02-20 Jakub Jelinek <jakub@redhat.com>
30905 Martin Liska <mliska@suse.cz>
30908 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
30909 don't try to create_thunk if stdarg_p. If
30910 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
30911 redirect_callers if possible.
30912 (sem_item_optimizer::execute): Call unregister_hooks here...
30913 (ipa_icf_driver): ... instead of here.
30915 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30917 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
30918 Mark operand 0 as earlyclobber in 2nd alternative.
30919 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
30920 Write negated shift amount into QI lowpart operand 0 and use it
30922 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
30924 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30926 * cgraph.h (clone_function_name_1): Declare.
30927 * cgraphclones.c (clone_function_name_1): New function.
30928 (clone_function_name): Use it.
30929 * lto-partition.c: Include "stringpool.h".
30930 (must_not_rename, maybe_rewrite_identifier)
30931 (validize_symbol_for_target): New static functions.
30932 (privatize_symbol_name): Use must_not_rename.
30933 (promote_symbol): Call validize_symbol_for_target.
30934 (lto_promote_cross_file_statics): Likewise.
30935 (lto_promote_statics_nonwpa): Likewise.
30937 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
30940 * config/avr/avr.md (pushhi_insn): New insn.
30941 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
30943 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
30944 Jakub Jelinek <jakub@redhat.com>
30946 * tree-streamer.c (preload_common_nodes): Don't preload
30947 TI_VA_LIST* for offloading.
30948 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
30951 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
30953 * config/pa/pa.c (pa_emit_move_sequence): Always force
30954 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
30957 * config/pa/pa.c (pa_reloc_rw_mask): New function.
30958 (TARGET_ASM_RELOC_RW_MASK): Define.
30959 (pa_cannot_force_const_mem): Revert previous change.
30961 2015-02-19 Martin Jambor <mjmabor@suse.cz>
30962 Jan Hubicka <hubicka@ucw.cz>
30965 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
30966 across jump functions.
30968 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
30970 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
30972 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
30974 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
30976 2015-02-19 Richard Henderson <rth@redhat.com>
30978 PR middle-end/65074
30979 * varasm.c (default_binds_local_p_2): Don't test node->definition;
30980 test DECL_EXTERNAL independent of symtab_node.
30982 2015-02-19 Jakub Jelinek <jakub@redhat.com>
30985 * varpool.c (varpool_node::get_constructor): Return early
30986 if this->lto_file_data is NULL.
30988 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30990 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
30991 (rank_for_schedule_debug): Update.
30992 (ready_sort): Make static. Move sorting logic to ...
30993 (ready_sort_debug, ready_sort_real): New static functions.
30994 (schedule_block): Sort both debug insns and real insns in preparation
30995 for ready list trimming. Improve debug output.
30996 * sched-int.h (ready_sort): Remove global declaration.
30998 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
31000 * ipa-icf.c (sem_function::equals_private): Adjust.
31001 (sem_function::bb_dict_test): Take a vec<int> * instead of
31003 * ipa-icf.h (bb_dict_test): Likewise.
31005 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31007 PR gcov-profile/64634
31008 * tree-eh.c (frob_into_branch_around): Fix up typos
31009 in function comment.
31010 (lower_catch): Put eh_seq resulting from EH lowering of
31011 the cleanup sequence after the cleanup rather than before it.
31013 2015-02-18 Tom de Vries <tom@codesourcery.com>
31015 * common.opt (fstdarg-opt): New option.
31016 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
31017 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
31018 (@item -fstdarg-opt): New item.
31020 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
31023 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
31024 for common symbols.
31026 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31028 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
31030 (ALL_HOST_OBJS): Add mkoffload.o.
31031 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
31033 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
31035 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
31036 (compare_virtual_tables): Be smarter about skipping typeinfos;
31037 do sane output on virtual table table mismatch.
31038 (warn_odr): Be ready for forward declarations of enums;
31039 output sane info on base mismatch and virtual table mismatch.
31040 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
31041 when only one type is polymorphic.
31042 (get_odr_type): Fix hashtable corruption.
31043 (dump_odr_type): Dump mangled names.
31045 2015-02-18 Richard Biener <rguenther@suse.de>
31047 PR tree-optimization/65063
31048 * tree-predcom.c (determine_unroll_factor): Return 1 if we
31049 have replaced looparound PHIs.
31051 2015-02-18 Martin Liska <mliska@suse.cz>
31053 * lto-streamer.c (lto_streamer_init): Encapsulate
31054 streamer_check_handled_ts_structures with checking macro.
31056 2015-02-18 Jakub Jelinek <jakub@redhat.com>
31059 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
31060 section if !implicit_section.
31061 (cgraph_node::create_version_clone_with_body): Likewise.
31062 * trans-mem.c (ipa_tm_create_version): Likewise.
31064 2015-02-18 Richard Biener <rguenther@suse.de>
31066 PR tree-optimization/62217
31067 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
31070 2015-02-18 Marek Polacek <polacek@redhat.com>
31073 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
31074 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
31075 is in range [-16K, -1]. Don't issue run-time error if
31076 (ptr > ptr + offset).
31078 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
31080 * doc/install.texi (nvptx-*-none): New section.
31081 * doc/invoke.texi (Nvidia PTX Options): Likewise.
31082 * config/nvptx/nvptx.opt: Update.
31084 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
31085 (access_check): New functions, copied from
31086 config/i386/intelmic-mkoffload.c.
31087 (main): For non-installed testing, look in all COMPILER_PATHs for
31090 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
31092 2015-02-18 Andrew Pinski <apinski@cavium.com>
31093 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
31095 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
31096 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
31098 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
31100 * ipa-visibility.c (function_and_variable_visibility): Only
31101 check locality if node is not already local.
31102 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31103 call_for_symbol_and_aliases instead of
31104 call_for_symbol_thunks_and_aliases.
31105 (ipa_inline): Likewise.
31106 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31107 first walk aliases.
31108 * ipa.c (symbol_table::remove_unreachable_nodes): Use
31109 call_for_symbol_and_aliases.
31110 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31111 (ipa_propagate_frequency_1): Use it; use opt_for_fn
31112 (ipa_propagate_frequency): Update.
31113 (ipa_profile): Add opt_for_fn gueards.
31115 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
31117 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
31118 * doc/invoke.texi (SH options): Document it.
31119 * config/sh/sh.c (sh_insn_length_adjustment): Check
31120 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
31122 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
31124 * common.opt (fipa-cp-alignment): New.
31125 * ipa-cp.c (ipcp_store_alignment_results): Check
31126 flag_ipa_cp_alignment.
31127 * opts.c (default_options_table): Enable -fipa-cp-alignment for
31129 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
31130 * doc/invoke.texi: Document -fipa-cp-alignment.
31132 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
31135 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
31136 to nil. Adjust comments.
31138 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
31140 * ipa-visibility.c (function_and_variable_visibility): Only
31141 check locality if node is not already local.
31142 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
31143 call_for_symbol_and_aliases instead of
31144 call_for_symbol_thunks_and_aliases.
31145 (ipa_inline): Likewise.
31146 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
31147 first walk aliases.
31148 * ipa.c (symbol_table::remove_unreachable_nodes): Use
31149 call_for_symbol_and_aliases.
31150 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
31151 (ipa_propagate_frequency_1): Use it; use opt_for_fn
31152 (ipa_propagate_frequency): Update.
31153 (ipa_profile): Add opt_for_fn guards.
31155 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
31157 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
31158 skipping of "strange" tokens.
31160 2015-02-17 Jeff Law <law@redhat.com>
31162 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
31165 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
31167 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
31168 as forcing a HARD_DEP between instructions, thereby
31169 disallowing rewriting to break dependencies.
31171 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31173 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
31174 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
31175 variables in boundary that have no inlitalizer encoded and are
31177 * varasm.c (default_binds_local_p_2): External definitions do not
31178 count as definitions here.
31180 2015-02-16 Jeff Law <law@redhat.com>
31182 PR tree-optimization/64823
31183 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
31185 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31186 threading through blocks with PHIs, but no statements.
31187 (thread_through_normal_block): Distinguish between blocks where
31188 we did not process all the statements and blocks with no statements.
31190 2015-02-16 Jakub Jelinek <jakub@redhat.com>
31191 James Greenhalgh <james.greenhalgh@arm.com>
31194 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
31195 section if not linkonce. Fix up formatting.
31196 (cgraph_node::create_version_clone_with_body): Copy section.
31197 * trans-mem.c (ipa_tm_create_version): Likewise.
31199 2015-02-16 Richard Biener <rguenther@suse.de>
31201 PR tree-optimization/65077
31202 * tree-ssa-structalias.c (get_constraint_for_1): Handle
31203 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
31204 (find_func_aliases): Allow float values to carry pointers again.
31206 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
31208 * doc/install.texi (Specific): Reorder targets list to put
31209 aarch64 in alphabetical order. Add a link to aarch64*-*-*
31212 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31213 David Edelsohn <dje.gcc@gmail.com>
31216 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
31217 mapping class to external variable or function reference.
31218 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
31221 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
31224 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
31225 ASM_WEAKEN_DECL if defined.
31227 2015-02-16 Richard Biener <rguenther@suse.de>
31230 * varasm.c (default_file_start): For LTO produced units
31231 emit <artificial> as file directive.
31233 2015-02-16 Richard Biener <rguenther@suse.de>
31235 PR tree-optimization/63593
31236 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
31237 stmts and releasing SSA names until...
31238 (execute_pred_commoning): ... after processing all chains.
31240 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
31243 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
31244 external functions.
31246 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
31248 * doc/bugreport.texi: Adjust section titles throughout the file
31249 to use "Title Case".
31250 * doc/extend.texi: Likewise.
31251 * doc/gcov.texi: Likewise.
31252 * doc/implement-c.texi: Likewise.
31253 * doc/implement-cxx.texi: Likewise.
31254 * doc/invoke.texi: Likewise.
31255 * doc/objc.texi: Likewise.
31256 * doc/standards.texi: Likewise.
31257 * doc/trouble.texi: Likewise.
31259 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
31261 * cgraph.h (symtab_node::has_aliases_p): Simplify.
31262 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
31263 * tree.c (lookup_binfo_at_offset): Make static.
31264 (get_binfo_at_offset): Do not shadow offset; add explanatory
31267 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
31269 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
31270 for all floading point loads and stores except those using a register
31272 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
31275 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31277 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
31278 (do_estimate_growth_1): Record if any uninlinable edge was seen.
31279 (estimate_growth): Handle uninlinable edges correctly.
31280 (check_callers): New.
31281 (growth_likely_positive): Handle aliases correctly.
31283 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
31285 * ipa-chkp.c: Use iterate_direct_aliases.
31286 * symtab.c (resolution_used_from_other_file_p): Move inline.
31287 (symtab_node::create_reference): Fix formating.
31288 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31289 (symtab_node::iterate_reference): Move inline.
31290 (symtab_node::iterate_referring): Move inline.
31291 (symtab_node::iterate_direct_aliases): Move inline.
31292 (symtab_node::used_from_object_file_p_worker): Inline into ...
31293 (symtab_node::used_from_object_file_p): ... this one; move inline.
31294 (symtab_node::call_for_symbol_and_aliases): Move inline;
31295 use iterate_direct_aliases.
31296 (symtab_node::call_for_symbol_and_aliases_1): New method.
31297 (cgraph_node::call_for_symbol_and_aliases): Move inline;
31298 use iterate_direct_aliases.
31299 (cgraph_node::call_for_symbol_and_aliases_1): New method.
31300 (varpool_node::call_for_node_and_aliases): Rename to ...
31301 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
31302 use iterate_direct_aliases.
31303 (varpool_node::call_for_symbol_and_aliases_1): New method.
31304 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
31305 (ipa_discover_readonly_nonaddressable_var): Update.
31306 * ipa-devirt.c: Fix formating.
31307 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
31309 (cgraph_node::call_for_symbol_and_aliases): Move inline.
31310 (cgraph_node::call_for_symbol_and_aliases_1): New function..
31311 * cgraph.h (used_from_object_file_p_worker): Remove.
31312 (resolution_used_from_other_file_p): Move inline.
31313 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
31314 (symtab_node::iterate_reference): Move inline.
31315 (symtab_node::iterate_referring): Move inline.
31316 (symtab_node::iterate_direct_aliases): Move inline.
31317 (symtab_node::used_from_object_file_p_worker): Inline into ...
31318 (symtab_node::used_from_object_file_p): Move inline.
31319 * tree-emutls.c (ipa_lower_emutls): Update.
31320 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
31321 (varpool_node::call_for_node_and_aliases): Remove.
31323 2015-02-14 Jakub Jelinek <jakub@redhat.com>
31325 PR tree-optimization/62209
31326 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
31327 op == range->exp, insert seq and gimplified code after labels
31328 instead of after the phi.
31330 2015-02-13 Jeff Law <law@redhat.com>
31333 Revert my change for tree-optimization/64823.
31335 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31337 PR tree-optimization/65053
31338 * tree-ssa-phiopt.c (value_replacement): When moving assign before
31339 cond, either reset VR on lhs or set it to phi result VR.
31341 2015-02-13 Jeff Law <law@redhat.com>
31343 PR tree-optimization/64823
31344 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
31345 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
31346 threading through blocks with PHIs, but no statements.
31347 (thread_through_normal_block): Distinguish between blocks where
31348 we did not process all the statements and blocks with no statements.
31350 PR rtl-optimization/47477
31351 * match.pd (convert (plus/minus (convert @0) (convert @1): New
31352 simplifier to narrow arithmetic.
31354 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
31357 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
31358 polymorphic call info when type is not known to be preserved.
31360 2015-02-13 Maritn Jambor <mjambor@suse.cz>
31363 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
31364 (inline_call): Use it.
31366 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
31368 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
31369 GOMP_DEVICE_NVIDIA_PTX.
31371 2015-02-13 Jakub Jelinek <jakub@redhat.com>
31374 * stmt.c (emit_case_nodes): Use void_type_node instead of
31375 NULL_TREE as LABEL_DECL type.
31377 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
31379 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
31381 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
31382 symbolic references to data to be forced to constant memory on the
31385 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
31387 PR tree-optimization/65002
31388 * tree-cfg.c (pass_data_fixup_cfg): Don't update
31390 * tree-sra.c (some_callers_have_no_vuse_p): New.
31391 (ipa_early_sra): Reject functions whose callers
31392 assume function is read only.
31394 2015-02-13 Richard Biener <rguenther@suse.de>
31397 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
31398 for LTO produced CUs.
31400 2015-02-13 Bin Cheng <bin.cheng@arm.com>
31402 PR tree-optimization/64705
31403 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
31404 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
31405 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
31406 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
31407 expand_simple_operations.
31409 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
31410 Richard Henderson <rth@redhat.com>
31413 * cgraphunit.c (cgraph_node::finalize_function): Set definition
31414 before notice_global_symbol.
31415 (varpool_node::finalize_decl): Likewise.
31416 * varasm.c (default_binds_local_p_2): Rename from
31417 default_binds_local_p_1, add weak_dominate argument. Use direct
31418 returns instead of assigning to local variable. Unify varpool and
31419 cgraph paths via symtab_node. Reject undef weak variables before
31420 testing visibility. Reorder tests for simplicity.
31421 (default_binds_local_p): Use default_binds_local_p_2.
31422 (default_binds_local_p_1): Likewise.
31423 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
31425 (default_elf_asm_output_external): Emit visibility when specified.
31427 2015-02-13 Alan Modra <amodra@gmail.com>
31429 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
31430 code setting up r11 for out-of-line fp restore.
31432 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
31434 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
31435 (muser-mode): Likewise.
31437 2015-02-13 Alan Modra <amodra@gmail.com>
31439 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
31440 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
31442 2015-02-12 David Howells <dhowells@redhat.com>
31444 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
31446 * tree-ssa-uninit.c (dump_predicates): Likewise.
31447 * opts.c (print_filtered_help): Likewise.
31449 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31451 * dwarf2out.c (output_die): Use "%s", name instead of name to
31452 avoid -Wformat-security warning.
31454 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
31455 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31456 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
31457 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
31459 2015-02-12 Jason Merrill <jason@redhat.com>
31461 * common.opt (-flifetime-dse): New.
31463 2015-02-12 Jakub Jelinek <jakub@redhat.com>
31466 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
31468 PR tree-optimization/65014
31469 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
31470 use original second operand of arg0 or arg1 instead of
31471 that adjusted by STRIP_NOPS.
31473 2015-02-11 Jeff Law <law@redhat.com>
31476 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
31477 that needs to be queued, just queue it for a single cycle.
31479 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
31481 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
31482 bodies of thunks; comment on why.
31483 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
31484 symbols are extern.
31486 2015-02-11 Richard Henderson <rth@redhat.com>
31489 * tree-eh.c (mark_reachable_handlers): Mark source and destination
31490 regions of __builtin_eh_copy_values.
31492 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31494 PR middle-end/65003
31495 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
31496 ultimate alias is MEM with SYMBOL_REF satisfying
31497 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
31498 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
31500 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
31502 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
31503 "diagnostic-core.h".
31504 (main): Initialize progname, and call diagnostic_initialize.
31506 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
31507 instead of __OPENMP_TARGET__.
31509 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
31510 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
31511 hard-coding PTX_ID.
31513 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
31515 * doc/sourcebuild.texi (pie_enabled): Document.
31517 2015-02-11 Martin Liska <mliska@suse.cz>
31520 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
31521 a return value for call to a function that is noreturn.
31523 2015-02-11 Richard Biener <rguenther@suse.de>
31526 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
31529 2015-02-11 Andrew Pinski <apinski@cavium.com>
31532 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
31533 Change the first argument type to size_type_node and add another
31535 (aarch64_simd_expand_builtin): Handle the new argument to
31536 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
31537 print an out when the first two arguments are not
31538 nonzero integer constants.
31539 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
31540 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
31542 2015-02-11 Jakub Jelinek <jakub@redhat.com>
31545 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
31546 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
31547 (ix86_set_current_function): Rewritten.
31548 (ix86_add_new_builtins): Temporarily clear current_target_pragma
31549 when creating builtin fndecls.
31551 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31554 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
31556 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
31557 have no comdat group.
31558 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
31559 (lto_output_varpool_node): Always output alias info.
31560 (output_refs): Output refs of boundary aliases, too.
31561 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
31562 (output_symtab): Output call eges in thunks in boundary.
31563 (get_alias_symbol): Remove.
31564 (input_node, input_varpool_node): Do not special case weakrefs.
31565 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
31566 alias and thunks targets in the boundary; do not take removed symbols
31567 from their comdat groups.
31568 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
31569 (cgraph_node::global_info): Remove.
31570 (cgraph_node::rtl_info): Look through aliases and thunks.
31571 * cgrpah.h (global_info): Remove.
31572 (non_local_p): Remove.
31574 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31575 Sandra Loosemore <sandra@codesourcery.com>
31577 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
31578 to inline asm. List dialects in proper order.
31580 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31581 Sandra Loosemore <sandra@codesourcery.com>
31583 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
31585 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
31587 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
31588 modified) reference to Solaris.
31590 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
31592 * doc/extend.texi (Extended Asm): Fix typos.
31594 2015-02-10 Jakub Jelinek <jakub@redhat.com>
31597 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
31599 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
31602 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
31603 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
31604 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
31605 * config/sh/constraints.md (Ara, Add): New constraints.
31606 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
31608 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
31609 atomic_mem_operand_0. Don't use force_reg on the memory address.
31610 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
31611 Sra constraint. Convert to insn_and_split. Add workaround for
31613 (atomic_compare_and_swap<mode>_hard): Copy to
31614 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
31615 Use atomic_mem_operand_0 predicate.
31616 (atomic_compare_and_swap<mode>_soft_gusa,
31617 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
31618 AraAdd constraints.
31619 (atomic_compare_and_swap<mode>_soft_tcb,
31620 atomic_compare_and_swap<mode>_soft_imask,
31621 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
31622 atomic_mem_operand_0 predicate and SraSdd constraints.
31623 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
31625 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
31626 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
31627 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
31628 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
31629 force_reg on the memory address.
31630 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
31631 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
31632 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
31633 atomic_mem_operand_1 predicate and Sra constraint.
31634 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
31635 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31636 Use atomic_mem_operand_1 predicate.
31637 (atomic_<fetchop_name><mode>_hard): Copy to
31638 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
31639 Use atomic_mem_operand_1 predicate.
31640 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
31641 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31642 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
31643 insn_and_split. Use atomic_mem_operand_1 predicate.
31644 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
31645 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
31646 Use atomic_mem_operand_1 predicate.
31647 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
31648 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
31649 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
31650 in generated insn with original mem operand before emitting the insn.
31651 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
31652 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
31653 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
31654 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
31655 Use atomic_mem_operand_1 predicate and AraAdd constraints.
31656 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
31657 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
31658 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
31659 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
31660 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
31661 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
31662 atomic_not_fetch<mode>_soft_tcb,
31663 atomic_<fetchop_name>_fetch<mode>_soft_imask,
31664 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
31665 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
31666 Use atomic_mem_operand_1 predicate and SraSdd constraints.
31668 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
31670 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
31671 and 3 earlyclobber operands.
31673 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31675 * common.opt (fstack-reuse): Mark as optimization.
31677 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
31680 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
31682 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
31684 PR tree-optimization/64326
31685 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
31687 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
31689 PR gcov-profile/61889
31690 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
31692 2015-02-10 Richard Biener <rguenther@suse.de>
31694 PR tree-optimization/64995
31695 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
31696 value we use is final.
31697 (visit_reference_op_store): Always valueize op.
31698 (visit_use): Properly valueize vuses.
31700 2015-02-10 Richard Biener <rguenther@suse.de>
31702 PR tree-optimization/64909
31703 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
31704 pass a scalar-stmt count estimate to the cost model.
31705 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
31707 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
31709 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
31710 enabled by default together with var-tracking.
31712 2015-02-10 Nick Clifton <nickc@redhat.com>
31714 * config/rl78/rl78.c: Remove DIV attribute code accidentally
31715 included in previous rl78 commit.
31717 2015-02-10 Richard Biener <rguenther@suse.de>
31719 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
31720 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
31721 return the bitpack.
31723 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31725 PR gcov-profile/61889
31726 * config.in: regenerate.
31727 * configure.in: Likewise.
31728 * configure.ac: Check for ftw.h.
31729 * gcov-tool.c: Check for ftw.h before using nftw.
31731 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
31734 * ipa-visibility.c (update_visibility_by_resolution_info): Only
31735 assert when not in lto mode.
31737 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
31739 * ira-color.c (setup_left_conflict_sizes_p): Simplify
31740 initialization/assignment of conflict_size.
31742 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
31745 * ipa-cp.c (gather_caller_stats): Skip thunks.
31746 (propagate_constants_topo): Skip aliases.
31748 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
31751 * config/sh/sh.c (sh_option_override): Don't change
31752 -freorder-blocks-and-partition to -freorder-blocks even when
31753 unwinding is enabled.
31754 (sh_can_follow_jump): Return false if the followee jump is
31755 a crossing jump when -freorder-blocks-and-partition is specified.
31756 * config/sh/sh.md (*jump_compact_crossing): New insn.
31758 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
31759 Kaz Kojima <kkojima@gcc.gnu.org>
31762 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
31763 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
31764 (sh_can_redirect_branch): Rename to ...
31765 (sh_can_follow_jump): ... this. Constify argument types.
31766 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
31767 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
31768 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
31769 * doc/tm.texi: Regenerate.
31771 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31774 * builtins.c (expand_builtin): Call targetm.expand_builtin
31775 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
31777 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31780 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
31782 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31785 * ipa-icf.c (set_local): New function.
31786 (sem_function::merge): Use it.
31788 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31790 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
31791 (add_type_duplicate): Fix comparison of BINFOs.
31793 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31795 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
31796 on getting VOID pointer.
31798 2015-02-09 Jakub Jelinek <jakub@redhat.com>
31801 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
31804 2015-02-09 Richard Biener <rguenther@suse.de>
31806 * genmatch.c (replace_id): Copy expr_type.
31808 2015-02-09 Richard Biener <rguenther@suse.de>
31810 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
31811 (streamer_write_tree_bitfields): Declare.
31812 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
31813 properly unpack padding.
31814 (unpack_value_fields): Inline ...
31815 (streamer_read_tree_bitfields): ... here.
31816 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
31817 and properly add padding bits.
31818 (streamer_pack_tree_bitfields): Fold into ...
31819 (streamer_write_tree_bitfields): ... this new function,
31820 exposing the bitpack object.
31821 * lto-streamer-out.c (lto_write_tree_1): Call
31822 streamer_write_tree_bitfields.
31824 2015-02-09 Richard Biener <rguenther@suse.de>
31826 PR tree-optimization/54000
31827 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
31828 (struct ivopts_data): Add loop_loc member.
31829 (tree_ssa_iv_optimize_loop): Dump loop location.
31830 (create_new_ivs): Likewise, also dump number of IVs generated.
31832 2015-02-09 Martin Liska <mliska@suse.cz>
31834 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
31835 just if not yet registered.
31836 (ipa_icf_generate_summary): Register callgraph hooks.
31838 2015-02-08 Andrew Pinski <apinski@cavium.com>
31840 * config/aarch64/aarch64.c (gty_dummy): Delete.
31842 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31845 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
31846 (cgraph_node::local_p): Remove thunk related FIXME.
31848 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31851 * i386.c (ix86_function_regparm): Look through aliases to see if callee
31852 is local and optimized.
31853 (ix86_function_sseregparm): Likewise; also use target's SSE math
31854 settings; error out instead of silently generating wrong code
31856 (init_cumulative_args): Look through aliases.
31858 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31861 * ipa-split.c (execute_split_functions): Split if function has aliases.
31863 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
31866 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
31867 aliases before trying to expand it.
31868 (cgraph_node::expand_thunk): Fix formating.
31870 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
31872 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
31873 (Using Assembly Language with C): Expand introduction.
31874 (Basic Asm): Copy-edit. Add more information about uses of
31876 (Extended Asm): Copy-edit. Document new escape syntax and
31878 (Global Reg Vars): Copy-edit.
31879 (Local Reg Vars): Likewise.
31881 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
31885 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
31886 (DBX_CONTIN_CHAR): Define.
31888 2015-02-06 Sebastian Pop <s.pop@samsung.com>
31889 Brian Rzycki <b.rzycki@samsung.com>
31891 PR tree-optimization/64878
31892 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
31893 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
31894 Stop recursion at loop phi nodes after having visited a loop phi node.
31896 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31898 * toplev.c (process_options): Change flag_ipa_ra before creating
31899 optimization_{default,current}_node.
31902 * cgraphunit.c (cgraph_node::expand_thunk): If
31903 restype is not is_gimple_reg_type nor the thunk_fndecl
31904 returns aggregate_value_p, set restmp to a temporary variable
31905 instead of resdecl.
31907 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
31909 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
31911 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
31914 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
31915 add a general secondary reload handler for SDmode, unless we have
31916 both read/write support for SDmode.
31918 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31920 PR middle-end/64937
31921 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
31922 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
31923 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
31924 1 before, push it to abstract_vec.
31925 (dwarf2out_abstract_function): Adjust caller. Don't call
31926 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
31927 DECL_ABSTRACT_P flags for all abstract_vec elts.
31929 2015-02-06 Renlin Li <renlin.li@arm.com>
31931 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
31933 * tree-ssa.c (execute_update_addresses_taken): Likewise.
31935 2015-02-06 Jeff Law <law@redhat.com>
31938 * config/h8300/h8300.c (push): New argument "in_prologue".
31939 Pass "in_prologue" along to "F".
31940 (h8300_push_pop): Corresponding changes.
31941 (h8300_expand_prologue): Likewise.
31942 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
31944 2015-02-06 Jakub Jelinek <jakub@redhat.com>
31946 PR rtl-optimization/64957
31948 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
31949 IOR rather than for AND.
31951 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
31954 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
31955 of shift-add and (add + shift) operations. Rename local variable.
31957 2015-02-05 Jeff Law <law@redhat.com>
31960 * config/h8300/constraints.md (U): Correctly dectect
31961 "eightbit_data" memory addresses.
31962 * config/h8300/h8300.c (eightbit_constant_address_p): Also
31963 handle (const (plus (symbol_ref (x)))) where x is declared
31964 as an 8-bit data memory address.
31965 * config/h8300/h8300.md (call, call_value): Correctly detect
31966 "funcvec" functions.
31969 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
31970 24 to 28 bits for the H8/300.
31972 2015-02-06 Alan Modra <amodra@gmail.com>
31975 * config/rs6000/rs6000.c (chain_already_loaded): New function.
31976 (rs6000_call_aix): Use it.
31978 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
31980 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
31983 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
31985 * config/h8300/constraints.md ("U" constraint): Use strict
31986 variant of REG_OK_FOR_BASE_P after reload has started.
31988 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
31990 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
31991 define to zero if !TARGET_NEON.
31992 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
31994 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
31995 Trevor Saunders <tsaunders@mozilla.com>
31998 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
32000 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32003 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
32004 when removing varpool nodes.
32006 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32009 * varpool.c (varpool_node::remove): Fix order of variables.
32011 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32014 * ipa-inline.c (inline_small_functions): Fix ordering issue between
32015 speculation resolution and key updates.
32017 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32019 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
32020 about not letting any speculative edges unupdated.
32022 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32025 * gcov-io.c (gcov_var): Export.
32027 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32029 PR middle-end/64922
32030 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
32031 edges that become speculative.
32033 2015-02-04 Jakub Jelinek <jakub@redhat.com>
32035 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
32036 or DW_LANG_Fortran08.
32037 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
32039 (gen_compile_unit_die): Handle "GNU Fortran2003" and
32040 "GNU Fortran2008" language strings.
32041 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
32042 * langhooks.h (lang_GNU_Fortran): New prototype.
32043 * langhooks.c (lang_GNU_Fortran): New function.
32044 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
32047 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32049 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
32050 (RTX_OK_FOR_OLO10_P): Likewise.
32052 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
32054 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
32056 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
32058 PR middle-end/64922
32059 * gimple.c: Include gimple-ssa.h.
32060 (maybe_remove_unused_call_args): New function.
32061 * gimple.h (maybe_remove_unused_call_args): Declare.
32062 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
32063 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
32064 * gimple-fold.c (gimple_fold_call): Likewise.
32066 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
32068 PR rtl-optimization/64905
32069 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
32070 pointer alignment if it isn't needed.
32072 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
32074 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
32075 cortex-a72.cortex-a53.
32076 * config/aarch64/aarch64-tune.md: Regenerate.
32077 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
32079 2015-02-04 Nick Clifton <nickc@redhat.com>
32081 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
32084 2015-02-04 Jakub Jelinek <jakub@redhat.com>
32086 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
32087 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
32088 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
32090 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
32091 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
32092 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
32093 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
32094 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
32095 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
32096 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
32097 * tree-core.h (enum built_in_function): In between
32098 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
32099 for builtins that use DEF_BUILTIN_CHKP macro.
32101 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
32104 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
32105 operands for tcc_comparison exprs. Fix typos.
32108 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
32109 of two XORs that have an intervening AND or IOR.
32112 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
32113 simplification of XOR of AND to not allocate new rtx before
32114 committing to a simplification.
32116 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32118 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
32119 manual swaps in all peepholes.
32121 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32123 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
32124 of manual swapping implementation.
32125 (aarch64_expand_vec_perm_const_1): Likewise.
32127 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
32129 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
32130 (generic_addrcost_table): Remove NAMED_PARAM.
32131 (cortexa57_addrcost_table): Likewise.
32132 (xgene1_addrcost_table): Likewise.
32133 (generic_regmove_table): Likewise.
32134 (cortexa53_regmove_table): Likewise.
32135 (xgene1_regmove_table): Likewise.
32136 (generic_vector_table): Likewise.
32137 (cortexa57_vector_table): Likewise.
32138 (xgene1_vector_table): Likewise.
32139 (generic_tunings): Likewise.
32140 (cortexa53_tunings): Likewise.
32141 (cortexa57_tunings): Likewise.
32142 (xgene1_tunings): Likewise.
32144 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
32146 * config/arm/arm-cores.def: Add cortex-a72 and
32147 cortex-a72.cortex-a53.
32148 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
32149 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
32150 * config/arm/arm-tune.md: Regenerate.
32151 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
32152 "cortex-a72.cortex-a53".
32153 * doc/invoke.texi (ARM Options/-mtune): Likewise.
32155 2015-02-04 Nick Clifton <nickc@redhat.com>
32158 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
32160 (nonimmediate_di_operand): Likewise.
32162 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
32163 prefixes of known F5 using MSP430 MCUs.
32165 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32167 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
32168 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
32169 instead of __builtin_sqrt.
32171 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
32173 * varasm.c (do_assemble_alias): Follow transparent alias
32175 (default_assemble_visibility): Follow transparent alias
32176 chain for decl name.
32178 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
32180 PR middle-end/62103
32181 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
32182 to compute size of referenced value in the constant case.
32184 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32186 PR rtl-optimization/64756
32187 * cse.c (invalidate_dest): New function.
32188 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
32189 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
32190 invalidate and do not record it.
32192 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
32195 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
32196 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
32197 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
32198 atomic_nand<mode>_soft_tcb): New insns.
32199 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
32200 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
32201 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
32202 Split into atomic_not_fetchsi_hard if operands[0] is unused.
32203 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
32204 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32205 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
32206 atomic_not<mode>_hard if operands[0] is unused.
32207 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
32208 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
32209 if operands[0] is unused.
32210 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
32211 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
32212 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
32213 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32215 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
32216 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32217 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
32218 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
32219 if operands[0] is unused.
32220 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
32221 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
32222 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
32223 atomic_nand_fetchsi_hard if operands[0] is unused.
32224 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
32225 atomic_nand<mode>_hard if operands[0] is unused.
32226 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
32227 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
32228 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
32229 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32230 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
32231 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
32232 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
32233 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
32234 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
32235 atomic_not<mode>_hard if operands[0] is unused.
32236 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
32237 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
32239 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32240 into atomic_not<mode>_soft_tcb if operands[0] is unused.
32241 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
32242 atomic_nand<mode>_hard if operands[0] is unused.
32243 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
32244 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
32246 2015-02-03 David Malcolm <dmalcolm@redhat.com>
32249 * Makefile.in (GCC_OBJS): Add gcc-main.o.
32250 * gcc-main.c: New file, containing "main" taken from gcc.c.
32251 * gcc.c (do_self_spec): Free decoded_options.
32252 (class driver): Move declaration to gcc.h.
32253 (main): Move declaration and implementation to new file
32255 (driver_get_configure_time_options): New function.
32256 * gcc.h (class driver): Move this declaration here, from
32258 (driver_get_configure_time_options): New declaration.
32260 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
32262 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
32263 cross-module inlining.
32264 * cgraph.h (cgraph_node): Add flag merged.
32265 * ipa-icf.c (sem_function::merge): Maintain it.
32267 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
32269 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
32270 instead of OBJECT_P.
32272 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
32275 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
32276 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
32277 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
32278 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
32280 2015-02-03 Jakub Jelinek <jakub@redhat.com>
32283 * combine.c (reg_n_sets_max): New variable.
32284 (can_change_dest_mode, reg_nonzero_bits_for_combine,
32285 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
32286 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
32287 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
32288 (rest_of_handle_combine): Initialize reg_n_sets_max.
32290 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
32292 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
32293 if some always_inline was inlined, apply changes before inlining
32296 2015-02-02 David Malcolm <dmalcolm@redhat.com>
32299 * config/arm/arm.c (arm_option_override): Set
32300 arm_selected_arch/cpu/tune to NULL on entry.
32302 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
32303 Andrew Pinski <pinskia@gcc.gnu.org>
32304 Jakub Jelinek <jakub@gcc.gnu.org>
32307 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
32308 integer typing for small model. Use IN_RANGE.
32310 2015-02-02 Richard Biener <rguenther@suse.de>
32312 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
32313 * tree-vrp.c (vrp_valueize_1): Likewise.
32315 2015-02-02 Alan Modra <amodra@gmail.com>
32317 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
32318 than mem for toc_restore.
32319 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
32320 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
32321 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
32323 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
32326 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
32327 explicit default options.
32329 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
32332 * ipa-utils.c (ipa_merge_profiles): Add release argument.
32333 * ipa-icf.c (sem_function::merge): Do not release body when merging.
32334 * ipa-utils.h (ipa_merge_profiles): Update prototype.
32336 2015-02-01 Jakub Jelinek <jakub@redhat.com>
32339 * cfgexpand.c (deep_ter_debug_map): New variable.
32340 (avoid_deep_ter_for_debug): New function.
32341 (expand_debug_expr): If TERed SSA_NAME is in
32342 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
32343 instead of trying to expand SSA_NAME's def stmt.
32344 (expand_debug_locations): When expanding debug bind
32345 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
32346 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
32348 (pass_expand::execute): Call avoid_deep_ter_for_debug on
32349 all debug bind stmts. Delete deep_ter_debug_map after
32350 expand_debug_location if non-NULL and clear it.
32352 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
32355 * config/sh/sync.md (atomic_fetch_notsi_hard,
32356 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
32357 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
32358 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
32359 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
32360 atomic_not_fetch<mode>_soft_imask): New insns.
32362 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32364 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
32365 (rank_for_schedule_debug): Split from ...
32366 (rank_for_schedule): ... this.
32367 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
32368 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
32370 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32372 * doc/md.texi (Machine Constraints): Alphabetize table by target.
32373 * doc/extend.texi (x86 Variable Attributes): Move section to
32374 correct alphabetization after renaming.
32375 (x86 Type Attributes): Likewise.
32376 (Target Builtins): Re-alphabetize menu.
32377 (x86 Built-in Functions): Move section to correct alphabetization
32379 (x86 transactional memory intrinsics): Likewise.
32380 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
32381 and x86 Windows Options in table and menu.
32382 (x86 Options): Move section to correct alphabetization after
32384 (x86 Windows Options): Likewise.
32386 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
32388 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
32389 preferred names of the architecture and its 32- and 64-bit
32391 * doc/invoke.texi: Likewise.
32392 * doc/md.texi: Likewise.
32394 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32397 * config/i386/predicates.md (address_no_seg_operand): Reject
32398 non-CONST_INT_P operands in invalid mode.
32400 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
32402 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
32403 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
32404 * config/i386/predicates.md (address_no_seg_operand): Call
32405 address_operand with VOIDmode.
32406 (vsib_address_operand): Ditto.
32407 (address_mpx_no_base_operand): Ditto.
32408 (address_mpx_no_index_operand): Ditto.
32410 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32413 * lra-constraints.c (original_subreg_reg_mode): New.
32414 (simplify_operand_subreg): Try to simplify subreg of const. Use
32415 original_subreg_reg_mode for it.
32416 (swap_operands): Update original_subreg_reg_mode.
32417 (curr_insn_transform): Set up original_subreg_reg_mode.
32419 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
32422 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
32424 (process_alt_operands): Use it.
32425 (curr_insn_transform): Check the optional reload pseudo class is
32428 2015-01-30 Joseph Myers <joseph@codesourcery.com>
32430 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
32431 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
32433 * toplev.h (init_asm_output): Update comment on use of
32434 UNKNOWN_LOCATION with fatal_error.
32435 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
32436 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
32437 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
32438 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
32439 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
32440 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
32441 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
32442 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
32443 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
32444 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
32445 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
32446 fatal_error changed to pass input_location as first argument.
32448 2015-01-30 Martin Liska <mliska@suse.cz>
32450 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
32451 in #pragma GCC diagnostic guards.
32453 2015-01-30 Richard Biener <rguenther@suse.de>
32455 PR tree-optimization/64829
32456 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
32457 not add a widening conversion pattern but hand off extra
32458 widenings to callers.
32459 (vect_recog_widen_mult_pattern): Handle extra widening produced
32460 by vect_handle_widen_op_by_const.
32461 (vect_recog_widen_shift_pattern): Likewise.
32462 (vect_pattern_recog_1): Remove excess vertical space in dumping.
32463 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
32464 (vect_init_vector_1): Likewise.
32465 (vect_get_vec_def_for_operand): Likewise.
32466 (vect_finish_stmt_generation): Likewise.
32467 (vectorizable_load): Likewise.
32468 (vect_analyze_stmt): Likewise.
32469 (vect_is_simple_use): Likewise.
32471 2015-01-29 Jeff Law <law@redhat.com>
32473 * combine.c (try_combine): Fix typo in comment.
32475 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
32478 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
32479 (rs6000_stack_info): Add assert.
32480 (rs6000_output_savres_externs): New function, split off from...
32481 (rs6000_output_function_prologue): ... here. Do not call it for
32484 2015-01-29 Jeff Law <law@redhat.com>
32487 * combine.c (try_combine): If I0 is a memory load and I3 a store
32488 to a related address, increase the "goodness" of doing a 4-insn
32489 combination with I0-I3.
32490 (make_field_assignment): Handle SUBREGs in the ior+and case.
32492 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
32494 PR tree-optimization/64746
32495 * tree-if-conv.c (mask_exists): New function.
32496 (predicate_mem_writes): Save created mask with given size for further
32498 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
32499 (ifcvt_repair_bool_pattern): Collect all statements that are root
32500 of bool pattern and use iterative algorithm to remove multiple uses
32501 of predicates, display number of required iterations.
32503 2015-01-29 Richard Biener <rguenther@suse.de>
32505 PR tree-optimization/64853
32506 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
32507 stmt will get simulated again.
32508 * tree-ssa-ccp.c (valueize_op_1): Likewise.
32510 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32512 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
32513 return_in_pc. Remove redundant assignments.
32514 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
32515 (arm_expand_epilogue): Don't compare boolean with true in if condition.
32517 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
32519 * config/i386/i386.c (ix86_mode_after): Make static.
32521 2015-01-29 Richard Biener <rguenther@suse.de>
32523 PR tree-optimization/64844
32524 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
32525 dump cost model analysis.
32526 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
32527 Do not register adjusted load/store costs here.
32529 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32530 Uros Bizjak <ubizjak@gmail.com>
32532 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
32533 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
32534 using x86_use_pseudo_pic_reg.
32535 * config/i386/i386.c (ix86_conditional_register_usage): Remove
32536 support for fixed PIC register.
32537 (ix86_use_pseudo_pic_reg): Not static any more.
32539 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
32541 PR middle-end/64805
32542 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
32543 to avoid error in cgraph node verification.
32545 2015-01-29 Marek Polacek <polacek@redhat.com>
32547 * doc/standards.texi: Reflect that the default for C is gnu11.
32549 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
32552 * reorg.c (switch_text_sections_between_p): New function.
32553 (relax_delay_slots): Call it when testing if the jump insn
32554 is removable. Use targetm.can_follow_jump when testing if
32555 the conditional branch can follow an unconditional jump.
32557 2015-01-27 Caroline Tice <cmtice@google.com>
32559 Committing VTV Cywin/Ming patch for Patrick Wollgast
32560 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
32561 if -fvtable-verify=preinit/std is used.
32562 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
32563 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
32564 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
32565 if -fvtable-verify=preinit/std is used.
32566 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
32567 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
32568 if -fvtable-verify=preinit/std is used.
32569 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
32570 * config/i386/mingw32.h (LIB_SPEC): Likewise.
32571 * varasm.c (assemble_variable): Add code to properly set the comdat
32572 section and name for the .vtable_map_vars section in case the
32573 target is PE or COFF.
32575 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32578 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
32579 make sane BB profile.
32580 (cgraph_node::expand_thunk): Make sane BB profile.
32581 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
32582 * cgraph.h (init_lowered_empty_function): Update prototype.
32583 * config/i386/i386.c (make_resolver_func): Update call.
32584 * predict.c (gate): Disable branch prediction pass if
32585 profile is already there.
32587 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
32589 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
32590 * opth-gen.awk: Likewise.
32591 * common.opt: Mark flag_fp_contract_mode as Optimization.
32593 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
32595 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
32596 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
32598 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
32601 * config/sh/predicates.md (atomic_arith_operand,
32602 atomic_logical_operand): Remove.
32603 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
32604 (atomic_arith_operand_0): New predicate.
32605 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
32606 Use atomic_arith_operand_0 for input values.
32607 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
32608 atomic_compare_and_swap<mode>_soft_gusa,
32609 atomic_compare_and_swap<mode>_soft_tcb,
32610 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
32611 arith_reg_operand instead of register_operand.
32612 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
32613 atomic_arith_operand_0 for newval input.
32614 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
32615 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
32616 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
32617 arith_reg_operand instead of register_operand.
32618 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
32619 fetchop_predicate_1, fetchop_constraint_1_llcs,
32620 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
32621 fetchop_constraint_1_imask): New code iterator attributes.
32622 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
32623 register_operand. Use fetchop_predicate_1.
32624 (atomic_fetch_<fetchop_name>si_hard,
32625 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
32626 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
32627 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
32628 and arith_reg_operand instead of register_operand. Use
32629 fetchop_predicate_1, fetchop_constraint_1_gusa.
32630 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
32631 and arith_reg_operand instead of register_operand. Use
32632 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
32634 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
32635 and arith_reg_operand instead of register_operand. Use
32636 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
32638 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
32639 register_operand. Use atomic_logical_operand_1.
32640 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
32641 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
32642 arith_reg_operand instead of register_operand.
32643 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
32644 Use arith_reg_dest and arith_reg_operand instead of register_operand.
32645 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
32646 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
32647 register_operand. Use fetchop_predicate_1.
32648 (atomic_<fetchop_name>_fetchsi_hard,
32649 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
32650 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32651 fetchop_constraint_1_llcs.
32652 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
32653 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32654 fetchop_constraint_1_gusa.
32655 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
32656 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32657 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
32658 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
32659 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
32660 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
32661 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
32662 register_operand. Use atomic_logical_operand_1.
32663 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
32664 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
32665 arith_reg_operand instead of register_operand.
32666 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
32667 arith_reg_operand instead of register_operand. Use logical_operand
32668 and K08. Adjust asm sequence to allow R0 usage.
32669 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
32670 arith_reg_operand instead of register_operand. Use logical_operand
32673 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32676 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
32677 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
32678 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
32679 only get_full_len HOST_WIDE_INTs from get_val () array rather than
32680 all bits in *val_wide.
32682 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
32684 * varpool.c (tls_model_names): Fix names.
32685 (varpool_node::dump): Dump tls- prefix for tls models.
32687 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
32688 Bernd Schmidt <bernds@codesourcery.com>
32689 Nathan Sidwell <nathan@codesourcery.com>
32691 * config/nvptx/mkoffload.c: New file.
32692 * config/nvptx/t-nvptx: Add build rules for it.
32693 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
32694 (extra_programs): Add mkoffload.
32695 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
32697 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
32699 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
32701 PR middle-end/64809
32702 * cfgexpand.c (reorder_operands): Skip debug gimples.
32704 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
32706 PR tree-optimization/64277
32707 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
32708 range info when possible to refine estimation.
32710 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32712 PR tree-optimization/64718
32713 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
32714 be a 16bit unsigned integer when n->range is 16.
32715 (bswap_replace): Convert src to that type if necessary for all bswap
32716 sizes. Fix rotation right notation in nearby comment. Use bswap_type
32717 set in pass_optimize_bswap::execute ().
32719 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
32721 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
32722 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
32723 integer and floating point variants.
32724 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
32726 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
32728 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
32729 for all vector modes.
32731 2015-01-28 Jakub Jelinek <jakub@redhat.com>
32734 * doc/sourcebuild.texi (comdat_group): Document.
32736 2015-01-28 Terry Guo <terry.guo@arm.com>
32738 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
32740 2015-01-27 David Malcolm <dmalcolm@redhat.com>
32742 * toplev.c (print_version): Add param "show_global_state", and
32743 only print GGC and plugin information if it is true.
32744 (init_asm_output): Pass in "true" for the new param when calling
32746 (process_options): Likewise.
32747 (toplev::main): Likewise.
32748 * toplev.h (print_version): Add new param to decl.
32750 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32754 * tree.c (lookup_binfo_at_offset): New function.
32755 (get_binfo_at_offset): Use it.
32757 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
32760 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
32761 on vtable being vtable.
32763 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
32765 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
32766 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
32767 -mhotpatch= option.
32768 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
32769 -mno-hotpatch options. Change syntax of -mhotpatch= option.
32770 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
32772 (s390_hotpatch_trampoline_halfwords_max): Renamed.
32773 (s390_hotpatch_hw_max): New name.
32774 (s390_hotpatch_trampoline_halfwords): Renamed.
32775 (s390_hotpatch_hw_before_label): New name.
32776 (get_hotpatch_attribute): Removed.
32777 (s390_hotpatch_hw_after_label): New name.
32778 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
32780 (s390_attribute_table): Ditto.
32781 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
32782 (s390_function_num_hotpatch_hw): New name.
32783 Remove special handling of inline functions and hotpatching.
32784 Return number of nops before and after the function label.
32785 (s390_can_inline_p): Removed.
32786 (s390_asm_output_function_label): Emit a configurable number of nops
32787 after the function label.
32788 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
32789 (TARGET_CAN_INLINE_P) Removed.
32790 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
32792 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32793 Jiong Wang <jiong.wang@arm.com>
32795 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
32797 (cb<optab><mode>1): Likewise.
32798 * config/aarch64/iterators.md (bcond): New define_code_attr.
32800 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32802 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
32805 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32807 * config/s390/s390.c (s390_register_move_cost): Increase costs for
32810 2015-01-27 Richard Biener <rguenther@suse.de>
32812 * tree-vrp.c (update_value_range): Intersect the range with
32813 old recorded SSA name range information.
32815 2015-01-27 Nick Clifton <nickc@redhat.com>
32817 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
32818 BC, DE and HL registers directly, not via AX.
32819 When decrementing the stack pointer by a large amount, transfer SP
32820 into AX and perform the subtraction there.
32821 (rl78_expand_epilogue): Perform the inverse of the above
32824 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32826 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
32828 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32829 Yury Gribov <y.gribov@samsung.com>
32832 * ubsan.c (ubsan_source_location): Refactor code.
32833 (ubsan_type_descriptor): Update type size. Refactor code.
32835 2015-01-27 Richard Biener <rguenther@suse.de>
32837 PR tree-optimization/56273
32838 PR tree-optimization/59124
32839 PR tree-optimization/64277
32840 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
32841 from the first VRP pass.
32843 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32846 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
32847 handle the first argument in the same loop as all the other arguments.
32849 PR rtl-optimization/61058
32850 * jump.c (cleanup_barriers): Update basic block boundaries
32851 if BLOCK_FOR_INSN is non-NULL on PREV.
32853 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
32855 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
32856 bounds narrowing, already instrumented calls and calls to
32857 not instrumentable functions.
32859 2015-01-27 Jakub Jelinek <jakub@redhat.com>
32861 PR tree-optimization/64807
32862 * wide-int.cc (wi::divmod_internal): Clear
32863 b_dividend[dividend_blocks_needed].
32865 2015-01-26 DJ Delorie <dj@redhat.com>
32867 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
32868 volatile memory references.
32870 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
32873 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
32875 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
32876 shifts if it already fits into K08.
32878 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32881 * ipa-inline.c (inline_small_functions): Print "unknown" even
32882 if edge->call_stmt is non-NULL, but has builtins or unknown
32885 PR middle-end/64421
32886 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
32887 with asterisk, skip the first character.
32889 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32892 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
32895 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
32898 * config/i386/i386.md (*movdi_internal): Also check operand 0
32899 to determine TYPE_LEA operand.
32900 (*movsi_internal): Ditto.
32902 2015-01-26 Jakub Jelinek <jakub@redhat.com>
32904 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
32905 OPTION_MASK_QUAD_MEMORY_ATOMIC.
32907 2015-01-26 Renlin Li <renlin.li@arm.com>
32909 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
32911 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
32914 2015-01-26 Richard Biener <rguenther@suse.de>
32916 PR middle-end/64764
32917 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
32918 combining two BIT_AND_EXPR predicates.
32920 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
32923 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
32925 2015-01-26 Terry Guo <terry.guo@arm.com>
32927 * config/arm/arm.c (arm_file_start): Update the assignment of
32928 Tag_ABI_HardFP_use.
32930 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
32932 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
32934 config/arm/arm.md: Include the new Cortex-A57 model.
32935 (generic_sched): Don't use generic_sched when tuning for
32938 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
32939 Uros Bizjak <ubizjak@gmail.com>
32941 * config/i386/i386.c (get_builtin_code_for_version): Add
32942 support for BMI and BMI2 multiversion functions.
32944 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32946 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
32947 (extract_bit_field): Likewise.
32948 (extract_low_bits): Likewise.
32949 (expand_mult): Likewise.
32950 (expand_mult_highpart_adjust): Likewise.
32952 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
32954 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
32955 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
32956 * config/i386/i386.c (processor_model): Add
32957 M_INTEL_COREI7_BROADWELL.
32958 (arch_names_table): Add "broadwell".
32960 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
32969 * config/sh/sh-protos.h
32970 (sh_extending_set_of_reg::can_use_as_unextended_reg,
32971 sh_extending_set_of_reg::use_as_unextended_reg,
32972 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
32973 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
32974 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
32975 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
32976 (sh_treg_insns): New class.
32977 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
32978 (scope_counter): New class.
32979 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
32980 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
32981 sh_extending_set_of_reg::can_use_as_unextended_reg,
32982 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
32983 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
32984 sh_split_treg_set_expr): New functions.
32985 (addsubcosts): Handle treg_set_expr.
32986 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
32987 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
32988 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
32989 (sh_insn_operands_modified_between_p): Make non-static.
32990 * config/sh/predicates.md (zero_extend_movu_operand): Allow
32991 simple_mem_operand in addition to displacement_mem_operand.
32992 (zero_extend_operand): Don't allow zero_extend_movu_operand.
32993 (treg_set_expr, treg_set_expr_not_const01,
32994 arith_reg_or_treg_set_expr): New predicates.
32995 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
32996 arith_or_int_operand instead of logical_operand. Convert to
32997 insn_and_split. Try to optimize constant operand in splitter.
32998 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
32999 (*tstqi_t_zero): Delete.
33000 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
33001 (tstsi_t_and_not): Delete.
33002 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
33003 Convert to insn_and_split.
33004 (unnamed split, tstsi_t_zero_extract_xor,
33005 tstsi_t_zero_extract_subreg_xor_little,
33006 tstsi_t_zero_extract_subreg_xor_big): Delete.
33007 (*tstsi_t_shift_mask): New insn_and_split.
33008 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
33009 to recombine with surrounding insns when splitting.
33010 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
33011 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
33012 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
33013 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
33014 (*cbranch_div0s: Delete.
33015 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
33016 Try to recombine with surrounding insns when splitting. Add operand
33018 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
33019 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
33020 *addc_r_r_msb, *addc_2r_msb): Delete.
33021 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
33023 (*addc_negreg_t): New insn_and_split.
33024 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
33025 Try to recombine with surrounding insns when splitting.
33026 Add operand order variants.
33027 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
33028 insn_and_split patterns.
33029 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
33030 surrounding insns when splitting.
33031 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
33032 (*rotcl): Likewise. Add zero_extract variant.
33033 (*ashrsi2_31): New insn_and_split.
33034 (*negc): Convert to insn_and_split. Use treg_set_expr.
33035 (*zero_extend<mode>si2_disp_mem): Update comment.
33036 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
33038 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
33039 with surrounding insns when splitting.
33040 (any_treg_expr_to_reg): New insn_and_split.
33041 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
33042 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
33043 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
33044 *zero_extract_2): New single bit zero extract patterns.
33045 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
33046 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
33047 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
33048 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
33050 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
33051 register_operand for set source.
33053 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
33055 * i386.opt (prefetch_sse): New targetsave.
33056 * i386.c (ix86_function_specific_save): Save prefetch_sse.
33057 (ix86_function_specific_restore): Restore prefetch_sse and initialize
33058 ix86_cost/ix86_tune_cost.
33060 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33062 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
33063 Support the JIT by using 0 as the language type.
33065 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
33068 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
33069 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
33070 (mark_regno_live, process_bb_lives): Pass new parameter value to
33071 make_hard_regno_born.
33073 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33075 PR rtl-optimization/63637
33076 PR rtl-optimization/60663
33077 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
33078 if elt->cost is MAX_COST for ASM_OPERANDS.
33079 (find_sets_in_insn): Fix up comment typo.
33080 (cse_insn): Don't set src_volatile for all non-volatile
33081 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
33082 or with "memory" clobber. Set elt->cost to MAX_COST
33083 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
33084 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
33086 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
33088 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
33091 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
33093 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
33094 libgcc/config/i386/elf-lib.h.
33096 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33099 * gcc.c (print_configuration): Don't print a blank line at the end
33101 (run_attempt): ... but here unstead.
33103 PR middle-end/64734
33104 * omp-low.c (scan_sharing_clauses): Don't ignore
33105 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
33106 on target data/update constructs.
33108 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
33111 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
33112 (DEBUG_RELOAD): Removed define.
33113 (m32c_limit_reload_class): Enable traces with if DEBUG0.
33114 (m32c_function_arg): Added a type cast.
33115 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
33116 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
33117 * config/m32c/bitops.md (andqi3_16): Likewise.
33118 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
33119 (push_a01_l): Likewise.
33121 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33124 * main.c (main): Construct toplev instances with init_signals=true.
33125 * toplev.c (general_init): Add param "init_signals", and use it to
33126 conditionalize the calls to signal and host_hooks.extra_signals.
33127 (toplev::toplev): Add param "init_signals".
33128 (toplev::main): When invoking general_init, pass m_init_signals
33129 to control whether signal-handlers are installed.
33130 * toplev.h (toplev::toplev): Add param "init_signals".
33131 (toplev::m_init_signals): New field.
33133 2015-01-23 David Malcolm <dmalcolm@redhat.com>
33136 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
33137 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
33138 latter may be affected by the former (e.g. on i686).
33140 2015-01-23 Martin Liska <mliska@suse.cz>
33142 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
33143 false positive during profiledbootstrap.
33145 2015-01-23 Tom de Vries <tom@codesourcery.com>
33148 * lto-opts.c (lto_write_options): Output non-explicit conservative
33150 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
33151 (append_compiler_options): Pass -fopenacc through.
33153 2015-01-23 Tom de Vries <tom@codesourcery.com>
33156 * lto-opts.c (lto_write_options): Output non-explicit conservative
33158 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
33159 (append_compiler_options): Pass -fopenmp through.
33161 2015-01-23 Jakub Jelinek <jakub@redhat.com>
33164 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
33167 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
33168 * diagnostic.def (DK_ICE_NOBT): New kind.
33169 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
33170 like DK_ICE, but never print backtrace.
33171 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
33172 (internal_error_no_backtrace): New function.
33173 * gcc.c (execute): Use internal_error_no_backtrace instead of
33176 2015-01-22 Jeff Law <law@redhat.com>
33179 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
33180 improve code density for small immediate to memory case.
33181 (insv): Better handle bitfield assignments when the field is
33182 being set to all ones.
33183 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
33186 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33187 Jakub Jelinek <jakub@redhat.com>
33189 PR middle-end/64729
33190 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
33191 for !TARGET_LIBC_PROVIDES_SSP version and
33192 -fstack-protector-{all,strong,explicit} otherwise.
33193 * config/freebsd.h (LINK_SSP_SPEC): Handle
33194 -fstack-protector-{strong,explicit}.
33196 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
33197 H.J. Lu <hongjiu.lu@intel.com>
33200 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
33203 2015-01-22 Wei Mi <wmi@google.com>
33205 PR rtl-optimization/64557
33206 * dse.c (record_store): Call get_addr for mem_addr.
33207 (check_mem_read_rtx): Likewise.
33209 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
33211 * fold-const.c (const_binop): Add early return for non-tcc_binary.
33213 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
33215 * toplev.c (init_local_tick): Process the failure when read
33216 fails for random_seed.
33218 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
33219 'pretty_name' to avoid memory overflow.
33221 2015-01-22 Richard Biener <rguenther@suse.de>
33223 PR middle-end/64728
33224 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
33225 abnormal coalescing on undefined SSA names.
33227 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
33231 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
33233 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
33235 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
33237 PR middle-end/63325
33238 * fold-const.c (fold_checksum_tree): Don't include value of
33239 expr->decl_with_vis.symtab_node in the checksum.
33241 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33243 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
33245 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
33248 * gcc.c (insert_comments): New function.
33249 (try_generate_repro): Call it.
33250 (append_text): Removed.
33252 2015-01-22 Richard Biener <rguenther@suse.de>
33254 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
33255 with IL incompatible options. Properly honor user optimize
33258 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
33260 PR rtl-optimization/64682
33261 * combine.c (distribute_notes): When moving a death note for
33262 a register that is set in the new I2, make sure to put it
33263 before that new I2.
33265 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
33267 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
33268 not TARGET_DEFAULT.
33270 2015-01-21 Jakub Jelinek <jakub@redhat.com>
33273 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
33274 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
33275 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
33278 * doc/invoke.texi (-fsanitize=vptr): Document.
33280 PR rtl-optimization/62078
33281 * dse.c: Include cfgcleanup.h.
33282 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
33283 anything call purge_all_dead_edges and cleanup_cfg at the end
33286 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
33288 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
33291 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33293 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
33296 2015-01-21 David Sherwood <david.sherwood@arm.com>
33297 Tejas Belagod <Tejas.Belagod@arm.com>
33299 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
33300 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
33301 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
33304 2015-01-21 David Sherwood <david.sherwood@arm.com>
33305 Tejas Belagod <Tejas.Belagod@arm.com>
33307 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
33308 (aarch64_reverse_mask): New decls.
33309 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
33310 (insn_count): New mode_attr.
33311 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
33312 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
33313 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
33314 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
33315 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
33316 (aarch64_simd_st4): New patterns.
33317 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
33318 (aarch64_reverse_mask): New functions.
33320 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33322 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
33324 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
33325 addressing modes for BE.
33326 (aarch64_print_operand): Add 'R' specifier.
33327 (aarch64_simd_disambiguate_copy): Delete.
33328 (aarch64_simd_emit_reg_reg_move): New function.
33329 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
33330 in define_splits for structural moves.
33331 (mov<mode>): Use less restrictive predicates.
33332 (*aarch64_mov<mode>): Simplify and only allow for LE.
33333 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
33335 2015-01-21 Alan Hayward <alan.hayward@arm.com>
33337 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
33339 2015-01-21 Richard Henderson <rth@redhat.com>
33342 * ccmp.c (used_in_cond_stmt_p): Remove.
33343 (expand_ccmp_expr): Don't use it.
33345 2015-01-21 Nick Clifton <nickc@redhat.com>
33347 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
33350 2015-01-21 Richard Biener <rguenther@suse.de>
33352 PR middle-end/64313
33353 * tree-core.h (builtin_info, builtin_info_type): Turn from
33354 an object with two arrays into an array of an object with
33355 decl and two flags, implicit_p and declared_p.
33356 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
33357 set_builtin_decl, set_builtin_decl_implicit_p,
33358 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
33359 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
33360 * builtins.c (builtin_info): Adjust.
33361 * gimplify.c (gimplify_addr_expr): References to builtins
33362 that have been declared by the user makes them eligible for
33363 use by the compiler. Call set_builtin_decl_implicit_p on them.
33365 2015-01-20 Jeff Law <law@redhat.com>
33368 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
33369 allow pc-relative addresses in operand predicates or constraints.
33371 2015-01-21 Bin Cheng <bin.cheng@arm.com>
33373 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
33374 neon on aarch32 processors for stringops.
33376 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33379 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
33381 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33384 * ipa-inline.c: Include lto-streamer.h
33385 (report_inline_failed_reason): Output source file differences and
33386 flags on optimization/target node mismatch.
33387 (can_inline_edge_p): Consider caller to be the outer inline function;
33388 be less restrictive about matching opimize and optimize_size attributes.
33389 (inline_account_function_p): Break out from ...
33390 (inline_small_functions): ... here.
33391 * ipa-inline-transform.c (clone_inlined_nodes): Use
33392 inline_account_function_p.
33393 (inline_call): Use optimize attribution; use inline_account_function_p.
33394 (inline_transform): Use opt_for_fn.
33395 * ipa-inline.h (inline_account_function_p): Declare.
33397 2015-01-20 Jakub Jelinek <jakub@redhat.com>
33400 * dwarf2out.c (decl_piece_node): Don't put bitsize into
33401 mode if bitsize <= 0.
33402 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
33403 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
33404 sizes and positions.
33406 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
33408 * config/nios2/nios2.c (nios2_asm_file_end): Implement
33409 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
33411 (TARGET_ASM_FILE_END): Define.
33413 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33415 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
33416 (struct tune_params): Use the enum.
33417 * arm.c (arm_*_tune): Update.
33418 (arm_option_override): Update.
33420 2015-01-20 Richard Biener <rguenther@suse.de>
33423 * ipa-reference.c (add_static_var): Inline ...
33424 (analyze_function): ... here after splitting out from ...
33425 (is_proper_for_analysis): ... this.
33427 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
33430 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
33431 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
33432 replace the conditional with it's true branch.
33433 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
33434 (arm_lra_p): Remove.
33436 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
33438 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
33440 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33442 * config/tilegx/mul-tables.c: Move symtab.h include after
33443 coretypes.h include.
33444 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
33445 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
33446 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
33447 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
33448 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
33450 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
33454 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33456 PR rtl-optimization/64081
33457 * loop-iv.c (def_pred_latch_p): New function.
33458 (latch_dominating_def): Allow specific cases with non-single
33460 (iv_get_reaching_def): Likewise.
33461 (check_complex_exit_p): New function.
33462 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33463 with exits not executing on any iteration.
33465 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33468 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
33469 to set branch cost.
33471 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33474 * i386.c (gate): Check flag_expensive_optimizations and
33476 (ix86_option_override_internal): Drop optimize_size condition
33477 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
33478 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
33479 MASK_PREFER_AVX128.
33480 (ix86_avx256_split_vector_move_misalign,
33481 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
33482 * sse.md (all uses of TARGET_PREFER_AVX128): Add
33483 optimize_insn_for_speed_p check.
33485 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
33487 * config/mips/mips.h (FP_ASM_SPEC): New define.
33488 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
33491 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
33494 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
33495 nullptr for insn when reaching the first insn.
33496 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
33497 (sh_insn_operands_modified_between_p): Add nullptr check.
33498 (sh_find_extending_set_of_reg): Fix log message. Don't accept
33499 sign extending mem load if the insn contains any UNSPEC or
33502 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33504 * params.def (inline-unit-growth): Drop to 15%.
33505 * invoke.texi (inline-unit-growth): Document change.
33507 2015-01-19 Martin Liska <mliska@suse.cz>
33510 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
33511 function for second argument of OBJ_TYPE_REF.
33513 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33516 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
33517 whether function is an alias.
33519 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
33521 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
33524 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
33526 PR rtl-optimization/64671
33527 * lra-remat.c (operand_to_remat): Don't consider jump and call
33530 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
33533 * config/rs6000/default64.h: Include rs6000-cpus.def.
33534 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
33535 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
33536 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
33538 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
33540 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
33541 pseudo-op to specify assembler dialect.
33543 2015-01-19 Martin Liska <mliska@suse.cz>
33546 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
33547 Handle safe potentially removed nodes during filtering.
33549 2015-01-19 Martin Liska <mliska@suse.cz>
33551 * doc/extend.texi (no_icf): Add new attribute description.
33552 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
33553 where the pass attempts to merge a function with no_icf attribute.
33555 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33558 * doc/md.texi (ARM Options): Document register constraints.
33560 2015-01-19 Jiong Wang <jiong.wang@arm.com>
33561 Andrew Pinski <apinski@cavium.com>
33564 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
33565 (ashl<mode>3): Don't expand if operands[2] is not constant.
33567 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33570 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
33571 Match xor-and-xor RTL pattern.
33573 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
33575 PR rtl-optimization/64081
33576 * loop-iv.c (def_pred_latch_p): New function.
33577 (latch_dominating_def): Allow specific cases with non-single
33579 (iv_get_reaching_def): Likewise.
33580 (check_complex_exit_p): New function.
33581 (check_simple_exit): Use check_complex_exit_p to allow certain cases
33582 with exits not executing on any iteration.
33584 2015-01-19 Jakub Jelinek <jakub@redhat.com>
33586 * common.opt (fgraphite): Fix a typo.
33588 2015-01-19 Felix Yang <felix.yang@huawei.com>
33590 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
33592 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
33593 uminp, smax_nanp, smin_nanp): New builtins.
33594 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
33595 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
33596 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
33597 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
33598 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
33599 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
33600 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
33601 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
33602 vpminnms_f32): Rewrite using builtin functions.
33604 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
33607 * omp-low.c (offload_symbol_decl): Remove variable.
33608 (get_offload_symbol_decl): Remove function.
33609 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
33610 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
33611 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
33612 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
33613 BUILT_IN_GOACC_UPDATE don't pass it at all.
33615 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33617 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
33620 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
33622 * ipa-chkp.c (chkp_produce_thunks): Add early param
33623 to split thunks production into two passes. Keep
33624 'always_inline' function bodies after the first pass.
33625 (pass_data_ipa_chkp_early_produce_thunks): New.
33626 (pass_ipa_chkp_early_produce_thunks): New.
33627 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
33628 chkp_produce_thunks signature.
33629 (make_pass_ipa_chkp_early_produce_thunks): New.
33630 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
33631 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
33632 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
33634 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33636 * cgraph.c (cgraph_node::dump): Dump profile flags.
33638 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
33641 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
33642 reg appear first in the parallel.
33644 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33646 * ipa-reference.c (set_reference_optimization_summary,
33647 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
33649 (ignore_module_statics): New static var.
33650 (propagate_bits): If ipa-reference is disabled, do not look into local
33652 (analyze_function): Disable analysis when ipa_reference is disabled.
33653 (generate_summary): Do not dump when reference is disabled;
33654 collect vars accessed from functions with ipa-reference disabled.
33655 (get_read_write_all_from_node): When ipa-reference is disabled, use the
33657 (gate): Enable for LTO.
33658 (ignore_edge_p): New function.
33659 (propagate): Skip functions w/o ipa-reference analysis.
33660 * optc-save-gen.awk: Handle optimize_debug correctly.
33661 * opth-gen.awk: Likewise.
33662 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
33663 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
33664 fira-share-save-slots, fira-share-spill-slots,
33665 fmodulo-sched-allow-regmoves, fpartial-inlining,
33666 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
33667 ftracer, ftree-parallelize-loops, fassociative-math,
33668 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
33670 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
33671 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
33673 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
33676 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
33679 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
33681 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
33683 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
33685 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
33686 Remove duplicate option listings.
33688 2015-01-18 Felix Yang <felix.yang@huawei.com>
33690 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
33691 (autofdo_source_profile::get_callsite_total_count,
33692 function_instance::get_function_instance_by_decl,
33693 string_table::get_index, string_table::get_index_by_decl,
33694 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
33695 Fix comment typos. Reformatting and minor code rearrangement.
33697 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33699 * config/rs6000/rs6000.md (probe_stack): Delete.
33700 (probe_stack_address): New.
33702 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33704 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
33705 to test for 32-bit ABIs, not !TARGET_POWERPC64.
33707 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
33709 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
33710 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
33711 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
33713 (rs6000_libcall_value): Use the new function.
33715 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
33717 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
33719 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
33721 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
33722 implement a more precise life analysis for it during backward scan.
33724 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
33726 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
33728 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
33730 PR rtl-optimization/52773
33731 * calls.c (emit_library_call_value): When pushing arguments use
33732 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
33733 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
33734 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
33736 2015-01-17 Jeff Law <law@redhat.com>
33738 PR rtl-optimization/32790
33739 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
33740 not ZERO_EXTEND in SET_DESTs.
33742 2015-01-17 Alan Modra <amodra@gmail.com>
33744 * cprop.c (do_local_cprop): Revert last change.
33746 2015-01-16 DJ Delorie <dj@redhat.com>
33747 Nick Clifton <nickc@redhat.com>
33749 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
33750 (addhi3_real): Likewise. Fix [HL+0] syntax.
33751 (subqi3_real): Likewise.
33752 (subhi3_real): Likewise.
33753 (cbranchqi4_real): Likewise. Allow saddr,#imm.
33754 (cbranchhi4_real): Likewise.
33755 (cbranchhi4_real_inverted): Likewise.
33756 (cbranchsi4_real_lt): Likewise.
33757 (cbranchsi4_real_ge): Likewise.
33758 (cbranchsi4_real_ge): Likewise.
33759 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
33760 (sub<mode>3_virt): Likewise.
33761 (cbranchqi4_virt): Likewise.
33762 (cbranchhi4_virt): Likewise.
33763 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
33764 always use '[reg+imm]' even when imm is zero.
33765 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
33766 (rl78_general_operand): New.
33767 (rl78_nonimmediate_operand): New.
33768 (rl78_nonfar_operand): Use them.
33769 (rl78_nonfar_nonimm_operand): Likewise.
33770 (rl78_stack_based_mem): Fix.
33771 * config/rl78/constraints.md (Ibqi): New.
33776 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
33777 (iorqi3): Likewise.
33778 (xorqi3): Likewise.
33779 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
33781 * config/rl78/constrains (Qs8): New constraint.
33782 * config/rl78/rl78.c (rl78_flags_already_set): New function.
33783 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
33784 * config/rl78/rl78-real.md (update_Z): New attribute.
33785 Update patterns to set it.
33786 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
33787 shorter compare and branch sequence can be used.
33788 (cbranchhi4_real): Likewise.
33789 (cbranchhi4_real_inverted): Likewise.
33791 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
33792 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
33794 * config/rl78/rl78.c (rl78_get_name_encoding): New.
33795 (rl78_option_override): Allow -mes0 only if C.
33796 (characterize_address): Support subregs of symbol_refs.
33797 (rl78_addr_space_address_mode): Move. Add __near.
33798 (rl78_far_p): Likewise.
33799 (rl78_addr_space_pointer_mode): Likewise.
33800 (rl78_as_legitimate_address): Likewise.
33801 (rl78_addr_space_subset_p): Likewise.
33802 (rl78_addr_space_convert): Likewise.
33803 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
33804 symbols with -mes0.
33805 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
33807 (rl78_alloc_physical_registers_op1): Change logic to prefer
33808 symbol[BC] addressing.
33809 (frodata_section): New.
33810 (rl78_asm_init_sections): Initialize it.
33811 (rl78_select_section): Put __far readonly symbols in .frodata.
33812 (rl78_make_type_far): New.
33813 (rl78_insert_attributes): Force all readonly symbols to be
33815 (rl78_asm_out_integer): New.
33816 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
33817 * config/rl78/rl78.opt (-mes0): New.
33819 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
33820 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
33821 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
33822 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
33823 (rl78_saddr_p): New.
33824 (rl78_output_aligned_common): New.
33825 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
33826 (rl78_handle_saddr_attribute): New.
33827 (rl78_handle_naked_attribute): New.
33828 (rl78_attribute_table): Add saddr.
33829 (rl78_print_operand_1): Don't print '!' on saddr operands.
33830 (rl78_print_operand_1): Strip encodings.
33832 (rl78_strip_name_encoding): New.
33833 (rl78_attrlist_to_encoding): New.
33834 (rl78_encode_section_info): New.
33835 (rl78_asm_init_sections): New.
33836 (rl78_select_section): New.
33837 (rl78_output_labelref): New.
33838 (rl78_output_aligned_common): New.
33839 (rl78_asm_out_integer): New.
33840 (rl78_asm_ctor_dtor): New.
33841 (rl78_asm_constructor): New.
33842 (rl78_asm_destructor): New.
33844 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
33845 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
33846 (transcode_memory_rtx): Update.
33847 (rl78_expand_epilogue): Use A_REG instead of 0.
33849 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33851 * config/arm/arm-protos.h (struct tune_params): New field
33852 sched_autopref_queue_depth.
33853 * config/arm/arm.c (sched-int.h): Include header.
33854 (arm_first_cycle_multipass_dfa_lookahead_guard,)
33855 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
33856 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
33857 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
33858 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
33859 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
33860 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
33861 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
33862 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
33863 * config/arm/t-arm (arm.o): Update.
33864 * haifa-sched.c (update_insn_after_change): Update.
33865 (rank_for_schedule): Use auto-prefetcher model, if requested.
33866 (autopref_multipass_init): New static function.
33867 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
33868 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
33869 variable for debug dumps.
33870 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
33871 (autopref_multipass_dfa_lookahead_guard): New global function that
33872 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
33873 (init_h_i_d): Update.
33874 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
33875 * sched-int.h (enum autopref_multipass_data_status): New const enum.
33876 (autopref_multipass_data_): Structure for auto-prefetcher data.
33877 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
33878 (struct _haifa_insn_data:autopref_multipass_data): New field.
33879 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
33880 (autopref_multipass_dfa_lookahead_guard): Declare.
33882 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33884 * rtlanal.c (get_base_term): Handle SCRATCH.
33886 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33888 * config/aarch64/aarch64.c
33889 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
33890 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33892 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
33893 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
33895 2015-01-17 Alan Modra <amodra@gmail.com>
33897 * cprop.c (do_local_cprop): Disallow replacement of fixed
33900 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33903 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
33906 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
33908 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
33909 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
33911 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33913 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
33914 * config/arm/thumb1.md: ... Here.
33916 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33918 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
33919 TImode for TARGET_32BIT.
33921 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33923 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
33924 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
33926 (rs6000_abi_word_mode): New function.
33928 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33930 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
33931 instead of UNITS_PER_WORD to describe the size of stack slots.
33933 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33935 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
33936 as rs6000_promote_function_mode. Move comment to there.
33937 (rs6000_promote_function_mode): New function.
33939 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
33941 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
33942 -mpowerpc64 is active.
33944 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33946 PR middle-end/64353
33947 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
33950 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
33952 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
33953 introduced in revision 219724.
33955 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33956 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33959 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
33960 destination is not a GP reg.
33961 (*movdi_aarch64): Likewise.
33963 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
33966 * config/rs6000/default64.h: Revert ISA change.
33968 2015-01-16 Richard Biener <rguenther@suse.de>
33970 PR middle-end/64614
33971 * tree-ssa-uninit.c: Include tree-cfg.h.
33972 (MAX_SWITCH_CASES): New define.
33973 (convert_control_dep_chain_into_preds): Handle switch statements.
33974 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
33975 (normalize_one_pred_1): Do not split bit-manipulations.
33978 2015-01-16 Richard Biener <rguenther@suse.de>
33980 PR tree-optimization/64568
33981 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
33982 complex load rewriting for TARGET_MEM_REFs.
33984 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
33986 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
33988 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
33991 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
33993 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
33994 (aarch64_lra_p): Remove.
33996 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
33999 * ipa-chkp.h (chkp_instrumentable_p): New.
34000 * ipa-chkp.c: Include tree-inline.h.
34001 (chkp_instrumentable_p): New.
34002 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
34003 Fix processing of not instrumentable functions.
34004 (chkp_versioning): Use chkp_instrumentable_p. Warn about
34005 not instrumentable functions.
34006 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
34007 chkp_instrumentable_p.
34008 * tree-inline.h (copy_forbidden): New.
34009 * tree-inline.c (copy_forbidden): Not static anymore.
34011 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34013 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
34016 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
34018 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
34019 type OP_OUT to OP_INOUT.
34021 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
34023 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
34024 (high x) y) to y if x and y have the same base.
34026 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
34028 * config/arm/cortex-a57.md: New.
34029 * config/aarch64/aarch64.md: Include it.
34030 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
34031 * config/aarch64/aarch64-tune.md: Regenerate.
34033 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
34036 * ccmp.c (expand_ccmp_next): New function.
34037 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
34038 and compare insn sequence.
34039 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
34040 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
34041 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
34042 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
34043 (*ccmp_ior): Changed to ccmp_ior<mode>.
34044 (cmp<mode>): New pattern.
34045 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
34047 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
34049 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
34051 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
34052 _mm256_bsrli_epi128): New.
34053 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
34055 2015-01-15 Jiong Wang <jiong.wang@arm.com>
34057 * expmed.c (store_bit_field_using_insv): Improve warning message.
34058 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
34060 2015-01-15 Jiong Wang <jiong.wang@arm.com>
34062 PR rtl-optimization/64011
34063 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
34064 there is partial overflow.
34066 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34068 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
34070 (nds32_expand_epilogue_v3pop): Likewise.
34071 * config/nds32/nds32.md (sibcall): Define this for sibling call
34073 (sibcall_register): Likewise.
34074 (sibcall_immediate): Likewise.
34075 (sibcall_value): Likewise.
34076 (sibcall_value_register): Likewise.
34077 (sibcall_value_immediate): Likewise.
34078 (sibcall_epilogue): Likewise.
34079 (epilogue): Pass false to indicate this is not a sibcall epilogue.
34080 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
34081 (nds32_expand_epilogue_v3pop): Likewise.
34083 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34085 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
34086 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
34087 (return_internal): New.
34088 (return): Define this named pattern.
34089 (simple_return): Define this named pattern.
34090 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
34091 pattern instead of unspec_volatile_func_return.
34092 (nds32_expand_epilogue_v3pop): Likewise.
34093 (nds32_can_use_return_insn): New function.
34095 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34097 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
34098 * config/nds32/nds32.md (pop25return): New.
34099 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
34100 pop25return pattern.
34102 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34104 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
34105 -mforbid-fp-as-gp, and -mex9 options.
34107 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
34109 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
34110 remove -mgp-direct option.
34112 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34114 * doc/invoke.texi (--param early-inlining-insns): Update default value.
34115 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
34117 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34119 * ipa-inline.c (inline_small_functions): Work around hints
34122 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
34125 * doc/invoke.texi (Option Summary): Document new Nios II
34127 (Nios II Options): Likewise.
34128 * config/nios2/nios2.opt: Add -mgpopt= option support.
34129 Modify existing -mgpopt and -mno-gpopt options to be aliases.
34130 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
34131 * config/nios2/nios2.c (nios2_option_override): Adjust
34132 -mgpopt defaulting.
34133 (nios2_in_small_data_p): Return true for explicit small data
34134 sections even with -G0.
34135 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
34138 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34141 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
34143 (inline_call): Fix removal of aliases.
34145 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34147 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
34148 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
34149 * opts.c (common_handle_option): Add -fsanitize=vptr.
34150 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
34151 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
34152 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
34153 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
34154 (ubsan_expand_vptr_ifn): New prototype.
34155 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
34156 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
34157 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
34158 expand_LOOP_VECTORIZED): Make argument nameless, remove
34160 (expand_UBSAN_VPTR): New function.
34161 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
34163 (UBSAN_VPTR): New internal function.
34164 * sanopt.c (tree_map_traits): Renamed to ...
34165 (sanopt_tree_map_traits): ... this.
34166 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
34167 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
34168 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
34169 (maybe_optimize_ubsan_vptr_ifn): New function.
34170 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
34171 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
34173 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
34174 internal calls like pure functions for aliasing, even when they
34175 have other side-effects that prevent making them ECF_PURE.
34176 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
34177 (ubsan_expand_vptr_ifn): New function.
34179 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
34181 PR rtl-optimization/64110
34182 * stmt.c (parse_output_constraint): Process '^' and '$'.
34183 (parse_input_constraint): Ditto.
34184 * lra-constraints.c (process_alt_operands): Process the new
34186 * ira-costs.c (record_reg_classes): Process the new constraint
34188 * genoutput.c (indep_constraints): Add '^' and '$'.
34189 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
34190 * doc/md.texi: Add description of the new constraints.
34192 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
34193 Bernd Schmidt <bernds@codesourcery.com>
34194 Cesar Philippidis <cesar@codesourcery.com>
34195 James Norris <jnorris@codesourcery.com>
34196 Tom de Vries <tom@codesourcery.com>
34197 Ilmir Usmanov <i.usmanov@samsung.com>
34198 Dmitry Bocharnikov <dmitry.b@samsung.com>
34199 Evgeny Gavrin <e.gavrin@samsung.com>
34200 Jakub Jelinek <jakub@redhat.com>
34202 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
34203 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
34204 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
34205 New function types.
34206 * builtins.c: Include "gomp-constants.h".
34207 (expand_builtin_acc_on_device): New function.
34208 (expand_builtin, is_inexpensive_builtin): Handle
34209 BUILT_IN_ACC_ON_DEVICE.
34210 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
34212 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
34214 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
34215 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
34216 i386/intelmic-offload.h.
34217 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
34218 to libgomp and its dependencies.
34219 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
34220 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
34221 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
34222 * config/ia64/hpux.h (LIB_SPEC): Likewise.
34223 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
34224 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
34225 * doc/generic.texi: Update for OpenACC changes.
34226 * doc/gimple.texi: Likewise.
34227 * doc/invoke.texi: Likewise.
34228 * doc/sourcebuild.texi: Likewise.
34229 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
34230 GF_OMP_FOR_KIND_OACC_LOOP.
34231 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
34232 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
34233 GF_OMP_TARGET_KIND_OACC_UPDATE,
34234 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34236 * gimple.c: Update comments for OpenACC changes.
34237 * gimple.def: Likewise.
34238 * gimple.h: Likewise.
34239 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
34240 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34241 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
34242 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
34243 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
34245 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
34246 * gimplify.c: Include "gomp-constants.h".
34247 Update comments for OpenACC changes.
34248 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
34249 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
34250 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34251 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
34252 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34253 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34254 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
34255 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34256 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
34258 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
34259 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34260 OMP_CLAUSE_SET_MAP_KIND.
34261 (gimplify_oacc_cache): New function.
34262 (gimplify_omp_for): Handle OACC_LOOP.
34263 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
34265 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
34266 OACC_EXIT_DATA, OACC_UPDATE.
34267 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
34268 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
34269 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
34270 (gimplify_body): Consider flag_openacc next to flag_openmp.
34271 * lto-streamer-out.c: Include "gomp-constants.h".
34272 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
34273 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
34274 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
34275 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
34276 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
34277 (BUILT_IN_ACC_ON_DEVICE): New builtins.
34278 * omp-low.c: Include "gomp-constants.h".
34279 Update comments for OpenACC changes.
34280 (struct omp_context): Add reduction_map, gwv_below, gwv_this
34282 (extract_omp_for_data, use_pointer_for_field, install_var_field)
34283 (new_omp_context, delete_omp_context, scan_sharing_clauses)
34284 (create_omp_child_function, scan_omp_for, scan_omp_target)
34285 (check_omp_nesting_restrictions, lower_reduction_clauses)
34286 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
34287 Update for OpenACC changes.
34288 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
34289 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
34290 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
34291 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
34292 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
34293 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
34295 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
34296 Handle GF_OMP_FOR_KIND_OACC_LOOP.
34297 (expand_omp_target, lower_omp_target): Handle
34298 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
34299 GF_OMP_TARGET_KIND_OACC_UPDATE,
34300 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
34301 GF_OMP_TARGET_KIND_OACC_DATA.
34302 (pass_expand_omp::execute, execute_lower_omp)
34303 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
34305 (offload_symbol_decl): New variable.
34306 (oacc_get_reduction_array_id, oacc_max_threads)
34307 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
34308 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
34309 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
34310 (oacc_gimple_assign, oacc_initialize_reduction_data)
34311 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
34313 (is_targetreg_ctx): Remove function.
34314 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
34315 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
34316 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
34317 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
34318 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
34319 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
34320 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
34321 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
34322 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
34323 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
34324 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
34325 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
34326 * tree-core.h: Update comments for OpenACC changes.
34327 (enum omp_clause_map_kind): Remove.
34328 (struct tree_omp_clause): Change type of map_kind member from enum
34329 omp_clause_map_kind to unsigned char.
34330 * tree-inline.c: Update comments for OpenACC changes.
34331 * tree-nested.c: Likewise. Include "gomp-constants.h".
34332 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
34333 (convert_tramp_reference_stmt, convert_gimple_call): Update for
34334 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
34335 OMP_CLAUSE_SET_MAP_KIND.
34336 * tree-pretty-print.c: Include "gomp-constants.h".
34337 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
34338 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
34339 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
34340 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
34341 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
34342 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
34343 instead of OMP_CLAUSE_MAP_*.
34344 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
34345 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
34346 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
34347 * tree-streamer-in.c: Include "gomp-constants.h".
34348 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
34349 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
34350 * tree-streamer-out.c: Include "gomp-constants.h".
34351 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
34353 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
34354 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
34355 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
34356 * tree.c (omp_clause_num_ops): Update accordingly.
34357 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
34359 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
34360 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
34361 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
34362 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
34363 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
34364 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
34365 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
34366 (OMP_CLAUSE_SET_MAP_KIND): New macro.
34367 * varpool.c (varpool_node::get_create): Consider flag_openacc next
34369 * config/i386/intelmic-offload.h: New file.
34370 * config/nvptx/offload.h: Likewise.
34372 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34374 * explow.h: Remove duplicate contents.
34375 * dojump.h: Likewise.
34377 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
34379 * arm.c (arm_xgene_tune): Add default initializer for instruction
34382 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
34386 * ipa.c (symbol_table::remove_unreachable_nodes):
34387 Do not put abstract origins into boundary.
34389 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
34391 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
34392 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
34394 2015-01-15 Steve Ellcey <sellcey@mips.com>
34396 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
34397 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
34398 builtins.def, and chkp-builtins.def.
34400 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
34402 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
34405 2015-01-15 Richard Biener <rguenther@suse.de>
34407 PR tree-optimization/61743
34408 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
34409 information on PHIs for some simple cases.
34411 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34413 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
34415 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
34416 * config/arm/arm-cores.def (xgene1): New entry.
34417 * config/arm/arm-tables.opt: Regenerate.
34418 * config/arm/arm-tune.md: Regenerate.
34419 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
34421 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34423 * tree-if-conv.c: Include hash-map.h.
34424 (aggressive_if_conv): New variable.
34425 (fold_build_cond_expr): Add simplification of non-zero condition.
34426 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
34427 destination block is not always executed.
34428 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
34429 than two predecessors if AGGRESSIVE_IF_CONV is true.
34430 (if_convertible_stmt_p): Fix commentary.
34431 (all_preds_critical_p): New function.
34432 (has_pred_critical_p): New function.
34433 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
34434 BB can have more than two predecessors and all incoming edges can be
34436 (predicate_bbs): Skip predication for loop exit block, use build2_loc
34437 to compute predicate for true edge.
34438 (find_phi_replacement_condition): Delete this function.
34439 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
34440 Allow interchange PHI arguments if EXTENDED is false.
34441 Change check that block containing reduction statement candidate
34442 is predecessor of phi-block since phi may have more than two arguments.
34443 (phi_args_hash_traits): New helper structure.
34444 (struct phi_args_hash_traits): New type.
34445 (phi_args_hash_traits::hash): New function.
34446 (phi_args_hash_traits::equal_keys): New function.
34447 (gen_phi_arg_condition): New function.
34448 (predicate_scalar_phi): Add handling of phi nodes with more than two
34449 arguments, delete COND and TRUE_BB arguments, insert body of
34450 find_phi_replacement_condition to predicate ordinary phi nodes.
34451 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
34452 delete call of find_phi_replacement_condition and invoke
34453 predicate_scalar_phi with two arguments.
34454 (insert_gimplified_predicates): Add assert that non-predicated block
34455 don't have statements to insert.
34456 (ifcvt_split_critical_edges): New function.
34457 (ifcvt_split_def_stmt): Likewise.
34458 (ifcvt_walk_pattern_tree): Likewise.
34459 (stmt_is_root_of_bool_pattern): Likewise.
34460 (ifcvt_repair_bool_pattern): Likewise.
34461 (ifcvt_local_dce): Likewise.
34462 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
34463 is copy of inner or outer loop force_vectorize field, invoke
34464 ifcvt_split_critical_edges, ifcvt_local_dce and
34465 ifcvt_repair_bool_pattern for aggressive if-conversion.
34467 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
34469 * config/aarch64/aarch64.md: Include xgene1.md.
34470 * config/aarch64/xgene1.md: New file.
34472 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
34474 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
34475 xgene1 (APM XGene-1) core definition.
34476 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
34477 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
34478 * doc/invoke.texi: Document -mcpu=xgene1.
34480 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34482 * dojump.h: New header file.
34483 * explow.h: Likewise.
34484 * expr.h: Remove includes.
34485 Move expmed.c prototypes to expmed.h.
34486 Move dojump.c prototypes to dojump.h.
34487 Move alias.c prototypes to alias.h.
34488 Move explow.c prototypes to explow.h.
34489 Move calls.c prototypes to calls.h.
34490 Move emit-rtl.c prototypes to emit-rtl.h.
34491 Move varasm.c prototypes to varasm.h.
34492 Move stmt.c prototypes to stmt.h.
34493 (saved_pending_stack_adjust): Move to dojump.h.
34494 (adjust_address): Move to explow.h.
34495 (adjust_address_nv): Move to emit-rtl.h.
34496 (adjust_bitfield_address): Likewise.
34497 (adjust_bitfield_address_size): Likewise.
34498 (adjust_bitfield_address_nv): Likewise.
34499 (adjust_automodify_address_nv): Likewise.
34500 * explow.c (expr_size): Move to expr.c.
34501 (int_expr_size): Likewise.
34502 (tree_expr_size): Likewise.
34503 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34504 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34505 * genemit.c (main): Generate includes statistics.h, real.h,
34506 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
34508 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
34509 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
34510 explow.h, emit-rtl.h, stmt.h.
34511 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
34512 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
34513 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
34514 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
34515 emit-rtl.h, varasm.h, stmt.h.
34516 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
34517 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
34518 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
34519 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
34520 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34521 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
34522 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
34523 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
34524 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
34525 tm.h tree.h varasm.h vec.h wide-int.h.
34526 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34527 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34528 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
34529 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
34530 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
34531 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
34532 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
34533 * loop-iv.c: Likewise.
34534 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
34535 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
34536 statistics.h stmt.h tree.h varasm.h wide-int.h.
34537 * lra-constraints.c: Likewise.
34538 * lra-eliminations.c: Likewise.
34539 * lra-lives.c: Likewise.
34540 * lra-remat.c: Likewise.
34541 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34542 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
34543 statistics.h stmt.h tree.h varasm.h wide-int.h.
34544 * hw-doloop.c: Likewise.
34545 * ira-color.c: Likewise.
34546 * ira-emit.c: Likewise.
34547 * loop-doloop.c: Likewise.
34548 * loop-invariant.c: Likewise.
34549 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34550 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
34551 statistics.h stmt.h tree.h varasm.h wide-int.h.
34552 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
34553 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
34554 statistics.h stmt.h tree.h varasm.h wide-int.h.
34555 * combine-stack-adj.c: Likewise.
34558 * ifcvt.c: Likewise.
34559 * ira-costs.c: Likewise.
34560 * jump.c: Likewise.
34561 * lra-coalesce.c: Likewise.
34562 * lra-spills.c: Likewise.
34563 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34564 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
34565 stmt.h varasm.h wide-int.h.
34566 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
34567 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34569 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
34570 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
34571 statistics.h stmt.h varasm.h wide-int.h.
34572 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
34573 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
34574 varasm.h wide-int.h.
34575 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
34576 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34577 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
34578 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
34579 statistics.h stmt.h.
34580 * config/tilepro/tilepro.c: Likewise.
34581 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
34582 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
34583 * config/pdp11/pdp11.c: Likewise.
34584 * config/xtensa/xtensa.c: Likewise.
34585 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
34586 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
34588 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34589 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34590 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
34591 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34592 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
34593 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
34594 * rtl-chkp.c: Likewise.
34595 * tree-chkp-opt.c: Likewise.
34596 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
34597 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
34598 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
34599 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34600 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34601 statistics.h stmt.h.
34602 * tree-vect-data-refs.c: Likewise.
34603 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
34604 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34605 rtl.h statistics.h stmt.h varasm.h.
34606 * internal-fn.c: Likewise.
34607 * ipa-icf-gimple.c: Likewise.
34608 * lto-section-out.c: Likewise.
34609 * tree-data-ref.c: Likewise.
34610 * tree-nested.c: Likewise.
34611 * tree-outof-ssa.c: Likewise.
34612 * tree-predcom.c: Likewise.
34613 * tree-pretty-print.c: Likewise.
34614 * tree-scalar-evolution.c: Likewise.
34615 * tree-ssa-strlen.c: Likewise.
34616 * tree-vect-loop.c: Likewise.
34617 * tree-vect-patterns.c: Likewise.
34618 * tree-vect-slp.c: Likewise.
34619 * tree-vect-stmts.c: Likewise.
34620 * tsan.c: Likewise.
34621 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34622 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
34624 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
34625 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34626 statistics.h stmt.h varasm.h.
34627 * loop-unroll.c: Likewise.
34628 * ubsan.c: Likewise.
34629 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
34630 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
34632 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34633 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
34634 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
34635 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34636 statistics.h stmt.h.
34637 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
34638 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
34639 statistics.h stmt.h varasm.h.
34640 * gimple-match-head.c: Likewise.
34641 * lto-cgraph.c: Likewise.
34642 * lto-section-in.c: Likewise.
34643 * lto-streamer-in.c: Likewise.
34644 * lto-streamer-out.c: Likewise.
34645 * tree-affine.c: Likewise.
34646 * tree-cfg.c: Likewise.
34647 * tree-cfgcleanup.c: Likewise.
34648 * tree-if-conv.c: Likewise.
34649 * tree-into-ssa.c: Likewise.
34650 * tree-ssa-alias.c: Likewise.
34651 * tree-ssa-copyrename.c: Likewise.
34652 * tree-ssa-dse.c: Likewise.
34653 * tree-ssa-forwprop.c: Likewise.
34654 * tree-ssa-live.c: Likewise.
34655 * tree-ssa-math-opts.c: Likewise.
34656 * tree-ssa-pre.c: Likewise.
34657 * tree-ssa-sccvn.c: Likewise.
34658 * tree-tailcall.c: Likewise.
34659 * tree-vect-generic.c: Likewise.
34660 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34661 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
34662 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34663 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
34664 * varasm.c: Likewise.
34665 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34666 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
34668 * init-regs.c: Likewise.
34670 * omp-low.c: Likewise.
34671 * stack-ptr-mod.c: Likewise.
34672 * tree-ssa-reassoc.c: Likewise.
34673 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34674 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
34676 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34677 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
34678 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34679 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
34680 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34681 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
34682 * tree-ssa-phiopt.c: Likewise.
34683 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34684 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34685 * config/fr30/fr30.c: Likewise.
34686 * config/frv/frv.c: Likewise.
34687 * expr.c: Likewise.
34688 * final.c: Likewise.
34689 * optabs.c: Likewise.
34690 * passes.c: Likewise.
34691 * simplify-rtx.c: Likewise.
34692 * stmt.c: Likewise.
34693 * toplev.c: Likewise.
34694 * var-tracking.c: Likewise.
34695 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34696 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34697 * lower-subreg.c: Likewise.
34698 * postreload-gcse.c: Likewise.
34700 * reginfo.c: Likewise.
34701 * store-motion.c: Likewise.
34702 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34703 fixed-value.h hashtab.h real.h stmt.h varasm.h.
34704 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34705 fixed-value.h hashtab.h statistics.h stmt.h.
34706 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34707 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
34708 * except.c: Likewise.
34709 * explow.c: Likewise.
34710 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34711 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
34713 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34714 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
34715 * tree-ssa-structalias.c: Likewise.
34716 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34717 fixed-value.h insn-config.h real.h statistics.h.
34718 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34719 fixed-value.h insn-config.h real.h statistics.h stmt.h.
34720 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34721 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34722 * cfgbuild.c: Likewise.
34723 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34724 fixed-value.h real.h rtl.h statistics.h stmt.h.
34725 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34726 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34727 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34728 fixed-value.h real.h statistics.h stmt.h.
34729 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
34730 fixed-value.h real.h statistics.h stmt.h varasm.h.
34731 * cprop.c: Likewise.
34732 * modulo-sched.c: Likewise.
34733 * postreload.c: Likewise.
34734 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34735 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
34736 statistics.h stmt.h varasm.h.
34737 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
34738 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34739 rtl.h statistics.h stmt.h varasm.h.
34740 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
34741 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
34743 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
34744 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
34746 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
34747 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
34749 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
34750 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34751 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34752 function.h real.h statistics.h stmt.h varasm.h.
34753 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34754 insn-config.h real.h statistics.h stmt.h.
34755 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
34756 statistics.h stmt.h.
34757 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
34758 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
34759 statistics.h stmt.h varasm.h.
34760 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
34761 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
34762 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34763 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
34764 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
34765 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
34766 statistics.h stmt.h varasm.h.
34767 * ipa-polymorphic-call.c: Likewise.
34768 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
34769 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34770 statistics.h stmt.h.
34771 * config/c6x/c6x.c: Likewise.
34772 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
34773 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
34774 statistics.h stmt.h varasm.h.
34775 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
34776 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
34778 * ipa-split.c: Likewise.
34779 * tree-eh.c: Likewise.
34780 * tree-ssa-dce.c: Likewise.
34781 * tree-ssa-loop-niter.c: Likewise.
34782 * tree-vrp.c: Likewise.
34783 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
34784 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
34786 * config/nds32/nds32-fp-as-gp.c: Likewise.
34787 * config/nds32/nds32-intrinsic.c: Likewise.
34788 * config/nds32/nds32-isr.c: Likewise.
34789 * config/nds32/nds32-md-auxiliary.c: Likewise.
34790 * config/nds32/nds32-memory-manipulation.c: Likewise.
34791 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
34792 * config/nds32/nds32-predicates.c: Likewise.
34793 * config/nds32/nds32.c: Likewise.
34794 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
34795 fixed-value.h hashtab.h real.h statistics.h.
34796 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
34797 fixed-value.h hashtab.h real.h statistics.h stmt.h.
34798 * config/arm/arm.c: Likewise.
34799 * config/avr/avr.c: Likewise.
34800 * config/bfin/bfin.c: Likewise.
34801 * config/h8300/h8300.c: Likewise.
34802 * config/i386/i386.c: Likewise.
34803 * config/ia64/ia64.c: Likewise.
34804 * config/iq2000/iq2000.c: Likewise.
34805 * config/m32c/m32c.c: Likewise.
34806 * config/m32r/m32r.c: Likewise.
34807 * config/m68k/m68k.c: Likewise.
34808 * config/mcore/mcore.c: Likewise.
34809 * config/mep/mep.c: Likewise.
34810 * config/mips/mips.c: Likewise.
34811 * config/mn10300/mn10300.c: Likewise.
34812 * config/moxie/moxie.c: Likewise.
34813 * config/pa/pa.c: Likewise.
34814 * config/rl78/rl78.c: Likewise.
34815 * config/rx/rx.c: Likewise.
34816 * config/s390/s390.c: Likewise.
34817 * config/sh/sh.c: Likewise.
34818 * config/sparc/sparc.c: Likewise.
34819 * config/spu/spu.c: Likewise.
34820 * config/stormy16/stormy16.c: Likewise.
34821 * config/v850/v850.c: Likewise.
34822 * config/vax/vax.c: Likewise.
34823 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
34824 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
34825 * config/msp430/msp430.c: Likewise.
34826 * predict.c: Likewise.
34827 * value-prof.c: Likewise.
34828 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
34829 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
34830 * config/microblaze/microblaze.c: Likewise.
34831 * config/nios2/nios2.c: Likewise.
34832 * config/rs6000/rs6000.c: Likewise.
34833 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34834 insn-config.h real.h rtl.h statistics.h stmt.h.
34835 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
34836 insn-config.h real.h statistics.h stmt.h.
34837 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
34838 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
34839 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
34840 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
34841 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
34842 fixed-value.h real.h statistics.h stmt.h.
34843 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
34844 fixed-value.h statistics.h stmt.h.
34845 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
34848 2015-01-15 Jakub Jelinek <jakub@redhat.com>
34850 * gengtype.c (create_user_defined_type): Workaround
34851 -Wmaybe-uninitialized false positives.
34852 * cse.c (fold_rtx): Likewise.
34853 * loop-invariant.c (gain_for_invariant): Likewise.
34855 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
34857 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
34858 set the memory attributes in all cases but clear MEM_EXPR if need be.
34860 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
34862 PR tree-optimization/64434
34863 * cfgexpand.c (reorder_operands): New function.
34864 (expand_gimple_basic_block): Insert call of reorder_operands if
34867 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
34869 * config/mips/micromips.md (*swp): Remove explicit parallel.
34870 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
34871 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
34872 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
34873 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
34874 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
34875 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
34876 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
34877 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
34878 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
34879 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
34880 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
34881 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
34882 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
34883 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
34884 (mips_wrdsp): Likewise.
34885 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
34887 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
34888 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
34889 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
34890 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
34891 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
34892 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
34893 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
34894 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
34895 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
34897 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34899 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
34900 (mips_print_operand): Support 'y' to print exact log2 in decimal
34902 * config/mips/mips.h (ISA_HAS_LSA): New define.
34903 (ISA_HAS_DLSA): Likewise.
34904 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
34905 * config/mips/predicates.md (const_immlsa_operand): New predicate.
34907 2015-01-15 Martin Liska <mliska@suse.cz>
34910 * optc-save-gen.awk: Add support for array types.
34912 2015-01-15 Richard Biener <rguenther@suse.de>
34914 PR middle-end/64365
34915 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
34916 for MEM_REF access functions with the same base can never partially
34919 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
34921 * common.opt: New option -fstack-protector-explicit.
34922 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
34923 (stack_protect_decl_phase): Handle stack_protect attribute for
34924 explicit stack protection requests.
34925 (expand_used_vars): Similarly.
34926 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
34927 * doc/extend.texi: Add documentation for "stack_protect" attribute.
34928 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
34930 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
34933 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
34935 (sh_extending_set_of_reg): New struct.
34936 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
34937 sh_remove_reg_dead_or_unused_notes): New Declarations.
34938 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
34939 sh_find_extending_set_of_reg, sh_split_tst_subregs,
34940 sh_extending_set_of_reg::use_as_extended_reg): New functions.
34941 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
34942 convert to insn_and_split and use new function sh_split_tst_subregs.
34944 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
34946 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
34948 (Optimization Options): Move -fuse-ld documentation to...
34949 (Link Options): ...here.
34951 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
34953 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
34955 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
34956 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
34957 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
34958 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
34959 instead of ZR for the memory operand of LL/SC.
34960 (compare_and_swap_12, sync_add<mode>): Likewise.
34961 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
34962 (sync_new_<optab>_12, sync_nand_12): Likewise.
34963 (sync_old_nand_12, sync_new_nand_12): Likewise.
34964 (sync_sub<mode>, sync_old_add<mode>): Likewise.
34965 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
34966 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
34967 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
34968 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
34969 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
34970 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
34971 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
34972 * doc/md.texi (ZC): Update description.
34974 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
34976 * builtins.c (expand_builtin_atomic_exchange): Remove error when
34977 memory model is CONSUME.
34978 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
34979 expand_builtin_atomic_store): Change invalid memory model errors to
34981 (expand_builtin_atomic_clear): Change invalid model errors to warnings
34982 and issue warning for CONSUME.
34984 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
34986 * lto-cgraph: Update function comments for
34987 lto_symtab_encoder_encode_*.
34989 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34991 * Makefile.in (site.exp): Do not set ENABLE_LTO.
34993 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
34995 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
34996 * lto-cgraph.c (select_what_to_stream): Remove argument, use
34997 lto_stream_offload_p instead.
34998 * lto-streamer.h (select_what_to_stream): Remove argument.
34999 * passes.c (ipa_write_summaries): Likewise.
35000 * tree-pass.h (ipa_write_summaries): Likewise.
35002 2015-01-14 Richard Biener <rguenther@suse.de>
35004 PR tree-optimization/59354
35005 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
35006 groups larger than the slp group size as having gaps.
35008 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
35010 PR middle-end/59448
35011 * builtins.c (get_memmodel): Promote consume to acquire always.
35013 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35016 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
35019 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35022 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
35024 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
35025 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
35026 AVX512VBMI, as it implies AVX512BW.
35028 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
35031 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
35032 (vec_unpacks_hi_v16sf): Ditto.
35034 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35036 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
35039 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35041 * doc/invoke.texi (mapcs): Mention deprecation.
35042 (mapcs-frame): Likewise.
35044 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
35047 * config/arm/arm.c (callee_saved_reg_p): Define.
35048 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
35049 register is callee saved instead of !call_used_regs[reg].
35050 (thumb1_compute_save_reg_mask): Likewise.
35052 2015-01-14 Hale Wang <hale.wang@arm.com>
35054 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
35057 2015-01-14 Richard Biener <rguenther@suse.de>
35060 * tree-inline.c (insert_debug_decl_map): Check destination
35061 function MAY_HAVE_DEBUG_STMTS.
35062 (insert_init_debug_bind): Likewise.
35063 (insert_init_stmt): Remove redundant check.
35064 (remap_gimple_stmt): Drop debug stmts if the destination
35065 function has var-tracking assignments disabled.
35067 2015-01-14 Martin Liska <mliska@suse.cz>
35069 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
35070 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
35072 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35075 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
35076 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
35078 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
35080 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
35081 level from an ARCH; do not inject the default.
35082 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
35083 MIPS_ISA_LEVEL_SPEC.
35084 (MIPS_ISA_NAN2008_SPEC): Update comment.
35085 (BASE_DRIVER_SELF_SPECS): Likewise.
35086 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
35087 MIPS_DEFAULT_ISA_LEVEL_SPEC.
35088 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
35089 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
35090 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
35092 2015-01-14 Richard Biener <rguenther@suse.de>
35094 PR tree-optimization/64493
35095 PR tree-optimization/64495
35096 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
35097 assign the proper vectorized PHI to the inner loop exit PHIs.
35099 2015-01-14 Joey Ye <joey.ye@arm.com>
35101 * config/arm/arm.c (arm_compute_save_reg_mask):
35102 Do not save lr in case of tail call.
35103 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
35105 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
35107 * tree-vrp.c (check_array_ref): Emit more warnings
35108 for warn_array_bounds >= 2.
35109 * common.opt: New option -Warray-bounds=.
35110 * doc/invoke.texi: Document -Warray-bounds=.
35112 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
35114 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
35115 (mforbid-fp-as-gp): Remove.
35117 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
35118 (nds32_symbol_load_store_p): Remove.
35119 (nds32_fp_as_gp_check_available): Clean up implementation.
35120 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
35122 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
35123 fp-as-gp and ex9 cases.
35125 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35127 * tree-profile.c (init_ic_make_global_vars): Drop workaround
35128 for bintuils bug 14342.
35129 (init_ic_make_global_vars): Likewise.
35130 (gimple_init_edge_profiler): Likewise.
35131 (gimple_gen_ic_func_profiler): Likewise.
35133 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
35135 * ipa-inline.c (inline_small_functions): Swap the operands in
35138 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35141 * ipa-inline-analysis.c (node_growth_cache): Remove.
35142 (initialize_growth_caches): Do not initialize it.
35143 (free_growth_caches): Do not free it.
35144 (do_estimate_growth): Rename to ...
35145 (estimate_growth): ... this one; drop growth cache code.
35146 (growth_likely_positive): Always go the heuristics way.
35147 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
35148 (reset_edge_caches): Do not reset node growth.
35149 (heap_edge_removal_hook): Do not maintain cache.
35150 (inline_small_functions): Likewise; strenghten sanity check.
35151 (ipa_inline): Do not maintain caches.
35152 * ipa-inline.h (node_growth_cache): Remove.
35153 (do_estimate_growth): Remove to ...
35154 (estimate_growth): this one; remove inline version.
35155 (reset_node_growth_cache): Remove.
35157 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
35160 * ipa-inline.c (inline_small_functions): Update callee keys after
35161 resolving speculation
35162 (inline_small_functions): Always check monotonicity of the queue.
35164 2015-01-13 Marek Polacek <polacek@redhat.com>
35166 PR middle-end/64391
35167 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
35169 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35171 PR rtl-optimization/64286
35172 * ree.c (combine_reaching_defs): Move part of comment earlier,
35173 remove !SCALAR_INT_MODE_P check.
35174 (add_removable_extension): Don't add vector mode
35175 extensions if all uses of the source register aren't the same
35178 2015-01-13 Renlin Li <renlin.li@arm.com>
35180 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
35181 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
35183 2015-01-13 Martin Liska <mliska@suse.cz>
35185 * ipa-icf.c (sem_function::equals_private): Call new functions
35186 cl_target_option_print_diff and cl_optimization_print_diff.
35187 * optc-save-gen.awk (cl_target_option_print_diff): New function.
35188 (cl_optimization_print_diff): Likewise.
35189 * opth-gen.awk: Likewise.
35191 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
35193 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
35194 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
35195 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
35196 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
35197 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
35198 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
35200 2015-01-13 Andrew Pinski <apinski@cavium.com>
35202 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
35203 instead of src mode.
35205 2015-01-13 Richard Biener <rguenther@suse.de>
35208 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
35211 2015-01-13 Andrew Pinski <apinski@cavium.com>
35213 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
35215 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
35217 2015-01-13 Jakub Jelinek <jakub@redhat.com>
35219 PR middle-end/63974
35220 * cfgexpand.c (expand_computed_goto): Don't call
35221 convert_memory_address here.
35223 2015-01-13 Richard Biener <rguenther@suse.de>
35225 PR tree-optimization/64406
35226 * tree-loop-distibution.c (pass_loop_distribution::execute):
35227 Reset the SCEV hashtable if we distributed anything.
35229 2015-01-13 Richard Biener <rguenther@suse.de>
35231 PR tree-optimization/64404
35232 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
35233 SLP types for CSEd loads.
35235 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35237 PR tree-optimization/64436
35238 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
35239 merge of two symbolic numbers for a bitwise OR to ...
35240 (perform_symbolic_merge): This. Also fix computation of the range and
35241 end of the symbolic number corresponding to the result of a bitwise OR.
35243 2015-01-13 Richard Biener <rguenther@suse.de>
35245 PR tree-optimization/64568
35246 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
35247 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
35249 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35251 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
35252 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
35254 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35256 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
35257 target-specific symbol_ref flag.
35258 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
35259 resides in rodata section.
35260 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
35261 (nds32_encode_section_info): New function.
35263 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35265 * config/nds32/nds32.md (call): Use pseudo instruction bal which
35266 clobbers TA_REGNUM if large code model is specified.
35267 (call_register): Likewise.
35268 (call_immediate): Likewise.
35269 (call_value): Likewise.
35270 (call_value_register): Likewise.
35271 (call_value_immediate): Likewise.
35273 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35275 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
35276 (TARGET_CMODEL_MEDIUM): New macro.
35277 (TARGET_CMODEL_LARGE): New macro.
35278 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
35279 code model setting in assembly code.
35281 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35283 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
35284 Remove MASK_GP_DIRECT flag.
35285 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
35286 one of the multilib default options.
35287 * config/nds32/nds32.opt (mgp-direct): Remove.
35288 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
35289 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
35291 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
35293 * config/nds32/nds32.opt (mcmodel): Add new option.
35294 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
35295 to describe code model.
35297 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
35300 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
35302 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
35304 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
35305 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
35306 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
35307 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
35308 __builtin_sh_set_fpscr.
35310 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35312 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
35313 after a funtion name just to indicate it is a function.
35314 ([-fsanitize-undefined-trap-on-error]): Likewise.
35315 ([-fdbg-cnt=]): Likewise.
35316 ([-mmemcpy]): Likewise.
35317 ([-mflush-func]): Likewise.
35318 ([-msynci]): Likewise.
35320 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
35322 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
35325 2015-01-12 Jakub Jelinek <jakub@redhat.com>
35327 PR tree-optimization/64563
35328 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
35329 instead of != VR_VARYING.
35332 * config/i386/i386.c (ix86_expand_prologue): Add
35333 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
35335 PR tree-optimization/64454
35336 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
35337 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
35338 for signed or [0, op1 - 1] for unsigned modulo.
35339 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
35340 even if op1 does not satisfy integer_pow2p.
35343 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
35345 2015-01-12 Jeff Law <law@redhat.com>
35348 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
35349 (trunchiqi2, truncsihi2): Similarly.
35351 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
35352 rather than calling F.
35354 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
35356 * tsan.c (instrument_expr): Use force_gimple_operand.
35357 Use may_be_nonaddressable_p instead of is_gimple_addressable.
35359 2015-01-12 Richard Biener <rguenther@suse.de>
35361 PR tree-optimization/64530
35362 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
35365 2015-01-12 Richard Biener <rguenther@suse.de>
35367 PR middle-end/64357
35368 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
35371 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35373 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
35374 Cortex-A17 tuning parameters.
35375 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
35377 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35379 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
35380 * config/arm/arm.c (arm_macro_fusion_p): New function.
35381 (arm_macro_fusion_pair_p): Likewise.
35382 (TARGET_SCHED_MACRO_FUSION_P): Define.
35383 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
35384 (ARM_FUSE_NOTHING): Likewise.
35385 (ARM_FUSE_MOVW_MOVT): Likewise.
35386 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
35387 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
35388 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
35389 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
35390 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
35391 arm_cortex_a5_tune): Specify fuseable_ops value.
35393 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
35396 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
35397 test for PIE with copy reloc.
35398 * configure: Regenerated.
35400 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35402 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
35404 (arm_tls_descseq_addr): Likewise.
35405 (arm_gen_movmemqi): Likewise.
35406 (arm_expand_epilogue_apcs_frame): Likewise.
35407 (arm_expand_epilogue): Likewise.
35408 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
35411 2015-01-12 Martin Liska <mliska@suse.cz>
35414 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
35415 volatility for correct operands.
35417 2015-01-12 Martin Liska <mliska@suse.cz>
35419 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
35420 indication that a function is not leaf.
35421 (sem_function::compare_polymorphic_p): Likewise.
35423 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35425 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
35426 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
35427 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
35428 fold-const.h, tree-check.h.
35430 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35434 * ipa-inline.c (compute_uninlined_call_time,
35435 compute_inlined_call_time): Use counts for extra precision when
35437 (big_speedup_p): Fix formating.
35438 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
35439 (relative_time_benefit): Remove.
35440 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
35441 merge guessed and read profile paths.
35442 (inline_small_functions): Count only !optimize_size functions into
35443 initial size; be more lax about sanity check when profile is used;
35444 be sure to update inlined function profile when profile is read.
35446 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
35449 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
35450 cost when edge becomes direct.
35451 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
35452 is resolved or when introducing new speculation.
35454 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
35458 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
35459 '||' to fix typo issue.
35461 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
35462 accept and return NULL.
35464 2015-01-12 Martin Liska <mliska@suse.cz>
35466 * cgraph.c (cgraph_edge::remove_callee): Move function to header
35467 file for being inlined.
35468 (cgraph_set_edge_callee): Delete.
35469 (cgraph_edge::redirect_callee): Move function to header file
35471 (cgraph_edge::make_direct): Use new function.
35472 (cgraph_edge::dump_edge_flags): New function created from
35473 static dump_edge_flags function.
35474 (cgraph_node::dump): Use new function.
35475 (cgraph_edge::verify_count_and_frequency): New function created
35476 from verify_edge_count_and_frequency.
35477 (cgraph_edge::verify_corresponds_to_fndecl): New function created
35478 from verify_edge_corresponds_to_fndecl.
35479 (verify_edge_corresponds_to_fndecl): Delete.
35480 (cgraph_node::verify_node): Use new function.
35481 * cgraph.h (cgraph_edge::set_callee): New function.
35482 (cgraph_edge::dump_edge_flags): Likewise.
35483 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
35485 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
35487 * ipa-utils.c (estimate_function_body_sizes): Do not
35488 free node params when called late with early=true.
35490 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
35492 * doc/md.texi (Instruction Patterns): Rewrite text for
35494 (Example): Likewise.
35496 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
35498 * doc/invoke.texi (Option Summary): Break long lines.
35499 [(-fdiagnostics-color)]: Put long literal in @smallexample
35501 [(-fsanitize-recover)]: Likewise.
35502 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
35503 [(-ffast-math)]: Likewise.
35504 [(--param max-inline-insns-recursive)]: Likewise.
35505 [(--param max-inline-recursive-depth)]: Likewise.
35506 [(-mno-text-section-literals)]: Likewise.
35508 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
35510 * doc/install.texi: Update for libgomp being renamed from "GNU
35511 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
35513 * doc/sourcebuild.texi: Likewise.
35515 2015-01-10 Anthony Green <green@moxielogic.com>
35517 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
35518 mul.x availability for moxiebox configuration.
35520 2015-01-09 Anthony Green <green@moxielogic.com>
35522 * config/moxie/moxie.md: Tabify assembly output.
35524 2015-01-09 Anthony Green <green@moxielogic.com>
35526 * config/moxie/moxie.md (CC_REG): Correct register definition.
35528 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
35530 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
35531 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
35534 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35536 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
35538 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
35539 Jakub Jelinek <jakub@redhat.com>
35541 PR middle-end/64412
35542 * lto-streamer.h (lto_stream_offload_p): New declaration.
35543 * lto-streamer.c (lto_stream_offload_p): New variable.
35544 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
35545 at the same time as section_name_prefix.
35546 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
35547 if lto_stream_offload_p.
35548 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
35549 stream TREE_TARGET_OPTION if lto_stream_offload_p.
35550 (write_ts_function_decl_tree_pointers): Don't
35551 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
35552 * tree-streamer-in.c (unpack_value_fields): Don't stream
35553 TREE_TARGET_OPTION in if ACCEL_COMPILER.
35554 (lto_input_ts_function_decl_tree_pointers): Don't stream
35555 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
35556 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
35557 instead of section_name_prefix string comparisons.
35559 2015-01-09 Jakub Jelinek <jakub@redhat.com>
35561 PR rtl-optimization/64536
35562 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
35565 2015-01-09 Michael Collison <michael.collison@linaro.org>
35567 PR tree-optimization/64322
35568 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
35569 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
35571 2015-01-09 Tom de Vries <tom@codesourcery.com>
35573 PR rtl-optimization/64539
35574 * regcprop.c (kill_clobbered_values): Factor out of ...
35575 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
35576 instead of note_stores with kill_clobbered_value.
35578 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35580 * ginclude/unwind-arm-common.h: Revert previous commit.
35582 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
35584 * config.gcc (arm*-*-freebsd*): New configuration.
35585 * config/arm/freebsd.h: New file.
35586 * config.host: Add extra components for arm*-*-freebsd*.
35587 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
35588 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
35590 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35592 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
35594 * config/rs6000/t-rtems: Add e6500 multilibs.
35596 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35598 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
35601 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35603 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
35604 MULTILIB_EXCEPTIONS.
35606 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35608 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
35609 MULTILIB_EXCEPTIONS.
35611 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
35613 * config/arm/t-rtems-eabi: Rename to...
35614 * config/arm/t-rtems: ...this.
35615 * config/arm/rtems-eabi.h: Rename to...
35616 * config/arm/rtems.h: ...this.
35617 * config.gcc (arm*-*-rtems*): Reflect changes above.
35619 2015-01-09 Richard Biener <rguenther@suse.de>
35621 PR tree-optimization/64410
35622 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
35624 (execute_update_addresses_taken): Deal with that.
35625 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
35626 loads/stores for complex variables.
35628 2015-01-09 Martin Liska <mliska@suse.cz>
35630 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
35632 (func_checker::compare_memory_operand): New function.
35633 (func_checker::compare_operand): Split case to newly
35635 (func_checker::compare_cst_or_decl): New function.
35636 (func_checker::compare_gimple_call): Identify
35638 (func_checker::compare_gimple_assign): Likewise.
35639 * ipa-icf-gimple.h: New function.
35641 2015-01-09 Martin Liska <mliska@suse.cz>
35644 * sreal.c (sreal::dump): Change unsigned format to signed for
35646 (sreal::to_double): Replace exp2 with scalbln.
35648 2015-01-09 Martin Liska <mliska@suse.cz>
35650 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
35651 * ipa-icf.c (sem_function::equals_private): Add support for target and
35652 (sem_item_optimizer::merge_classes): Remove redundant function
35653 optimization flags comparison.
35654 * tree.h (target_opts_for_fn): New function.
35656 2015-01-09 Tom de Vries <tom@codesourcery.com>
35658 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
35660 2015-01-09 Kito Cheng <kito@0xlab.org>
35662 PR rtl-optimization/64348
35663 * lra-constraints.c (split_reg): Fix caller-save store/restore
35664 instruction generation.
35666 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
35668 PR gcov-profile/61790
35669 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
35670 long long. Fallback to int64_t if host doesn't have long long and
35671 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
35673 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35675 PR tree-optimization/63989
35676 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
35677 from 1000 to 10000.
35678 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
35679 (get_stridx): If we don't have a record for certain SSA_NAME,
35680 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
35681 constant offset, call get_stridx_plus_constant.
35682 (get_stridx_plus_constant): New function.
35683 (zero_length_string): Don't use get_stridx here.
35686 PR middle-end/64388
35687 * dse.c (struct insn_info): Mention frame_read set also
35688 before reload for tail calls on some targets.
35689 (scan_insn): Revert 2014-12-22 change. Set frame_read
35690 also before reload for tail calls if
35691 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
35692 instead of add_non_frame_wild_read for non-const/memset
35693 tail calls after reload.
35695 2015-01-08 Jason Merrill <jason@redhat.com>
35697 * ubsan.c (do_ubsan_in_current_function): New.
35698 (pass_ubsan::gate): Use it.
35699 * ubsan.h: Declare it.
35700 * convert.c (convert_to_integer): Use it.
35702 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35705 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
35706 compare_code when it is unconditionally overwritten afterwards.
35707 Use ix86_reverse_condition instead of reverse_condition. Don't
35708 change code if *reverse_condition* returned UNKNOWN and don't
35709 swap ct/cf and negate diff in that case.
35711 2015-01-08 Mike Stump <mikestump@comcast.net>
35713 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
35714 (pass_tsan_O0::gate): Likewise.
35715 * extend.texi (Function Attributes): Add no_sanitize_thread
35718 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
35720 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
35721 for registering builtins.
35722 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
35723 add -fopenmp to the argv_obstack used when invoking
35724 compile_for_target.
35726 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
35727 add "-m32" or "-m64" to argv_obstack.
35728 (generate_host_descr_file): Likewise, when invoking host_compiler.
35729 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
35732 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35734 * config/sh/sh-mem.cc: Use constant as second operand when emitting
35737 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
35740 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
35741 constant load if constant operand fits into I08.
35743 2015-01-08 Jakub Jelinek <jakub@redhat.com>
35746 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
35747 and TREE_THIS_VOLATILE for MEM_REFs.
35748 (build5_stat): Fix up initialization of TREE_READONLY and
35749 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
35751 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
35754 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
35755 of r for the second alternative of the destination operand.
35757 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
35760 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
35762 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35764 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
35766 ([-fivar-visibility], [-fvisibility]): Likewise.
35768 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
35770 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
35771 the file where @code, @command, etc is more appropriate.
35773 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
35775 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
35776 of -mrecip= documentation.
35778 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35781 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
35782 correct reload handler if -m32 -mpowerpc64 is used.
35784 2015-01-06 Tom de Vries <tom@codesourcery.com>
35786 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
35788 2015-01-08 Christian Bruel <christian.bruel@st.com>
35791 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
35793 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
35795 PR tree-optimization/63259
35796 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
35797 if optab exists for 16bit byteswap.
35799 2015-01-06 Jakub Jelinek <jakub@redhat.com>
35801 * opts.c (common_handle_option): Add support for
35802 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
35803 * doc/invoke.texi: Document -fno-sanitize=all,
35804 -f{,no-}sanitize-recover=all. Document that
35805 -fsanitize=float-cast-overflow is not enabled
35806 by -fsanitize=undefined. Fix up documentation
35807 of -f{,no-}sanitize-recover.
35809 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
35811 * config.gcc: Add Visium support.
35812 * configure.ac: Likewise.
35813 * configure: Regenerate.
35814 * doc/extend.texi (interrupt attribute): Add Visium.
35815 * doc/invoke.texi: Document Visium options.
35816 * doc/install.texi: Document Visium target.
35817 * doc/md.texi: Document Visium constraints.
35818 * common/config/visium: New directory.
35819 * config/visium: Likewise.
35821 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35823 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
35824 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
35826 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
35828 * combine.c (combine_validate_cost): Do not count the cost of a
35829 split I2 twice. Do not display it twice in the dump, either.
35831 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35833 Revert parts of r219199.
35834 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
35836 ([-Wtraditional]): Restore markup on <limits.h>.
35838 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
35841 * doc/invoke.texi: Document -Wsuggest-override.
35843 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
35845 PR rtl-optimization/64287
35846 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
35847 (process_options): Disable flag_ipa_ra if profiling.
35849 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
35851 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
35853 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
35855 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
35856 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
35857 put under #if TARGET_LOOPS guard.
35859 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
35861 * config/i386/i386.c (output_387_binary_op): Use std::swap.
35863 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
35865 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
35866 * rtl.h (refers_to_regno_p): Add overload.
35868 * bt-load.c: Likewise.
35869 * combine.c: Likewise.
35870 * df-scan.c: Likewise.
35871 * sched-deps.c: Likewise.
35872 * config/s390/s390.c: Likewise.
35873 * config/m32r/m32r.c: Likewise.
35874 * config/rs6000/spe.md: Likewise.
35875 * config/rs6000/rs6000.c: Likewise.
35876 * config/pa/pa.c: Likewise.
35877 * config/stormy16/stormy16.c: Likewise.
35878 * config/cris/cris.c: Likewise.
35879 * config/arc/arc.md: Likewise.
35880 * config/arc/arc.c: Likewise.
35881 * config/sh/sh.md: Likewise.
35882 * config/sh/sh.c: Likewise.
35883 * config/frv/frv.c: Likewise.
35885 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35888 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
35889 call as cleanup of the whole body.
35890 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
35891 * tsan.c (replace_func_exit): New function.
35892 (instrument_func_exit): Moved earlier.
35893 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
35894 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
35896 (tsan_pass): Don't call instrument_func_exit.
35897 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
35898 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
35902 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
35903 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
35904 it to libubsan handler instead of EXPR. Fold comparisons earlier,
35905 if the result is integer_zerop, return NULL_TREE.
35906 * convert.c (convert_to_integer): Pass expr as ARG.
35908 PR tree-optimization/64465
35909 * tree-inline.c (redirect_all_calls): During inlining
35910 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
35911 changed the stmt to a non-throwing call.
35913 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
35915 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
35916 etc markup throughout the file.
35918 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
35920 Enable experimental TSAN support for Ada.
35921 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
35923 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35925 PR tree-optimization/64494
35926 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
35927 clear SSA_NAME_ANTI_RANGE_P flag.
35929 2015-01-05 Marek Polacek <polacek@redhat.com>
35931 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
35933 2015-01-05 Jakub Jelinek <jakub@redhat.com>
35935 Update copyright years.
35937 * gcc.c (process_command): Update copyright notice dates.
35938 * gcov-dump.c: Ditto.
35940 * doc/cpp.texi: Bump @copying's copyright year.
35941 * doc/cppinternals.texi: Ditto.
35942 * doc/gcc.texi: Ditto.
35943 * doc/gccint.texi: Ditto.
35944 * doc/gcov.texi: Ditto.
35945 * doc/install.texi: Ditto.
35946 * doc/invoke.texi: Ditto.
35948 * auto-profile.c, auto-profile.h: Fix up Copyright line.
35950 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
35952 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
35954 ([-fvtable-verify], [-fvtv-debug]): Likewise.
35955 ([-Wabi]): Likewise.
35956 ([-fmessage-length]): Likewise.
35957 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
35958 ([-Wno-discarded-qualifiers]): Likewise.
35959 ([-Wnodiscarded-array-qualifiers]): Likewise.
35960 ([-Wno-virtual-move-assign]): Likewise.
35961 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
35962 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
35963 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
35964 ([-fsanitize-undefined-trap-on-error]): Likewise.
35965 ([-floop-interchange]): Likewise.
35966 ([-ftree-coalesce-inlined-vars]): Likewise.
35967 ([-fvect-cost-model]): Likewise.
35968 ([-flto]): Likewise.
35969 ([--param]): Likewise.
35970 (Spec Files): Likewise.
35971 ([-mstrict-align]): Likewise.
35972 ([-mfix-cortex-a53-835769]): Likewise.
35973 ([-march], [-mtune]): Likewise.
35974 ([-mpic-register]): Likewise.
35975 ([-munaligned-access]): Likewise.
35976 ([-msp8]): Likewise.
35977 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
35978 (AVR Built-in Macros): Likewise.
35979 ([-mpreferred-stack-boundary]): Likewise.
35980 ([-mtune-crtl]): Likewise.
35981 ([-mashf]): Likewise.
35982 ([-mmcu=]): Likewise.
35983 ([-minrt]): Likewise.
35984 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
35985 ([-mupper-regs]): Likewise.
35986 ([-matomic-model]): Likewise.
35987 ([-mdiv]): Likewise.
35988 ([-mzdcbranch]): Likewise.
35989 ([-mdisable-callt]): Likewise.
35990 ([-msoft-float]): Likewise.
35991 ([-m8byte-align]): Likewise.
35992 ([-fstack-reuse]): Likewise.
35994 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
35996 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
35997 Fix markup, light copy-editing.
35998 ([-fauto-profile]): Rewrite to fix formatting and content
36001 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36003 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
36004 Copy-edit description.
36005 ([-fisolate-erroneous-paths-attribute]): Likewise.
36006 * common.opt (fisolate-erroneous-paths-dereference):
36007 Copy-edit description.
36008 (fisolate-erroneous-paths-attribute): Likewise.
36010 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36012 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
36015 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
36017 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
36018 ([-fvtv-debug]): Likewise.
36019 ([-Wc++-compat]): Likewise.
36020 ([-Wc++11-compat]): Likewise.
36021 ([-Wc++14-compat]): Likewise.
36022 ([-Wno-sized-deallocation]): Likewise.
36023 ([-femit-class-debug-always]): Likewise.
36024 ([-femit-struct-debug-detailed]): Likewise.
36025 ([-fno-keep-inline-dllexport]): Likewise.
36026 ([-fira-algorithm]): Likewise.
36027 ([-fira-region]): Likewise.
36028 ([-flra-remat]): Likewise.
36029 ([-fipa-ra]): Likewise.
36030 ([-fhoist-adjacent-loads]): Likewise.
36031 ([-fisolate-erroneous-paths-dereference]): Likewise.
36032 ([-fisolate-erroneous-paths-attribute]): Likewise.
36033 ([-ftree-switch-conversion]): Likewise.
36034 ([-ftree-tail-merge]): Likewise.
36035 ([-ftree-loop-if-convert]): Likewise.
36036 ([-ftree-loop-if-convert-stores]): Likewise.
36037 ([-ftree-loop-distribution]): Likewise.
36038 ([-ftree-loop-distribute-patterns]): Likewise.
36039 ([-flto-compression-level]): Likewise.
36040 ([-flto-report]): Likewise.
36041 ([-flto-report-wpa]): Likewise.
36042 ([-fuse-linker-plugin]): Likewise.
36043 ([-mfix-cortex-a53-835769]): Likewise.
36044 ([-mno-fix-cortex-a53-835769]): Likewise.
36045 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
36046 explicit listing; add a note to the discussion indicating they
36047 exist. Reorder table to group similar options. Add missing
36048 @opindex entries. Add @need commands throughout the table to
36049 allow it to be split across multiple pages.
36050 ([-m8bit-idiv]): Fix @opindex.
36051 ([-mavx256-split-unaligned-load]): Likewise.
36052 ([-mavx256-split-unaligned-store]): Likewise.
36053 ([-mstack-protector-guard]): Likewise.
36054 ([-mcpu=]): Likewise.
36055 ([-mcpu]): Likewise.
36056 ([-mpointer-size=]): Likewise.
36058 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
36060 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
36061 instead of `m' constraint. Likewise for unnamed movb comparison
36062 patterns using reg_before_reload_operand predicate.
36063 * config/pa/predicates.md (reg_before_reload_operand): Tighten
36064 predicate to reject register index and LO_SUM DLT memory forms
36067 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
36069 * doc/invoke.texi (Option Summary): Fix spelling of
36070 -fdevirtualize-at-ltrans.
36071 ([-fdevirtualize]): Fix markup.
36072 ([-fdevirtualize-speculatively]): Fix typo.
36073 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
36074 implementor-speaky.
36075 * common.opt (fdevirtualize-at-ltrans): Likewise.
36076 * ipa-devirt.c: Fix typos in comments throughout the file.
36077 (ipa_devirt): Fix typos in format strings for dump output.
36079 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
36081 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
36082 discussion of defaults, light copy-editing.
36084 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
36086 * tsan.c (instrument_expr): corrected previous checkin.
36088 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
36090 Instrument bit field and unaligned accesses for TSAN.
36091 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
36092 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
36093 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
36094 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
36095 unaligned memory regions.
36097 2015-01-01 Anthony Green <green@moxielogic.com>
36099 * config/moxie/predicates.md (moxie_general_movsrc_operand):
36100 Restrict move source register offsets to 16 bits.
36102 Copyright (C) 2015 Free Software Foundation, Inc.
36104 Copying and distribution of this file, with or without modification,
36105 are permitted in any medium without royalty provided the copyright
36106 notice and this notice are preserved.